You are here: Start » FIL.NET » Function Reference » Computer Vision » 1D Edge Detection » FIL.ScanSingleRidge_Direct
Locates the strongest dark or bright pixel peak along a given path (without a scan map).
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
public static void ScanSingleRidge_Direct ( FilNet.Image inImage, FilNet.Path inScanPath, int inScanWidth, FilNet.SamplingParams inSamplingParams, FilNet.RidgeScanParams inRidgeScanParams, FilNet.Selection inRidgeSelection, out FilNet.Ridge1D? outRidge )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inImage | FilNet.Image | Input image. | ||
![]() | inScanPath | FilNet.Path | Path along which the scan is performed. | ||
![]() | inScanWidth | int | <1, INF> | 5 | Width of the scan field in pixels. Default value: 5. |
![]() | inSamplingParams | FilNet.SamplingParams | SamplingParams ( Interpolation: Bilinear SamplingStep: 1.0f SampleCount: Nil ) | Parameters controlling the sampling process. Default value: SamplingParams ( Interpolation: Bilinear SamplingStep: 1.0f SampleCount: Nil ). | |
![]() | 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 ). | |
![]() | inRidgeSelection | FilNet.Selection | Selection mode of the resulting ridge. | ||
![]() | outRidge | FilNet.Ridge1D? | Found ridge. |
Description
The operation scans the image along inScanPath and locates the strongest ridge of the given characteristics. If there is no such ridge then the outputs are set to NIL.
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.
Examples

ScanSingleRidge locates the strongest ridge across inScanPath.
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
- ScanSingleRidge_Direct(Image, Path, Nullable<CoordinateSystem2D>, Int32, SamplingParams, RidgeScanParams, Selection, Nullable<LocalBlindness>, Nullable<Ridge1D>)
- ScanSingleRidge_Direct(Image, Path, Nullable<CoordinateSystem2D>, Int32, SamplingParams, RidgeScanParams, Selection, Nullable<LocalBlindness>, Nullable<Ridge1D>, NullableRef<Path>, NullableRef<Profile>, NullableRef<Profile>)
- ScanSingleRidge_Direct(Image, Path, Nullable<CoordinateSystem2D>, Int32, SamplingParams, RidgeScanParams, Selection, Nullable<LocalBlindness>, Nullable<Ridge1D>, Path, Profile, Profile, IList<Path>, Single)
- ScanSingleRidge_Direct(Image, Path, Nullable<CoordinateSystem2D>, Int32, SamplingParams, RidgeScanParams, Selection, Nullable<LocalBlindness>, Nullable<Ridge1D>, NullableRef<Path>, NullableRef<Profile>, NullableRef<Profile>, IList<Path>, Single)