Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

SpecFVR/Image_io.h

Go to the documentation of this file.
00001 #ifndef _IMAGE_IO_H_
00002 #define _IMAGE_IO_H_
00003 // set of functions to work on raw, pvp and fvr files
00004 // need to add some checks to see if things worked and handle white space better
00005 
00006 #include <fstream.h>
00007 #include "vuSimpleTypes.h"
00008 
00009 #define MAGIC_NUM_LEN   128
00010 
00011 namespace SpecFVRNS 
00012 {
00013     
00014 // read XSize x YSize x ZSize integers with d_size bytes from fin to vol
00015 // converts to floats and assumes vol is size X, Y, Z
00016 void read_raw(ifstream& fin, float* vol, dword X, dword Y, dword Z, dword XSize, dword YSize, dword ZSize, dword d_size);
00017 
00018 //same as read_raw for ifstreams, but taking data from byte array
00019 void read_raw(byte *data, float* vol, dword X, dword Y, dword Z, 
00020               dword XSize, dword YSize, dword ZSize, dword d_size);
00021 
00022 // same as above, but read data members in raw
00023 void read_raw_r(ifstream& fin, byte* vol, dword X, dword Y, dword Z, dword XSize, dword YSize, dword ZSize, dword d_size);
00024 
00025 // read pvp or fvr header; return 0 on fail, 1 if pvp, 2 if fvr
00026 int read_head(ifstream& in, dword& XSize, dword& YSize, dword& ZSize, dword& b_size);
00027 
00028 bool write_pvp_head(ofstream& fout, dword XSize, dword YSize, dword ZSize, dword b_size);
00029 
00030 bool write_fvr_head(ofstream& fout, dword XSize, dword YSize, dword ZSize, dword b_size);
00031  
00032 } //end of namespace
00033 
00034 #endif

Generated on Wed Dec 15 21:20:29 2004 for vuVolume by  doxygen 1.3.9.1