#include <cube_line_object.h>
List of all members.
Detailed Description
Definition at line 32 of file cube_line_object.h.
Constructor & Destructor Documentation
tesseract::CubeLineObject::CubeLineObject |
( |
CubeRecoContext * |
cntxt, |
|
|
Pix * |
pix |
|
) |
| |
Definition at line 24 of file cube_line_object.cpp.
{
line_pix_ = pix;
own_pix_ = false;
processed_ = false;
cntxt_ = cntxt;
phrase_cnt_ = 0;
}
tesseract::CubeLineObject::~CubeLineObject |
( |
| ) |
|
Definition at line 33 of file cube_line_object.cpp.
{
if (line_pix_ !=
NULL && own_pix_ ==
true) {
pixDestroy(&line_pix_);
}
for (int phrase_idx = 0; phrase_idx < phrase_cnt_; phrase_idx++) {
if (phrases_[phrase_idx] !=
NULL) {
delete phrases_[phrase_idx];
}
}
delete []phrases_;
}
}
Member Function Documentation
int tesseract::CubeLineObject::PhraseCount |
( |
| ) |
|
|
inline |
Definition at line 38 of file cube_line_object.h.
{
if (!processed_ && !Process()) {
return 0;
}
return phrase_cnt_;
}
CubeObject** tesseract::CubeLineObject::Phrases |
( |
| ) |
|
|
inline |
Definition at line 44 of file cube_line_object.h.
{
if (!processed_ && !Process()) {
}
return phrases_;
}
The documentation for this class was generated from the following files: