Leptonica 1.68
C Image Processing Library
|
Tests various affine transformations: pixAffineSequential(), pixAffineSampledPta(), pixAffinePta(), and pixAffine(). More...
#include "allheaders.h"
Go to the source code of this file.
Defines | |
#define | ADDED_BORDER_PIXELS 1000 |
#define | ALL 0 |
Functions | |
static void | MakePtas (l_int32 i, PTA **pptas, PTA **pptad) |
l_int32 | RenderHashedBoxa (PIX *pixt, BOXA *boxa, l_int32 i) |
main (int argc, char **argv) | |
Variables | |
static const l_int32 | x1 [] = { 300, 300, 300, 95, 32} |
static const l_int32 | y1 [] = {1200, 1200, 1250, 2821, 934} |
static const l_int32 | x2 [] = {1200, 1200, 1125, 1432, 487} |
static const l_int32 | y2 [] = {1100, 1100, 1100, 2682, 934} |
static const l_int32 | x3 [] = { 200, 200, 200, 232, 32} |
static const l_int32 | y3 [] = { 200, 200, 200, 657, 67} |
static const l_int32 | xp1 [] = { 500, 300, 350, 117, 32} |
static const l_int32 | yp1 [] = {1700, 1400, 1400, 2629, 934} |
static const l_int32 | xp2 [] = {850, 1400, 1400, 1464, 487} |
static const l_int32 | yp2 [] = {850, 1500, 1500, 2432, 804} |
static const l_int32 | xp3 [] = { 450, 200, 400, 183, 61} |
static const l_int32 | yp3 [] = { 300, 300, 400, 490, 83} |
static const l_int32 | SHIFTX = 44 |
static const l_int32 | SHIFTY = 39 |
static const l_float32 | SCALEX = 0.83 |
static const l_float32 | SCALEY = 0.78 |
static const l_float32 | ROTATION = 0.11 |
Tests various affine transformations: pixAffineSequential(), pixAffineSampledPta(), pixAffinePta(), and pixAffine().
Definition in file affine_reg.c.
#define ADDED_BORDER_PIXELS 1000 |
Definition at line 52 of file affine_reg.c.
Referenced by main().
#define ALL 0 |
Definition at line 53 of file affine_reg.c.
Definition at line 364 of file affine_reg.c.
References boxaGetBox(), boxaGetCount(), boxDestroy(), L_CLONE, and pixRenderHashBoxArb().
Referenced by main().
main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 56 of file affine_reg.c.
References ADDED_BORDER_PIXELS, affineInvertXform(), boxaAffineTransform(), boxaDestroy(), createMatrix2dRotate(), createMatrix2dScale(), createMatrix2dTranslate(), ERROR_INT, IFF_PNG, L_BRING_IN_WHITE, l_productMat3(), lept_free(), MakePtas(), NULL, pixaCreate(), pixAddBorder(), pixaDestroy(), pixaDisplay(), pixAffine(), pixAffinePta(), pixAffineSampledPta(), pixAffineSequential(), pixCloseBrick(), pixConnComp(), pixConvertTo32(), pixCopy(), pixDestroy(), pixDisplay(), pixGetDimensions(), pixOpenBrick(), pixRead(), pixRemoveBorder(), pixSaveTiled(), pixScale(), pixScaleToGray3(), pixTranslate(), pixWrite(), pixXor(), ptaDestroy(), RenderHashedBoxa(), ROTATION, SCALEX, SCALEY, SHIFTX, SHIFTY, startTimer(), and stopTimer().
Definition at line 32 of file affine_reg.c.
Referenced by generatePtaHashBox(), generatePtaLine(), generatePtaPolyline(), getAffineXformCoeffs(), getBilinearXformCoeffs(), getProjectiveXformCoeffs(), jbClassifyCorrelation(), jbClassifyRankHaus(), jbGetLLCorners(), jbGetULCorners(), MakePtas(), numaFitMax(), numaInterpolateEqxVal(), numaLowPassIntervals(), numaThresholdEdges(), pixAffineSequential(), pixColorGray(), pixColorGrayCmap(), pixExtractOnLine(), pixFindBaselines(), pixRemoveColormap(), pixSeedfill4(), pixSeedfill4BB(), pixSeedfill8(), pixSeedfill8BB(), pixSetSelectCmap(), pixWriteTTFText(), ptaConvertToBoxa(), ptaCyclicPerm(), and ptaTestIntersection().
Definition at line 33 of file affine_reg.c.
Referenced by generatePtaHashBox(), generatePtaLine(), generatePtaPolyline(), getAffineXformCoeffs(), getBilinearXformCoeffs(), getProjectiveXformCoeffs(), jbClassifyCorrelation(), jbClassifyRankHaus(), jbGetLLCorners(), jbGetULCorners(), main(), MakePtas(), numaaCompareImagesByBoxes(), numaFitMax(), pixAffineSequential(), pixColorGray(), pixColorGrayCmap(), pixExtractOnLine(), pixFindBaselines(), pixSetSelectCmap(), pixWriteTTFText(), ptaConvertToBoxa(), ptaCyclicPerm(), and ptaTestIntersection().
Definition at line 34 of file affine_reg.c.
Referenced by applyQuarticFit(), generatePtaHashBox(), generatePtaLineFromPt(), generatePtaPolyline(), getAffineXformCoeffs(), getBilinearXformCoeffs(), getProjectiveXformCoeffs(), jbClassifyCorrelation(), jbClassifyRankHaus(), jbGetULCorners(), MakePtas(), numaFitMax(), numaInterpolateEqxVal(), pixAffineSequential(), pixAverageOnLine(), pixColorGray(), pixColorGrayCmap(), pixFindBaselines(), pixSeedfill4(), pixSeedfill4BB(), pixSeedfill8(), pixSeedfill8BB(), pixSetSelectCmap(), ptaConvertToBoxa(), ptaCyclicPerm(), and ptaTestIntersection().
Definition at line 35 of file affine_reg.c.
Referenced by generatePtaHashBox(), generatePtaLineFromPt(), generatePtaPolyline(), getAffineXformCoeffs(), getBilinearXformCoeffs(), getProjectiveXformCoeffs(), jbClassifyCorrelation(), jbClassifyRankHaus(), jbGetULCorners(), main(), MakePtas(), numaaCompareImagesByBoxes(), numaFitMax(), pixAffineSequential(), pixAverageOnLine(), pixColorGray(), pixColorGrayCmap(), pixFindBaselines(), pixSetSelectCmap(), ptaConvertToBoxa(), ptaCyclicPerm(), and ptaTestIntersection().
Definition at line 36 of file affine_reg.c.
Referenced by getAffineXformCoeffs(), getBilinearXformCoeffs(), getProjectiveXformCoeffs(), MakePtas(), makeSumTabSG2(), numaFitMax(), numaInterpolateEqxVal(), pixaDisplayOnColor(), pixAffineSequential(), pixRemoveColormap(), pixSetBlackOrWhiteBoxa(), and ptaConvertToBoxa().
Definition at line 37 of file affine_reg.c.
Referenced by getAffineXformCoeffs(), getBilinearXformCoeffs(), getProjectiveXformCoeffs(), MakePtas(), numaFitMax(), pixAffineSequential(), and ptaConvertToBoxa().
Definition at line 39 of file affine_reg.c.
Referenced by MakePtas().
Definition at line 40 of file affine_reg.c.
Referenced by MakePtas().
Definition at line 41 of file affine_reg.c.
Referenced by MakePtas().
Definition at line 42 of file affine_reg.c.
Referenced by MakePtas().
Definition at line 43 of file affine_reg.c.
Referenced by MakePtas().
Definition at line 44 of file affine_reg.c.
Referenced by MakePtas().
Definition at line 46 of file affine_reg.c.
Referenced by main().
Definition at line 47 of file affine_reg.c.
Referenced by main().
Definition at line 48 of file affine_reg.c.
Referenced by main().
Definition at line 49 of file affine_reg.c.
Referenced by main().
Definition at line 50 of file affine_reg.c.
Referenced by main().