21 #ifndef TESSERACT_TEXTORD_IMAGEFIND_H_ 22 #define TESSERACT_TEXTORD_IMAGEFIND_H_ 24 #include "debugpixa.h" 37 class ColPartitionGrid;
38 class ColPartition_LIST;
60 Boxa** boxa, Pixa** pixa);
72 double min_fraction,
double max_fraction,
73 double max_skew_gradient,
74 int* x_start,
int* y_start,
75 int* x_end,
int* y_end);
82 int* x_end,
int* y_end);
88 const uint8_t* point);
91 static uint32_t
ComposeRGB(uint32_t r, uint32_t g, uint32_t b);
107 Pix* color_map1, Pix* color_map2,
109 uint8_t* color1, uint8_t* color2);
126 const FCOORD& rotation, Pix* pix);
154 ColPartition_LIST* big_parts);
159 #endif // TESSERACT_TEXTORD_LINEFIND_H_ Definition: colpartitiongrid.h:33
static void ComputeRectangleColors(const TBOX &rect, Pix *pix, int factor, Pix *color_map1, Pix *color_map2, Pix *rms_map, uint8_t *color1, uint8_t *color2)
Definition: imagefind.cpp:415
static void TransferImagePartsToImageMask(const FCOORD &rerotation, ColPartitionGrid *part_grid, Pix *image_mask)
Definition: imagefind.cpp:1246
Definition: baseapi.cpp:94
static bool BlankImageInBetween(const TBOX &box1, const TBOX &box2, const TBOX &im_box, const FCOORD &rotation, Pix *pix)
Definition: imagefind.cpp:577
Definition: imagefind.h:43
static Pix * FindImages(Pix *pix, DebugPixa *pixa_debug)
Definition: imagefind.cpp:63
static void ConnCompAndRectangularize(Pix *pix, DebugPixa *pixa_debug, Boxa **boxa, Pixa **pixa)
Definition: imagefind.cpp:155
static bool pixNearlyRectangular(Pix *pix, double min_fraction, double max_fraction, double max_skew_gradient, int *x_start, int *y_start, int *x_end, int *y_end)
Definition: imagefind.cpp:267
static uint8_t ClipToByte(double pixel)
Definition: imagefind.cpp:397
static int CountPixelsInRotatedBox(TBOX box, const TBOX &im_box, const FCOORD &rotation, Pix *pix)
Definition: imagefind.cpp:598
static double ColorDistanceFromLine(const uint8_t *line1, const uint8_t *line2, const uint8_t *point)
Definition: imagefind.cpp:356
Definition: debugpixa.h:10
static bool BoundsWithinRect(Pix *pix, int *x_start, int *y_start, int *x_end, int *y_end)
Definition: imagefind.cpp:333
Definition: blobbox.h:705
static void FindImagePartitions(Pix *image_pix, const FCOORD &rotation, const FCOORD &rerotation, TO_BLOCK *block, TabFind *tab_grid, DebugPixa *pixa_debug, ColPartitionGrid *part_grid, ColPartition_LIST *big_parts)
Definition: imagefind.cpp:1299
static uint32_t ComposeRGB(uint32_t r, uint32_t g, uint32_t b)
Definition: imagefind.cpp:390