Author Topic: Starmask & Previews  (Read 4276 times)

Offline Simon Hicks

  • PixInsight Old Hand
  • ****
  • Posts: 333
Starmask & Previews
« on: 2008 April 22 04:29:32 »
Hi PI Guys,

If I create a small Preview in an image, and then select the Preview, and then create a Starmask of the Preview, then it takes just as long to calculate the Starmask as it does for the whole image.

If however I copy the Preview and then paste it as a new image then it takes approx 1 second to create a Starmask.

Is there something wrong with the way that Starmask is creating a starmask of a Preview, or am I doing something wrong?

Regards
                Simon

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Starmask & Previews
« Reply #1 on: 2008 April 22 09:41:29 »
Hi Simon,

This is not a bug; it's normal behavior of the StarMask process.

Unfortunately, the StarMask algorithm needs to work with the whole image as part of the necessary procedure to generate a meaningful preview. So the performance gain achieved by trying out this process on a small preview is pretty small.

This is because this process performs some wavelet and morphological transformations that depend on large-scale image structures that cannot be ignored when generating a preview on a small area. We have ideas to improve these limitations, but it isn't easy to overcome them completely.

We have developed a technique that combines HDRWaveletTransform and StarMask that greatly facilitates generating star masks, even in extremely difficult situations. Take a look at the material I included in this thread:

http://pixinsight.com/forum/viewtopic.php?p=2830#2830

As you can see in this example, the combined technique is really powerful and makes StarMask much more efficient and easy to use. If you decide to try it, I'll be very interested in looking at your results.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Simon Hicks

  • PixInsight Old Hand
  • ****
  • Posts: 333
Starmask & Previews
« Reply #2 on: 2008 April 22 16:04:39 »
Hi Juan,

"If you decide to try it...".....of course I will try it !   :lol:

Thanks for the explaination Juan, that certainly makes sense. It will be a few days before I can try the algorithm....travelling at the moment....but I will try it and get back to you will comments. I'm always excited to try any new feature.

Cheers
         
Simon

Offline Simon Hicks

  • PixInsight Old Hand
  • ****
  • Posts: 333
Starmask & Previews
« Reply #3 on: 2008 April 22 16:10:17 »
Initial response.....ooooo....that's clever!  :)

Definitely one to remember and keep in the tool box.

Cheers
         
Simon