LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Q: Repost. Visualizing Measurement Data in Picture Control. Was: Color Table Question

I wish to visualize in a picture control a matrix of 80 * 80, 16 bits
values. These values represent grey scale light intensities.

I'm trying to use for this the Flatten Pixmap.vi, followed by Draw Flattened
Pixmap.vi.

Because the Flatten Pixmap.vi doesn't accept a 16 bit pixmap, I have
compressed the data for each pixel to 8 bits.

Then, as I understood, I should connect an array of 256 elements to the
Color input of the Flatten Pixmap.vi.

What should contain the elements of the mentioned array so that I get a gray
scale image? Where can I read about this or find an example?

Thanks a lot in advance.

Victor


0 Kudos
Message 1 of 4
(712 Views)
Here is an example with a 2D array of color box controls.
0 Kudos
Message 2 of 4
(704 Views)
Highlighted
Is there a reason why you don't use the 'Intensity Graph' indicator?
It probably even allows to represent 16 bit gray scale colors (if the graphics card and monitor do), whereas the 'Draw pixmap' only supports RGB colors, i.e. gray scale values only range from 0... 255.

I attach a VI which demosntrates both ways.


-Franz


0 Kudos
Message 3 of 4
(702 Views)
Thanks to all of you who tried to help me. The problem isn't totally solved
yet but I could advance.

For unknown reason my newsgroup server hasn't carried out their answers,
that I have recently seen through the NI site.

Victor

"Victor Manta" <manvic_99spaam@yahoo.com> wrote in message
news:47g85tFfis8kU1@individual.net...
>I wish to visualize in a picture control a matrix of 80 * 80, 16 bits
>values. These values represent grey scale light intensities.
>
> I'm trying to use for this the Flatten Pixmap.vi, followed by Draw
> Flattened Pixmap.vi.
>
> Because the Flatten Pixmap.vi doesn't accept a 16 bit pixmap, I have
> compressed the data for each pixel to 8 bits.
>
> Then, as I understood, I should connect an array of 256 elements to the
> Color input of the Flatten Pixmap.vi.
>
> What should contain the elements of the mentioned array so that I get a
> gray scale image? Where can I read about this or find an example?
>
> Thanks a lot in advance.
>
> Victor
>
>


0 Kudos
Message 4 of 4
(684 Views)