Back to Aurora Vision Library website

You are here: Start » Function Reference » Computer Vision » Shape Fitting 3D » CreateSegmentFittingMap3D

CreateSegmentFittingMap3D


Header: AVL.h
Namespace: avl
Module: Vision3DStandard

Precomputes a data object that is required for fast segment fitting on surfaces.

Applications: Used together with segment fitting, but can be moved before the loop.

Syntax

C++
C#
 
void avl::CreateSegmentFittingMap3D
(
	const avl::SurfaceFormat& inSurfaceFormat,
	const avl::SegmentFittingField& inFittingField,
	atl::Optional<const avl::CoordinateSystem2D&> inFittingFieldAlignment,
	const int inScanCount,
	atl::Optional<float> inSamplingStep,
	int inScanWidth,
	avl::InterpolationMethod::Type inSurfaceInterpolation,
	avl::SegmentFittingMap& outFittingMap,
	atl::Array<avl::Segment2D>& diagScanSegments,
	atl::Array<avl::Rectangle2D>& diagSamplingAreas
)

Parameters

Name Type Range Default Description
Input value inSurfaceFormat const SurfaceFormat& Dimensions, depth image pixel type, coordinate offsets and scales of a surface on which segment fitting will be performed
Input value inFittingField const SegmentFittingField& Defines a rectangle in which scan segments will be created
Input value inFittingFieldAlignment Optional<const CoordinateSystem2D&> NIL Adjusts the fitting field to the position of the inspected object
Input value inScanCount const int 3 - 10 The number of points that will be searched to estimate the position of the segment
Input value inSamplingStep Optional<float> NIL Desired distance between consecutive sampling points on the scan segments; if Nil, the bigger of surface X and Y scales is chosen
Input value inScanWidth int 1 - 5 The width of each scan field in pixels of the surface depth image
Input value inSurfaceInterpolation InterpolationMethod::Type InterpolationMethod::​NearestNeighbour Interpolation method used for extraction of depth image pixel values
Output value outFittingMap SegmentFittingMap& Optimized data required for segment fitting
Diagnostic input diagScanSegments Array<Segment2D>& Segments along which the scans will be run
Diagnostic input diagSamplingAreas Array<Rectangle2D>& Scan fields created for point detection