oevislib_net  0.14.3.0
Loading...
Searching...
No Matches
Image Analysis

Functions

static bool oevislib_net.ComputerVision.ImageAnalysis.ImageAnalysis.IsObjectPresent (Image inImage, ShapeRegion inRoi, Optional< UCS2D > inRoiAlignment=null, Optional< float > inMinIntensity=null, Optional< float > inMaxIntensity=null, float inMinContrast=0.2f, Optional< float > inMaxContrast=null, Optional< float > outIntensity=null, Optional< float > outContrast=null, Optional< ShapeRegion > outAlignedRoi=null)
 Check whether an object is present inside an image, analyzing the pixel intensities inside the specified ROI.
static bool oevislib_net.ComputerVision.ImageAnalysis.ImageAnalysis.IsObjectPresent (Image inImage, ShapeRegion inRoi, Optional< UCS2D > inRoiAlignment=null, HSxModel inHSxModel=HSxModel.HSV, int inMinHue=0, int inMaxHue=255, int inMinSaturation=128, Optional< int > inMaxSaturation=null, Optional< float > inMinBrightness=null, Optional< float > inMaxBrightness=null, float inMinAmount=0.5f, float inMaxAmount=1.0f, Optional< float > outAmount=null, Optional< Region > outForeground=null, Optional< ShapeRegion > outAlignedRoi=null)
 Check whether the object is present inside an image, based on the amount of pixels that satisfy the color criteria.
static bool oevislib_net.ComputerVision.ImageAnalysis.ImageAnalysis.IsObjectPresent (Image inImage, ShapeRegion inRoi, Optional< UCS2D > inRoiAlignment=null, GradientMethod inGradientMethod=GradientMethod.Sobel, MagnitudeMeasure inMagnitudeMeasure=MagnitudeMeasure.Sum, int inGradientScale=1, int inMinMagnitude=15, float inMinAmount=0.2f, float inMaxAmount=1.0f, Optional< float > outAmount=null, Optional< Region > outForeground=null, Optional< ShapeRegion > outAlignedRoi=null)
 Check whether the object is present inside an image, analyzing the amount of edges found in the specified region.

Detailed Description

Function Documentation

◆ IsObjectPresent() [1/3]

bool oevislib_net.ComputerVision.ImageAnalysis.ImageAnalysis.IsObjectPresent ( Image inImage,
ShapeRegion inRoi,
Optional< UCS2D > inRoiAlignment = null,
GradientMethod inGradientMethod = GradientMethod::Sobel,
MagnitudeMeasure inMagnitudeMeasure = MagnitudeMeasure::Sum,
int inGradientScale = 1,
int inMinMagnitude = 15,
float inMinAmount = 0::2f,
float inMaxAmount = 1::0f,
Optional< float > outAmount = null,
Optional< Region > outForeground = null,
Optional< ShapeRegion > outAlignedRoi = null )
inlinestatic

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

Parameters
inImageInput image.
inRoiWhere to check for the object.
inRoiAlignmentRegion of interest alignment.
inGradientMethodMethod used for gradients' computation.
inMagnitudeMeasureMeasure used for gradients' magnitude.
inGradientScaleScale for the resulting gradients' magnitude.
inMinMagnitudeMinimum acceptable magnitude value.
inMinAmountMinimum acceptable fraction of pixels meeting the edge criteria.
inMaxAmountMaximum acceptable fraction of pixels meeting the edge criteria.
outAmountFraction of pixels meeting the edge criteria.
outForegroundRegion of pixels meeting the edge criteria.
outAlignedRoiAligned region of interest.
Returns
True if the object is present, false otherwise.

◆ IsObjectPresent() [2/3]

bool oevislib_net.ComputerVision.ImageAnalysis.ImageAnalysis.IsObjectPresent ( Image inImage,
ShapeRegion inRoi,
Optional< UCS2D > inRoiAlignment = null,
HSxModel inHSxModel = HSxModel::HSV,
int inMinHue = 0,
int inMaxHue = 255,
int inMinSaturation = 128,
Optional< int > inMaxSaturation = null,
Optional< float > inMinBrightness = null,
Optional< float > inMaxBrightness = null,
float inMinAmount = 0::5f,
float inMaxAmount = 1::0f,
Optional< float > outAmount = null,
Optional< Region > outForeground = null,
Optional< ShapeRegion > outAlignedRoi = null )
inlinestatic

Check whether the object is present inside an image, based on the amount of pixels that satisfy the color criteria.

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.

Parameters
inImageInput image.
inRoiWhere to check for the object.
inRoiAlignmentRegion of interest alignment.
inHSxModelHSx color model.
inMinHueMinimum acceptable hue value.
inMaxHueMaximum acceptable hue value.
inMinSaturationMinimum acceptable saturation value.
inMaxSaturationMaximum acceptable saturation value. If Null, the value is set to the highest value (255).
inMinBrightnessMinimum acceptable brightness value. If Null, the value is set to the lowest value (0).
inMaxBrightnessMaximum acceptable brightness value. If Null, the value is set to the highest value (255).
inMinAmountMinimum acceptable fraction of pixels meeting the color criteria.
inMaxAmountMaximum acceptable fraction of pixels meeting the color criteria.
outAmountFraction of pixels meeting the color criteria.
outForegroundRegion of pixels meeting the color criteria.
outAlignedRoiAligned region of interest.
Returns
True if the object is present, false otherwise.

◆ IsObjectPresent() [3/3]

bool oevislib_net.ComputerVision.ImageAnalysis.ImageAnalysis.IsObjectPresent ( Image inImage,
ShapeRegion inRoi,
Optional< UCS2D > inRoiAlignment = null,
Optional< float > inMinIntensity = null,
Optional< float > inMaxIntensity = null,
float inMinContrast = 0::2f,
Optional< float > inMaxContrast = null,
Optional< float > outIntensity = null,
Optional< float > outContrast = null,
Optional< ShapeRegion > outAlignedRoi = null )
inlinestatic

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

Parameters
inImageInput image.
inRoiWhere to check for the object.
inRoiAlignmentRegion of interest alignment.
inMinIntensityMinimum acceptable value for mean pixel intensity. If Null, the lowest possible value is considered.
inMaxIntensityMaximum acceptable value for mean pixel intensity. If Null, the highest possible value is considered.
inMinContrastMinimum acceptable value for the standard deviation of the pixel values.
inMaxContrastMaximum acceptable value for the standard deviation of the pixel values. If Null, the highest possible value is considered.
outIntensityAverage pixel value.
outContrastStandard deviation of the pixel values.
outAlignedRoiAligned region of interest.
Returns
True if the object is present, false otherwise.