Options (1)
-mbooleanSpecify the minimum number of neighbouring pixels of the same color in order for a pixel not to be considered isolated
Example:
pbmclean {{[-m|-minneighbours]}} {{3}} {{path/to/image.pbm}} > {{path/to/output.pbm}}Examples (3)
Clean up a PBM image by erasing isolated black and white pixels
pbmclean path/to/image.pbm > path/to/output.pbmClean up only black/white pixels
pbmclean -black|white path/to/image.pbm > path/to/output.pbmSpecify the minimum number of neighbouring pixels of the same color in order for a pixel not to be considered isolated
pbmclean [-m|-minneighbours] 3 path/to/image.pbm > path/to/output.pbmmade by @shridhargupta | data from tldr-pages