Code Monkey home page Code Monkey logo

eanbqh's Introduction

EANBQH: Exact Area image upsizing with Natural BiQuadratic Histosplines

Release

1.0

Date

May 18, 2012

Introduction

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.

Compilation

  • 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

Usage

  1. Specify output width:

    eanbqh8  input.ppm output.ppm width
    eanbqh16 input.ppm output.ppm width
  2. Specify output height:

    eanbqh8  input.ppm output.ppm -h height
    eanbqh16 input.ppm output.ppm -h height
  3. Specify output dimensions:

    eanbqh8  input.ppm output.ppm -d width height
    eanbqh16 input.ppm output.ppm -d width height
  4. Specify the scaling factor:

    eanbqh8  input.ppm output.ppm -s scale
    eanbqh16 input.ppm output.ppm -s scale
  5. Specify the scaling factor as a percentage:

    eanbqh8  input.ppm output.ppm -p percentage
    eanbqh16 input.ppm output.ppm -p percentage

eanbqh's People

Contributors

aturcotte avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.