Release: | 1.0 |
---|---|
Date: | May 18, 2012 |
EANBQH is an image resampling method that is well-suited for enlarging images.
For more details regarding this method, see Fast Exact Area Image Upsampling with Natural Biquadratic Histosplines by Nicolas Robidoux, Adam Turcotte, Minglun Gong and Annie Tousignant pp.85-96 of Image Analysis and Recognition, 5th International Conference, ICIAR 2008, Póvoa de Varzim, Portugal, June 25-27, 2008. Proceedings, Aurelio C. Campilho, Mohamed S. Kamel (Eds.). Lecture Notes in Computer Science 5112, Springer 2008, ISBN 978-3-540-69811-1.
Note: Currently, only binary-mode PPM (P6) files are supported.
For the version that supports PPM files with 8-bit samples, type:
gcc -o eanbqh8 eanbqh8.c -fomit-frame-pointer -O2 -Wall -march=native -lm
For the version that supports PPM files with 16-bit samples, type:
gcc -o eanbqh16 eanbqh16.c -fomit-frame-pointer -O2 -Wall -march=native -lm
Specify output width:
eanbqh8 input.ppm output.ppm width eanbqh16 input.ppm output.ppm width
Specify output height:
eanbqh8 input.ppm output.ppm -h height eanbqh16 input.ppm output.ppm -h height
Specify output dimensions:
eanbqh8 input.ppm output.ppm -d width height eanbqh16 input.ppm output.ppm -d width height
Specify the scaling factor:
eanbqh8 input.ppm output.ppm -s scale eanbqh16 input.ppm output.ppm -s scale
Specify the scaling factor as a percentage:
eanbqh8 input.ppm output.ppm -p percentage eanbqh16 input.ppm output.ppm -p percentage