Mask-PPM is a tiny shell script that superimposes a specified filter on top of the provided image.
This script masks the provided image with a bitmap to generate a new image. The images are in PPM format, and the mask is in PBM format.
Use the format below to run the script.
$ bash mask.sh image.ppm mask.pbm > output.ppm
- mask.sh: Script that does the magic.
- image.ppm: The image file to be masked.
- mask.pbm: The bitmap mask.
- output.ppm: The output file with mask applied.
To view these files, you may use an image viewer that supports the Netpbm formats, or view them in a browser using the Netpbm Viewer.