but do not truncate (unfortunately, RawDigger does). That might produce negative numbers (but in the highlights, highly unlikely) but so what, the computation of the st.dev. remains unchanged, and the mean would be positive unless you are really deep in the darks over a small patch.
Negative numbers must not be assigned to unsigned integers! Does RawDigger do that?
Unfortunately, not. When you measure the mean and the st.dev. over small patches with black point compensation activated, it truncates the values without any need of doing that.
As noted in the thread, black point comp can be turned off. You can also manually set it to whatever value you want, including the lowest pre-corrected value if that floats your boat.
I know that it can be turned off. I do it all the time but then the preview is washed out and it is not clear on what exactly I am clicking.
But what's your use case? What is it in the displayed image that you're "clicking" and why?
Say the dark gray squares - I want to estimate the mean and the st.dev. I cannot see them clearly enough since the whole image appears washed out. This happens, for example, when I do not check the BP box, black should correspond to 512, for example, but the rendering would render 0 RAW values as black which basically do not even exist.
You seem to be arguing that the RGB rendering display option should just ignore the effects of any black level adjustments. That's an unwanted and misleading restriction of useful display functionality, as far as I'm concerned - especially since it's so easy to satisfy your use case (getting the statistics for a selection patch) with only a few additional clicks (as explained and illustrated below).
For me, setting black level to the lowest real (pre-corrected) DN in the image has never been too much to "wash out" the image. A typical use case for me is to set a selection patch and move it to the location in the image I want to analyze. Maybe I'll also display the corresponding selection histogram. Then, I can always toggle on/off (or adjust) the black level setting for that patch. Of course, toggling off the black level setting completely is likely to wash out the image, but so what? I've already identified the area to be analyzed. If I want to move to another area, I just toggle the black point setting back on. Rinse and repeat...
Too many on and offs for me.
It's literally three mouse clicks (assuming your default setting is to subtract black point):
- Set your selection patch and locate it in the desired image location. (This doesn't count as a click since you'd still have to do this even if negative values were preserved.)
- Click 1: Click on the Black Level setting (lower left corner of the screen)
- Click 2: In the preferences window that pops open, uncheck the Subtract Black checkbox.
- Click 3: Click the Apply button
We're not exactly talking carpel tunnel syndrome inducing effort here...
The ideal behavior with a black point subtraction, IMO, would be to display a black point corrected rendering with the black point subtracted in the calculations and in the values shown without shying away from negative values. Negative numbers are numbers, too!
YMMV, but my ideal
default behavior is showing the black point corrected values as they will be used elsewhere (e.g., RawDigger's histograms and external raw converters). if I'm really interested in seeing where the negative values for the default black subtraction level appear in the image, I can always set the black level to the lowest pre-corrected DN and then set the underexposure warning manually to the difference between the lowest DN and the default black setting (or whatever other black level setting I'm investigating). Then I can just toggle on/off the Underexposure warning for all (or specified) channels to see where the "negative" pixels appear.
I do not want to see a binary info only,
The only thing that's "binary" is the on/off display of underexposed pixels (i.e., the "negative" pixels, if the Manual Per Channel Underexposure Detection is appropriately set and used). The UnExp (underexposure) checkbox only affects the display. The avg. and st.dev measurements aren't affected by it. See below.
I want, after sampling, to see the actual mean and st.dev., not those of the truncated data.
See below.
[ATTACH alt="The DPR +6 Exposure Latitude shot for one of the OP's tested cameras. Note that the selection patch has been placed in one of the deepest shadowed areas of the severely underexposed mage, so we're measuring mostly read noise. "Auto" (default) black level of 512 is applied. Consequently, the undesired truncation of "negative" values is also applied."]3652053[/ATTACH]
The DPR +6 Exposure Latitude shot for one of the OP's tested cameras. Note that the selection patch has been placed in one of the deepest shadowed areas of the severely underexposed mage, so we're measuring mostly read noise. "Auto" (default) black level of 512 is applied. Consequently, the undesired truncation of "negative" values is also applied.
[ATTACH alt="The 3-click strategy I described above has been applied, so now there's no black level subtraction and no truncation affecting the st.dev calculation. However, the preview is "washed out" and it's somewhat difficult to see where the selection patch is located relative to items in the image, per your complaint. Note that I've gone ahead and entered (but not toggled on yet) the Min values from the selection patch into the corresponding Per Channel black level boxes."]3652054[/ATTACH]
The 3-click strategy I described above has been applied, so now there's no black level subtraction and no truncation affecting the st.dev calculation. However, the preview is "washed out" and it's somewhat difficult to see where the selection patch is located relative to items in the image, per your complaint. Note that I've gone ahead and entered (but not toggled on yet) the Min values from the selection patch into the corresponding Per Channel black level boxes.
[ATTACH alt="The Per Channel black subtraction shown in the prior screenshot has now been applied. This means the "negative" values are not being truncated, hence the st.dev for the selection patch is the same as when no black subtraction is applied. Note that the image is far less "washed out" and different parts of the image are easily distinguishable. Note that the Underexposure warning is checkmarked on, which enables visualization of the "negative" DNs when appropriate values are added into the Manual Per Channel Underexposure Detection preferences. Toggling the UnExp checkbox on/off does not affect the Min, Max, Avg or sigma values."]3652055[/ATTACH]
The Per Channel black subtraction shown in the prior screenshot has now been applied. This means the "negative" values are not being truncated, hence the st.dev for the selection patch is the same as when no black subtraction is applied. Note that the image is far less "washed out" and different parts of the image are easily distinguishable. Note that the Underexposure warning is checkmarked on, which enables visualization of the "negative" DNs when appropriate values are added into the Manual Per Channel Underexposure Detection preferences. Toggling the UnExp checkbox on/off does not affect the Min, Max, Avg or sigma values.
RawDigger's UI/UX may not be the most elegant or easiest to use, but it gets the job done.