CVB++ 14.0
BlobResult Class Referencefinal

Container for a blob analysis result. More...

#include <cvb/foundation/blob.hpp>

Public Member Functions

double X () const noexcept
 Get X component of the blob center. More...
 
double Y () const noexcept
 Get Y component of the blob center. More...
 
Point2D< double > Center () const noexcept
 Position of the blob's center. More...
 
double Size () const noexcept
 Size (area) of the blob in pixels. More...
 
Rect< int > BoundingBox () const noexcept
 Bounding box of the blob. More...
 
double MinimumMoment () const noexcept
 Minimum inertial moment (smaller 2nd order moment translated into the blob's major/minor axis coordinate system) of the blob. More...
 
double MaximumMoment () const noexcept
 Maximum inertial moment (larger 2nd order moments translated into the blob's major/minor axis coordinate system) of the blob. More...
 
double MomentRatio () const noexcept
 Ratio of the minimum moment and the maximum moment of this blob. More...
 
Angle MomentAngle () const noexcept
 Angle between Major moment axis and the x-axis. More...
 
std::vector< Point2D< int > > MinimumMomentPoints () const
 Points where the major axis of the blob intersects with the blob's bounding box. More...
 

Detailed Description

Container for a blob analysis result.

Member Function Documentation

◆ BoundingBox()

Rect< int > BoundingBox ( ) const
inlinenoexcept

Bounding box of the blob.

Returns
A rectangle describing the bounding box.
Exceptions
Doesnot throw any exception.

◆ Center()

Point2D< double > Center ( ) const
inlinenoexcept

Position of the blob's center.

Returns
The center.
Exceptions
Doesnot throw any exception.

◆ MaximumMoment()

double MaximumMoment ( ) const
inlinenoexcept

Maximum inertial moment (larger 2nd order moments translated into the blob's major/minor axis coordinate system) of the blob.

Returns
The moment value.
Exceptions
Doesnot throw any exception.

◆ MinimumMoment()

double MinimumMoment ( ) const
inlinenoexcept

Minimum inertial moment (smaller 2nd order moment translated into the blob's major/minor axis coordinate system) of the blob.

Returns
The moment value.
Exceptions
Doesnot throw any exception.

◆ MinimumMomentPoints()

std::vector< Point2D< int > > MinimumMomentPoints ( ) const
inline

Points where the major axis of the blob intersects with the blob's bounding box.

Returns
Two intersection points.
Exceptions
Doesnot throw any exception.

◆ MomentAngle()

Angle MomentAngle ( ) const
inlinenoexcept

Angle between Major moment axis and the x-axis.

Returns
The angle.
Exceptions
Doesnot throw any exception.

◆ MomentRatio()

double MomentRatio ( ) const
inlinenoexcept

Ratio of the minimum moment and the maximum moment of this blob.

Returns
The ratio.
Exceptions
Doesnot throw any exception.

◆ Size()

double Size ( ) const
inlinenoexcept

Size (area) of the blob in pixels.

Returns
The size.
Exceptions
Doesnot throw any exception.

◆ X()

double X ( ) const
inlinenoexcept

Get X component of the blob center.

Returns
double The X component of the blob center.
Exceptions
Doesnot throw any exception.

◆ Y()

double Y ( ) const
inlinenoexcept

Get Y component of the blob center.

Returns
double The Y component of the blob center.
Exceptions
Doesnot throw any exception.