SegmentImage_Edges
Segments an image into blobs using image edges as their borders.
Applications:Detection of objects of undefined shape, but characterized by good contrast to the background and fairly uniform internal brightness.
Syntax
C++
C#
Python
def SegmentImage_Edges( inImage: Image, inFrameSize: int, inComputeNestingLevels: bool, inEdgeClosing: int, /, *, inRoi: Region | None = None, inStdDev: float = 2.0, inEdgeThreshold: float = 15.0, inEdgeHysteresis: float = 5.0, inMaxJoiningDistance: float = 0.0, inMinArea: int = 50, inMaxArea: int | None = None, diagEdgeRegion: Region | None = None ) -> ( outBlobs: list[Region], outNestingLevels: list[int] )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inImage | Image | Image from which blobs are extracted | ||
![]() |
inRoi | Region | None | None | Range of pixels to be processed | |
![]() |
inFrameSize | int | 0 - ![]() |
How many pixels from the region border are excluded from the results | |
![]() |
inStdDev | float | 0.0 - ![]() |
2.0 | Amount of smoothing used by the edge filter |
![]() |
inEdgeThreshold | float | 0.0 - ![]() |
15.0 | Sufficient edge strength; edges of that strength will always be detected |
![]() |
inEdgeHysteresis | float | 0.0 - ![]() |
5.0 | Value by which the edge threshold is decreased for edge points neighboring with sufficiently strong edges |
![]() |
inMaxJoiningDistance | float | 0.0 - ![]() |
0.0 | Maximal distance between edges that can be joined |
![]() |
inMinArea | int | 0 - ![]() |
50 | Minimal area of a detected blob |
![]() |
inMaxArea | int | None | 0 - ![]() |
None | Maximal area of a detected blob |
![]() |
inComputeNestingLevels | bool | Flag indicating whether nesting levels should be computed | ||
![]() |
inEdgeClosing | int | 0 - ![]() |
Radius of enclosing small holes in the detected blobs | |
![]() |
outBlobs | list[Region] | Blobs extracted from the input image | ||
![]() |
outNestingLevels | list[int] | Nesting level of each extracted blob | ||
![]() |
diagEdgeRegion | Region | None | None | Region of the found edges |




