LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

8-bit B/W image question

Hi,
does anyone know how the color table in "Draw 8-bit pixmap.vi" exactly works?  I get an 8-bit image through RS-232 which is B/W and I want to project the value of the pixels as follows: 0:black , 255:white , 1-254:nuances of gray.
Could you send me some examples of that? (I'm working with LabVIEW 6i)
 
Thanks, Peter!
0 Kudos
Message 1 of 2
(2,366 Views)
Hello,
 
I think for greyscale, the RBG colors are all equal, and vary between 0 and 255.  That is, 0,0,0 corresponds to black and 255, 255, 255 correponds to black... where 127, 127, 127 would be some intermediate shade of grey.  You can use RGB to Color.vi to build an array of colors which correspond to these greyscale colors to use for your color table input.  Attached is a screenshot of the code which you can build very quickly in your version of LabVIEW!
 
Best Regards,
 
JLS
Best,
JLS
Sixclear
0 Kudos
Message 2 of 2
(2,350 Views)