Created
April 13, 2019 06:05
-
-
Save wangqr/ab9d47ec1d955310794256905d60d583 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From: Qirui Wang <wqr.prg@gmail.com> | |
Date: Sat, 13 Apr 2019 01:58:22 -0400 | |
Subject: [PATCH] Force instantiation of template function | |
--- | |
src/newimage/generalio.cc | 25 +++++++++++++++++++++++++ | |
1 file changed, 25 insertions(+) | |
diff --git a/src/newimage/generalio.cc b/src/newimage/generalio.cc | |
--- a/src/newimage/generalio.cc | |
+++ b/src/newimage/generalio.cc | |
@@ -361,6 +361,31 @@ template int read_volumeROI(volume<double>& target, const string& filename, | |
int64_t x0, int64_t y0, int64_t z0, int64_t t0, | |
int64_t x1, int64_t y1, int64_t z1, int64_t t1, | |
const bool swap2radiological, const bool readAs4D); | |
+template int read_volumeROI(volume<char>& target, const string& filename, | |
+ short& dtype, | |
+ 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 swap2radiological, const bool readAs4D); | |
+template int read_volumeROI(volume<short>& target, const string& filename, | |
+ short& dtype, | |
+ 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 swap2radiological, const bool readAs4D); | |
+template int read_volumeROI(volume<int>& target, const string& filename, | |
+ short& dtype, | |
+ 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 swap2radiological, const bool readAs4D); | |
+template int read_volumeROI(volume<float>& target, const string& filename, | |
+ short& dtype, | |
+ 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 swap2radiological, const bool readAs4D); | |
+template int read_volumeROI(volume<double>& target, const string& filename, | |
+ short& dtype, | |
+ 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 swap2radiological, const bool readAs4D); | |
template <class V> | |
int save_unswapped_vol(const V& source, const string& filename, int filetype,int bitsPerVoxel) | |
-- | |
2.21.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment