Leptonica 1.68
C Image Processing Library

ptra1_reg.c File Reference

Testing basic ptra operations using: ptraRemove(), ptraInsert(), ptraSwap(), and ptraAdd(). More...

#include <stdio.h>
#include <stdlib.h>
#include "allheaders.h"

Go to the source code of this file.

Defines

#define CHOOSE_RECON   2

Functions

static void MakePtrasFromPixa (PIXA *pixa, L_PTRA **ppapix, L_PTRA **ppabox, l_int32 copyflag)
static PIXAReconstructPixa (L_PTRA *papix, L_PTRA *pabox, l_int32 choose)
static PIXAReconstructPixa1 (L_PTRA *papix, L_PTRA *pabox)
static PIXAReconstructPixa2 (L_PTRA *papix, L_PTRA *pabox)
static void CopyPtras (L_PTRA *papixs, L_PTRA *paboxs, L_PTRA **ppapixd, L_PTRA **ppaboxd)
static void DisplayResult (PIXA *pixac, PIXA **ppixa, l_int32 w, l_int32 h, l_int32 newline)
 main (int argc, char **argv)

Detailed Description

Testing basic ptra operations using: ptraRemove(), ptraInsert(), ptraSwap(), and ptraAdd().

Definition in file ptra1_reg.c.


Define Documentation

#define CHOOSE_RECON   2

Definition at line 36 of file ptra1_reg.c.

Referenced by main().


Function Documentation

static void MakePtrasFromPixa ( PIXA pixa,
L_PTRA **  ppapix,
L_PTRA **  ppabox,
l_int32  copyflag 
) [static]

Definition at line 215 of file ptra1_reg.c.

References pixaGetBox(), pixaGetCount(), pixaGetPix(), ptraAdd(), and ptraCreate().

Referenced by main().

static PIXA * ReconstructPixa ( L_PTRA papix,
L_PTRA pabox,
l_int32  choose 
) [static]

Definition at line 242 of file ptra1_reg.c.

References ReconstructPixa1(), and ReconstructPixa2().

Referenced by main().

static PIXA * ReconstructPixa1 ( L_PTRA papix,
L_PTRA pabox 
) [static]
static PIXA * ReconstructPixa2 ( L_PTRA papix,
L_PTRA pabox 
) [static]
static void CopyPtras ( L_PTRA papixs,
L_PTRA paboxs,
L_PTRA **  ppapixd,
L_PTRA **  ppaboxd 
) [static]
static void DisplayResult ( PIXA pixac,
PIXA **  ppixa,
l_int32  w,
l_int32  h,
l_int32  newline 
) [static]

Definition at line 370 of file ptra1_reg.c.

References pixaDestroy(), pixaDisplay(), pixDestroy(), and pixSaveTiled().

Referenced by main().

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines