Is the colormap conversion of openCV linear? [closed]
I have a gray scale image (i.e. 1 channel). I am using the opencv function applyColorMap() to improve the visualization. For example, if I have the code below
applyColorMap(imgGray, imgOut, COLORMAP_RAINBOW);
Somebody does know if the colormap conversion is linear?
The colormaps are based on the matlab colormap implementations. They follow the same behaviour. Afaik the relation is linear indeed.
Thanks @StevenPuttermans for your answer. May be do you have the reference where says the colormaps are based on opencv ?
Right here it clearly states in the top that it are GNU Octave/MATLAB equivalent mappings.