Back to Aurora Vision Library website

You are here: Start » Function Reference » Computer Vision » Image Analysis » CheckPresence_Intensity_Deprecated

CheckPresence_Intensity_Deprecated


Header: AVL.h
Namespace: avl
Module: FoundationPro

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

Applications: Quick and easy presence verification, e.g. for missing caps, screws, labels.

Syntax

void avl::CheckPresence_Intensity_Deprecated
(
	const avl::Image& inImage,
	const avl::ShapeRegionDeprecated& inRoi,
	atl::Optional<const avl::CoordinateSystem2D&> inRoiAlignment,
	atl::Optional<float> inMinIntensity,
	atl::Optional<float> inMaxIntensity,
	float inMinContrast,
	atl::Optional<float> inMaxContrast,
	bool& outIsPresent,
	atl::Optional<float&> outIntensity = atl::NIL,
	atl::Optional<float&> outContrast = atl::NIL,
	atl::Optional<avl::ShapeRegionDeprecated&> outAlignedRoi = atl::NIL
)

Parameters

Name Type Range Default Description
Input value inImage const Image& Input image
Input value inRoi const ShapeRegionDeprecated& Location at which object presence is being checked
Input value inRoiAlignment Optional<const CoordinateSystem2D&> NIL Adjusts the region of interest to the position of the inspected object
Input value inMinIntensity Optional<float> NIL Lowest acceptable value for the average pixel value
Input value inMaxIntensity Optional<float> NIL Highest acceptable value for the average pixel value
Input value inMinContrast float 0.0 - Lowest acceptable value for the standard deviation of the pixel values
Input value inMaxContrast Optional<float> 0.0 - NIL Highest acceptable value for the standard deviation of the pixel values
Output value outIsPresent bool& Flag indicating whether the object is present or not
Output value outIntensity Optional<float&> NIL Average pixel value
Output value outContrast Optional<float&> NIL Standard deviation of the pixel values
Output value outAlignedRoi Optional<ShapeRegionDeprecated&> NIL Input ROI after transformation (in the image coordinates)

Optional Outputs

The computation of following outputs can be switched off by passing value atl::NIL to these parameters: outIntensity, outContrast, outAlignedRoi.

Read more about Optional Outputs.