Back to Adaptive Vision Library website

You are here: Start » Function Reference » Shape Fitting 3D » CreateCircleFittingMap3D

CreateCircleFittingMap3D


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

Syntax

C++
C#
 
void avl::CreateCircleFittingMap3D
(
	const avl::SurfaceFormat& inSurfaceFormat,
	const avl::CircleFittingField& inFittingField,
	atl::Optional<const avl::CoordinateSystem2D&> inFittingFieldAlignment,
	const int inScanCount,
	int inScanWidth,
	avl::InterpolationMethod::Type inImageInterpolation,
	avl::CircleFittingMap& outFittingMap,
	atl::Array<avl::Segment2D>& diagScanSegments,
	atl::Array<avl::Rectangle2D>& diagSamplingAreas
)

Parameters

Name Type Range Default Description
inSurfaceFormat const SurfaceFormat& Dimensions, depth image pixel type, coordinate offsets and scales of a surface on which circle fitting will be performed
inFittingField const CircleFittingField& Defines a ring in which scan segments will be created
inFittingFieldAlignment Optional<const CoordinateSystem2D&> NIL Adjusts the fitting field to the position of the inspected object
inScanCount const int 3 - 10 The number of points that will be searched to estimate the position of the circle
inScanWidth int 1 - 5 The width of each scan field in pixels of the surface depth image
inImageInterpolation InterpolationMethod::Type InterpolationMethod::​NearestNeighbour Interpolation method used for extraction of depth image pixel values
outFittingMap CircleFittingMap& Optimized data required for circle fitting
diagScanSegments Array<Segment2D>& Segments along which the scans will be run
diagSamplingAreas Array<Rectangle2D>& Scan fields created for point detection