About the Pixel Analyzer

The Pixel Analyzer is an analysis tool for finding and comparing different color values on an image. You can examine mimimum, average, current, or maximum pixel values on either a selection that you make, or across an entire image.

 

Drag across an image with the cursor, and the values update in the Analyzer. You can usually use the default settings in the Analyzer, clicking on the color swatch that you want to examine, Curr (Current color value), Min (Minimum color value), Avg (Average color value), or Max (Maximum color value). You can toggle between the different color swatches repeatedly without the need to re-drag. The values appear in the text fields underneath.

The Analyzer keeps the examined pixels in memory, so if you switch images in the same Viewer, the Analyzer update its values based on the new image. Because of this, you can compare images, or do color corrections, as the color correction constantly updates the Analyzer.

Mode

Accumulate

By hitting the Accumulate button, all scrubbed pixels, not just the current pixel, are considered for Average, Min, and Max calculations until you hit the Reset button. Average therefore calculates the average of every scrub since the last time Reset was hit, and Min and Max replace their values if a new minimum or maximum value is scrubbed. If the Analyzer is on Image Mode, this button has no effect.

Reset

Resets the scrubbed buffer to black.

Value Range

Shake describes its color in a range of 0 to 1 (0,0,0 is black, 1,1,1 is white). However, you can set this to a different numerical range, that is, 0,0,0 is black, and 255, 255, 255 is white. This is only a display setting for the numerical date – the images do not change.

Hexadecimal

Toggles the numerical display to hexadecimal values.

Min/Max Basis

These toggles set the channel for calculation of the Min/Max swatches. Normally, this is set to l (luminance). If, however, you wanted to find the minimum values only in the red channel, you would toggle the Basis to r (red). For example, you have two pixels, one pure red pixel and one pure green. Based on luminance, these are equivalent pixels, but based on red, the green pixel has a minimum value of 0, and so Min would return a different number.

Custom Entries

You can insert your own functions to return data using the following code. You provide a label and the function in a ui .h file. The two default plugs are called exp10 and expf:

gui.pixelAnalyzer.customLabel1 = "exp10";
gui.pixelAnalyzer.customFunc1 = "(int)(1024*log(l/0.18)/log(10))";
gui.pixelAnalyzer.customLabel2 = "expf";
gui.pixelAnalyzer.customFunc2 = "log(l/0.18)/log(10)";