This algorithm computes the thresholds of a grayscale image, given a label image corresponding to the
pre-segmentation of the original image. Instead of giving two fixed values for the thresholding,
two representative measurements are provided to the algorithm (for example, the 10th and the 90th percentile of the
histogram, native measurements
HistogramQuantile10 and HistogramQuantile90).
The minimum and maximum thresholding values are dynamically computed for each label and applied to give
an adaptive thresholding on each of them.
For instance, the label image can be a grid of contiguous squares of different intensity to ensure
a thresholding locally adapted to each square.
// Command constructor.FeatureAdaptiveThresholding();/// Gets the inputLabelImage parameter./// The input label image.
std::shared_ptr< iolink::ImageView> inputLabelImage()const;/// Sets the inputLabelImage parameter./// The input label image.void setInputLabelImage( std::shared_ptr< iolink::ImageView> inputLabelImage );/// Gets the inputGrayImage parameter./// The input grayscale image. This image must have same dimensions as the input label image.
std::shared_ptr< iolink::ImageView> inputGrayImage()const;/// Sets the inputGrayImage parameter./// The input grayscale image. This image must have same dimensions as the input label image.void setInputGrayImage( std::shared_ptr< iolink::ImageView> inputGrayImage );/// Gets the measurementLow parameter./// The measurement defining the lower threshold.
std::string measurementLow()const;/// Sets the measurementLow parameter./// The measurement defining the lower threshold.void setMeasurementLow(const std::string& measurementLow );/// Gets the measurementHigh parameter./// The measurement defining the higher threshold.
std::string measurementHigh()const;/// Sets the measurementHigh parameter./// The measurement defining the higher threshold.void setMeasurementHigh(const std::string& measurementHigh );/// Gets the outputBinaryImage parameter./// The output binary image. Its dimensions are forced to the same values as the input.
std::shared_ptr< iolink::ImageView> outputBinaryImage()const;/// Sets the outputBinaryImage parameter./// The output binary image. Its dimensions are forced to the same values as the input.void setOutputBinaryImage( std::shared_ptr< iolink::ImageView> outputBinaryImage );// Method to launch the command.void execute();
# Property of the inputLabelImage parameter.FeatureAdaptiveThresholding.input_label_image
# Property of the inputGrayImage parameter.FeatureAdaptiveThresholding.input_gray_image
# Property of the measurementLow parameter.FeatureAdaptiveThresholding.measurement_low
# Property of the measurementHigh parameter.FeatureAdaptiveThresholding.measurement_high
# Property of the outputBinaryImage parameter.FeatureAdaptiveThresholding.output_binary_image
// Method to launch the command.
execute()
// Command constructor.FeatureAdaptiveThresholding()// Property of the inputLabelImage parameter.FeatureAdaptiveThresholding.inputLabelImage
// Property of the inputGrayImage parameter.FeatureAdaptiveThresholding.inputGrayImage
// Property of the measurementLow parameter.FeatureAdaptiveThresholding.measurementLow
// Property of the measurementHigh parameter.FeatureAdaptiveThresholding.measurementHigh
// Property of the outputBinaryImage parameter.FeatureAdaptiveThresholding.outputBinaryImage
// Method to launch the command.Execute()
Parameters
Parameter Name
Description
Type
Supported Values
Default Value
inputLabelImage
The input label image.
Image
Binary or Label
nullptr
inputGrayImage
The input grayscale image. This image must have same dimensions as the input label image.
Image
Grayscale
nullptr
measurementLow
The measurement defining the lower threshold.
Measurement
""
measurementHigh
The measurement defining the higher threshold.
Measurement
""
outputBinaryImage
The output binary image. Its dimensions are forced to the same values as the input.
Image
nullptr
Parameter Name
Description
Type
Supported Values
Default Value
input_label_image
The input label image.
image
Binary or Label
None
input_gray_image
The input grayscale image. This image must have same dimensions as the input label image.
image
Grayscale
None
measurement_low
The measurement defining the lower threshold.
measurement
""
measurement_high
The measurement defining the higher threshold.
measurement
""
output_binary_image
The output binary image. Its dimensions are forced to the same values as the input.
image
None
Parameter Name
Description
Type
Supported Values
Default Value
inputLabelImage
The input label image.
Image
Binary or Label
null
inputGrayImage
The input grayscale image. This image must have same dimensions as the input label image.
Image
Grayscale
null
measurementLow
The measurement defining the lower threshold.
Measurement
""
measurementHigh
The measurement defining the higher threshold.
Measurement
""
outputBinaryImage
The output binary image. Its dimensions are forced to the same values as the input.