//--------------------------------// //-- Read (Depth Map Seq.) File --// //--------------------------------// void ReadRawDepthMapSeqFile(char* PathName,unsigned short int*** ImgSeq,int n_o_im,int offset) { //Main Header Bytes Number int head_size=4; //Image Header Bytes Number int imh_size=12; //Image Parameter int im_w=WIDTH; int im_h=HEIGHT; int temp; int i,j,k; FILE *file; //MemoryAllocation unsigned short int* flush=new unsigned short int[imh_size]; unsigned short int* pix=new unsigned short int; //OpenFile file=fopen(PathName,"r"); if (file==NULL) { printf("\n ->> error in opening %s -\n",PathName); exit(-1); } //Flushing (Header) 8 first char) (4 short int) temp=fread(flush,sizeof(unsigned short int),head_size,file); //Flushing Images (offset) for(k=0;k