Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I conver my acquired raw data to tiff files?

Solved!
Go to solution

Hi all,

 

I'm acquiring analog signals from a camera, and then I want save them as multiple tiff files, which are easy to analyze and observe. The type of the data is double float, from 0 to 2. So is there any to do that within LabVIEW? I installed IMAQ toolkit. And my lv is 8.5. Thanks a lot.

 

Best wishes,

Bo 

------------------------
My blog Let's LabVIEW.
0 Kudos
Message 1 of 6
(4,577 Views)

If I understand correctly, you have a 2D array of pixel values ranging from 0 to 2 in double precision floating point format that you want to convert to a TIFF format.  You could convert the double precision to single precision using the numeric comversion tool (pixel by pixel) then use the ArrayToImage tool in the Vision tool box...To establish the correct image format you use the CreatImage tool and set the parameters to be compatible with TIFF (I16)...Input the float values into the float input of the ArrayToImage tool and take the output to a write file function.  The vision writeToFile has a format option ... one of which is Tiff....

 

I haven't tried this but something like it might work.

 

Hope this helps...

 

example attached

0 Kudos
Message 2 of 6
(4,552 Views)

Thank Hummer1 for your reply. But I haven't found (even after search) IMAQ Arraytoimage function in my vision panel. I only have Imagetoarray instead. Does that mean I need to install some other toolkit? I installed imaq_usb_installer_setup.exe already.

 

Best wishes,

Bo

------------------------
My blog Let's LabVIEW.
0 Kudos
Message 3 of 6
(4,544 Views)

Hi Bo,

 

Both IMAQ ArrayToImage VI and IMAQ ImageToArray VI come with NI Vision Development Module.

 

If you have installed, you should find ArrayToImage VI just below ImagToArray VI in Functions Palette - Vision/Motion - Vision Utilities - Pixel Manipulation.

 

If you still can't find the VI, I suggest you run the installer of NI Vision Development Module again.

 

Hope it helps,

Message Edited by Mark M on 10-06-2008 04:52 PM
Best regards,

Mark M.
Applications Engineer
National Instruments UK & Ireland
0 Kudos
Message 4 of 6
(4,513 Views)
Solution
Accepted by foolooo

Sorry,  I missoke...use the ImageToArray to take the image data into an array and then do all the comareing of templates in array math.  I think ArrayToImage comes in the Vision Developer Suite...but ImageToArray is in the vision downloads available without purchasing the Vision Module.  I would up purchasing the vision module for my Developer Suite because there are a bunch of very handy items in there.

 

The Hummer.

0 Kudos
Message 5 of 6
(4,510 Views)

Yes, it works! Thanks a lot!

 

Regards,

Bo

------------------------
My blog Let's LabVIEW.
0 Kudos
Message 6 of 6
(4,497 Views)