LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert DPX Image File to RAW

Hello Folks;
 
Anyone out there know how to convert a DPX image file (i.e. use in digital movie cameras) to RAW or other file format using LabVIEW?  Is it possible to simply strip the header file (if so, how to)?  Thanks!
 
DJH
0 Kudos
Message 1 of 3
(3,242 Views)
It seems you might get away with doing that in some cases. The image data
seems to be 4 bytes for each pixel. But the format supports many other
layouts (bit sizes, colometric specification per element, line padding).

Stipping the header could be more difficult then simply stripping a fixed
number of bytes. Again, you might get away with it in your case, but not in
general. The header size is flexible, so if you want to do it correctly,
you'll have to parse it. Luckilly, the second U32 is the offset to the image
data, so that is very easy! But somehow you also need to get the width and
height out of the structure.

I got my information from http://www.cineon.com/ff_draft.html , which
describes the DPX format. Not sure if it's correct.

Regards,

Wiebe.


0 Kudos
Message 2 of 3
(3,231 Views)

I figured out how to do this (in my case)... as Wiebe points out, this may not work for all...

I wound up using the IMAQ ReadFile by reading the raw file and stripping out the header.  The IMAQ SetImageSize set up my image size.  I have included my VI for anyone out there who would like to view.  Again, this works for me.

Oh, VI is using LabVIEW 8.5 (eval).

DJH

 

 

0 Kudos
Message 3 of 3
(3,220 Views)