91 BLOBNBOX_IT blob_it(&blob_block->
blobs);
92 for (blob_it.mark_cycle_pt(); !blob_it.cycled_list(); blob_it.forward()) {
95 perimeter_area_ratio *= perimeter_area_ratio / blob->
enclosed_area();
99 good_grid.InsertBBox(
true,
true, blob);
101 noise_density_ = ComputeNoiseDensity(debug, photo_map, &good_grid);
105 pixWrite(
"junknoisemask.png", pix, IFF_PNG);
108 #ifndef GRAPHICS_DISABLED
112 #endif // GRAPHICS_DISABLED
115 MarkAndDeleteNonTextBlobs(&blob_block->
large_blobs,
123 MarkAndDeleteNonTextBlobs(&blob_block->
large_blobs,
128 MarkAndDeleteNonTextBlobs(&blob_block->
noise_blobs, -1,
130 MarkAndDeleteNonTextBlobs(&blob_block->
small_blobs, -1,
132 MarkAndDeleteNonTextBlobs(&blob_block->
blobs, -1,
135 #ifndef GRAPHICS_DISABLED
137 #endif // GRAPHICS_DISABLED
138 pixWrite(
"junkccphotomask.png", pix, IFF_PNG);
139 #ifndef GRAPHICS_DISABLED
142 #endif // GRAPHICS_DISABLED
BLOBNBOX_LIST noise_blobs
inT32 enclosed_area() const
BlobGrid(int gridsize, const ICOORD &bleft, const ICOORD &tright)
const int kMaxLargeOverlapsWithMedium
const int kMaxMediumOverlapsWithSmall
const double kMinGoodTextPARatio
Pix * ThresholdToPix(int threshold) const
BLOBNBOX_LIST small_blobs
void InsertBlobList(BLOBNBOX_LIST *blobs)
const ICOORD & tright() const
void InsertBBox(bool h_spread, bool v_spread, BLOBNBOX *bbox)
BLOBNBOX_LIST large_blobs
const ICOORD & bleft() const
ScrollView * MakeWindow(int x, int y, const char *window_name)
const int kMaxLargeOverlapsWithSmall