From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
05-23-2019 04:27 AM
Dear Members,
Kindly, how can I display (write) a gray scale image in labview using Flatten Pixmap when my input image is a two dimensional matrix 64x64 gray scale.?
Solved! Go to Solution.
05-23-2019 05:59 AM
One way of doing it would be to wire an array representing a greyscale colour map to the colors input of Flatten Pixmap.vi.
05-26-2019 02:45 AM
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
05-27-2019 01:07 PM
@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
06-09-2019 01:14 AM
Thank you Andy for the useful answer
06-20-2019 04:03 AM
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
06-20-2019 05:27 AM
Tasnim,
Just to check: do you mean read an existing TIFF file and display it in a picture control in LabVIEW?
Andy
06-23-2019 12:58 AM
yes, this is what I mean.
Thank you
06-25-2019 03:46 AM
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
06-30-2019 01:14 AM
ok thank u very much for the reply and help..
I will try to check it