Ask Your Question
0

Is the colormap conversion of openCV linear? [closed]

asked 2014-09-23 16:57:59 -0600

rafaoc gravatar image

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?

image description

image description

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by StevenPuttemans
close date 2014-09-29 04:01:37.739959

Comments

1

The colormaps are based on the matlab colormap implementations. They follow the same behaviour. Afaik the relation is linear indeed.

StevenPuttemans gravatar imageStevenPuttemans ( 2014-09-24 01:56:17 -0600 )edit

Thanks @StevenPuttermans for your answer. May be do you have the reference where says the colormaps are based on opencv ?

rafaoc gravatar imagerafaoc ( 2014-09-24 08:10:16 -0600 )edit

Right here it clearly states in the top that it are GNU Octave/MATLAB equivalent mappings.

StevenPuttemans gravatar imageStevenPuttemans ( 2014-09-24 08:47:45 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-09-25 18:04:23 -0600

rafaoc gravatar image

Thanks Steven. I found the answer and actually these colormaps used by applyColorMap() have a linear transformation ! link

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-09-23 16:57:59 -0600

Seen: 262 times

Last updated: Sep 23 '14