tesseract
5.0.0-alpha-619-ge9db
|
Go to the documentation of this file.
20 #ifndef TESSERACT_TEXTORD_IMAGEFIND_H_
21 #define TESSERACT_TEXTORD_IMAGEFIND_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_
static bool BoundsWithinRect(Pix *pix, int *x_start, int *y_start, int *x_end, int *y_end)
static int CountPixelsInRotatedBox(TBOX box, const TBOX &im_box, const FCOORD &rotation, Pix *pix)
static void ConnCompAndRectangularize(Pix *pix, DebugPixa *pixa_debug, Boxa **boxa, Pixa **pixa)
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)
static bool BlankImageInBetween(const TBOX &box1, const TBOX &box2, const TBOX &im_box, const FCOORD &rotation, Pix *pix)
static void TransferImagePartsToImageMask(const FCOORD &rerotation, ColPartitionGrid *part_grid, Pix *image_mask)
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)
static Pix * FindImages(Pix *pix, DebugPixa *pixa_debug)
static uint8_t ClipToByte(double pixel)
static double ColorDistanceFromLine(const uint8_t *line1, const uint8_t *line2, const uint8_t *point)
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)
static uint32_t ComposeRGB(uint32_t r, uint32_t g, uint32_t b)