Main Page   Modules   File List  

histstretch.c File Reference

transforms the gray scale by stretching the histogram More...


Detailed Description

transforms the gray scale by stretching the histogram

Usage: histstretch in.pgm vmin vmax p out.pgm

Description:

Eliminates the levels of the histogram strictly less than vmin or strictly greater than vmax, and also the extremal levels that have strictly less than N*(p/100) pixels (N being the total number of pixels). If p = 0, only the extremal levels with 0 pixels are eliminated. A linear histogram scaling is then performed.

Types supported: byte 2D

Category: histo

Author:
Michel Couprie

Generated on Fri Dec 17 11:59:37 2004 for Pink by doxygen1.2.18