This algorithm computes a list of measurements considering all pixels of the binary image
as belonging to the same object. It generates an
AnalysisMsr output object containing the result
values.
It gives a global result on the overall image, considering the non-zero pixels in the image.
If the binary input image has a coordinate system unit defined in its calibration property,
analysis results are expressed in this coordinate system unit.
More details about each available measurement can be found in the
NativeMeasurement object.
// Function prototype.publicstaticAnalysisMsrBinaryAnalysis(IOLink.ImageView inputBinaryImage,IOLink.ImageView inputIntensityImage,AnalysisMsr outputAnalysis =null);
Class Syntax
// Command constructor.BinaryAnalysis();/// Gets the inputBinaryImage parameter./// The binary input image.
std::shared_ptr< iolink::ImageView> inputBinaryImage()const;/// Sets the inputBinaryImage parameter./// The binary input image.void setInputBinaryImage( std::shared_ptr< iolink::ImageView> inputBinaryImage );/// Gets the inputIntensityImage parameter./// The intensity input image. If it equals null, the binary input image is used as the intensity input image.
std::shared_ptr< iolink::ImageView> inputIntensityImage()const;/// Sets the inputIntensityImage parameter./// The intensity input image. If it equals null, the binary input image is used as the intensity input image.void setInputIntensityImage( std::shared_ptr< iolink::ImageView> inputIntensityImage );/// Gets the outputAnalysis parameter./// The input and output analysis. This object defines the features to measure and store the results.AnalysisMsr::Ptr outputAnalysis()const;/// Sets the outputAnalysis parameter./// The input and output analysis. This object defines the features to measure and store the results.void setOutputAnalysis(AnalysisMsr::Ptr outputAnalysis );// Method to launch the command.void execute();
# Property of the inputBinaryImage parameter.BinaryAnalysis.input_binary_image
# Property of the inputIntensityImage parameter.BinaryAnalysis.input_intensity_image
# Property of the outputAnalysis parameter.BinaryAnalysis.output_analysis
// Method to launch the command.
execute()
// Command constructor.BinaryAnalysis()// Property of the inputBinaryImage parameter.BinaryAnalysis.inputBinaryImage
// Property of the inputIntensityImage parameter.BinaryAnalysis.inputIntensityImage
// Property of the outputAnalysis parameter.BinaryAnalysis.outputAnalysis
// Method to launch the command.Execute()
Parameters
Parameter Name
Description
Type
Supported Values
Default Value
inputBinaryImage
The binary input image.
Image
Binary
nullptr
inputIntensityImage
The intensity input image. If it equals null, the binary input image is used as the intensity input image.
Image
Binary, Label, Grayscale or Multispectral
nullptr
outputAnalysis
The input and output analysis. This object defines the features to measure and store the results.