Author Topic: Question about Star Mask  (Read 4294 times)

Offline Philippe B.

  • PixInsight Old Hand
  • ****
  • Posts: 399
    • CIEL AUSTRAL
Question about Star Mask
« on: 2008 September 16 08:33:30 »
Hello
I read lot of your discussion and all the tutorials but I still have a question about star mask. It is my 1rst question on the forum and I am very sorry if the answer exists already but I didn't find a clear method.

My goal is to define a star mask to correct the dark halo of stars when I make a deconvolution for example.

1) When do you define the star mask
2) process :
- Do you make the deconvolution on the star mask file
- or do you "add" the star mask to the luminance image then you process the result image ?
- or do you process the luminance image then you "add" the star mask image to ghost the wrong stars with halo ?
3) Adding the star mask image to the luminance image : how ? which method / algorithm ?

I'm very confused about that, and didn't understand this section in the tutorials !  :oops:  

Thanks in advance for my novice question. I really love Pixinsight and I would like to go ahead to increase the potential of my photos.

Cheers
Philippe

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Question about Star Mask
« Reply #1 on: 2008 September 17 13:44:47 »
Hi Philippe,

Thank you for your kind words, and welcome to PixInsight Forum.

Building star masks is a complex and critical task, especially for deconvolution of deep sky images. Everybody has problems creating them, including me :)

Quote
1) When do you define the star mask


The key question actually is: When do you apply deconvolution?

Image restoration procedures, either with Deconvolution, ATrousWaveletTransform, or with the new RestorationFilter, must be done when the image is linear. In the case of Deconvolution and RestorationFilter, these tools actually don't work properly with nonlinear images. ATrousWaveletTransform is different, but it is in general more efficient when applied to linear images.

Since a star mask is necessary for deconvolution or wavelets, it obviously must be built before applying these tools. However, building a star mask from a linear image is a very difficult task. For this reason, the StarMask tool includes a histogram transformation (the Shadows, Midtones and Highlights parameters of StarMask) that is applied as the very first step of the mask generation process.

On the other hand, nothing stops you from making a duplicate of the image, stretch it with HistogramTransformation, and then build your star mask on that duplicate. This is also the recommended procedure to implement a star mask generation technique based on wavelets, as the one described in Daniel's tutorial.

You have also a very good example of star mask generation in a recent tutorial by Carlos Sonnenstein. In this tutorial, look for the title "Morphological transforms", where you'll find another wavelet-based star mask generation procedure that works extremely well.

Quote
- Do you make the deconvolution on the star mask file
- or do you "add" the star mask to the luminance image then you process the result image ?
- or do you process the luminance image then you "add" the star mask image to ghost the wrong stars with halo ?
3) Adding the star mask image to the luminance image : how ? which method / algorithm ?


Never! None of the above. With the Deconvolution tool, enable the Deringing option and select the mask as the deringing support image. With the other tools, the mask must be activated for the target image in the usual way (Mask > Select Mask), *before* applying them..

I hope this clarifies the topic. Let me know if you need further help - we are here to help you.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Philippe B.

  • PixInsight Old Hand
  • ****
  • Posts: 399
    • CIEL AUSTRAL
Question about Star Mask
« Reply #2 on: 2008 September 18 13:47:54 »
Thank you Juan !!!!!
I think I start to understand principe of masking. I forgot the mask option in the menu...
I will follow examples and made many tests.
Thanks again  :wink: