You are here: Start » FIL.NET » Function Reference » Computer Vision » 1D Edge Detection » FIL.ScanMultipleRidges
Locates multiple dark or bright pixel peaks along a given path.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
public static void ScanMultipleRidges ( FilNet.Image inImage, FilNet.ScanMap inScanMap, FilNet.RidgeScanParams inRidgeScanParams, float inMinDistance, float? inMaxDistance, FilNet.LocalBlindness? inLocalBlindness, IList<FilNet.Ridge1D> outRidges, IList<FilNet.Gap1D> outGaps, NullableRef<FilNet.Profile> outBrightnessProfile, NullableRef<FilNet.Profile> outResponseProfile )
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 ). | |
![]() | inMinDistance | float | <0.0f, INF> | 0.0f | Minimal distance between consecutive ridges. Default value: 0.0f. |
![]() | inMaxDistance | float? | <0.0f, INF> | Maximal distance between consecutive ridges. Default value: ftl::NIL. | |
![]() | inLocalBlindness | FilNet.LocalBlindness? | Defines conditions in which weaker ridges can be detected in the vicinity of stronger ridges. Default value: ftl::NIL. | ||
![]() | outRidges | System.Collections.Generic.IList<FilNet.Ridge1D> | Found ridges. | ||
![]() | outGaps | System.Collections.Generic.IList<FilNet.Gap1D> | Gaps between consecutive ridges. | ||
![]() | outBrightnessProfile | FilNet.NullableRef<FilNet.Profile> | Extracted image profile. Can be null to skip this parameter calculation. | ||
![]() | outResponseProfile | FilNet.NullableRef<FilNet.Profile> | Profile of the ridge operator response. Can be null to skip this parameter calculation. |
Description
The operation scans the image using inScanMap previously generated from a scan path and detects ridges. Depending on the inRidgeScanParams.ridgePolarity parameter, dark, bright or both ridges will be taken into account.
When the number of ridges to be measured is known, one can use the ScanExactlyNRidges filter.
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
- ScanMultipleRidges(Image, ScanMap, RidgeScanParams, Single, IList<Ridge1D>, IList<Gap1D>)
- ScanMultipleRidges(Image, ScanMap, RidgeScanParams, Single, Nullable<Single>, Nullable<LocalBlindness>, IList<Ridge1D>, IList<Gap1D>)
- ScanMultipleRidges(Image, ScanMap, RidgeScanParams, Single, Nullable<Single>, Nullable<LocalBlindness>, IList<Ridge1D>, IList<Gap1D>, Profile, Profile)