Author Topic: How do I create a mask so that just my galaxy is unprotected?  (Read 9003 times)

Offline swag72

  • Member
  • *
  • Posts: 56
I have followed various tutorials and also spent a lot of time looking on this forum, unfortunately I am still stuck!

I have folloed the excellent tutorial provided by Juan in my previous star mask thread - It has really improved my star mask. Now I want to create a mask where just the galaxy is protected / unprotected. I have used pixel math and the star mask and luminance mask, but I can not isolate the galaxy.

So can anyone tell me how to do this - It's driving me mad!

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: How do I create a mask so that just my galaxy is unprotected?
« Reply #1 on: 2012 February 24 10:08:26 »
Maybe isolating a wavelet layer may let you select the galaxy.
To do that, open the ATrousWavelets process (or the MedianMultiscaleTransform), and uncheck the layers that contain smaller features than the galaxy. Try this over a preview, untill you find the right number of layers.

Regards,

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

Offline vicent_peris

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 988
    • http://www.astrofoto.es/
Re: How do I create a mask so that just my galaxy is unprotected?
« Reply #2 on: 2012 February 24 10:50:34 »
Hi,

Extract the luminance of the image and then apply to it a curves transformation so that the background sky is black and the galaxy is nearly white.

Regards,
Vicent.

Offline swag72

  • Member
  • *
  • Posts: 56
Re: How do I create a mask so that just my galaxy is unprotected?
« Reply #3 on: 2012 February 24 13:22:55 »
But that includes the stars - I don't want them in the mask - Just the galaxy.

Offline Silvercup

  • PixInsight Addict
  • ***
  • Posts: 187
Re: How do I create a mask so that just my galaxy is unprotected?
« Reply #4 on: 2012 February 24 14:56:43 »
Just make a star mask and the apply this pixelmath to the Galaxy image

Galaxy*~star_mask

Silvercup

Offline swag72

  • Member
  • *
  • Posts: 56
Re: How do I create a mask so that just my galaxy is unprotected?
« Reply #5 on: 2012 February 25 01:24:29 »
That doesn't work for me Silvercup - I create a Luminance mask, then a star mask, yet when I combine them in Pixelmath as you suggest, my stars are still included with the galaxy - So galaxy still not isolated.

Offline swag72

  • Member
  • *
  • Posts: 56
Re: How do I create a mask so that just my galaxy is unprotected?
« Reply #6 on: 2012 February 25 01:26:54 »
But that includes the stars - I don't want them in the mask - Just the galaxy.

Whenever I try this Vincent, my stars always stay white - Perhaps there is a special way in Curves to do this?

Offline Silvercup

  • PixInsight Addict
  • ***
  • Posts: 187
Re: How do I create a mask so that just my galaxy is unprotected?
« Reply #7 on: 2012 February 25 02:51:25 »
Pixelmath should work properly.

If there is stars inside the galaxy then you must do a classic star mask with atrousW. I have developed a script for this.

Silvercup

Offline vicent_peris

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 988
    • http://www.astrofoto.es/
Re: How do I create a mask so that just my galaxy is unprotected?
« Reply #8 on: 2012 February 25 03:40:22 »
Another solution could be to make a strong morphological median transform before doing the curves. This sould erase the stars on the background sky.


V.

Offline niteman1946

  • PixInsight Addict
  • ***
  • Posts: 234
Re: How do I create a mask so that just my galaxy is unprotected?
« Reply #9 on: 2012 February 25 09:26:28 »
Just make a star mask and the apply this pixelmath to the Galaxy image

Galaxy*~star_mask

Silvercup

Silvercup and Swag72,

This worked for me.  Used the above formula with a luminance mask and star mask.  The result was a mask with galaxy, but without the stars.

Mark

Offline JamieInCLT

  • Newcomer
  • Posts: 45
    • My Astrobin
Re: How do I create a mask so that just my galaxy is unprotected?
« Reply #10 on: 2012 March 01 12:16:35 »
Is there a script or tool to make the "star_mask"

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: How do I create a mask so that just my galaxy is unprotected?
« Reply #11 on: 2012 March 01 12:36:47 »
yes, the tool is called StarMask, give it a try.

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: How do I create a mask so that just my galaxy is unprotected?
« Reply #12 on: 2012 March 01 12:37:33 »
Quote
Is there a script or tool to make the "star_mask"

Star masks can be generated with the StarMask tool. Hmm, have you watched Harry's videos? --> http://harrysastroshed.com/mask.html
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline JamieInCLT

  • Newcomer
  • Posts: 45
    • My Astrobin
Re: How do I create a mask so that just my galaxy is unprotected?
« Reply #13 on: 2012 March 01 13:01:41 »
Quote
Is there a script or tool to make the "star_mask"

Star masks can be generated with the StarMask tool. Hmm, have you watched Harry's videos? --> http://harrysastroshed.com/mask.html


Ha! yes, I have- I haven't quite made it to "intermediate" yet :D