tesseract v5.3.3.20231005
degradeimage.h File Reference
#include <allheaders.h>
#include "helpers.h"
#include "rect.h"

Go to the source code of this file.

Namespaces

namespace  tesseract
 

Functions

Image tesseract::DegradeImage (Image input, int exposure, TRand *randomizer, float *rotation)
 
Image tesseract::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)
 
void tesseract::GeneratePerspectiveDistortion (int width, int height, TRand *randomizer, Image *pix, std::vector< TBOX > *boxes)
 
int tesseract::ProjectiveCoeffs (int width, int height, TRand *randomizer, float **im_coeffs, float **box_coeffs)