Apply color palette to raw image

1

I have an image in gray levels and I want an algorithm to apply a color palette to it. Does anyone have reference to an algorithm technique used or something of the sort? I am not experienced with digital image processing. If there are any C or python libraries that can help me make such an application or learn new things in the field, it's also quite useful.

Thank you

    
asked by anonymous 26.01.2018 / 13:18

1 answer

1

You can use GIMP . It has options for it right on the color menus - but if interactive use is not enough for you, the program exposes hundreds of calls to its internal API (called "PDB" - "Procedural Data Base"), built-in Python and Scheme bindings - then you can easily make a script inside the GIMP to open an image, calculate a map colors, and call pdb.gimp_image_set_colormap .

This is one of the options. Another is to use pillow of Python - and access to direct pixels to color each pixel -, there are a number of other image libraries that allow you to create this directly as well.

    
30.01.2018 / 16:04