LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

To get a picture from an image structure

Hi,

I want to do a SubVI that displays an image in a picture control.

The input is:

an image structure (as a cluster)

The output is:

a picture control (with the image to display)

I'm using the ImageToArray.vi, and I can display a flatten or an unflatten
pixmap. The problem is that I need the palette of the Image, and I don´t
know how to look for it.

Is it possible to get the palette from a image structure?

Thanks,

Miguel.
0 Kudos
Message 1 of 3
(3,090 Views)
Miguel wrote in article
<7qggv4$5mq$1@talia.mad.ttd.net>...
> I want to do a SubVI that displays an image in a picture control.
>
> The input is:
>
> an image structure (as a cluster)

What "image structure" do you have? What is the format from which you
extracted this "image structure"? Maybe it's a file, then what format is it
in?

> The output is:
>
> a picture control (with the image to display)
>
> I'm using the ImageToArray.vi, and I can display a flatten or an
unflatten
> pixmap. The problem is that I need the palette of the Image, and I don´t
> know how to look for it.
>
> Is it possible to get the palette from a image structure?

Depends from where you got your "image structure".
Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 3
(3,090 Views)
It is, for example, the output named "Image Out" in the function "Imaq Read
File".

I want to get the palette without using this function, only through this image
structure.

Miguel.

Rolf Kalbermatter wrote:

> Miguel wrote in article
> <7qggv4$5mq$1@talia.mad.ttd.net>...
> > I want to do a SubVI that displays an image in a picture control.
> >
> > The input is:
> >
> > an image structure (as a cluster)
>
> What "image structure" do you have? What is the format from which you
> extracted this "image structure"? Maybe it's a file, then what format is it
> in?
>
> > The output is:
> >
> > a picture control (with the image to display)
> >
> > I'm using the ImageToArray.vi, and I can display a flatten or an
> unflatten
> > pixmap. The problem is th
at I need the palette of the Image, and I don´t
> > know how to look for it.
> >
> > Is it possible to get the palette from a image structure?
>
> Depends from where you got your "image structure".
0 Kudos
Message 3 of 3
(3,087 Views)