Back to Adaptive Vision Library website

You are here: Start » Function Reference » Image Segmentation » FindMaxStableExtremalRegions

FindMaxStableExtremalRegions


Header: AVL.h
Namespace: avl
Module: FoundationPro

Segments an image using MSER.

Syntax

C++
C#
 
void avl::FindMaxStableExtremalRegions
(
	const avl::Image& inImage,
	const int inDelta,
	const int inMinArea,
	const int inMaxArea,
	const float inMaxVariation,
	const float inMinDiversity,
	avl::RegionConnectivity::Type inConnectivity,
	atl::Array<avl::Region>& outRegions
)

Parameters

Name Type Range Default Description
inImage const Image& Input image
inDelta const int 1 - 255 30 Area variance is calculated against ancestor with color difference of delta
inMinArea const int 0 - 50 Minimum area of stable region
inMaxArea const int 0 - 2000 Maximum area of stable region
inMaxVariation const float 0.0 - 0.1f Maximum area variance with containing larger region specified by delta parameter, for region to be considered as stable
inMinDiversity const float 0.0 - 2.0f Minimum area diversity that region must have in order to be stable when compared to stable regions within it
inConnectivity RegionConnectivity::Type EightDirections
outRegions Array<Region>&

Requirements

For input inImage only pixel formats are supported: 1⨯uint8.

Read more about pixel formats in Image documentation.

Errors

List of possible exceptions:

Error type Description
DomainError Not supported inImage pixel format in FindMaxStableExtremalRegions.