OpenCVStarDetector disappeared ...

Discussions on extending SharpCap using the built in Python scripting functionality
Jean-Francois
Posts: 859
Joined: Sun Oct 13, 2019 10:52 am
Location: Germany

Re: OpenCVStarDetector disappeared ...

#11

Post by Jean-Francois »

Hello Robin,

OK, I tested with one image (stack 16 bits, 19 images for 304 seconds with RASA8 + Ha filter) ... the effect is still visible ... short displacement of the rectangle and more/less stars are detected.
Note ... the image is stretched only on the monitor. If linear view ... fast no nebula is visible.
Star_detection_1.jpg
Star_detection_1.jpg (116.8 KiB) Viewed 335 times
Star_detection_2.jpg
Star_detection_2.jpg (118.84 KiB) Viewed 335 times

With following settings:

Code: Select all

detect.BlurSigma         = 0.5
detect.FaintStars        = True
detect.MaxCount          = 10000
detect.MaxSize           = 10
detect.MinSize           = 1
detect.SuppressHotPixels = True

Here the full image in linear or stretched:
Star_detection_3.jpg
Star_detection_3.jpg (100.44 KiB) Viewed 335 times
Star_detection_4.jpg
Star_detection_4.jpg (196.38 KiB) Viewed 335 times

Regards,
Jean-Francois
User avatar
admin
Site Admin
Posts: 17606
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: OpenCVStarDetector disappeared ...

#12

Post by admin »

Hmmm, I have dug a bit further and there are a few possible reasons for this - I haven't been able to pin down the exact cause yet.

My current suspicion is that part of the star detection process is to wipe out the background of the image to avoid picking up stars in the background. Basically, after removing the large scale structures, a threshold is calculated as 'image mean + N * image std dev' - everything below that point is set to zero. What I've noticed is that if a brighter star is moved into the ROI then faint stars stop being detected. I suspect that the bright star is increasing the standard deviation calculated, meaning that the faint stars are now being wiped out by the background.

I'm going to look at a more robust way of estimating the standard deviation to exclude the contributions of the brightest star areas - perhaps estimating the std dev from the inter-quartile range - maybe that will help.

cheers,

Robin
Post Reply