-
Mathias Chouet authored
style personnalisé pour les mat-button-toggle breakpoint personnalisé "xxs" pour angular-flex placement des sous-calculettes répétables réparation des select erreurs sur les input placement des paramètres liés simplification du code et nouveau rendu pour les paramètres calculés suppression totale de MDBootstrap
f8b934b5
Some algorithms produce an indexed image as output. In such images, each pixel is given a value according to the region number it belongs to. This value starting at 0 or 1 is usually an integer value. Often, such images are produced by segmentation or classification algorithms.
If such regions are easy to manipulate -- it is easier and faster to compare two integers than a RGB value -- it is different when it comes to displaying the results.
Here we present a convient way to convert such indexed image to a color image. In
such conversion, it is important to ensure that neighborhood region, which are
likely to have consecutive number have easily dicernable colors. This is done
randomly using a hash function by ScalarToRGBPixelFunctor
.
![]() |
![]() |
The original indexed image (left) and the conversion to color image.