You are here: Start » AVL.NET » Invoke.AdjustPathArrayToEdges
Translates, rotates and scales the given contour set to the edges of the input image with subpixel precision.
| Namespace: | Avl | 
|---|---|
| Assembly: | AvlNet.dll | 
Syntax
C++
C#
public static void AdjustPathArrayToEdges ( Avl.Image inImage, List<Avl.Path> inPaths, Optional<float> inPointSpacing, Optional<Avl.CoordinateSystem2D> inAlignment, float inAttractionRadius, Avl.AdjustmentMetric inAdjustmentMetric, bool inAdjustTranslation, bool inAdjustRotation, bool inAdjustScale, int inIterationCount, float inBaseGradient, List<Avl.Path> outAdjustedPaths, out Avl.CoordinateSystem2D outAlignment, Diagnostic<List<Avl.Segment2D>> diagAttractionVectors )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]()  | inImage | Avl.Image | Input image. | ||
![]()  | inPaths | System.Collections.Generic.List<Avl.Path> | Paths to be adjusted. For sparse, synthetic paths the inPointSpacing needs to be specified. | ||
![]()  | inPointSpacing | Atl.Optional<float> | <1.0f, INF> | If set, sampling points of the input path will be equidistant with specified spacing. Useful for increasing density of synthetic, sparse paths. Default value: atl::NIL. | |
![]()  | inAlignment | Atl.Optional<Avl.CoordinateSystem2D> | Alignment to be corrected, usually connects to outObject.Alignment of LocateObjects filter. Default value: atl::NIL. | ||
![]()  | inAttractionRadius | float | <0.1f, INF> | 2.0f | Expected initial distance between inPaths and edges of the input image. Default value: 2.0f. | 
![]()  | inAdjustmentMetric | Avl.AdjustmentMetric | SegmentDistance | Metric used for path attraction. The SegmentDistance minimizes distances along path normal vectors, and thus adjustment is more accurate. PointDistance_* minimize euclidean distance, adjustment tends to be more stable. Default value: SegmentDistance. | |
![]()  | inAdjustTranslation | bool | True | Compute the translation part of adjustment transform. Must be true when using AttractPathTangents estimation method. Default value: True. | |
![]()  | inAdjustRotation | bool | True | Compute the rotation part of adjustment transform. Default value: True. | |
![]()  | inAdjustScale | bool | False | Compute the scale part of adjustment transform. Default value: False. | |
![]()  | inIterationCount | int | <0, 100> | 6 | Number of iterations of internal adjustment algorithm. Default value: 6. | 
![]()  | inBaseGradient | float | <0.1f, INF> | 1.0f | Threshold for suppression of weak input image gradients. Increase for very noisy images. Default value: 1.0f. | 
![]()  | outAdjustedPaths | System.Collections.Generic.List<Avl.Path> | Adjusted output paths. | ||
![]()  | outAlignment | Avl.CoordinateSystem2D | Corrected alignment - the inAlignment input modified with estimated adjustment parameters. | ||
![]()  | diagAttractionVectors | Avl.Diagnostic<System.Collections.Generic.List<Avl.Segment2D>> | Attraction vectors from first iteration. | 



