Manual threshold value for RGB images

Use the Manual Threshold dialog box to manually define the threshold values in a color image.

Setting threshold values is necessary to define objects in an image for an object analysis. Phases will be defined in the image by appropriate threshold values. You can find more information on threshold values and phases here.

Opening the dialog box

You open this dialog box, via the Count and Measure tool window. Load a color image. Select the Manual Threshold... entry, in the Threshold button's context menu. You open this menu by clicking the small arrow next to the button. Should this entry already have been selected, click the Manual Threshold... button directly.

The dialog box's structure

CM_DLG_ManRGB
 

The dialog box is made up of several groups. Click on one of the areas in the dialog box shown above to jump to the corresponding help topic.

(1) Defining phases

(2) Defining threshold values

(3) Histogram display

(4) Setting preview options

(5) Loading, saving, and managing threshold values

See also

Carrying out an automatic image analysis

Tool Window - Count and Measure

(1) Defining phases

Defining phases

In true-color images, phases are image structures of the same color. Use the Phase group to define phases.

Adding phases

Click on the Add Phase bb_new_gelber_stern button to create a phase.

Double click the field in the Class Name column to enter a name for the corresponding phase.

Double click the field in the Color column to open the color palette and to select a color for the corresponding phase. The phase will be displayed in the color you have assigned it, in the image window and in the histogram.

Deleting phases

Click the Remove Phase bb_delete button to delete a phase. At least one phase will always be defined. It's only possible to remove a phase when two phases have been defined.

back to top

(2) Defining threshold values

The threshold value setting for phases in color images is more complex than it is in gray-value images. For true-color images you can define the threshold value setting either in the RGB space (Red/Green/Blue) or in the HSV space (Hue/Saturation/Intensity). When you use the Manual Threshold... command, you automatically use the RGB space. Suitable phases can often be more easily found in the HSV space. In this case, use the Manual HSV Threshold... command.

If, in the RGB space, you want to define image areas of the same color as a phase, please pay attention to the following:

The color value of a single pixel is always a combination of the individual values of the three color channels, Red, Green and Blue. That means that when you select a single pixel, you will have an individual value for each of these color channels. For this reason, when you make a threshold value setting for a phase in a true-color image, you will always set the threshold value range for all three color channels simultaneously. As opposed to gray-value images, where for a phase only one higher and one lower threshold value is required, in this case, you require one higher and one lower threshold value for each of the color channels. That's to say, you require a total of 6 threshold values to define one phase.

bb_addthresholdbb_sethresholdbb_shrinkthreshold Defining threshold values

In the Phases group, select a phase for which you wish to set the threshold values. The currently selected phase will then be displayed in the color you have assigned it, in the image window and in the histogram. In the [ Min. field, the threshold value range's lower value will be specified for each of the parameters. In the Max. [ field, the higher value will be specified for each of the parameters. The higher value itself no longer belongs to the threshold value range. The values shown will be adopted from the last threshold value setting that was carried out.

Click the New Threshold bb_sethreshold button to set initial values for the threshold value ranges of all three parameters, for the phase. As soon as you move your mouse pointer onto the image it will change its shape to that of a pipette.

Click on one pixel or on an image area whose color value is to be utilized as the initial value. All of the pixels that have the same color value will be colorized in the image. The threshold value range for each parameter now contains initially only one value. As a rule, you will still need to expand this threshold value range. Once the initial values have been set, your mouse pointer will automatically change into a pipette with plus icon bb_addthreshold. Now, immediately click further pixels to add these to the threshold value range.

The boundary between different image structures can already be crossed with just one click, so that under certain circumstances, image structures will be counted as part of a phase to which they don't belong. In this case, click the Undo Pipet bb_undo_grau button to undo the results of the last click.

To gain a better visual control during the threshold value setting, you can, as usual, use your software's zoom functions. Move your mouse pointer onto the appropriate position in the image, then use the mouse wheel to zoom into or out of the image.

Click the Shrink Threshold bb_shrinkthreshold button to select pixels that aren't to belong to the phase. The threshold value ranges will be reduced to such an extent that they no longer contain the selected pixel's color value.

It is also possible to enter threshold values directly. To do this, click the Min. or Max. field, then enter the required value. Click the Undo Pipet bb_undo_grau button to undo the last selections step by step.

Click the Redo Pipet bb_wiederherstellen_grau button to restore the last selections that were undone, step by step.

back to top

(3) Histogram display

With RGB images one of the three color channels of the currently selected phase will be displayed in the histogram. The phase will be displayed in the color you have assigned it, in the histogram. You can select the color channel that is to be displayed, in the Channel thresholds for phase'...' group. You can find more information on the histogram display here.

back to top

(4) Setting preview options

Use the Preview of phases group to display the phases in color in the image when setting the thresholds. By using the Preview you will have a direct visual control over which image areas belong to a phase and which don't. The phases are only displayed in color as long as the dialog box for setting thresholds is open.

Select the None option to have the preview switched off. None of the phases that have been defined will be displayed in the image in color.

Select the Current option to have the currently selected phase shown in its assigned color, in the image. The histogram will likewise show the currently selected phase. You select a phase, by clicking it in the Phase thresholds for channel '...' group.

Select the All option to have all of the defined phases shown in the image, in their assigned colors.

Select the Transparent option to make it possible to recognize the image structures despite the phases being displayed in color.

Even when the dialog box for setting threshold values is open, you can still use your software's zoom functions as usual. Move your mouse pointer onto the appropriate position in the image, then use the mouse wheel to zoom into or out of the image.

The default setting for the Preview of phases group, is the All option. Every time you reopen the dialog box, the All option will therefore be initially set.

back to top

(5) Loading, saving, and managing threshold values

Use these buttons to load, save or change the threshold value settings. You can save the following settings to a parameter set: The phase's name, the number of phases and the colors assigned to them.

When automatically setting threshold values, the intensity ranges belonging to the individual phases are recalculated for each image.

You will find more information on working with parameter sets here.

back to top

5613 24112014