LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

2D Array to tiff

Hi,

does anybody know who to convert a 2D-array into a tiff picture?

thanks

jürgen

0 Kudos
Message 1 of 5
(4,435 Views)
Hi Jürgen,

if it doesn't have to be TIFF you can use the picture functions to save JPEG/PNG/BMP formats...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(4,430 Views)
 

Hi Jurgen,

There is no LabVIEW VI that reads or writes TIFF files unless you purchase the NI Vision Development Module.
Otherwise you can do several things:

1. Create BMP/JPEG/PNG file and then convert it to a TIFF file by using a standard image editing software such as Adobe Photoshop.
2. Use the Univesity of Cambridge custom LabVIEW library for reading a TIFF file called Tiff_reader.llb
3. Use LabVIEW 3.1 archived VIs tiffwrit.zip that can be found at Info-LabVIEW.org
4. Look at this related discussion forum.

Let me know if any of those work for you.
Hope this helps!

Kalin T.
0 Kudos
Message 3 of 5
(4,416 Views)
If you have experience in reading file format specifications, it may not be very hard to write a TIF writer for your specific image type. See TIF specifications from example here:

http://partners.adobe.com/public/developer/en/tiff/TIFF6.pdf

Tomi
--
Tomi Maila
0 Kudos
Message 4 of 5
(4,410 Views)
Of course a 2D array is not yet a picture in any format. 😉
 
You need additional information, e.g.:
  1. What is the representation of the array elements?
  2. Is each an integer corresponding to a 24bit color?
  3. Is each element an index into a color table?
  4. If so, where is the color table?
  5. Is it a boolean array that represents a B&W picture?
  6. ...

So, where did the 2D array come from?

 
 
0 Kudos
Message 5 of 5
(4,409 Views)