Author Topic: Selective Rejection (Example)  (Read 358 times)

Offline ngc1535

  • Member
  • *
  • Posts: 54
    • View Profile
Selective Rejection (Example)
« on: 2017 October 03 07:33:44 »
Hi,

It is likely this has been shown before- but based on the response I received at AIC when I demonstrated this technique, it may be deserving of attention here (perhaps it will prove useful to someone). This demonstrates selectively rejecting problems in images that would otherwise not be rejected by statistical means. See below my pictures for a few comments. The basic steps are:

1. Identify problems in a set of images. The problem to be rejected should be a small subset of the total number of measurements/images made.
2. Create a black image of zeros (a paint bucket) and using the CloneStamp tool paint zeros on problems. Generally do this to image before registration if the problem is in many images, see below.
3. In the case shown below, the problem were dust donuts not flatted out properly. They exist in precisely the same spot for a given subset (night) of data...
4. If applying the painted area to many images, create a CloneStamp process and then apply to many images using an ImageContainer.
5. Register images in the normal way. Nearest Neighbor may give better results.
6. In ImageIntegration set up pixel rejection in the normal way. Make certain the Range Low is set to "0" and Reject Low Large Scale Structures is checked.









Comments: Obviously the S/N in rejected areas will be different- however the price may be small if the area isn't "important" or if the area was already a high signal (bright) region. I have not experimented with the effects of registration. I suspect all will work out well even with smoothing due to interpolation. However, performing this step on data after registering images will certainly work. With a large dither- the problem areas may dance around a bit.

In the last image, I show the difference of with and without the large scale rejection which takes care of the boundaries very well and makes selective rejection a reality.
Thanks.

-Adam Block
« Last Edit: 2017 October 03 07:55:43 by ngc1535 »

Offline sharkmelley

  • PTeam Member
  • PixInsight Addict
  • ***
  • Posts: 108
    • View Profile
    • Mark Shelley Astrophotography
Re: Selective Rejection (Example)
« Reply #1 on: 2017 October 03 09:45:08 »
Nice trick!  Thanks for sharing it.

Mark
Takahashi Epsilon 180ED
H-alpha modified Sony A7S
http://www.markshelley.co.uk/Astronomy/

Offline RickS

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 840
    • View Profile
Re: Selective Rejection (Example)
« Reply #2 on: 2017 October 03 11:40:45 »
Nice technique, Adam.

I do something similar for troublesome satellite trails using PixelMath, but with those it is better to write 1s instead of 0s as they reject out more cleanly.  Hopefully large scale rejection will make this unnecessary from now on  ;)

Cheers,
Rick.

Offline ngc1535

  • Member
  • *
  • Posts: 54
    • View Profile
Re: Selective Rejection (Example)
« Reply #3 on: 2017 October 03 16:55:56 »
Hi Rick,

I am not certain why a clipping/threshold value of 0 or 1 would matter. The reason I choose the low end was to make certain that the number of high outliers are rejected strictly by statistical means so that "1's" are not included in count of rejections. Using the low end for rejection then seemed better. However, it could be it doesn't matter at all.

-adam

Offline RickS

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 840
    • View Profile
Re: Selective Rejection (Example)
« Reply #4 on: 2017 October 08 23:19:14 »
Hi Adam,

I had hoped to find time to run some tests but haven't managed it yet.  With clip low range enabled writing 0s should work just as well, so maybe I had it turned off (though it seems to be the default...)

Cheers,
Rick.