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

AVL.CheckPresence_PixelAmount(AvlNet.Image, AvlNet.ShapeRegion, AvlNet.CoordinateSystem2D?, AvlNet.HSxColorModel, int, int, int, int?, int?, int?, float, float, bool, AvlNet.Image)

Verifies object presence by analysing the amount of pixels that meet the specified criteria.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void CheckPresence_PixelAmount(
	AvlNet.Image inImage,
	AvlNet.ShapeRegion inRoi,
	AvlNet.CoordinateSystem2D? inRoiAlignment,
	AvlNet.HSxColorModel inColorModel,
	int inBeginHue,
	int inEndHue,
	int inMinSaturation,
	int? inMaxSaturation,
	int? inMinBrightness,
	int? inMaxBrightness,
	float inMinAmount,
	float inMaxAmount,
	out bool outIsPresent,
	out AvlNet.Image diagHsxImage
)

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.
inColorModel
Type: AvlNet.HSxColorModel
Selected color model
inBeginHue
Type: System.Int32
Begin of the range of acceptable hue
inEndHue
Type: System.Int32
End of the range of acceptable hue
inMinSaturation
Type: System.Int32
Lowest acceptable saturation
inMaxSaturation
Type: System.Nullable<System.Int32>
Highest acceptable saturation, or null.
inMinBrightness
Type: System.Nullable<System.Int32>
Lowest acceptable brightness, or null.
inMaxBrightness
Type: System.Nullable<System.Int32>
Highest acceptable brightness, or null.
inMinAmount
Type: System.Single
Lowest acceptable fraction of pixels meeting the criteria
inMaxAmount
Type: System.Single
Highest acceptable fraction of pixels meeting the criteria
outIsPresent
Type: System.Boolean
Flag indicating whether the object is present or not
diagHsxImage
Type: AvlNet.Image
Image represented in chosen color model

See also