19#ifndef TESSERACT_TRAINING_DEGRADEIMAGE_H_
20#define TESSERACT_TRAINING_DEGRADEIMAGE_H_
22#include <allheaders.h>
33Image
DegradeImage(Image input,
int exposure, TRand *randomizer,
float *rotation);
41 bool smooth_noise,
bool blur,
int box_reduction, TRand *randomizer,
42 std::vector<TBOX> *boxes);
47 std::vector<TBOX> *boxes);
52int ProjectiveCoeffs(
int width,
int height, TRand *randomizer,
float **im_coeffs,
Image PrepareDistortedPix(const Image pix, bool perspective, bool invert, bool white_noise, bool smooth_noise, bool blur, int box_reduction, TRand *randomizer, std::vector< TBOX > *boxes)
int ProjectiveCoeffs(int width, int height, TRand *randomizer, float **im_coeffs, float **box_coeffs)
void GeneratePerspectiveDistortion(int width, int height, TRand *randomizer, Image *pix, std::vector< TBOX > *boxes)
Image DegradeImage(Image input, int exposure, TRand *randomizer, float *rotation)