Back to Aurora Vision Library website

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

CreateMeasurementMap


Header: AVL.h
Namespace: avl
Module: FoundationPro

(Pre)computes image sampling locations used by MeasureObjectWidth function.

Syntax

C++
C#
 
void avl::CreateMeasurementMap
(
	const avl::ImageFormat& inImageFormat,
	const avl::SegmentScanField& inScanField,
	atl::Optional<const avl::CoordinateSystem2D&> inScanFieldAlignment,
	int inScanCount,
	int inScanWidth,
	avl::InterpolationMethod::Type inImageInterpolation,
	atl::Array<avl::ScanMap>& outMeasurementMap,
	atl::Optional<avl::SegmentScanField&> outAlignedScanField = atl::NIL,
	atl::Array<avl::Segment2D>& diagScanSegments
)

Parameters

Name Type Range Default Description
Input value inImageFormat const ImageFormat& Information about dimensions, depth and pixel type of the scan image
Input value inScanField const SegmentScanField& Field in which scans will be performed
Input value inScanFieldAlignment Optional<const CoordinateSystem2D&> NIL Adjusts the scan field to the position of the inspected object
Input value inScanCount int 2 - 5 Number of scans to be performed
Input value inScanWidth int 1 - 5 Width of the scan area
Input value inImageInterpolation InterpolationMethod::Type Bilinear Interpolation method used in extraction of image pixel values
Output value outMeasurementMap Array<ScanMap>&
Output value outAlignedScanField Optional<SegmentScanField&> NIL Field in which the scans will be performed
Diagnostic input diagScanSegments Array<Segment2D>& Array of scan segments

Optional Outputs

The computation of following outputs can be switched off by passing value atl::NIL to these parameters: outAlignedScanField.

Read more about Optional Outputs.