pbmmask

create a mask bitmap from a regular bitmap

copy
0
0
pbmmask obj > objmask

source | details |

copy
0
0
ppmtopgm obj.ppm | pgmtopbm -threshold | pbmmask > objmask.pbm

source | details |