iRoCS Toolbox
1.1.0
|
The BlitzAnalyzeFile class provides a function for saving of voxel blocks to the Analyze file format. More...
#include <BlitzAnalyzeFile.hh>
Public Member Functions | |
BlitzAnalyzeFile (const std::string &fName) | |
Creates an AnalyzeFile, opening the given file. More... | |
~BlitzAnalyzeFile () | |
template<typename T > | |
void | saveArrayWithElemSize (const blitz::Array< T, 3 > &inArray, const blitz::TinyVector< float, 3 > &element_size_um) |
Writes a three dimensional data set. More... | |
The BlitzAnalyzeFile class provides a function for saving of voxel blocks to the Analyze file format.
Currently supported are Blitz-Arrays of data element types: unsigned char short int blitz::TinyVector<unsigned char,3> //for RGB arrays
Definition at line 69 of file BlitzAnalyzeFile.hh.
BlitzAnalyzeFile::BlitzAnalyzeFile | ( | const std::string & | fName | ) |
Creates an AnalyzeFile, opening the given file.
fName | file to be opened, without file extention! |
BlitzAnalyzeFile::~BlitzAnalyzeFile | ( | ) |
void BlitzAnalyzeFile::saveArrayWithElemSize | ( | const blitz::Array< T, 3 > & | inArray, |
const blitz::TinyVector< float, 3 > & | element_size_um | ||
) |
Writes a three dimensional data set.
inArray | array to be written into file |
element_size_um | element size in um (lev,row,col) |
Supported types T: unsigned char short int blitz::TinyVector<unsigned char,3>