Author Topic: Creating a synthetic Green channel?  (Read 7840 times)

Offline Emanuele

  • PixInsight Addict
  • ***
  • Posts: 270
Creating a synthetic Green channel?
« on: 2010 November 23 03:32:37 »
HI all...
what is the best way to create a synthetic Green channel just using R and B, in PI?

Thank you!
E.

Offline caliu

  • PixInsight Addict
  • ***
  • Posts: 210
    • http://www.caliu.fotografiaastronomica.com
Re: Creating a synthetic Green channel?
« Reply #1 on: 2010 November 23 05:31:43 »
Pixel Math, is the best way,
You can assign it deems appropriate percentage, uncheck "Use a sinlge RGB expression" and edit G, enter the percentage of R & B that seems more convenient, then configure the destination and press F6, get a new image with the synthesized green channel.

Cheers

Offline Ginge

  • PixInsight Addict
  • ***
  • Posts: 215
Re: Creating a synthetic Green channel?
« Reply #2 on: 2010 November 24 00:09:36 »
Caliu, where can I learn PixelMath syntax? I have no idea how to write the expression below as I have no experience whatsoever with programming, apart from Basic back in the days.

If I want to combine 20% of an image called "OIII" and 20% of one called "SII" with a greyscale image called "Ha", what exactly would the expression look like?

Best regards,
Ginge

Offline caliu

  • PixInsight Addict
  • ***
  • Posts: 210
    • http://www.caliu.fotografiaastronomica.com
Re: Creating a synthetic Green channel?
« Reply #3 on: 2010 November 24 09:30:30 »
For example:



This is just a small example,
You can assign the percentage you wish to each channel, dividing or multiplying by 0.20 or by the value you want, you can add multiple images among themselves, subtract, divide, whatever you want ... remember to always open images in space work  ;D

Offline Ginge

  • PixInsight Addict
  • ***
  • Posts: 215
Re: Creating a synthetic Green channel?
« Reply #4 on: 2010 November 24 09:40:06 »
Thanks a lot Ferran! Do you also know of resources anywhere on the web where I can learn this syntax so I don't have to ask every time I want to use PixelMath?

Clear skies,
Ginge

Offline Andres.Pozo

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 927
Re: Creating a synthetic Green channel?
« Reply #5 on: 2010 November 25 00:39:58 »
Thanks a lot Ferran! Do you also know of resources anywhere on the web where I can learn this syntax so I don't have to ask every time I want to use PixelMath?

Clear skies,
Ginge
You can start with the tutorial of PixelMath.

Offline Ginge

  • PixInsight Addict
  • ***
  • Posts: 215
Re: Creating a synthetic Green channel?
« Reply #6 on: 2010 November 25 00:52:49 »
Oh well, it seems PixelMath is as I suspected, not for me :). I've seen this tutorial before and it assumes the reader already has some programming skills other than
10 PRINT "GINGE IS A NERD";
20 GOTO 10
RUN
- which I don't. I'll leave it alone then and make my synthetic greens elsewhere.

Thanks anyway,
Ginge

Offline Emanuele

  • PixInsight Addict
  • ***
  • Posts: 270
Re: Creating a synthetic Green channel?
« Reply #7 on: 2010 November 25 02:12:27 »
thank you caliu :)

Offline caliu

  • PixInsight Addict
  • ***
  • Posts: 210
    • http://www.caliu.fotografiaastronomica.com
Re: Creating a synthetic Green channel?
« Reply #8 on: 2010 November 25 05:28:20 »
thank you caliu :)

Yep  ;) , to make a new channel only is necessary blend two images in the correct proportion, not need to be a computer genius :cheesy:


Offline mmirot

  • PixInsight Padawan
  • ****
  • Posts: 881
Re: Creating a synthetic Green channel?
« Reply #9 on: 2010 November 25 06:19:10 »
Oh well, it seems PixelMath is as I suspected, not for me :). I've seen this tutorial before and it assumes the reader already has some programming skills other than
10 PRINT "GINGE IS A NERD";
20 GOTO 10
RUN
- which I don't. I'll leave it alone then and make my synthetic greens elsewhere.

Thanks anyway,
Ginge


I don't like typing stuff myself. However, It is easier than you imagine.
To be sure, there some fairly elaborate operations.

You are asking about the most basic
Max


Offline Ginge

  • PixInsight Addict
  • ***
  • Posts: 215
Re: Creating a synthetic Green channel?
« Reply #10 on: 2010 November 25 09:15:43 »

You are asking about the most basic
Max


I know, and asking for help every time, either with a supersimple prosedure like this or with a more elaborate one like automating equalisation of gain from a 4-output ccd, is not what I want to be doing. Problem is, if one doesn't know the PixelMath grammar even the simplest issue is out of reach.

However, having had good help on several PixelMath issues, I'm now beginning to see a pattern, hehe. I feel I'm understanding more of  the abovementioned tutorial better now that I read it again.

But thanks for helping! Especially with the basic stuff  :D

Best regards,
Ginge

Offline Simon Hicks

  • PixInsight Old Hand
  • ****
  • Posts: 333
Re: Creating a synthetic Green channel?
« Reply #11 on: 2010 November 25 15:53:22 »
I do sympathise with you Ginge. I remember reading through the PixelMath tutorial the first time and not having a clue at the end of it. I have picked it up just by seeing examples....and now I realise that its actually very simple and intuitive....once you have the basics laid out.....much simpler and accessible than the tutorial suggests. I think the PI newbies would really benefit from the PixelMath tutorial being rewritten in a much simpler form based on simple examples. 

Offline Ginge

  • PixInsight Addict
  • ***
  • Posts: 215
Re: Creating a synthetic Green channel?
« Reply #12 on: 2010 November 25 16:08:13 »
Hi there Simon!
I think so too, the tutorial is probably very thorough and well written, but to freshmen it can actually seem a bit daunting. I'm not giving up though, was fooling around with PixelMath just now and I think I'm am making some progress 8). Having seen how useful a tool it can be, I really want to learn how to use it.

Clear skies,
Ginge