Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to create a custom colormap

Hi, im very new to openCV. I am converting a disparity map to an rgb image with a colormap overlay (the different colors represent distance). I use this function

applyColorMap(adjMap, RGBImage, cv::COLORMAP_JET);

wher adjMap is the grayscale image RGBImage is the final RGBimage i wanted and COLORMAP_JET is the colormap

I wish to change the colors in the colormap, so my quetion is - is it possible to create a customized colormap ? and if so - how?