tesseract 4.1.1
Loading...
Searching...
No Matches
degradeimage.cpp File Reference
#include "degradeimage.h"
#include <cstdlib>
#include "allheaders.h"
#include "genericvector.h"
#include "helpers.h"
#include "rect.h"

Go to the source code of this file.

Namespaces

namespace  tesseract
 

Enumerations

enum  tesseract::FactorNames {
  tesseract::FN_INCOLOR , tesseract::FN_Y0 , tesseract::FN_Y1 , tesseract::FN_Y2 ,
  tesseract::FN_Y3 , tesseract::FN_X0 , tesseract::FN_X1 , tesseract::FN_SHEAR ,
  tesseract::FN_NUM_FACTORS
}
 

Functions

Pix * tesseract::DegradeImage (Pix *input, int exposure, TRand *randomizer, float *rotation)
 
Pix * tesseract::PrepareDistortedPix (const Pix *pix, bool perspective, bool invert, bool white_noise, bool smooth_noise, bool blur, int box_reduction, TRand *randomizer, GenericVector< TBOX > *boxes)
 
void tesseract::GeneratePerspectiveDistortion (int width, int height, TRand *randomizer, Pix **pix, GenericVector< TBOX > *boxes)
 
int tesseract::ProjectiveCoeffs (int width, int height, TRand *randomizer, float **im_coeffs, float **box_coeffs)
 

Variables

const float tesseract::kRotationRange = 0.02f
 
const int tesseract::kExposureFactor = 16
 
const int tesseract::kSaltnPepper = 5
 
const int tesseract::kMinRampSize = 1000