LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Color table question (gray scale)

I wish to visualize in a picture control a matrix of 80 * 80, 16 bits gray
scale data. As I understand from the LV documentation and from some postings
on this ng, I can use for this the Flatten Pixmap.vi, followed by Draw
Flattened Pixmap.vi.

Because the input of the Flatten Pixmap.vi cannot be a 16 bit pixmap, first
of all I have to reduce the data for each pixel to 8 bits. OK, that's clear
to me.

Then, as I understood, I should connect an array of 256 elements to the
Color input of the Flatten Pixmap.vi. The Help says: Which pixmap input you
wire determines how LabVIEW interprets the value of this input.

Here comes my question: What should contain the elements of the array
connected to the Color input of the Flatten Pixmap.vi. that I get a gray
scale image (and not a colored one)?

Thanks a lot in advance.

Victor


Message 1 of 2
(3,394 Views)
Hi Victor,
this is a simple example (LV 7.1) where I build a gray scale image using Draw Unflattened Pixmap.
The color array is the same you would wire to the Flatten Pixmap vi.

Paolo
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
Message 2 of 2
(3,386 Views)