Container for a blob analysis result.
More...
#include <cvb/foundation/blob.hpp>
|
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...
|
|
Container for a blob analysis result.
◆ BoundingBox()
Rect< int > BoundingBox |
( |
| ) |
const |
|
inlinenoexcept |
Bounding box of the blob.
- Returns
- A rectangle describing the bounding box.
- Exceptions
-
Does | not throw any exception. |
◆ Center()
Position of the blob's center.
- Returns
- The center.
- Exceptions
-
Does | not 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
-
Does | not 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
-
Does | not throw any exception. |
◆ MinimumMomentPoints()
Points where the major axis of the blob intersects with the blob's bounding box.
- Returns
- Two intersection points.
- Exceptions
-
Does | not throw any exception. |
◆ MomentAngle()
Angle MomentAngle |
( |
| ) |
const |
|
inlinenoexcept |
Angle between Major moment axis and the x-axis.
- Returns
- The angle.
- Exceptions
-
Does | not throw any exception. |
◆ MomentRatio()
double MomentRatio |
( |
| ) |
const |
|
inlinenoexcept |
Ratio of the minimum moment and the maximum moment of this blob.
- Returns
- The ratio.
- Exceptions
-
Does | not throw any exception. |
◆ Size()
Size (area) of the blob in pixels.
- Returns
- The size.
- Exceptions
-
Does | not throw any exception. |
◆ X()
Get X component of the blob center.
- Returns
- double The X component of the blob center.
- Exceptions
-
Does | not throw any exception. |
◆ Y()
Get Y component of the blob center.
- Returns
- double The Y component of the blob center.
- Exceptions
-
Does | not throw any exception. |