A simple program to remove areas of a given colour from images.
From the src
directory:
javac main/*.java
From the src
directory:
java main.ColourRemover SOURCE_FOLDER COLOUR_TO_REMOVE THRESHOLD
Images are saved to an out
directory.
Name of the directory containing the images to be processed.
The colour to remove, in the form R,G,B.
Minimum number of connected pixels that must match the specified colour before an area will be removed. For example, if set to 3, areas of only 1 or 2 pixels of the specified colour will be preserved.
Pixels are considered to be "connected" if they are orthogonally adjacent.
java main.ColourRemover images 64,128,64 10