GithubHelp home page GithubHelp logo

fortran-ppm's Introduction

Fortran-ppm

Basic Fortran library for PPM image reading and writting. Accepts grayscale and color images as well as up to a maximum of 16 bits per pixel of color depth.

Usage

The library consists of two functions, ppmload and ppmwrite. They both require the same number and kinds of arguments in the same order:

  • filename, a file name to open/read a ppm image file
  • im_arr, a rank-3 allocatable array to the image data with the shape (nc, ny, nx)
  • nc number of color channels
  • ny height of the image
  • nx width of the image
  • mxvl an integer to store the maximum value of the image while reading and to indicate its maximum value while writting.

An example of both reading and writting images is contained in the tests folder.

fortran-ppm's People

Contributors

ifedayo06 avatar

Watchers

 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.