Mapping indexed colors in indexed color file (pseudo colors)
Posted: 2016-07-06T05:26:41-07:00
I have an raster file in indexed color mode (256 colors). The indexed colors are spread from black to white between the 256 colors. I need to reduce the colors exactly to the maximum of 100 colors in smoothly steps (index 100 should be black and 0 white). The indexed colors 101-255 can be deleted after this. Should work just like the mapcolor skript by Fred but using index numers instead of color values.
How and where could this be done in IM with or without an lookup table / mapping table? After this, can i save the table as an human readable ascii file?
example table: old index value = new index value
0=1; 1=1; 2=1; 3=2; 4=2; 5=3; 6=3; 7=4; 8=4; 9=4; 10=5 ....
Does IM offers a function to work this? Thx Oliver
How and where could this be done in IM with or without an lookup table / mapping table? After this, can i save the table as an human readable ascii file?
example table: old index value = new index value
0=1; 1=1; 2=1; 3=2; 4=2; 5=3; 6=3; 7=4; 8=4; 9=4; 10=5 ....
Does IM offers a function to work this? Thx Oliver