One way of doing it would be to wire an array representing a greyscale colour map to the colors input of Flatten Pixmap.vi.
Thank you very much for the useful answer..
in case I want to read a gray scale image in labview using Flatten Pixmap.vi or Unflatten Pixmap.vi when my input image is a two dimensional matrix 64x64 gray scale..is it the same way you answered me before?
Thank you
@Tasnim wrote:
in case I want to read a gray scale image in labview using Flatten Pixmap.vi or Unflatten Pixmap.vi when my input image is a two dimensional matrix 64x64 gray scale..is it the same way you answered me before?
If you want to read data from an image that is a 2D Picture Control, use Picture to Pixmap.vi then Unflatten Pixmap.vi to return a 2D array. If your data is in the form of a LabVIEW matrix, it will have to be converted to a 2D array first as the picture functions do not operate on matrix data.
Andy
Dear Members,
Can anybody advise me how to display grayscale (.tiff) image size of 64x64 and the image depth is 8 in LabVIEW?
Thank you
Tasnim
Tasnim,
Just to check: do you mean read an existing TIFF file and display it in a picture control in LabVIEW?
Andy
I don't think LabVIEW has anything built-in to read TIFF files directly. Many posts discuss use of the IMAQ image library or libtiff.
This post has a library which might help you, and there are a few threads on lavag.org discussing reading of TIFF files.
The easiest thing to do might be to convert losslessly to a suitable format that LabVIEW can handle using an external tool, but I have no experience of this.
Andy