LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read avi and convert u8 to u16 then subtract 128 to convert to s16?

I am trying to read an avi file into this VI. The VIs purpose is to build a 2D array from the avi. Any suggestions on where I am going wrong?
0 Kudos
Message 1 of 4
(2,770 Views)
Hi,

I'm not entirely sure what what you application is doing. Are you taking each frame from the avi and then doing some processing on it? Why exactly do you want to turn it into a 2D array?

Regards

Jon B
Applications Engineer
NIUK
0 Kudos
Message 2 of 4
(2,747 Views)

Hi John,

Yes, I am post processing a frame. Only one frame exists on the avi file. But I want to read an avi file into the VI, convert the avi into a matrix and convert the data type from unsigned 8 bit to signed 16 bit. The outcome will eventually be a 3D image.

Thanks

0 Kudos
Message 3 of 4
(2,742 Views)
If you really want to handle the Image as an array then you can use the IMAQ ImagetoArray.vi and then just use a To Word Integer function from the numeric>>conversion pallet, to change the data type.

Regards

Jon B
Applications Engineer
NIUK
0 Kudos
Message 4 of 4
(2,732 Views)