Read@CVL
|
Stores all text blocks. This class is used to group super pixels with respect to layout constrains (e.g. text columns) More...
#include <PixelSet.h>
Public Member Functions | |
TextBlockSet (const QVector< Polygon > ®ions=QVector< Polygon >()) | |
TextBlockSet (const QVector< QSharedPointer< Region >> ®ions) | |
void | operator<< (const TextBlock &block) |
bool | isEmpty () const |
void | scale (double factor) override |
void | setPixels (const PixelSet &ps) |
QVector< QSharedPointer< TextBlock > > | textBlocks () const |
QSharedPointer< Region > | toTextRegion () const |
void | removeWeakTextLines () 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 |
Additional Inherited Members | |
Protected Attributes inherited from rdf::BaseElement | |
QString | mId |
Stores all text blocks. This class is used to group super pixels with respect to layout constrains (e.g. text columns)
rdf::TextBlockSet::TextBlockSet | ( | const QVector< QSharedPointer< Region >> & | regions | ) |
bool rdf::TextBlockSet::isEmpty | ( | ) | const |
void rdf::TextBlockSet::operator<< | ( | const TextBlock & | block | ) |
void rdf::TextBlockSet::removeWeakTextLines | ( | ) | const |
|
overridevirtual |
Reimplemented from rdf::BaseElement.
void rdf::TextBlockSet::setPixels | ( | const PixelSet & | ps | ) |
QVector< QSharedPointer< TextBlock > > rdf::TextBlockSet::textBlocks | ( | ) | const |
QSharedPointer< Region > rdf::TextBlockSet::toTextRegion | ( | ) | const |