Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Is there function in OpenCV similar to ind2rgb in MATLAB ?

I have a 16-bit indexed image that I'd like to convert to color image using my own lookup table. In MATLAB, this can be done with

color_img = ind2rgb(ind_img, colormap)

I'm wondering if there is any OpenCV function that does the same thing? I've only found cvtColor, which I don't think gives user any control over the colormap it's using.