#include "creaImageIOSystem.h"
#include "creaImageIOUltrasonixImageReader.h"
+
#include <creaVtk.h>
#include <boost/filesystem/path.hpp>
+
+#if defined(_WIN32)
+#pragma warning(disable: 4996)
+#endif
+
namespace creaImageIO
{
#define HEADER_SIZE 19
}
fclose(Ultrasonix_file);
- im = crea::NewVtkImageDataFromRaw( dataRF, h.width, h.height, h.frame);
+ im = crea::NewVtkImageDataFromRaw<short>( dataRF, h.width, h.height, h.frame);
break;
case TYPE_B8:
fclose(Ultrasonix_file);
- im = crea::NewVtkImageDataFromRaw( dataB8, h.width, h.height, h.frame);
+ im = crea::NewVtkImageDataFromRaw<char>( dataB8, h.width, h.height, h.frame);
break;
case TYPE_B32:
fclose(Ultrasonix_file);
- im = crea::NewVtkImageDataFromRaw( dataB32, h.width, h.height, h.frame);
+ im = crea::NewVtkImageDataFromRaw<int>( dataB32, h.width, h.height, h.frame);
break;
}
if ( (i = attr.find("D0004_1500")) != attr.end())
{
boost::filesystem::path full_path(filename);
- std::string f = full_path.leaf();
+ std::string f = full_path.leaf().string();
i->second = f;
}
if ( (i = attr.find("D0028_0010")) != attr.end())