Author Topic: [Unofficial] New Module: SelectiveBlend  (Read 14570 times)

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
[Unofficial] New Module: SelectiveBlend
« on: 2009 September 27 10:43:15 »
Hi everyone


See this thread for the background story:
http://pixinsight.com/forum/index.php?topic=1442.0


So, here is the W32 compilation:
http://pteam.pixinsight.com/carlos/modules/SelectiveBlend-pxm.zip

And the source code:
http://pteam.pixinsight.com/carlos/modules/SelectiveBlend-src-2009-09-26.zip


I think that this process is a quite straightforward. Just select the blending ratio for each channel. Just one note. Luminance is always imported as the last step, so it is very crucial the selection of "when" to modify it. If you modify the original one, the blending factors will only affect the chrominance. So, the result is quite different from adjusting the new luminance, from processed color channels.
There is a third alternative, that I did not implement, to import the processed original luminance before color blending... I guess that this is not that useful, but if you need it, just say so and I'll add the option.

Finally, there is no RealTime for this one. Is over my programming skills, so you'd have to wait for Juan. :)


Regards,

Carlos Milovic F.
--------------------------------
PixInsight Project Developer
http://www.pixinsight.com

Offline Simon Hicks

  • PixInsight Old Hand
  • ****
  • Posts: 333
Re: [Unofficial] New Module: SelectiveBlend
« Reply #1 on: 2009 September 27 11:59:13 »
Hi Carlos,

Quote
I think that this process is a quite straightforward.

I love it when people say that!  :D

Firstly, congrats on a great process. But let me see if I've got it right.....

If you want to blend an Ha image with an RGB image you would first select the Ha image as the Operand Image? Then change ratios as required and then drag the blue triangle onto the RGB image? Is that right?

By the way, I tried this out by loading an RGB image. I then just extracted the luminance and streched it and clipped it....just so I would see some results when trying the process. If I applied the process to the Parent image then it seemed to all make sense. However, I created a slightly smaller preview of the RGB image and applied the process to that preview.....so I could keep changing the ratios and seeing the result. However, the stars all become doubled up, probably because it was blending the whole of the luminance image with just the smaller preview? Anyway, I just thought I'd let you know.

Apart from that it looks like an great process that will get used a lot. The live preview will make it really cool.

Cheers
         Simon

Offline Harry page

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1458
    • http://www.harrysastroshed.com
Re: [Unofficial] New Module: SelectiveBlend
« Reply #2 on: 2009 September 27 12:56:12 »
Hi Carlos

Thanks for your hard work  ;D

All I need now is a nice man to do a 64 bit version   ;)


Harry
Harry Page

Offline mmirot

  • PixInsight Padawan
  • ****
  • Posts: 881
Re: [Unofficial] New Module: SelectiveBlend
« Reply #3 on: 2009 September 28 07:28:46 »
Wow,

That was fast.
Thanks Carlos.
I look foward to trying it.

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: [Unofficial] New Module: SelectiveBlend
« Reply #4 on: 2009 September 28 10:13:38 »
Simon, thanks for the bug report. I thought that these small previews management would be easier :P I'll fix it this week. So, for the moment, please just use previews of the same size as the original image.

Thanks Harry and mmirot for your comments ;)
(about 64bits... sorry, I have old PCs only :P )
Regards,

Carlos Milovic F.
--------------------------------
PixInsight Project Developer
http://www.pixinsight.com

Offline Harry page

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1458
    • http://www.harrysastroshed.com
Re: [Unofficial] New Module: SelectiveBlend
« Reply #5 on: 2009 September 28 11:09:55 »
Hi Carlos

I was Hopeing a sander was watching  ;D

Harry
Harry Page

Offline Harry page

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1458
    • http://www.harrysastroshed.com
Re: [Unofficial] New Module: SelectiveBlend
« Reply #6 on: 2009 September 28 11:47:22 »
Hi Carlos

Had a go with the 32 bit version and seems A OK

Will have to bend a certain persons ear about a real time preview  ::)

Regards Harry
Harry Page

Offline papaf

  • PixInsight Addict
  • ***
  • Posts: 182
Re: [Unofficial] New Module: SelectiveBlend
« Reply #7 on: 2009 September 29 23:23:29 »
This is amazing!

Excuse a newbie question, but I'm working in linux (I'm quite an experienced user) and was wondering how am I supposed to use the source.

Thanks!

Offline David Serrano

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 503
Re: [Unofficial] New Module: SelectiveBlend
« Reply #8 on: 2009 September 30 01:36:56 »
I haven't downloaded any of the recent Carlos' developments, but in the past I tried some things with the modules which source code is distributed with the PCL. To compile them, I usually had to edit the Makefile and/or some of the files included from it, and then run 'make' as usual. As for what changes do you have to make to the Makefile, just run 'make' and it will tell ;).

If you press me a little, I think I can search in my desktop at home, which should have the working directories untouched under a (still thin) layer of dust. I recall having modified the call to gcc, adding some parameters so as not to generate some *.d files or something like that.
--
 David Serrano

Offline papaf

  • PixInsight Addict
  • ***
  • Posts: 182
Re: [Unofficial] New Module: SelectiveBlend
« Reply #9 on: 2009 September 30 01:56:21 »
The problem is there's no Makefile in the zip file. I expected it too, but I can't find it...

EDIT: is it possible the Release subdir is missing completely? Maybe a mistake when making the zipfile?

Fabio

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: [Unofficial] New Module: SelectiveBlend
« Reply #10 on: 2009 September 30 06:14:03 »
Hi Fabio (I guess that you are Fabio :P )

Look at the Software Development sub forum. There is a thread where Juan announces a new javascript that builds makefiles. That's the reason I did not include any folder related to compilation.
For linux, you may use Eclipse.
Regards,

Carlos Milovic F.
--------------------------------
PixInsight Project Developer
http://www.pixinsight.com

Offline papaf

  • PixInsight Addict
  • ***
  • Posts: 182
Re: [Unofficial] New Module: SelectiveBlend
« Reply #11 on: 2009 September 30 06:43:31 »
Uhm, well, I'm downloading Eclipse right now, but not being a programmer, I won't have a clue. What do I do in Eclipse to run the script?

Fabio

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: [Unofficial] New Module: SelectiveBlend
« Reply #12 on: 2009 September 30 07:02:12 »
To be honest, I haven't tried it in eclipse yet! :P I run linux, but with an old computer, so PI doesn't run here :P If nobody else gives an answer today, I'll try tonight.
Regards,

Carlos Milovic F.
--------------------------------
PixInsight Project Developer
http://www.pixinsight.com

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: [Unofficial] New Module: SelectiveBlend
« Reply #13 on: 2009 September 30 07:27:10 »
Hi Fabio and Carlos,

Better wait until PI 1.5.8 is released, because there are significant changes in the build system. Many of Carlos' recent modules will also be available as processes included in standard modules. For example, this one will be included in ColorSpaces, or perhaps PixelMath --I'm in doubt about this (ideas welcome).

1.5.8 should be ready for release in a few days.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline papaf

  • PixInsight Addict
  • ***
  • Posts: 182
Re: [Unofficial] New Module: SelectiveBlend
« Reply #14 on: 2009 September 30 07:29:08 »
Ok
In the meantime, I discovered how little I know of programming. In the end, though, I managed to use the javascript to create the Makefile. Just to discover that the current version of PCL doesn't have the required symbols.

Fabio