Leptonica 1.68
C Image Processing Library

affine_reg.c File Reference

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

Detailed Description

Tests various affine transformations: pixAffineSequential(), pixAffineSampledPta(), pixAffinePta(), and pixAffine().

Definition in file affine_reg.c.


Define Documentation

#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.


Function Documentation

static void MakePtas ( l_int32  i,
PTA **  pptas,
PTA **  pptad 
) [static]

Definition at line 346 of file affine_reg.c.

References ptaAddPt(), ptaCreate(), x1, x2, x3, xp1, xp2, xp3, y1, y2, y3, yp1, yp2, and yp3.

Referenced by main().

l_int32 RenderHashedBoxa ( PIX pixt,
BOXA boxa,
l_int32  i 
)

Definition at line 364 of file affine_reg.c.

References boxaGetBox(), boxaGetCount(), boxDestroy(), L_CLONE, and pixRenderHashBoxArb().

Referenced by main().


Variable Documentation

const l_int32 y3[] = { 200, 200, 200, 657, 67} [static]
const l_int32 xp1[] = { 500, 300, 350, 117, 32} [static]

Definition at line 39 of file affine_reg.c.

Referenced by MakePtas().

const l_int32 yp1[] = {1700, 1400, 1400, 2629, 934} [static]

Definition at line 40 of file affine_reg.c.

Referenced by MakePtas().

const l_int32 xp2[] = {850, 1400, 1400, 1464, 487} [static]

Definition at line 41 of file affine_reg.c.

Referenced by MakePtas().

const l_int32 yp2[] = {850, 1500, 1500, 2432, 804} [static]

Definition at line 42 of file affine_reg.c.

Referenced by MakePtas().

const l_int32 xp3[] = { 450, 200, 400, 183, 61} [static]

Definition at line 43 of file affine_reg.c.

Referenced by MakePtas().

const l_int32 yp3[] = { 300, 300, 400, 490, 83} [static]

Definition at line 44 of file affine_reg.c.

Referenced by MakePtas().

const l_int32 SHIFTX = 44 [static]

Definition at line 46 of file affine_reg.c.

Referenced by main().

const l_int32 SHIFTY = 39 [static]

Definition at line 47 of file affine_reg.c.

Referenced by main().

const l_float32 SCALEX = 0.83 [static]

Definition at line 48 of file affine_reg.c.

Referenced by main().

const l_float32 SCALEY = 0.78 [static]

Definition at line 49 of file affine_reg.c.

Referenced by main().

const l_float32 ROTATION = 0.11 [static]

Definition at line 50 of file affine_reg.c.

Referenced by main().

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines