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
f32a53ee
Commit
f32a53ee
authored
Feb 19, 2010
by
Alexander Wiebel
Browse files
[ADD] loading double data sets
parent
a876a0c2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
src/dataHandler/io/WLoaderNIfTI.cpp
src/dataHandler/io/WLoaderNIfTI.cpp
+9
-1
No files found.
src/dataHandler/io/WLoaderNIfTI.cpp
View file @
f32a53ee
...
...
@@ -38,6 +38,7 @@
#include "../WValueSetBase.h"
#include "../WValueSet.h"
#include "../WDataHandlerEnums.h"
#include "../../common/WLogger.h"
WLoaderNIfTI
::
WLoaderNIfTI
(
std
::
string
fileName
)
...
...
@@ -125,8 +126,15 @@ boost::shared_ptr< WDataSet > WLoaderNIfTI::load()
break
;
}
case
DT_DOUBLE
:
{
std
::
vector
<
double
>
data
=
copyArray
(
reinterpret_cast
<
double
*
>
(
filedata
->
data
),
countVoxels
,
vDim
);
newValueSet
=
boost
::
shared_ptr
<
WValueSetBase
>
(
new
WValueSet
<
double
>
(
order
,
vDim
,
data
,
W_DT_DOUBLE
)
);
break
;
}
default:
std
::
cout
<<
"unknown data type "
<<
header
->
datatype
<<
std
::
endl
;
wlog
::
error
(
"WLoaderNIfTI"
)
<<
"unknown data type "
<<
header
->
datatype
<<
std
::
endl
;
newValueSet
=
boost
::
shared_ptr
<
WValueSetBase
>
();
}
...
...
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