You are here: Start » AVL.NET » AVL.SegmentImage_Edges Method

AVL.SegmentImage_Edges Method

Segments an image into blobs using image edges as their borders.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void SegmentImage_Edges(
	AvlNet.Image inImage,
	AvlNet.Region inRoi,
	int inFrameSize,
	float inStdDev,
	float inEdgeThreshold,
	float inEdgeHysteresis,
	float inMaxJoiningDistance,
	int inMinArea,
	int? inMaxArea,
	bool inComputeNestingLevels,
	out AvlNet.Region[] outBlobs,
	out int[] outNestingLevels,
	out AvlNet.Region diagEdgeRegion
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageImage from which blobs are extracted.
inRoiAvlNet.RegionRange of pixels to be processed. Default value: atl::NIL, or null.
inFrameSizeint<0, INF>1How many pixels form the image border are excluded from the results. Default value: 1.
inStdDevfloat<0.0f, INF>2.0fAmount of smoothing used by the edge filter. Default value: 2.0f.
inEdgeThresholdfloat15.0fSufficient edge strength; edges of that strength will always be detected. Default value: 15.0f.
inEdgeHysteresisfloat<0.0f, INF>5.0fValue by which the edge threshold is decreased for edge points neighboring with sufficiently strong edges. Default value: 5.0f.
inMaxJoiningDistancefloat<0.0f, INF>0.0fMaximal distance between edges that can be joined. Default value: 0.0f.
inMinAreaint<0, INF>50Minimal area of a detected blob. Default value: 50.
inMaxAreaint?<0, INF>Maximal area of a detected blob. Default value: atl::NIL, or null.
inComputeNestingLevelsboolFlag indicating whether nesting levels should be computed.
outBlobsAvlNet.RegionBlobs extracted from the input image.
outNestingLevelsintNesting level of each extracted blob
diagEdgeRegionAvlNet.RegionRegion of the found edges.

Examples

SegmentImage_Edges performed on an image of labels; default parameters.

See also