#include <ccnontextdetect.h>
|
| | CCNonTextDetect (int gridsize, const ICOORD &bleft, const ICOORD &tright) |
| |
| | ~CCNonTextDetect () override |
| |
| Pix * | ComputeNonTextMask (bool debug, Pix *photo_map, TO_BLOCK *blob_block) |
| |
| | BlobGrid (int gridsize, const ICOORD &bleft, const ICOORD &tright) |
| |
| | ~BlobGrid () override |
| |
| void | InsertBlobList (BLOBNBOX_LIST *blobs) |
| |
| | BBGrid () |
| |
| | BBGrid (int gridsize, const ICOORD &bleft, const ICOORD &tright) |
| |
| | ~BBGrid () override |
| |
| void | Init (int gridsize, const ICOORD &bleft, const ICOORD &tright) |
| |
| void | Clear () |
| |
| void | ClearGridData (void(*free_method)(BLOBNBOX *)) |
| |
| void | InsertBBox (bool h_spread, bool v_spread, BLOBNBOX *bbox) |
| |
| void | InsertPixPtBBox (int left, int bottom, Pix *pix, BLOBNBOX *bbox) |
| |
| void | RemoveBBox (BLOBNBOX *bbox) |
| |
| bool | RectangleEmpty (const TBOX &rect) |
| |
| IntGrid * | CountCellElements () |
| |
| ScrollView * | MakeWindow (int x, int y, const char *window_name) |
| |
| void | DisplayBoxes (ScrollView *window) |
| |
| void | AssertNoDuplicates () |
| |
| virtual void | HandleClick (int x, int y) |
| |
| | GridBase ()=default |
| |
| | GridBase (int gridsize, const ICOORD &bleft, const ICOORD &tright) |
| |
| virtual | ~GridBase () |
| |
| void | Init (int gridsize, const ICOORD &bleft, const ICOORD &tright) |
| |
| int | gridsize () const |
| |
| int | gridwidth () const |
| |
| int | gridheight () const |
| |
| const ICOORD & | bleft () const |
| |
| const ICOORD & | tright () const |
| |
| void | GridCoords (int x, int y, int *grid_x, int *grid_y) const |
| |
| void | ClipGridCoords (int *x, int *y) const |
| |
Definition at line 31 of file ccnontextdetect.h.
◆ CCNonTextDetect()
| tesseract::CCNonTextDetect::CCNonTextDetect |
( |
int |
gridsize, |
|
|
const ICOORD & |
bleft, |
|
|
const ICOORD & |
tright |
|
) |
| |
◆ ~CCNonTextDetect()
| tesseract::CCNonTextDetect::~CCNonTextDetect |
( |
| ) |
|
|
override |
◆ ComputeNonTextMask()
| Pix * tesseract::CCNonTextDetect::ComputeNonTextMask |
( |
bool |
debug, |
|
|
Pix * |
photo_map, |
|
|
TO_BLOCK * |
blob_block |
|
) |
| |
Definition at line 85 of file ccnontextdetect.cpp.
94 BLOBNBOX_IT blob_it(&blob_block->
blobs);
95 for (blob_it.mark_cycle_pt(); !blob_it.cycled_list(); blob_it.forward()) {
98 perimeter_area_ratio *= perimeter_area_ratio / blob->
enclosed_area();
102 good_grid.InsertBBox(
true,
true, blob);
104 noise_density_ = ComputeNoiseDensity(debug, photo_map, &good_grid);
108 pixWrite(
"junknoisemask.png", pix, IFF_PNG);
111 #ifndef GRAPHICS_DISABLED
115 #endif // GRAPHICS_DISABLED
118 MarkAndDeleteNonTextBlobs(&blob_block->
large_blobs,
126 MarkAndDeleteNonTextBlobs(&blob_block->
large_blobs,
131 MarkAndDeleteNonTextBlobs(&blob_block->
noise_blobs, -1,
133 MarkAndDeleteNonTextBlobs(&blob_block->
small_blobs, -1,
135 MarkAndDeleteNonTextBlobs(&blob_block->
blobs, -1,
138 #ifndef GRAPHICS_DISABLED
140 #endif // GRAPHICS_DISABLED
141 pixWrite(
"junkccphotomask.png", pix, IFF_PNG);
142 #ifndef GRAPHICS_DISABLED
145 #endif // GRAPHICS_DISABLED
The documentation for this class was generated from the following files: