ReadFramework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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...
 
QString id () const
 Returns the elment's id. More...
 

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
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

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: