Skip to content

kramos966/Fortran-PPM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors