You are here: Start » AVL.NET » AVL.CheckPresence_Intensity(AvlNet.Image, AvlNet.ShapeRegion, AvlNet.CoordinateSystem2D?, float?, float?, float, float?, bool, float, float, AvlNet.ShapeRegion)

AVL.CheckPresence_Intensity(AvlNet.Image, AvlNet.ShapeRegion, AvlNet.CoordinateSystem2D?, float?, float?, float, float?, bool, float, float, AvlNet.ShapeRegion)

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


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,
	out AvlNet.ShapeRegion outAlignedRoi
)

Parameters

inImage
Type: AvlNet.Image
Input image
inRoi
Type: AvlNet.ShapeRegion
Location at which object presence is being checked
inRoiAlignment
Type: System.Nullable<AvlNet.CoordinateSystem2D>
Adjusts the region of interest to the position of the inspected object, or null.
inMinIntensity
Type: System.Nullable<System.Single>
Lowest acceptable value for the average pixel value, or null.
inMaxIntensity
Type: System.Nullable<System.Single>
Highest acceptable value for the average pixel value, or null.
inMinContrast
Type: System.Single
Lowest acceptable value for the standard deviation of the pixel values
inMaxContrast
Type: System.Nullable<System.Single>
Highest acceptable value for the standard deviation of the pixel values, or null.
outIsPresent
Type: System.Boolean
Flag indicating whether the object is present or not
outIntensity
Type: System.Single
outContrast
Type: System.Single
outAlignedRoi
Type: AvlNet.ShapeRegion

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.

See also