Skip to content

ImageAnalysis

ImageAnalysis - IsObjectPresent_ByColor

Check whether the object is present inside an image, based on the amount of pixels that satisfy the color criteria. Note: If the input image has 3 channels (RGB), the image is converted to the specified HSx model and all 3 pixels' components are compared with hue, saturation and brightness values. Otherwise, if the input consists in a grayscale image, the first (and only) channel values are compared with the brightness range.

IN

Name Type Description
InImage Image Input image.
InRoi ShapeRegion Where to check for the object.
InHSxModel Enum < HSxModel > HSx color model.
InMinHue Int Minimum acceptable hue value.
InMaxHue Int Maximum acceptable hue value.
InMinSaturation Int Minimum acceptable saturation value.
InMinAmount Float Minimum acceptable fraction of pixels meeting the color criteria.
InMaxAmount Float Maximum acceptable fraction of pixels meeting the color criteria.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutBool Bool True if the object is present, false otherwise.
Error ErrorState Gets the execution error message

ImageAnalysis - IsObjectPresent_ByEdges

Check whether the object is present inside an image, analyzing the amount of edges found in the specified region.

IN

Name Type Description
InImage Image Input image.
InRoi ShapeRegion Where to check for the object.
InGradientMethod Enum < GradientMethod > Method used for gradients' computation.
InMagnitudeMeasure Enum < MagnitudeMeasure > Measure used for gradients' magnitude.
InGradientScale Int Scale for the resulting gradients' magnitude.
InMinMagnitude Int Minimum acceptable magnitude value.
InMinAmount Float Minimum acceptable fraction of pixels meeting the edge criteria.
InMaxAmount Float Maximum acceptable fraction of pixels meeting the edge criteria.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutBool Bool True if the object is present, false otherwise.
Error ErrorState Gets the execution error message

ImageAnalysis - IsObjectPresent_ByIntensity

Check whether an object is present inside an image, analyzing the pixel intensities inside the specified ROI.

IN

Name Type Description
InImage Image Input image.
InRoi ShapeRegion Where to check for the object.
InMinContrast Float Minimum acceptable value for the standard deviation of the pixel values.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutBool Bool True if the object is present, false otherwise.
Error ErrorState Gets the execution error message