-#include <creaImageIORFImageReader.h>
++#include <creaImageIORFImageReader.h>
#include <creaVtk.h>
#include <creaImageIOSystem.h>
#include "boost/filesystem/path.hpp"
{
#define HEADER_SIZE 19
- void read_header_rf_file(FILE *rf_file,int *w,int *h,int *n_frame)
- {
- int *header=(int*)malloc(sizeof(int)*HEADER_SIZE);
- fread(header,sizeof(int),HEADER_SIZE,rf_file);
- *n_frame=header[1];
- *w=header[2];
- *h=header[3];
- free(header);
- }
//=====================================================================
RFImageReader::RFImageReader()
{
int *header=(int*)malloc(sizeof(int)*HEADER_SIZE);
fread(header,sizeof(int),HEADER_SIZE,rf_file);
- h.frame = header[1];
- h.width = header[2];
- h.height = header[3];
+ h.frame = header[1];
+ h.height = header[2];
+ h.width = header[3];
free(header);
return true;
}