34 int writeMRImage(ptr<const MRImage> img, std::string fn,
bool nifti2 =
false);
46 int writeNDArray(ptr<const NDArray> img, std::string fn,
bool nifti2 =
false);
60 ptr<NDArray>
readNDArray(std::string filename,
bool verbose =
false,
61 bool nopixeldata =
false);
77 ptr<MRImage>
readMRImage(std::string filename,
bool verbose =
false,
78 bool nopixeldata =
false);
int writeMRImage(ptr< const MRImage > img, std::string fn, bool nifti2=false)
Writes out an MRImage to the file fn. Bool indicates whether to use nifti2 (rather than nifti1) forma...
ptr< NDArray > readNDArray(std::string filename, bool verbose=false, bool nopixeldata=false)
Reads an array. Can read nifti's but orientation won't be read.
int writeNDArray(ptr< const NDArray > img, std::string fn, bool nifti2=false)
Writes out an MRImage to the file fn. Bool indicates whether to use nifti2 (rather than nifti1) forma...
ptr< MRImage > readMRImage(std::string filename, bool verbose=false, bool nopixeldata=false)
Reads an MRI image. Right now only nift images are supported. later on, it will try to load image usi...