ReadFramework
|
This class represents a single instance of super pixels which are needed for the layout analysis. More...
#include <Pixel.h>
Public Types | |
enum | DrawFlag { draw_ellipse_only = 0, draw_stats_only, draw_ellipse_stats, draw_all, draw_end } |
Public Member Functions | |
Pixel () | |
Pixel (const Ellipse &ellipse, const Rect &bbox, const QString &id=QString()) | |
bool | isNull () const |
Vector2D | center () const |
Rect | bbox () const |
Vector2D | size () const |
double | angle () const |
Ellipse | ellipse () const |
void | addStats (const QSharedPointer< PixelStats > &stats) |
QSharedPointer< PixelStats > | stats (int idx=-1) const |
void | setTabStop (const PixelTabStop &tabStop) |
PixelTabStop | tabStop () const |
Returns tab stop statistics or NULL if tab stops are not computed. PixelTabStop stores if the Pixel is a tab stop (left/right) candidate or not. More... | |
void | setLabel (const PixelLabel &label) |
PixelLabel | label () const |
cv::KeyPoint | toKeyPoint () const |
void | draw (QPainter &p, double alpha=0.3, const DrawFlag &df=draw_stats_only) 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 | |
bool | mIsNull = true |
Ellipse | mEllipse |
Rect | mBBox |
QVector< QSharedPointer < PixelStats > > | mStats |
PixelTabStop | mTabStop |
PixelLabel | mLabel |
![]() | |
QString | mId |
This class represents a single instance of super pixels which are needed for the layout analysis.
enum rdf::Pixel::DrawFlag |
rdf::Pixel::Pixel | ( | ) |
void rdf::Pixel::addStats | ( | const QSharedPointer< PixelStats > & | stats | ) |
double rdf::Pixel::angle | ( | ) | const |
|
inline |
|
inline |
void rdf::Pixel::draw | ( | QPainter & | p, |
double | alpha = 0.3 , |
||
const DrawFlag & | df = draw_stats_only |
||
) | const |
Ellipse rdf::Pixel::ellipse | ( | ) | const |
bool rdf::Pixel::isNull | ( | ) | const |
PixelLabel rdf::Pixel::label | ( | ) | const |
void rdf::Pixel::setLabel | ( | const PixelLabel & | label | ) |
void rdf::Pixel::setTabStop | ( | const PixelTabStop & | tabStop | ) |
Vector2D rdf::Pixel::size | ( | ) | const |
QSharedPointer< PixelStats > rdf::Pixel::stats | ( | int | idx = -1 | ) | const |
PixelTabStop rdf::Pixel::tabStop | ( | ) | const |
Returns tab stop statistics or NULL if tab stops are not computed. PixelTabStop stores if the Pixel is a tab stop (left/right) candidate or not.
cv::KeyPoint rdf::Pixel::toKeyPoint | ( | ) | const |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |