Module: Interactive Top Hat ()
The Top-Hat segmentation extracts small elements and details from given images. It detects the dark or the white area, corresponding to the valleys or the narrow peaks.There exist two types of Top-Hat transform:
- The Black Top-Hat: it is defined as the difference between the cube closing with a given size kernel and the input image. The smaller is the kernel, the smaller are the elements in the Top-Hat image. A threshold allows selecting the darker elements of the Top-Hat result, i.e., the depth of the selected valleys.
- The White Top-Hat: it is defined as the difference between the input image and its opening cube (using a given size kernel). The threshold allows selecting the brighter elements of the Top-Hat result.
The Top-Hat module is divided into two phases:
- The Top-Hat image computation, depending on the Top-Hat type.
- The Thresholding, to select the valleys/narrow peaks depth.
Data [required]
The input data to be segmented.
Top Hat Type
This port allows selecting the type of Top-Hat to compute.Neighborhood
Neighborhood is the neighborhood used for the morphological operation (closing for black Top-Hat, opening for white Top-Hat). It defines also the connectivity used for this operation.px]
This port defines the kernel size for the closing/opening operation. The smaller is the kernel, the smaller are the elements detected.Top Hat Image
This button extracts the top-hat image based on the values of the previous ports.Intensity Range
This port allows selecting the elements to keep. Move the slider interactively update the current red selection which will be applied as result.