mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 11:25:16 +08:00
738827f810
Co-authored-by: Ivan Baluta <ivanbaluta.dev@gmail.com>
601 B
601 B
pbmclean
Clean up a PBM image by erasing isolated black and white pixels. More information: https://netpbm.sourceforge.net/doc/pbmclean.html.
- Clean up a PBM image by erasing isolated black and white pixels:
pbmclean {{path/to/image.pbm}} > {{path/to/output.pbm}}
- Clean up only black/white pixels:
pbmclean -{{black|white}} {{path/to/image.pbm}} > {{path/to/output.pbm}}
- Specify the minimum number of neighboring pixels of the same color in order for a pixel not to be considered isolated:
pbmclean {{[-m|-minneighbors]}} {{3}} {{path/to/image.pbm}} > {{path/to/output.pbm}}