You are here: Start » AVL.NET » Invoke.ImageProfileAlongPath
Creates a series of segments across the input path, measures the average pixel intensity on each of the segments, and creates the final profile from those values.
Namespace: | Avl |
---|---|
Assembly: | AvlNet.dll |
Syntax
C++
C#
public static void ImageProfileAlongPath ( Avl.ScanMapState ioState, Avl.Image inImage, Avl.Path inScanPath, Optional<Avl.CoordinateSystem2D> inScanPathAlignment, int inScanWidth, Avl.SamplingParams inSamplingParams, float inSmoothingStdDev, Avl.AccumulationMode inAccumulationMode, Optional<Avl.Pixel> inBorderColor, Avl.Profile outProfile, Avl.Path outPath, Optional<Avl.Path> outAlignedScanPath, Diagnostic<List<Avl.Path>> diagSamplingPoints, Diagnostic<float> diagSamplingStep )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
ioState | Avl.ScanMapState | ||||
![]() | inImage | Avl.Image | Input image. | ||
![]() | inScanPath | Avl.Path | Path along which the profile is extracted. | ||
![]() | inScanPathAlignment | Atl.Optional<Avl.CoordinateSystem2D> | Adjusts the scan path to the position of the inspected object. Default value: atl::NIL. | ||
![]() | inScanWidth | int | <1, INF> | 5 | Width of the scan field in pixels. Default value: 5. |
![]() | inSamplingParams | Avl.SamplingParams | Parameters controlling the sampling process. | ||
![]() | inSmoothingStdDev | float | <0.0f, INF> | 0.6f | Standard deviation of the gaussian smoothing applied to the extracted profile. Default value: 0.6f. |
![]() | inAccumulationMode | Avl.AccumulationMode | Determines how the pixel values are combined. | ||
![]() | inBorderColor | Atl.Optional<Avl.Pixel> | Pixel ( X: 0.0f Y: 0.0f Z: 0.0f W: 0.0f ) | Color of pixel outside image. Default value: Pixel ( X: 0.0f Y: 0.0f Z: 0.0f W: 0.0f ). | |
![]() | outProfile | Avl.Profile | The resulting profile of the pixel brightness. | ||
![]() | outPath | Avl.Path | The path consisting of the points from which the resulting profile is extracted. | ||
![]() | outAlignedScanPath | Atl.Optional<Avl.Path> | Input scan path after transformation (in the image coordinates). | ||
![]() | diagSamplingPoints | Avl.Diagnostic<System.Collections.Generic.List<Avl.Path>> | Array of paths each one containing the sampling points that contributed to a single value of the extracted profile. | ||
![]() | diagSamplingStep | Avl.Diagnostic<float> | Used distance between consecutive sampling points on the scan path. |