Leptonica 1.68
C Image Processing Library

smallpix_reg.c File Reference

This is a regression test for scaling and rotation. The question to be answered is: in the quantization, where, if anywhere, do we add 0.5? The answer is that it should usually, but not always, be omitted. To see this, we operate on a very small pix and for visualization, scale up with replication to avoid aliasing and shifting. More...

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

Go to the source code of this file.

Functions

void DisplayPix (PIXA **ppixa, l_int32 x, l_int32 y, char *fname)
 main (int argc, char **argv)

Detailed Description

This is a regression test for scaling and rotation. The question to be answered is: in the quantization, where, if anywhere, do we add 0.5? The answer is that it should usually, but not always, be omitted. To see this, we operate on a very small pix and for visualization, scale up with replication to avoid aliasing and shifting.

Definition in file smallpix_reg.c.


Function Documentation

void DisplayPix ( PIXA **  ppixa,
l_int32  x,
l_int32  y,
char *  fname 
)

Definition at line 43 of file smallpix_reg.c.

References IFF_PNG, pixaDestroy(), pixaDisplay(), pixDestroy(), pixDisplay(), and pixWrite().

Referenced by main().

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines