Leptonica 1.68
C Image Processing Library
|
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) |
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.
Definition at line 43 of file smallpix_reg.c.
References IFF_PNG, pixaDestroy(), pixaDisplay(), pixDestroy(), pixDisplay(), and pixWrite().
Referenced by main().
main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 56 of file smallpix_reg.c.
References DisplayPix(), generatePtaLineFromPt(), L_BRING_IN_BLACK, L_SET_PIXELS, NULL, pixaCreate(), pixCreate(), pixDestroy(), pixExpandReplicate(), pixPaintThroughMask(), pixRenderPta(), pixRotateAM(), pixRotateAMColorFast(), pixRotateAMCorner(), pixRotateBySampling(), pixSaveTiled(), pixScaleAreaMap(), pixScaleBySampling(), pixScaleColorLI(), pixScaleLI(), pixScaleSmooth(), ptaDestroy(), and ptaJoin().