Allows to manipulate the Blobs class (filter, etc.)
More...
#include <Blobs.h>
|
| QVector< Blob > | filterArea (int area, const Blobs &blobs) const |
| | Filters blobs according to a minimal area. Removes all blobs with an area smaller than area. More...
|
| |
| QVector< Blob > | filterMar (float maxAspectRatio, int minWidth, const Blobs &blobs) const |
| | Filters blobs according to the size and the aspect ratio. More...
|
| |
| QVector< Blob > | filterAngle (double angle, double maxAngleDiff, const Blobs &blobs) const |
| | Filters blobs according to their orientation. More...
|
| |
| cv::Mat | drawBlobs (const Blobs &blobs, cv::Scalar color=cv::Scalar(255, 255, 255)) const |
| | Draws the blobs and returns a CV_8UC1 image. More...
|
| |
| QVector< Line > | lines (const Blobs &blobs) const |
| | Assumes all blobs as lines and fit a Line based on the minimum area rectangle. More...
|
| |
| Blob | getBiggestBlob (const Blobs &blobs) const |
| | Gets the biggest BLOB. More...
|
| |
Allows to manipulate the Blobs class (filter, etc.)
| cv::Mat rdf::BlobManager::drawBlobs |
( |
const Blobs & |
blobs, |
|
|
cv::Scalar |
color = cv::Scalar(255, 255, 255) |
|
) |
| const |
Draws the blobs and returns a CV_8UC1 image.
- Parameters
-
| blobs | The blobs. |
| color | The color of the blobs. |
- Returns
- A CV_8UC1 image containing all blobs.
| QVector< Blob > rdf::BlobManager::filterAngle |
( |
double |
angle, |
|
|
double |
maxAngleDiff, |
|
|
const Blobs & |
blobs |
|
) |
| const |
Filters blobs according to their orientation.
- Parameters
-
| angle | The specified orientation angle in rad. |
| maxAngleDiff | The maximum angle difference in degree. |
| blobs | The blobs. |
- Returns
- The filtered blob vector
| QVector< Blob > rdf::BlobManager::filterArea |
( |
int |
threshArea, |
|
|
const Blobs & |
blobs |
|
) |
| const |
Filters blobs according to a minimal area. Removes all blobs with an area smaller than area.
- Parameters
-
| area | The area threshold. |
| blobs | The blobs. |
- Returns
- The filtered blob vector
| QVector< Blob > rdf::BlobManager::filterMar |
( |
float |
maxAspectRatio, |
|
|
int |
minWidth, |
|
|
const Blobs & |
blobs |
|
) |
| const |
Filters blobs according to the size and the aspect ratio.
- Parameters
-
| maxAspectRatio | The maximum aspect ratio. |
| minWidth | The minimum width. |
| blobs | The blobs. |
- Returns
- The filtered blob vector.
| Blob rdf::BlobManager::getBiggestBlob |
( |
const Blobs & |
blobs | ) |
const |
Gets the biggest BLOB.
- Parameters
-
- Returns
- The biggest blob.
Creates an instance or return the instance.
- Returns
- The instance of BlobManager.
| QVector< Line > rdf::BlobManager::lines |
( |
const Blobs & |
blobs | ) |
const |
Assumes all blobs as lines and fit a Line based on the minimum area rectangle.
- Parameters
-
- Returns
- The line vector.
The documentation for this class was generated from the following files: