#include <cube_line_segmenter.h>
List of all members.
Detailed Description
Definition at line 34 of file cube_line_segmenter.h.
Constructor & Destructor Documentation
tesseract::CubeLineSegmenter::CubeLineSegmenter |
( |
CubeRecoContext * |
cntxt, |
|
|
Pix * |
img |
|
) |
| |
Definition at line 36 of file cube_line_segmenter.cpp.
{
cntxt_ = cntxt;
orig_img_ = img;
init_ = false;
line_cnt_ = 0;
est_alef_hgt_ = 0.0;
est_dot_hgt_ = 0.0;
}
tesseract::CubeLineSegmenter::~CubeLineSegmenter |
( |
| ) |
|
Definition at line 49 of file cube_line_segmenter.cpp.
{
pixDestroy(&img_);
}
if (lines_pixa_ !=
NULL) {
pixaDestroy(&lines_pixa_);
}
if (con_comps_ !=
NULL) {
pixaDestroy(&con_comps_);
}
pixaaDestroy(&columns_);
}
}
Member Function Documentation
double tesseract::CubeLineSegmenter::AlefHgtEst |
( |
| ) |
|
|
inline |
Box* tesseract::CubeLineSegmenter::Column |
( |
int |
col | ) |
|
|
inline |
Definition at line 52 of file cube_line_segmenter.h.
{
if (init_ == false && Init() == false) {
}
return columns_->boxa->box[col];
}
int tesseract::CubeLineSegmenter::ColumnCnt |
( |
| ) |
|
|
inline |
Definition at line 46 of file cube_line_segmenter.h.
{
if (init_ == false && Init() == false) {
}
return columns_->n;
}
Pixaa* tesseract::CubeLineSegmenter::Columns |
( |
| ) |
|
|
inline |
Definition at line 73 of file cube_line_segmenter.h.
{
if (init_ == false && Init() == false) {
}
return columns_;
}
Pixa* tesseract::CubeLineSegmenter::ConComps |
( |
| ) |
|
|
inline |
Definition at line 66 of file cube_line_segmenter.h.
{
if (init_ == false && Init() == false) {
}
return con_comps_;
}
double tesseract::CubeLineSegmenter::DotHgtEst |
( |
| ) |
|
|
inline |
Pix * tesseract::CubeLineSegmenter::Line |
( |
int |
line, |
|
|
Box ** |
line_box |
|
) |
| |
Definition at line 866 of file cube_line_segmenter.cpp.
{
if (init_ == false && Init() == false) {
}
if (line < 0 || line >= line_cnt_) {
}
(*line_box) = lines_pixa_->boxa->box[line];
return lines_pixa_->pix[line];
}
int tesseract::CubeLineSegmenter::LineCnt |
( |
| ) |
|
|
inline |
Definition at line 59 of file cube_line_segmenter.h.
{
if (init_ == false && Init() == false) {
}
return line_cnt_;
}
Pix* tesseract::CubeLineSegmenter::PostProcessedImage |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following files: