You are here: Start » AVL.NET » AVL.CreateSegmentFittingMap
AVL.CreateSegmentFittingMap
Precomputes a data object that is required for fast segment fitting on images.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
public static void CreateSegmentFittingMap ( AvlNet.ImageFormat inImageFormat, AvlNet.SegmentFittingField inFittingField, int inScanCount, int inScanWidth, AvlNet.InterpolationMethod inImageInterpolation, AvlNet.SegmentFittingMap outFittingMap, IList<AvlNet.Segment2D> diagScanSegments, IList<AvlNet.Rectangle2D> diagSamplingAreas )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inImageFormat | AvlNet.ImageFormat | Dimensions, depth and pixel type of the images on which fitting will be performed. | |||
inFittingField | AvlNet.SegmentFittingField | Defines a rectangle in which scan segments will be created. | |||
inScanCount | int | <3, INF> | 10 | The number of points that will be searched to estimate the position of the segment. Default value: 10. | |
inScanWidth | int | <1, INF> | 5 | The width of each scan field (in pixels). Default value: 5. | |
inImageInterpolation | AvlNet.InterpolationMethod | avl::InterpolationMethod::NearestNeighbour | Interpolation method used for extraction of image pixel values. Default value: avl::InterpolationMethod::NearestNeighbour. | ||
outFittingMap | AvlNet.SegmentFittingMap | Optimized data required for segment fitting. | |||
diagScanSegments | System.Collections.Generic.IList<AvlNet.Segment2D> | Segments along which the scans will be run. | |||
diagSamplingAreas | System.Collections.Generic.IList<AvlNet.Rectangle2D> | Scan fields created for point detection. |
Description
The operation creates a series of scan maps that can be later used by other Shape Fitting filters. Each scan map corresponds to a single scan segment of inScanWidth length.
The optional parameter inFittingFieldAlignment defines the transform to be performed on the inFittingField so that the result is defined in a new context, e.g. returned by one of Template Matching filters.
Remarks
For more information about local coordinate systems please refer to the following article.
This filter is a part of the Shape Fitting toolset. To read more about this technique, one can refer to the Shape Fitting chapter of our Machine Vision Guide
Function Overrides
- CreateSegmentFittingMap(ImageFormat, SegmentFittingField, Int32, Int32, InterpolationMethod, SegmentFittingMap)
- CreateSegmentFittingMap(ImageFormat, SegmentFittingField, Nullable<CoordinateSystem2D>, Int32, Int32, InterpolationMethod, SegmentFittingMap)
- CreateSegmentFittingMap(ImageFormat, SegmentFittingField, Nullable<CoordinateSystem2D>, Int32, Int32, InterpolationMethod, SegmentFittingMap, IList<Segment2D>, IList<Rectangle2D>)