ScanExactlyNEdges
Locates a specified number of the strongest transitions between dark and bright pixels along a given path.
Applications:Very fast object detection (or presence verification) when the expected number of edges is clearly defined.
Syntax
C++
C#
Python
def ScanExactlyNEdges( inImage: Image, inScanMap: ScanMap, inEdgeScanParams: EdgeScanParams, inEdgeCount: int, inEdgeSelection: Selection, inMinDistance: float, /, *, inMaxDistance: float | None = None, inLocalBlindness: LocalBlindness | None = None, outBrightnessProfile: Profile | None = None, outResponseProfile: Profile | None = None ) -> ( outEdges: list[Edge1D] | None, outGaps: list[Gap1D] | None )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inImage | Image | Input image | ||
![]() |
inScanMap | ScanMap | Data precomputed with CreateScanMap | ||
![]() |
inEdgeScanParams | EdgeScanParams | Parameters controlling the edge extraction process | ||
![]() |
inEdgeCount | int | 0 - ![]() |
Number of edges to be found | |
![]() |
inEdgeSelection | Selection | Selection mode of the resulting edges | ||
![]() |
inMinDistance | float | 0.0 - ![]() |
Minimal distance between consecutive edges | |
![]() |
inMaxDistance | float | None | 0.0 - ![]() |
None | Maximal distance between consecutive edges |
![]() |
inLocalBlindness | LocalBlindness | None | None | Defines conditions in which weaker edges can be detected in the vicinity of stronger edges | |
![]() |
outEdges | list[Edge1D] | None | Found edges | ||
![]() |
outGaps | list[Gap1D] | None | Gaps between consecutive edges | ||
![]() |
outBrightnessProfile | Profile | None | None | Extracted image profile | |
![]() |
outResponseProfile | Profile | None | None | Profile of the edge (derivative) operator response |



