You are here: Start » FIL.NET » Function Reference » Computer Vision » 1D Edge Detection » FIL.CreateScanMap
FIL.CreateScanMap
Precomputes a data object that is required for fast 1D edge detection.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
public static void CreateScanMap ( FilNet.ImageFormat inImageFormat, FilNet.Path inScanPath, FilNet.CoordinateSystem2D? inScanPathAlignment, int inScanWidth, FilNet.SamplingParams inSamplingParams, FilNet.ScanMap outScanMap, FilNet.Path outAlignedScanPath, IList<FilNet.Path> diagSamplingPoints, out float diagSamplingStep )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inImageFormat | FilNet.ImageFormat | Dimensions, depth and pixel type of the image on which edge detection will be performed. | ||
![]() | inScanPath | FilNet.Path | Path along which the scan is performed. | ||
![]() | inScanPathAlignment | FilNet.CoordinateSystem2D? | Adjusts the scan path to the position of the inspected object. Default value: ftl::NIL. | ||
![]() | inScanWidth | int | <1, INF> | 5 | Width of the scan field in pixels. Default value: 5. |
![]() | inSamplingParams | FilNet.SamplingParams | .interpolation Bilinear | Parameters controlling the sampling process. Default value: .interpolation Bilinear. | |
![]() | outScanMap | FilNet.ScanMap | Optimized data object required for 1D edge detection. | ||
![]() | outAlignedScanPath | FilNet.Path | Transformed input path. | ||
![]() | diagSamplingPoints | System.Collections.Generic.IList<FilNet.Path> | Array of paths each one containing the sampling points that contributes to a single value of the extracted profile. | ||
![]() | diagSamplingStep | float | Used distance between consecutive sampling points on the scan path. |
Description
The operation creates a scan map from a given inScanPath. The scan map can be later used by other 1D Edge Detection filters.
The optional parameter inScanPathAlignment defines a transform to be performed on the inScanPath so that the actual scan path (outAlignedScanPath) is adjusted to the position of the object, typically detected by one of Template Matching filters.
This filter is a part of the 1D Edge Detection toolset. For a comprehensive introduction to this technique please refer to 1D Edge Detection and 1D Edge Detection - Subpixel Precision chapters of our Machine Vision Guide.
Remarks
Read more about Local Coordinate Systems in Machine Vision Guide: Local Coordinate Systems.
Function Overrides
- CreateScanMap(ImageFormat, Path, Int32, SamplingParams, ScanMap)
- CreateScanMap(ImageFormat, Path, Nullable<CoordinateSystem2D>, Int32, SamplingParams, ScanMap)
- CreateScanMap(ImageFormat, Path, Nullable<CoordinateSystem2D>, Int32, SamplingParams, ScanMap, NullableRef<Path>)
- CreateScanMap(ImageFormat, Path, Nullable<CoordinateSystem2D>, Int32, SamplingParams, ScanMap, NullableRef<Path>, IList<Path>, Single)