You are here: Start » FIL.NET » Function Reference » Computer Vision » Image Analysis » FIL.CheckPresence_Intensity
Verifies object presence by analysing pixel intensities in the specified region.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void CheckPresence_Intensity ( FilNet.Image inImage, FilNet.ShapeRegion inRoi, FilNet.CoordinateSystem2D? inRoiAlignment, float? inMinIntensity, float? inMaxIntensity, float inMinContrast, float? inMaxContrast, out bool outIsPresent )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inImage | FilNet.Image | Input image. | ||
![]() | inRoi | FilNet.ShapeRegion | Location at which object presence is being checked. | ||
![]() | inRoiAlignment | FilNet.CoordinateSystem2D? | Adjusts the region of interest to the position of the inspected object. Default value: ftl::NIL. | ||
![]() | inMinIntensity | float? | Lowest acceptable value for the average pixel value. Default value: ftl::NIL. | ||
![]() | inMaxIntensity | float? | Highest acceptable value for the average pixel value. Default value: ftl::NIL. | ||
![]() | inMinContrast | float | <0.0f, INF> | Lowest acceptable value for the standard deviation of the pixel values. | |
![]() | inMaxContrast | float? | <0.0f, INF> | Highest acceptable value for the standard deviation of the pixel values. Default value: ftl::NIL. | |
![]() | outIsPresent | bool | Flag indicating whether the object is present or not. |
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
- CheckPresence_Intensity(Image, ShapeRegion, Nullable<Single>, Nullable<Single>, Single, Boolean)
- CheckPresence_Intensity(Image, ShapeRegion, Nullable<CoordinateSystem2D>, Nullable<Single>, Nullable<Single>, Single, Nullable<Single>, Boolean, Single, Single, ShapeRegion)
- CheckPresence_Intensity(Image, ShapeRegion, Nullable<CoordinateSystem2D>, Nullable<Single>, Nullable<Single>, Single, Nullable<Single>, Boolean, NullableValue<Single>, NullableValue<Single>, NullableRef<ShapeRegion>)