Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
5ade4ff6
Commit
5ade4ff6
authored
Sep 17, 2009
by
Mathias Goldau
Browse files
[ADD] enforce that gzipped nifti files have the suffix: ".nii.gz"
parent
b3283560
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/dataHandler/WLoaderManager.cpp
src/dataHandler/WLoaderManager.cpp
+5
-0
No files found.
src/dataHandler/WLoaderManager.cpp
View file @
5ade4ff6
...
...
@@ -44,6 +44,11 @@ void WLoaderManager::load( std::string fileName, boost::shared_ptr< WDataHandler
if
(
suffix
==
".nii"
||
suffix
==
".gz"
)
{
// enforce that a gzipped file is has also a "nii" sub suffix
boost
::
filesystem
::
path
p
(
fileName
);
p
.
replace_extension
(
""
);
suffix
=
getSuffix
(
p
.
string
()
);
assert
(
suffix
==
".nii"
&&
"currently only nii files may be gzipped"
);
WLoaderNIfTI
niiLoader
(
fileName
,
dataHandler
);
boost
::
thread
loaderThread
(
niiLoader
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment