|
tesseract 3.04.01
|
#include <cube_line_segmenter.h>
Public Member Functions | |
| CubeLineSegmenter (CubeRecoContext *cntxt, Pix *img) | |
| ~CubeLineSegmenter () | |
| Pix * | PostProcessedImage () |
| int | ColumnCnt () |
| Box * | Column (int col) |
| int | LineCnt () |
| Pixa * | ConComps () |
| Pixaa * | Columns () |
| double | AlefHgtEst () |
| double | DotHgtEst () |
| Pix * | Line (int line, Box **line_box) |
Definition at line 34 of file cube_line_segmenter.h.
| tesseract::CubeLineSegmenter::CubeLineSegmenter | ( | CubeRecoContext * | cntxt, |
| Pix * | img | ||
| ) |
Definition at line 37 of file cube_line_segmenter.cpp.
| tesseract::CubeLineSegmenter::~CubeLineSegmenter | ( | ) |
Definition at line 50 of file cube_line_segmenter.cpp.
{
pixDestroy(&img_);
img_ = NULL;
}
if (lines_pixa_ != NULL) {
pixaDestroy(&lines_pixa_);
lines_pixa_ = NULL;
}
if (con_comps_ != NULL) {
pixaDestroy(&con_comps_);
con_comps_ = NULL;
}
if (columns_ != NULL) {
pixaaDestroy(&columns_);
columns_ = NULL;
}
}
| double tesseract::CubeLineSegmenter::AlefHgtEst | ( | ) | [inline] |
Definition at line 80 of file cube_line_segmenter.h.
{ return est_alef_hgt_; }
| Box* tesseract::CubeLineSegmenter::Column | ( | int | col | ) | [inline] |
Definition at line 52 of file cube_line_segmenter.h.
{
if (init_ == false && Init() == false) {
return NULL;
}
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 0;
}
return columns_->n;
}
| Pixaa* tesseract::CubeLineSegmenter::Columns | ( | ) | [inline] |
Definition at line 73 of file cube_line_segmenter.h.
{
if (init_ == false && Init() == false) {
return NULL;
}
return columns_;
}
| Pixa* tesseract::CubeLineSegmenter::ConComps | ( | ) | [inline] |
Definition at line 66 of file cube_line_segmenter.h.
{
if (init_ == false && Init() == false) {
return NULL;
}
return con_comps_;
}
| double tesseract::CubeLineSegmenter::DotHgtEst | ( | ) | [inline] |
Definition at line 81 of file cube_line_segmenter.h.
{ return est_dot_hgt_; }
| Pix * tesseract::CubeLineSegmenter::Line | ( | int | line, |
| Box ** | line_box | ||
| ) |
Definition at line 877 of file cube_line_segmenter.cpp.
{
return NULL;
}
if (line < 0 || line >= line_cnt_) {
return NULL;
}
(*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 0;
}
return line_cnt_;
}
| Pix* tesseract::CubeLineSegmenter::PostProcessedImage | ( | ) | [inline] |
Definition at line 40 of file cube_line_segmenter.h.
{
if (init_ == false && Init() == false) {
return NULL;
}
return img_;
}