Unmap data from pseudocolor images, with or without knowledge of the colourmap. This tool has 2 main components:
Guess the colourmap that was used for a pseudocolour visualization, in cases where it’s unknown and a colourbar is not included in the image.
‘Unmap’ a pseudocolour visualization, separating the data from the image; essentially this is the opposite of what
There are some other approaches to both Task 1 (above) and Task 2:
unmap(I swear I didn’t know about this tool when I named mine!) — does the data ripping part. The colourmap must be provided, but the tool also provides a way to interactively identify a colourbar in the image.
Yuan et al. attempts Task 1 using deep learning. The prediction from a CNN is refined with either Laplacian eigenmapping (manifold+based dimensionality reduction, for continuous colourmaps) or DBSCAN (for categorical colourmaps).
Of these projects, only Yuan et al. (‘deep colormap extraction’) requires no a priori knowledge of the colourmap.
Stack Exchange questions about this topic#
You can install this package with
pip install unmap
docs options for installing dependencies for those purposes, eg
pip install unmap[dev].
Take a look at
After cloning this repository and installing the dependencies required for testing, you can run the tests (requires
Building the project requires
build, so first:
pip install build
Then to build
python -m build
The builds both
.whl files, either of which you can install with