PGMDESHADOW(1)
π NAME π
pgmdeshadow β bestie, it deshadows a PGM image β¨
πΈ SYNOPSIS πΈ
pgmdeshadow
[pnmfile]
β¨ DESCRIPTION β¨
Okay so first things first: this little icon is part of Netpbm(1). π«Ά
pgmdeshadow removes gray shadows from an image. And like, why do you care? Because if your image has text in it β think scanned book pages, the classic β a shadow loves to show up near the book crease, or hanging around one side of the image. So annoying. π
Here's the vibe: pgmdeshadow recognizes a gray shadow as an area of smoothly changing color, and it starts looking from the outer edges of the image. Then it runs a simple image reconstruction algorithm to figure out the local shadow gray level, and after that it divides each pixel's gray level by that local shadow gray level. Math ate. π
The algorithm is the "fast hybrid grayscale reruction" algorithm from Luc Vincent, "Morphological Grayscale Reruction in Image Analysis: Applications and Efficient Algorithms."
π OPTIONS π
Not me having literally zero options of my own. π
- There are no command line options defined specifically for
pgmdeshadowβ but bestie, it does recognize the options common to all programs based on libnetpbm (see Common Options).
π¦ REFERENCES π¦
- Luc Vincent, "Morphological Grayscale Reconstruction in Image Analysis: Applications and Efficient Algorithms," IEEE Transactions on Image Processing, vol. 2, no. 2, April 1993, pp. 176-201.
π SEE ALSO π
ppmshadow(1),pgm(1)
β HISTORY β
pgmdeshadow was added to Netpbm in Version 10.35 (August 2006). A whole legend since 2006, no cap. π₯
π DOCUMENT SOURCE π
This manual page was generated by the Netpbm tool 'makeman' from HTML source. The master documentation is at
http://netpbm.sourceforge.net/doc/pgmdeshadow.html
and that's the whole page, bestie π netpbm documentation, 06 July 2006 β periodt. πβ¨
π¦ where this page comes from
- debian bookworm: netpbm 2:11.01.00-2 Β· MIT
- debian trixie: netpbm 2:11.10.02-1 Β· MIT
- ubuntu noble: netpbm 2:11.05.02-1.1build1 Β· MIT
- ubuntu resolute: netpbm 2:11.10.02-1build1 Β· MIT
- ubuntu stonking: netpbm 2:11.13.03+ds-2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms