coherence of the standard deviation value displayed

A place to report problems and bugs in SharpCap
Forum rules
‍

If you have a problem or question, please check the FAQ to see if it already has an answer : https://www.sharpcap.co.uk/sharpcap-faqs

Please also read about Troubleshooting USB Issues before posting.

*** Please do not post license keys - please report any problems with licensing to 'admin' by private message ***

Please include the following details in any bug report:

* Version of SharpCap
* Camera and other hardware being user
* Operating system version
* Contents of the SharpCap log after the problem has occurred.
[If SharpCap crashes, please send the bug report when prompted instead of including the log]
Post Reply
Jdef
Posts: 5
Joined: Sun Jul 14, 2024 2:44 pm

coherence of the standard deviation value displayed

#1

Post by Jdef »

Hi,
I have remarked that the standard deviation value displayed in the histogram window is usualy not coherent with the true SD of the image, the value displayed is about 1.7 (pi/2?) the true value.
Here an example:
Capture d'écran 2024-08-20 225844.png
Capture d'écran 2024-08-20 225844.png (492.4 KiB) Viewed 1903 times
Capture d'écran 2024-08-28 090234.png
Capture d'écran 2024-08-28 090234.png (234.58 KiB) Viewed 1903 times
Capture d'écran 2024-08-28 092042.png
Capture d'écran 2024-08-28 092042.png (268.21 KiB) Viewed 1903 times

Best regards
jacques
User avatar
admin
Site Admin
Posts: 17526
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: coherence of the standard deviation value displayed

#2

Post by admin »

Hi Jacques,

yes, something not quite right here - I tested and didn't get quite the same factor but still not the right result. The calculation is a bit odd since it tries to work from the (already calculated) histogram rather than the raw image data to avoid the performance hit of scanning the whole image twice, but it still should be possible to get an accurate value. I will check the code.

cheers,

Robin
Jean-Francois
Posts: 852
Joined: Sun Oct 13, 2019 10:52 am
Location: Germany

Re: coherence of the standard deviation value displayed

#3

Post by Jean-Francois »

Hello Jacques,

To be sure ... do you check that the selection red rectangle is over the full image ?
You need to select the button left of the reticules ... it shows the red rectangle.

If it is not over the full image, then the statistic in SharpCap will be different as the statistic over the full image in a different software.

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

Re: coherence of the standard deviation value displayed

#4

Post by admin »

Hi,

I tracked this down to some of the processing done on the histogram data when the camera is in a high bit depth mode (12,14,16). The algorithm was designed to make the histogram look more like a true histogram of all the levels, even though the number of points in the graph is reduced for performance reasons. However, the data was changed in a way that tended to increase the variance calculated :(

For now, I've gone back to not trying to manipulate how the histogram looks in this situation, which fixes the variance - it remains to be seen if the histogram becomes slightly less useful...

cheers,

Robin
Post Reply