You are here: Start » FIL.NET » FIS.CheckPresence_PixelAmount Method

FIS.CheckPresence_PixelAmount Method

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

Namespace:FilNet
Assembly:FIL.NET.dll

Syntax

public static void CheckPresence_PixelAmount
(
	FilNet.Image inImage,
	FilNet.ShapeRegion inRoi,
	FilNet.CoordinateSystem2D? inRoiAlignment,
	FilNet.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<FilNet.Region> outForeground,
	NullableRef<FilNet.ShapeRegion> outAlignedRoi,
	FilNet.Image diagHsxImage
)

Parameters

Name Type Range Default Description
inImageFilNet.ImageInput image.
inRoiFilNet.ShapeRegionLocation at which object presence is being checked.
inRoiAlignmentFilNet.CoordinateSystem2D?Adjusts the region of interest to the position of the inspected object. Default value: ftl::NIL.
inColorModelFilNet.HSxColorModelSelected color model.
inBeginHueint<0, 255>0Begin of the range of acceptable hue. Default value: 0.
inEndHueint<0, 255>255End of the range of acceptable hue. Default value: 255.
inMinSaturationint<0, 255>128Lowest acceptable saturation. Default value: 128.
inMaxSaturationint?<0, 255>Highest acceptable saturation. Default value: ftl::NIL.
inMinBrightnessfloat?<0.0f, INF>128.0fLowest acceptable brightness. Default value: 128.0f.
inMaxBrightnessfloat?<0.0f, INF>Highest acceptable brightness. Default value: ftl::NIL.
inMinAmountfloat<0.0f, 1.0f>0.5fLowest acceptable fraction of pixels meeting the criteria. Default value: 0.5f.
inMaxAmountfloat<0.0f, 1.0f>1.0fHighest acceptable fraction of pixels meeting the criteria. Default value: 1.0f.
outIsPresentboolFlag indicating whether the object is present or not.
outAmountFilNet.NullableValue<float>Fraction of pixels meeting the criteria. Can be null to skip this parameter calculation.
outForegroundFilNet.NullableRef<FilNet.Region>Region of pixels meeting the criteria. Can be null to skip this parameter calculation.
outAlignedRoiFilNet.NullableRef<FilNet.ShapeRegion>Input ROI after transformation (in the image coordinates). Can be null to skip this parameter calculation.
diagHsxImageFilNet.ImageImage represented in chosen color model.

Function Overrides

See also