You are here: Start » AVL.NET » Function Reference » Computer Vision » Image Analysis » AVL.CheckPresence_Intensity

AVL.CheckPresence_Intensity

Verifies object presence by analysing pixel intensities in the specified region.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void CheckPresence_Intensity
(
	AvlNet.Image inImage,
	AvlNet.ShapeRegion inRoi,
	AvlNet.CoordinateSystem2D? inRoiAlignment,
	float? inMinIntensity,
	float? inMaxIntensity,
	float inMinContrast,
	float? inMaxContrast,
	out bool outIsPresent,
	out float outIntensity,
	out float outContrast,
	AvlNet.ShapeRegion outAlignedRoi
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inRoiAvlNet.ShapeRegionLocation at which object presence is being checked.
inRoiAlignmentAvlNet.CoordinateSystem2D?Adjusts the region of interest to the position of the inspected object. Default value: atl::NIL.
inMinIntensityfloat?Lowest acceptable value for the average pixel value. Default value: atl::NIL.
inMaxIntensityfloat?Highest acceptable value for the average pixel value. Default value: atl::NIL.
inMinContrastfloat<0.0f, INF>Lowest acceptable value for the standard deviation of the pixel values.
inMaxContrastfloat?<0.0f, INF>Highest acceptable value for the standard deviation of the pixel values. Default value: atl::NIL.
outIsPresentboolFlag indicating whether the object is present or not.
outIntensityfloatAverage pixel value.
outContrastfloatStandard deviation of the pixel values.
outAlignedRoiAvlNet.ShapeRegionInput ROI after transformation (in the image coordinates).

Description

The filter computes basic statistics of the image pixels in selected ROI and checks if they fit the defined ranges. The used statistics are average and standard deviation of the pixel values.

Examples

CheckPresence_Intensity performed on sample image with inMinIntensity = 80. The foam is present in red rectangle.

Errors

List of possible exceptions:

Error type Description
DomainError Region exceeds an input image in CheckPresence_Intensity.

Function Overrides

See also