A script for generating a colormap.hpp file which contains various hardcoded colormaps using a couple algorithms I've used before. This is located in a new directory called misc in the scripts directory (TODO: consolidate both requirements.txt into one requirements.txt under the scripts directory).
A script for generating a new set of test images (called snapshot.py) in integration_tests. This is run as python3 snapshot.py [generate|accept]. The argument can either be generate which generates a new "snapshot" of the output images in a pending directory, or accept which moves the new snapshot in the pending directory to the test images directory to have it contain the new test images. This is to help in case the test images need to be changed due to new code that will make changes to the images.
Changed the order of the color channels in hard-coded colormaps from RGB to BGR, as well as updating the channel macros in macros.hpp to the new order. OpenCV uses BGR ordering when encoding images (in PNG format at least, not sure about JPEG or other formats).
Added "Flower" colormap, as well as "Blue2Red" and "Red2Blue" colormaps (these were used to diagnose how color channels were saved) (TODO: we may need to enforce that output filenames should be PNG).
The "Flower" colormap is now hardcoded as the colormap used by the program.
Move colormap to base fractool directory for now. Seems like a better place for it since it doesn't belong in one or the other module.
Made a couple changes:
colormap.hpp
file which contains various hardcoded colormaps using a couple algorithms I've used before. This is located in a new directory calledmisc
in thescripts
directory (TODO: consolidate bothrequirements.txt
into onerequirements.txt
under thescripts
directory).python3 snapshot.py [generate|accept]
. The argument can either begenerate
which generates a new "snapshot" of the output images in a pending directory, oraccept
which moves the new snapshot in the pending directory to the test images directory to have it contain the new test images. This is to help in case the test images need to be changed due to new code that will make changes to the images.macros.hpp
to the new order. OpenCV uses BGR ordering when encoding images (in PNG format at least, not sure about JPEG or other formats).