You are here: Start » AVL.NET » AVS.CheckPresence_PixelAmount Method
AVS.CheckPresence_PixelAmount Method
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, float? inMinBrightness, float? inMaxBrightness, float inMinAmount, float inMaxAmount, out bool outIsPresent, NullableValue<float> outAmount, NullableRef<AvlNet.Region> outForeground, NullableRef<AvlNet.ShapeRegion> outAlignedRoi, AvlNet.Image diagHsxImage )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inImage | AvlNet.Image | Input image. | |||
inRoi | AvlNet.ShapeRegion | Location at which object presence is being checked. | |||
inRoiAlignment | AvlNet.CoordinateSystem2D? | Adjusts the region of interest to the position of the inspected object. Default value: atl::NIL. | |||
inColorModel | AvlNet.HSxColorModel | Selected color model. | |||
inBeginHue | int | <0, 255> | 0 | Begin of the range of acceptable hue. Default value: 0. | |
inEndHue | int | <0, 255> | 255 | End of the range of acceptable hue. Default value: 255. | |
inMinSaturation | int | <0, 255> | 128 | Lowest acceptable saturation. Default value: 128. | |
inMaxSaturation | int? | <0, 255> | Highest acceptable saturation. Default value: atl::NIL. | ||
inMinBrightness | float? | <0.0f, INF> | 128.0f | Lowest acceptable brightness. Default value: 128.0f. | |
inMaxBrightness | float? | <0.0f, INF> | Highest acceptable brightness. Default value: atl::NIL. | ||
inMinAmount | float | <0.0f, 1.0f> | 0.5f | Lowest acceptable fraction of pixels meeting the criteria. Default value: 0.5f. | |
inMaxAmount | float | <0.0f, 1.0f> | 1.0f | Highest acceptable fraction of pixels meeting the criteria. Default value: 1.0f. | |
outIsPresent | bool | Flag indicating whether the object is present or not. | |||
outAmount | AvlNet.NullableValue<float> | Fraction of pixels meeting the criteria. Can be null to skip this parameter calculation. | |||
outForeground | AvlNet.NullableRef<AvlNet.Region> | Region of pixels meeting the criteria. Can be null to skip this parameter calculation. | |||
outAlignedRoi | AvlNet.NullableRef<AvlNet.ShapeRegion> | Input ROI after transformation (in the image coordinates). Can be null to skip this parameter calculation. | |||
diagHsxImage | AvlNet.Image | Image represented in chosen color model. |
Function Overrides
- CheckPresence_PixelAmount(Image, ShapeRegion, HSxColorModel, Int32, Int32, Int32, Nullable<Single>, Nullable<Single>, Single, Single, Boolean)
- CheckPresence_PixelAmount(Image, ShapeRegion, Nullable<CoordinateSystem2D>, HSxColorModel, Int32, Int32, Int32, Nullable<Int32>, Nullable<Single>, Nullable<Single>, Single, Single, Boolean)
- CheckPresence_PixelAmount(Image, ShapeRegion, Nullable<CoordinateSystem2D>, HSxColorModel, Int32, Int32, Int32, Nullable<Int32>, Nullable<Single>, Nullable<Single>, Single, Single, Boolean, NullableValue<Single>, NullableRef<Region>, NullableRef<ShapeRegion>)
- CheckPresence_PixelAmount(Image, ShapeRegion, Nullable<CoordinateSystem2D>, HSxColorModel, Int32, Int32, Int32, Nullable<Int32>, Nullable<Single>, Nullable<Single>, Single, Single, Boolean, Single, Region, ShapeRegion, Image)