Author Topic: Stretching with Masks  (Read 3535 times)

Offline frasax

  • Newcomer
  • Posts: 39
Stretching with Masks
« on: 2014 February 07 12:51:49 »
Hi there,

i´ve browsed through several Postings and Tutorials, but couldn´t find the right answers.

I do have an image, which has some blurred stars due to bad focussing, seeing etc. I´d like to mask the stars from the first stretching on. I´ve tried masked stretch script which seems to work nicely concerning the stars, but which is not aggressiv enough to stretch my image to a good point.

So what would be you´re way to solve my problem?

CS Frank

Offline Geoff

  • PixInsight Padawan
  • ****
  • Posts: 908
Re: Stretching with Masks
« Reply #1 on: 2014 February 07 14:30:22 »
You could try a star mask (inverted to protect the stars). However, a better way is to throw the images away and re-acquire the data, making sure that you have fixed whatever caused the problem in the first place.  Why try to work with bad data?
Geoff
Don't panic! (Douglas Adams)
Astrobin page at http://www.astrobin.com/users/Geoff/
Webpage (under construction) http://geoffsastro.smugmug.com/

Offline frasax

  • Newcomer
  • Posts: 39
Re: Stretching with Masks
« Reply #2 on: 2014 February 07 14:40:04 »
Hi Geoff,

it´s not THAT bad Data:-)
And i´d like to know in general if masking does make sense at a very first stretch.

CS Frank

Offline Geoff

  • PixInsight Padawan
  • ****
  • Posts: 908
Re: Stretching with Masks
« Reply #3 on: 2014 February 07 20:42:56 »
You can use a mask while stretching. However, you will probably have to stretch the mask before you apply it, that is transfer the STF stretch settings to the histogram window, then give a real(histogram) stretch to the mask. Then apply the mask to your linear image. You may need to experiment with the mask stretch.
Geoff
Don't panic! (Douglas Adams)
Astrobin page at http://www.astrobin.com/users/Geoff/
Webpage (under construction) http://geoffsastro.smugmug.com/

Offline chris.bailey

  • PixInsight Addict
  • ***
  • Posts: 235
Re: Stretching with Masks
« Reply #4 on: 2014 February 08 01:02:42 »
If the stars are not too bad a Masked Stretch (which will tend to limit further star growth) followed by a star mask and some Morphological Transformation can help "hide" the issue


Chris

Offline Phil Leigh

  • PixInsight Addict
  • ***
  • Posts: 220
Re: Stretching with Masks
« Reply #5 on: 2014 February 09 01:20:10 »
The masked stretch script can stretch an image all the way to pure white. I normally find that if I set the target value to 0.25 I am quite close to my final brightness level.
Alternatively you could use the new MaskedStretch process... set the number of iterations to 1,000.

Offline Warhen

  • PTeam Member
  • PixInsight Old Hand
  • ****
  • Posts: 490
    • Billions and Billions
Re: Stretching with Masks
« Reply #6 on: 2014 July 25 13:31:06 »
Phil, Did you mean as high as 1k iterations? Thanks!
Best always, Warren

Warren A. Keller
www.ip4ap.com