ReadFramework
rdf::MserBlob Class Reference

#include <Pixel.h>

Inheritance diagram for rdf::MserBlob:
Collaboration diagram for rdf::MserBlob:

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< PixeltoPixel () const
 
cv::Mat toBinaryMask () const
 
double overlapArea (const Rect &r) const
 
- Public Member Functions inherited from rdf::BaseElement
 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...
 
void setId (const QString &id)
 Sets the (preferably unique) ID. If no ID is set, a unqiue ID is generated and assigned. More...
 
QString id () const
 Returns the elment's id. More...
 
virtual QString toString () const
 
virtual void scale (double factor)
 

Protected Attributes

Vector2D mCenter
 
Rect mBBox
 
std::vector< cv::Point > mPts
 
- Protected Attributes inherited from rdf::BaseElement
QString mId
 

Constructor & Destructor Documentation

rdf::MserBlob::MserBlob ( const std::vector< cv::Point > &  pts = std::vector<cv::Point>(),
const Rect bbox = Rect(),
const QString &  id = QString() 
)

Member Function Documentation

double rdf::MserBlob::area ( ) const
Rect rdf::MserBlob::bbox ( ) const

Here is the caller graph for this function:

Vector2D rdf::MserBlob::center ( ) const

Here is the caller graph for this function:

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

Here is the caller graph for this function:

std::vector< cv::Point > rdf::MserBlob::relativePts ( const Vector2D origin) const

Here is the caller graph for this function:

cv::Mat rdf::MserBlob::toBinaryMask ( ) const
QSharedPointer< Pixel > rdf::MserBlob::toPixel ( ) const

Member Data Documentation

Rect rdf::MserBlob::mBBox
protected
Vector2D rdf::MserBlob::mCenter
protected
std::vector<cv::Point> rdf::MserBlob::mPts
protected

The documentation for this class was generated from the following files: