Leptonica 1.68
C Image Processing Library

xformbox_reg.c File Reference

Tests ordered box transforms (rotation, scaling, translation). Also tests the various box hashing graphics operations. More...

#include "allheaders.h"

Go to the source code of this file.

Functions

l_int32 RenderTransformedBoxa (PIX *pixt, BOXA *boxa, l_int32 i)
 main (int argc, char **argv)

Variables

static const l_int32 SHIFTX_2 = 50
static const l_int32 SHIFTY_2 = 70
static const l_float32 SCALEX_2 = 1.17
static const l_float32 SCALEY_2 = 1.13
static const l_float32 ROTATION_2 = 0.10
static const l_int32 SHIFTX_3 = 44
static const l_int32 SHIFTY_3 = 39
static const l_float32 SCALEX_3 = 0.83
static const l_float32 SCALEY_3 = 0.78
static const l_float32 ROTATION_3 = 0.11

Detailed Description

Tests ordered box transforms (rotation, scaling, translation). Also tests the various box hashing graphics operations.

Definition in file xformbox_reg.c.


Function Documentation

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

Definition at line 269 of file xformbox_reg.c.

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

Referenced by main().


Variable Documentation

const l_int32 SHIFTX_2 = 50 [static]

Definition at line 26 of file xformbox_reg.c.

Referenced by main().

const l_int32 SHIFTY_2 = 70 [static]

Definition at line 27 of file xformbox_reg.c.

Referenced by main().

const l_float32 SCALEX_2 = 1.17 [static]

Definition at line 28 of file xformbox_reg.c.

Referenced by main().

const l_float32 SCALEY_2 = 1.13 [static]

Definition at line 29 of file xformbox_reg.c.

Referenced by main().

const l_float32 ROTATION_2 = 0.10 [static]

Definition at line 30 of file xformbox_reg.c.

Referenced by main().

const l_int32 SHIFTX_3 = 44 [static]

Definition at line 33 of file xformbox_reg.c.

Referenced by main().

const l_int32 SHIFTY_3 = 39 [static]

Definition at line 34 of file xformbox_reg.c.

Referenced by main().

const l_float32 SCALEX_3 = 0.83 [static]

Definition at line 35 of file xformbox_reg.c.

Referenced by main().

const l_float32 SCALEY_3 = 0.78 [static]

Definition at line 36 of file xformbox_reg.c.

Referenced by main().

const l_float32 ROTATION_3 = 0.11 [static]

Definition at line 37 of file xformbox_reg.c.

Referenced by main().

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines