Leptonica 1.68
C Image Processing Library

translate_reg.c File Reference

Regression test for in-place translation. More...

#include "allheaders.h"

Go to the source code of this file.

Defines

#define BINARY_IMAGE   "test1.png"
#define GRAYSCALE_IMAGE   "test8.jpg"
#define FOUR_BPP_IMAGE   "weasel4.8g.png"
#define COLORMAP_IMAGE   "dreyfus8.png"
#define RGB_IMAGE   "marge.jpg"

Functions

void TranslateAndSave1 (PIXA *pixa, l_int32 depth, PIX *pix, l_int32 xshift, l_int32 yshift)
void TranslateAndSave2 (PIXA *pixa, PIX *pix, l_int32 xshift, l_int32 yshift)
 main (int argc, char **argv)

Detailed Description

Regression test for in-place translation.

Definition in file translate_reg.c.


Define Documentation

#define BINARY_IMAGE   "test1.png"

Definition at line 24 of file translate_reg.c.

#define GRAYSCALE_IMAGE   "test8.jpg"

Definition at line 25 of file translate_reg.c.

#define FOUR_BPP_IMAGE   "weasel4.8g.png"

Definition at line 26 of file translate_reg.c.

#define COLORMAP_IMAGE   "dreyfus8.png"

Definition at line 27 of file translate_reg.c.

#define RGB_IMAGE   "marge.jpg"

Definition at line 28 of file translate_reg.c.


Function Documentation

void TranslateAndSave1 ( PIXA pixa,
l_int32  depth,
PIX pix,
l_int32  xshift,
l_int32  yshift 
)

Definition at line 113 of file translate_reg.c.

References L_BRING_IN_BLACK, L_BRING_IN_WHITE, NULL, pixDestroy(), pixSaveTiled(), and pixTranslate().

Referenced by main().

void TranslateAndSave2 ( PIXA pixa,
PIX pix,
l_int32  xshift,
l_int32  yshift 
)

Definition at line 137 of file translate_reg.c.

References L_BRING_IN_BLACK, L_BRING_IN_WHITE, L_INSERT, NULL, pixaAddPix(), and pixTranslate().

Referenced by main().

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines