Subject: as discussed in https://github.com/gentoo/sci/issues/963 --- a/src/newimage/generalio.cc 2019-09-11 09:24:32.000000000 -0400 +++ b/src/newimage/generalio.cc ยง2020-08-07 20:30:20.037494201 -0400 @@ -308,6 +308,41 @@ return 0; } +template +int readGeneralVolume(volume& target, const string& filename, + short& dtype, const bool swap2radiological, + int64_t x0, int64_t y0, int64_t z0, int64_t t0, int64_t d50, int64_t d60, int64_t d70, + int64_t x1, int64_t y1, int64_t z1, int64_t t1, int64_t d51, int64_t d61, int64_t d71, + const bool readAs4D); + +template +int readGeneralVolume(volume& target, const string& filename, + short& dtype, const bool swap2radiological, + int64_t x0, int64_t y0, int64_t z0, int64_t t0, int64_t d50, int64_t d60, int64_t d70, + int64_t x1, int64_t y1, int64_t z1, int64_t t1, int64_t d51, int64_t d61, int64_t d71, + const bool readAs4D); + +template +int readGeneralVolume(volume& target, const string& filename, + short& dtype, const bool swap2radiological, + int64_t x0, int64_t y0, int64_t z0, int64_t t0, int64_t d50, int64_t d60, int64_t d70, + int64_t x1, int64_t y1, int64_t z1, int64_t t1, int64_t d51, int64_t d61, int64_t d71, + const bool readAs4D); + +template +int readGeneralVolume(volume& target, const string& filename, + short& dtype, const bool swap2radiological, + int64_t x0, int64_t y0, int64_t z0, int64_t t0, int64_t d50, int64_t d60, int64_t d70, + int64_t x1, int64_t y1, int64_t z1, int64_t t1, int64_t d51, int64_t d61, int64_t d71, + const bool readAs4D); + +template +int readGeneralVolume(volume& target, const string& filename, + short& dtype, const bool swap2radiological, + int64_t x0, int64_t y0, int64_t z0, int64_t t0, int64_t d50, int64_t d60, int64_t d70, + int64_t x1, int64_t y1, int64_t z1, int64_t t1, int64_t d51, int64_t d61, int64_t d71, + const bool readAs4D); + template int read_volumeROI(volume& target, const string& filename, short& dtype, int64_t x0, int64_t y0, int64_t z0, int64_t t0, --- a/src/fslsurface/fslsurfaceio.cc 2019-09-11 09:23:11.000000000 -0400 +++ b/src/fslsurface/fslsurfaceio.cc 2020-08-08 04:17:55.917387550 -0400 @@ -1055,6 +1055,7 @@ return 0; } + template int readGIFTI( fslSurface & surf, const string & filename); template int writeGIFTI( const fslSurface & surf, const std::string & filename, int enc);