#include <TextLineSegmentation.h>
|
static cv::Mat | draw (const cv::Mat &img, const QVector< QSharedPointer< TextLineSet > > &textLines, const QColor &col=QColor()) |
|
rdf::TextLineSegmentation::TextLineSegmentation |
( |
const PixelSet & |
set = PixelSet() | ) |
|
void rdf::TextLineSegmentation::addSeparatorLines |
( |
const QVector< Line > & |
lines | ) |
|
bool rdf::TextLineSegmentation::compute |
( |
| ) |
|
|
overridevirtual |
Runs the algorithm implemented by the module.
- Returns
- True on success.
Implements rdf::Module.
bool rdf::TextLineSegmentation::compute |
( |
const cv::Mat & |
img | ) |
|
QSharedPointer< TextLineConfig > rdf::TextLineSegmentation::config |
( |
| ) |
const |
cv::Mat rdf::TextLineSegmentation::draw |
( |
const cv::Mat & |
img, |
|
|
const QColor & |
col = QColor() |
|
) |
| const |
cv::Mat rdf::TextLineSegmentation::draw |
( |
const cv::Mat & |
img, |
|
|
const QVector< QSharedPointer< TextLineSet > > & |
textLines, |
|
|
const QColor & |
col = QColor() |
|
) |
| |
|
static |
bool rdf::TextLineSegmentation::isEmpty |
( |
| ) |
const |
|
overridevirtual |
Returns true if the module was initialized with the default constructor. Note, if empty is true, nothing can be computed.
- Returns
- Returns true if the module was initialized.
Implements rdf::Module.
void rdf::TextLineSegmentation::scale |
( |
double |
s | ) |
|
QVector< QSharedPointer< TextLine > > rdf::TextLineSegmentation::textLines |
( |
| ) |
const |
QVector< QSharedPointer< TextLineSet > > rdf::TextLineSegmentation::textLineSets |
( |
| ) |
const |
QString rdf::TextLineSegmentation::toString |
( |
| ) |
const |
|
overridevirtual |
Converts the module's parameters and results to a string.
- Returns
- The string containing all parameters and results of the module.
Reimplemented from rdf::Module.
The documentation for this class was generated from the following files: