ReadFramework
|
#include <Pixel.h>
Public Member Functions | |
MserBlob (const std::vector< cv::Point > &pts=std::vector< cv::Point >(), const Rect &bbox=Rect(), const QString &id=QString()) | |
bool | isNull () const |
double | area () const |
Vector2D | center () const |
Rect | bbox () const |
std::vector< cv::Point > | pts () const |
std::vector< cv::Point > | relativePts (const Vector2D &origin) const |
void | draw (QPainter &p) |
QSharedPointer< Pixel > | toPixel () const |
cv::Mat | toBinaryMask () const |
double | overlapArea (const Rect &r) const |
![]() | |
BaseElement (const QString &id=QString()) | |
This class keeps an ID to keep track of transformed elements during a processing chain. You can e.g. generate Pixel elements from MserBlobs. After filtering, processing etc. you can map back to the (pixel accurate) MserBlob using this ID. More... | |
QString | id () const |
Returns the elment's id. More... | |
Protected Attributes | |
Vector2D | mCenter |
Rect | mBBox |
std::vector< cv::Point > | mPts |
![]() | |
QString | mId |
rdf::MserBlob::MserBlob | ( | const std::vector< cv::Point > & | pts = std::vector<cv::Point>() , |
const Rect & | bbox = Rect() , |
||
const QString & | id = QString() |
||
) |
double rdf::MserBlob::area | ( | ) | const |
Rect rdf::MserBlob::bbox | ( | ) | const |
Vector2D rdf::MserBlob::center | ( | ) | const |
void rdf::MserBlob::draw | ( | QPainter & | p | ) |
bool rdf::MserBlob::isNull | ( | ) | const |
double rdf::MserBlob::overlapArea | ( | const Rect & | r | ) | const |
std::vector< cv::Point > rdf::MserBlob::pts | ( | ) | const |
std::vector< cv::Point > rdf::MserBlob::relativePts | ( | const Vector2D & | origin | ) | const |
cv::Mat rdf::MserBlob::toBinaryMask | ( | ) | const |
QSharedPointer< Pixel > rdf::MserBlob::toPixel | ( | ) | const |
|
protected |
|
protected |
|
protected |