Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Need hlp with converting the .RAW binary file to image

Solved!
Go to solution

Hi there.

In my application I need to transfer images from Imprex camera to LabView interface with Frame grabber, and then convert these images into .raw binary format. Camera works fine, so I've got the raw files using simple VI (attached "cup" picture). The problem starts, when I'm trying to read these files and recall them as images back in LabView (just to make sure I've got the right images). I found an example VI which used to make convertion form form binary-to-image, but it doesn't show the correct image. Could you check my VIs and point, where the problem is.

Thanks, ilya

0 Kudos
Message 1 of 3
(4,121 Views)
Solution
Accepted by topic author iliya_x

You should write and read the same type of data. In your case you wrote IMAQ Image, but read 2D array.

Use IMAQ Image to Array before writing as shown here, for example: http://forums.ni.com/t5/Machine-Vision/can-imaq-write-tiff-file-2-save-array-of-SGL-values/m-p/18519...

 

In addition - why do you need RAW and do not use PNG or TIFF for storing image?

 

Andrey.

Message 2 of 3
(4,105 Views)

Yep, now it works great.

Thanks for your help, Andrey.

VIs attached.

0 Kudos
Message 3 of 3
(4,068 Views)