You are here: Image Segmentation > Thresholding

Thresholding

The options in the Range box on the ROI Tools panel, shown below, allow you to define an intensity domain of dataset values and then apply the selected range as a threshold segmentation. In addition, you can add or remove a range from a selected ROI or from the selected class of a multi-ROI. Intensity domains are also applicable to other tools, such as the ROI Painter tools, and the morphological operators. In this context, any voxel that corresponds to a value outside the range will not be selectable or be affected by an applied operation.

Range

Range tools

Range options
  Description

Define range

Applies an intensity domain on the 2D views of the selected dataset, which is highlighted in a constant color.

Note The highlight color can be selected in the Colors preferences (see Selecting the Colors Preferences).

Lower Otsu*

Automatically sets the range between 0 and the Otsu threshold.

Upper Otsu*

Automatically sets the range between the Otsu threshold and the maximum data value in the selected dataset.

Dataset

Lets you select the dataset on which you want to define the intensity domain, as shown below.

Note This option is available only when multiple datasets are visible in the current view.

Show histogram

Toggles the visibility of the histogram.

Log Y

If selected, the Y-axis will be plotted in log scale.

Histogram

Shows how data values are distributed within the selected dataset. The darkest parts will appear on the left side of the graph, the midtones will appear in the middle, and the brightest parts (highlights) on the right side.

Note You can adjust the range with left or right Range sliders (window width), as well as drag from the middle of the selected range to translate the range values (window center).

Selected range

Indicates the minimum and maximum selected threshold values.

  • Click the Reset button to apply the full range.

Plotted range/Data range

Indicates the range of values plotted on the histogram, as well as the minimum and maximum values within the selected dataset.

  • Click the Reset button to reset the original plotted range.

Interpolation

Lets you choose an interpolation method — Nearest, Linear, or Cubic — in cases in which you add to or remove labeled voxels from a selected region of interest that has a different geometry than the dataset on which the range is defined.

Add

Adds labeled voxels within the selected range to the current region of interest.

Add to New

Creates a new region of interest in which all voxels within the selected range will be labeled.

Remove

Removes labeled voxels within the selected range from the current region of interest.

* In the Otsu thresholding technique, the optimal value that minimizes the weighted within class variances of two classes — foreground and background — is computed. You should note that minimizing the within class variance is the same as maximizing the between class variance.

 

Dragonfly Help Live Version