Read@CVL
rdf::TextBlockSet Class Reference

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>

Inheritance diagram for rdf::TextBlockSet:
Collaboration diagram for rdf::TextBlockSet:

Public Member Functions

 TextBlockSet (const QVector< Polygon > &regions=QVector< Polygon >())
 
 TextBlockSet (const QVector< QSharedPointer< Region >> &regions)
 
void operator<< (const TextBlock &block)
 
bool isEmpty () const
 
void scale (double factor) override
 
void setPixels (const PixelSet &ps)
 
QVector< QSharedPointer< TextBlock > > textBlocks () const
 
QSharedPointer< RegiontoTextRegion () 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
 

Detailed Description

Stores all text blocks. This class is used to group super pixels with respect to layout constrains (e.g. text columns)

See also
BaseElement

Constructor & Destructor Documentation

rdf::TextBlockSet::TextBlockSet ( const QVector< Polygon > &  regions = QVector<Polygon>())
rdf::TextBlockSet::TextBlockSet ( const QVector< QSharedPointer< Region >> &  regions)

Member Function Documentation

bool rdf::TextBlockSet::isEmpty ( ) const
void rdf::TextBlockSet::operator<< ( const TextBlock block)
void rdf::TextBlockSet::removeWeakTextLines ( ) const
void rdf::TextBlockSet::scale ( double  factor)
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

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