/* ----------------------------------------------------------------------- * * This file is part of GEL, http://www.imm.dtu.dk/GEL * Copyright (C) the authors and DTU Informatics * For license and list of authors, see ../../doc/intro.pdf * ----------------------------------------------------------------------- */ #include #include "../Geometry/load_raw.h" using namespace CGLA; using namespace std; namespace Geometry { template bool load_raw(const string& file, RGrid& grid) { int sz = grid.get_size(); ifstream f(file.c_str(),ios::binary); if(f) { f.read(reinterpret_cast(grid.get()),sz*sizeof(T)); return true; } cerr << "Could not open volume :" << file << endl; return false; } template bool load_raw(const string&, RGrid& grid); template bool load_raw(const string&, RGrid& grid); template bool load_raw(const string&, RGrid& grid); template bool load_raw(const string&, RGrid& grid); }