Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

456 B
Raw Blame

kornia.color.ColorMap resamples its palette from the first colour of the base to the last, with entry i at i / (num_colors - 1) along it. With a num_colors other than the base length, it used to repeat the end colours when upsampling (viridis with 256 colours started and ended with two equal entries) and drop them when downsampling (viridis with 8 colours started and ended inside the map). The default 64-colour built-in maps are unchanged.