Table of Contents

Struct MCvERStat

Namespace
Emgu.CV.Text
Assembly
Emgu.CV.dll

The ERStat structure represents a class-specific Extremal Region (ER). An ER is a 4-connected set of pixels with all its grey-level values smaller than the values in its outer boundary. A class-specific ER is selected (using a classifier) from all the ER’s in the component tree of the image.

public struct MCvERStat
Inherited Members

Fields

Area

Area

public int Area

Field Value

int

CentralMoments0

Order 2 central moments to construct the covariance matrix

public double CentralMoments0

Field Value

double

CentralMoments1

Order 2 central moments to construct the covariance matrix

public double CentralMoments1

Field Value

double

CentralMoments2

Order 2 central moments to construct the covariance matrix

public double CentralMoments2

Field Value

double

ChildPtr

Pointer to the child ERStat

public nint ChildPtr

Field Value

nint

ConvexHullRatio

Convex hull ratio

public float ConvexHullRatio

Field Value

float

CrossingsOwner

Pointer owner to horizontal crossings

public nint CrossingsOwner

Field Value

nint

CrossingsStored

Pointer to horizontal crossings

public nint CrossingsStored

Field Value

nint

Euler

Euler number

public int Euler

Field Value

int

HoleAreaRatio

Hole area ratio

public float HoleAreaRatio

Field Value

float

Level

Threshold (max grey-level value)

public int Level

Field Value

int

MaxProbabilityAncestor

Pointer to the ERStat that is the max probability ancestor

public nint MaxProbabilityAncestor

Field Value

nint

MedCrossings

Median of the crossings at three different height levels

public float MedCrossings

Field Value

float

MinProbabilityAncestor

Pointer to the ERStat that is the min probability ancestor

public nint MinProbabilityAncestor

Field Value

nint

NextPtr

Pointer to the next ERStat

public nint NextPtr

Field Value

nint

NumInflexionPoints

Number of inflexion points

public float NumInflexionPoints

Field Value

float

ParentPtr

Pointer to the parent ERStat

public nint ParentPtr

Field Value

nint

Perimeter

Perimeter

public int Perimeter

Field Value

int

Pixel

Seed point

public int Pixel

Field Value

int

PrevPtr

Pointer to the previous ERStat

public nint PrevPtr

Field Value

nint

RawMoments0

Order 1 raw moments to derive the centroid

public double RawMoments0

Field Value

double

RawMoments1

Order 1 raw moments to derive the centroid

public double RawMoments1

Field Value

double

Rect

Bounding box

public Rectangle Rect

Field Value

Rectangle

probability

Probability that the ER belongs to the class we are looking for

public double probability

Field Value

double

Properties

LocalMaxima

If or not the regions is a local maxima of the probability

public bool LocalMaxima { get; set; }

Property Value

bool

Pixels

Get the pixels list.

public VectorOfInt Pixels { get; }

Property Value

VectorOfInt

Methods

GetCenter(int)

Get the center of the region

public Point GetCenter(int imageWidth)

Parameters

imageWidth int

The source image width

Returns

Point

The center of the region