Leptonica 1.68
C Image Processing Library

writetext_reg.c File Reference

Regression test for writing a block of text in one of 4 locations relative to a pix. This tests writing on 8 different types of images. More...

#include "allheaders.h"

Go to the source code of this file.

Functions

void AddTextAndSave (PIXA *pixa, PIX *pixs, L_BMF *bmf, const char *textstr, l_int32 location, l_uint32 val)
 main (int argc, char **argv)

Variables

const char * textstr []
const char * topstr []
const l_uint32 colors [6]

Detailed Description

Regression test for writing a block of text in one of 4 locations relative to a pix. This tests writing on 8 different types of images.

Definition in file writetext_reg.c.


Function Documentation

void AddTextAndSave ( PIXA pixa,
PIX pixs,
L_BMF bmf,
const char *  textstr,
l_int32  location,
l_uint32  val 
)

Variable Documentation

const char* textstr[]
Initial value:
           {"This is a simple test of text writing: 8 bpp",
            "This is a simple test of text writing: 32 bpp",
            "This is a simple test of text writing: 8 bpp cmapped",
            "This is a simple test of text writing: 4 bpp cmapped",
            "This is a simple test of text writing: 4 bpp",
            "This is a simple test of text writing: 2 bpp cmapped",
            "This is a simple test of text writing: 2 bpp",
            "This is a simple test of text writing: 1 bpp"}

Definition at line 29 of file writetext_reg.c.

const char* topstr[]
Initial value:
           {"Text is added above each image",
            "Text is added over the top of each image",
            "Text is added over the bottom of each image",
            "Text is added below each image"}

Definition at line 39 of file writetext_reg.c.

Referenced by main().

const l_uint32 colors[6]
Initial value:
 {0x4090e000, 0x40e09000, 0x9040e000, 0x90e04000,
                             0xe0409000, 0xe0904000}

Definition at line 45 of file writetext_reg.c.

Referenced by main().

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines