Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use color lookup table?

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? 

Download All
0 Kudos
Message 1 of 7
(5,403 Views)

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

0 Kudos
Message 2 of 7
(5,399 Views)
gr.PNG
Message 3 of 7
(5,398 Views)
I read this in a paper and i want to do something like this but don't know how:
 
"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 replaced
with a black pixel; all other colors are replaced with white."
 
could you please help me in doing something like this? (the images was from this paper)
0 Kudos
Message 4 of 7
(5,395 Views)

why nobody answer me?!

please,i really need it 

0 Kudos
Message 5 of 7
(5,361 Views)

 


why nobody answer me?!

please,i really need it


 

 

Patience.......... I am working on it. You will get a reply soon

0 Kudos
Message 6 of 7
(5,358 Views)

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 


Philip
Applications Engineer
National Instruments
UK Branch

===If this fixes your problem, mark as solution!===
0 Kudos
Message 7 of 7
(5,299 Views)