I have image (RGBA) data that needs to convert values using an existing palette. I have the palette available to get each RGB(A) -value translated to a correct value.
I need to convert RGB value into one band. After that I need to use palette and convert each RGB value to palette value.
Example I have red color pixel (RGB 255, 0,0) in original image. Then I have value 12 in palette which has correct value to convert red pixel to value 12.
How to do that?
The palette has total 25 values and looks like this:
RGB24
1 97,100,101
2 148,147,148
3 195,204,209
4 166,159,255
5 17,37,250
6 52,92,255
8 6,231,255
10 54,199,6
12 255,0,0
.
.
I have tried the followed FME process but its wrong.
Which transformers should be used in FME?