Back to FabImage Library website
You are here: Start » Function Reference » Computer Vision » Image Analysis » CreateMeasurementMap
CreateMeasurementMap
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationPro |
(Pre)computes image sampling locations used by MeasureObjectWidth function.
Syntax
C++
C#
void fil::CreateMeasurementMap ( const fil::ImageFormat& inImageFormat, const fil::SegmentScanField& inScanField, ftl::Optional<const fil::CoordinateSystem2D&> inScanFieldAlignment, int inScanCount, int inScanWidth, fil::InterpolationMethod::Type inImageInterpolation, ftl::Array<fil::ScanMap>& outMeasurementMap, ftl::Optional<fil::SegmentScanField&> outAlignedScanField = ftl::NIL, ftl::Array<fil::Segment2D>& diagScanSegments )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
inImageFormat | const ImageFormat& | Information about dimensions, depth and pixel type of the scan image | ||
![]() |
inScanField | const SegmentScanField& | Field in which scans will be performed | ||
![]() |
inScanFieldAlignment | Optional<const CoordinateSystem2D&> | NIL | Adjusts the scan field to the position of the inspected object | |
![]() |
inScanCount | int | 2 - ![]() |
5 | Number of scans to be performed |
![]() |
inScanWidth | int | 1 - ![]() |
5 | Width of the scan area |
![]() |
inImageInterpolation | InterpolationMethod::Type | Bilinear | Interpolation method used in extraction of image pixel values | |
![]() |
outMeasurementMap | Array<ScanMap>& | |||
![]() |
outAlignedScanField | Optional<SegmentScanField&> | NIL | Field in which the scans will be performed | |
![]() |
diagScanSegments | Array<Segment2D>& | Array of scan segments |
Optional Outputs
The computation of following outputs can be switched off by passing value ftl::NIL
to these parameters: outAlignedScanField.
Read more about Optional Outputs.