home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / NETWORK / netpbm_docs.lzh / NETPBM / DOCS / pgmnorm.1 < prev    next >
Text File  |  1996-11-18  |  2KB  |  70 lines

  1. .TH pgmnorm 1 "28 February 1989"
  2. .IX pgmnorm
  3. .SH NAME
  4. pgmnorm - normalize the contrast in a portable graymap
  5. .SH SYNOPSIS
  6. .B pgmnorm
  7. .RB [ -bpercent
  8. .I N
  9. |
  10. .B -bvalue
  11. .IR N ]
  12. .RB [ -wpercent
  13. .I N
  14. |
  15. .B -wvalue
  16. .IR N ]
  17. .RI [ pgmfile ]
  18. .SH DESCRIPTION
  19. Reads a portable graymap as input.
  20. Normalizes the contrast by forcing the lightest pixels to white, the
  21. .IX "contrast normalization"
  22. darkest pixels to black, and linearly rescaling the ones in between;
  23. and produces a portable graymap as output.
  24. .SH OPTIONS
  25. .PP
  26. By default, the darkest 2 percent of all pixels are mapped to black, and
  27. the lightest 1 percent are mapped to white.
  28. You can override these percentages by using the
  29. .B -bpercent
  30. and
  31. .B -wpercent
  32. flags,
  33. or you can specify the exact pixel values to be mapped by using the
  34. .B -bvalue
  35. and
  36. .B -wvalue
  37. flags.
  38. Appropriate numbers for the flags can be gotten from the
  39. .I pgmhist
  40. tool.
  41. .IX pgmhist
  42. If you just want to enhance the contrast, then choose values at elbows in the
  43. histogram; e.g. if value 29 represents 3% of the image but value 30
  44. represents 20%, choose 30 for
  45. .IR bvalue .
  46. If you want to lighten the
  47. image, then set
  48. .I bvalue
  49. to 0 and just fiddle with
  50. .IR wvalue ;
  51. similarly, to darken the image, set
  52. .I wvalue
  53. to maxval and play with
  54. .IR bvalue .
  55. .PP
  56. All flags can be abbreviated to their shortest unique prefix.
  57. .SH "SEE ALSO"
  58. pgmhist(1), ppmnorm(1), pgm(5)
  59. .SH AUTHOR
  60. Partially based on the fbnorm filter in Michael Mauldin's "Fuzzy Pixmap"
  61. package.
  62.  
  63. Copyright (C) 1989 by Jef Poskanzer.
  64. .\" Permission to use, copy, modify, and distribute this software and its
  65. .\" documentation for any purpose and without fee is hereby granted, provided
  66. .\" that the above copyright notice appear in all copies and that both that
  67. .\" copyright notice and this permission notice appear in supporting
  68. .\" documentation.  This software is provided "as is" without express or
  69. .\" implied warranty.
  70.