You are here: Start » FIL.NET » Function Reference » Computer Vision » 1D Edge Detection » FIL.ScanExactlyNRidges
Locates a specified number of the strongest dark or bright pixel peak along a given path.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
public static void ScanExactlyNRidges ( FilNet.Image inImage, FilNet.ScanMap inScanMap, FilNet.RidgeScanParams inRidgeScanParams, int inRidgeCount, FilNet.Selection inRidgeSelection, float inMinDistance, INullable<List<FilNet.Ridge1D>> outRidges, INullable<List<FilNet.Gap1D>> outGaps )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inImage | FilNet.Image | Input image. | ||
![]() | inScanMap | FilNet.ScanMap | Data precomputed with CreateScanMap. | ||
![]() | inRidgeScanParams | FilNet.RidgeScanParams | RidgeScanParams ( ProfileInterpolation: Quadratic4 SmoothingStdDev: 0.6f RidgeWidth: 5 RidgeMargin: 2 MinMagnitude: 5.0f RidgePolarity: Dark ) | Parameters controlling the ridge extraction process. Default value: RidgeScanParams ( ProfileInterpolation: Quadratic4 SmoothingStdDev: 0.6f RidgeWidth: 5 RidgeMargin: 2 MinMagnitude: 5.0f RidgePolarity: Dark ). | |
![]() | inRidgeCount | int | <0, INF> | 1 | Number of ridges to be found. Default value: 1. |
![]() | inRidgeSelection | FilNet.Selection | fil::Selection::Best | Selection mode of the resulting ridges. Default value: fil::Selection::Best. | |
![]() | inMinDistance | float | <0.0f, INF> | 0.0f | Minimal distance between consecutive ridges. Default value: 0.0f. |
![]() | outRidges | FilNet.INullable<System.Collections.Generic.List<FilNet.Ridge1D>> | Found ridges. This parameter cannot be null. | ||
![]() | outGaps | FilNet.INullable<System.Collections.Generic.List<FilNet.Gap1D>> | Gaps between consecutive edges. This parameter cannot be null. |
Description
The operation scans the image using inScanMap previously generated from a scan path and finds a set of inRidgeCount image ridges perpendicular to the path. If no subset (of inRidgeCount elements) of detected ridges meets the requirements of inRidgeScanParams.minMagnitude, inMinDistance, inRidgeScanParams.ridgePolarity then the outputs are set to NIL.
Note that in case of a scan path which is closed, the parameters controlling the distances between consecutive found objects do not control the distance between the first and the last of the found objects (counting from the beginning of the scan path).
Examples

ScanMultipleRidges locates the ridges using a scan map representing the scan path above.
Remarks
Read more about Local Coordinate Systems in Machine Vision Guide: Local Coordinate Systems.
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.
Function Overrides
- ScanExactlyNRidges(Image, ScanMap, RidgeScanParams, Int32, Selection, Single, Nullable<Single>, Nullable<LocalBlindness>, INullable<List<Ridge1D>>, INullable<List<Gap1D>>)
- ScanExactlyNRidges(Image, ScanMap, RidgeScanParams, Int32, Selection, Single, Nullable<Single>, Nullable<LocalBlindness>, INullable<List<Ridge1D>>, INullable<List<Gap1D>>, Profile, Profile)
- ScanExactlyNRidges(Image, ScanMap, RidgeScanParams, Int32, Selection, Single, Nullable<Single>, Nullable<LocalBlindness>, INullable<List<Ridge1D>>, INullable<List<Gap1D>>, NullableRef<Profile>, NullableRef<Profile>)