08-26-2009 03:39 AM
Hi,
I want to apply a color lookup table on an image so that i can have some image like one i attached.but i don't know how to use it.
can anyone help me with this by showing an example?
08-26-2009 03:48 AM
Hi amirheh,
how did you get the "after" picture? You can transform your image to greyscale and use a different color for a range of grey values.
Mike
08-26-2009 04:02 AM
08-26-2009 05:35 AM
"Applying a Color Look-up Table (CLUT) is a simple and computationally fast way to process
color images. The CLUT has a value (either RGB, grayscale or binary) for every color
spectrum value. Typically for RGB images, three 8 bit numbers (one byte for each color
plane) make up a pixel. 256 different values for each color plane of a pixel creates a total of
16,777,216 combinations, each requiring a corresponding conversion value. The the CLUT
is applied to an image, each pixel’s RGB value is found in the CLUT and the corresponding
conversion value replaces the pixel. For example, the RGB pixel value of (200,200,200) may
have a conversion value of (0) for a grayscale image. All other RGB pixel values may have
a conversion value of (255). Whenever the pixel value of (200,200,200) occurs, it is replacedwith a black pixel; all other colors are replaced with white."
08-27-2009 02:36 AM
why nobody answer me?!
please,i really need it
08-27-2009 02:43 AM
why nobody answer me?!
please,i really need it
Patience.......... I am working on it. You will get a reply soon
08-28-2009 09:00 AM
Hello amirheh
I have written you some example code that will change pixel values for you. You just need to supply it with 3 arrays instead of using the randomly generated arrays
Hope this helps
Philip