Ask Your Question

Indexed Color (palette color) in OpenCV??

asked 2013-11-05 17:55:37 -0500

Evansf gravatar image

The applyColorMap() function only allows enum maps to standard color maps. First of all, I need to be able to create my own and load it. What I REALLY need is support for a palette with the ability to provide my own palette. This must be a part of the image so that I can save a .png file and maintain the palettized image (not converted to RGB during the save). It astounds me that there is no support yet for indexed color images. Am I missing something?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-11-13 06:16:25 -0500

ainawing gravatar image

In short: No, you didn't miss anything. As far as I can see, the feature you request isn't available and will only become available if implemented by contributors.

See here and in linked Feature request for more info (follow link, the request is linked there).

This is quite sad, because I, too, require a "greyscale" to 3 channel colorspace translation via a freely choosable colormap.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2013-11-05 17:55:37 -0500

Seen: 2,089 times

Last updated: Nov 13 '13