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
a4a3d7fb
Commit
a4a3d7fb
authored
Jun 29, 2012
by
Sebastian Eichelbaum
Browse files
[MERGE]
parents
248e8492
82c1b3e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
2 deletions
+24
-2
src/modules/atlasSurfaces/WMAtlasSurfaces.cpp
src/modules/atlasSurfaces/WMAtlasSurfaces.cpp
+24
-2
No files found.
src/modules/atlasSurfaces/WMAtlasSurfaces.cpp
View file @
a4a3d7fb
...
...
@@ -151,11 +151,29 @@ void WMAtlasSurfaces::moduleMain()
if
(
m_labelFile
->
get
(
true
)
==
boost
::
filesystem
::
path
(
""
)
)
{
std
::
string
fn
=
m_dataSet
->
getFilename
();
std
::
string
ext
(
".nii.gz"
);
std
::
string
ext
(
""
);
if
(
fn
.
find
(
".nii.gz"
)
!=
std
::
string
::
npos
)
{
ext
=
".nii.gz"
;
}
else
if
(
fn
.
find
(
".nii"
)
!=
std
::
string
::
npos
)
{
ext
=
".nii"
;
}
std
::
string
csvExt
(
".csv"
);
fn
.
replace
(
fn
.
find
(
ext
),
ext
.
size
(),
csvExt
);
if
(
ext
!=
""
)
{
// fn.replace( fn.find( ext ), ext.size(), csvExt );
}
else
{
fn
.
append
(
csvExt
);
}
m_labelFile
->
set
(
fn
);
}
if
(
!
boost
::
filesystem
::
exists
(
m_labelFile
->
get
()
)
)
{
wlog
::
warn
(
"Atlas Surfaces"
)
<<
"Expected label file does not exist! ("
<<
m_labelFile
->
get
().
string
()
<<
")"
;
...
...
@@ -225,8 +243,12 @@ void WMAtlasSurfaces::createSurfaces()
new
WCreateSurfaceJob
<
unsigned
char
>
(
m_dataSet
,
m_regionMeshes2
,
newProgress
,
pro
)
);
break
;
case
W_DT_INT16
:
job
=
boost
::
shared_ptr
<
WCreateSurfaceJob
<
int16_t
>
>
(
new
WCreateSurfaceJob
<
int16_t
>
(
m_dataSet
,
m_regionMeshes2
,
newProgress
,
pro
)
);
break
;
case
W_DT_SIGNED_INT
:
job
=
boost
::
shared_ptr
<
WCreateSurfaceJob
<
int
>
>
(
new
WCreateSurfaceJob
<
int
>
(
m_dataSet
,
m_regionMeshes2
,
newProgress
,
pro
)
);
break
;
case
W_DT_FLOAT
:
case
W_DT_DOUBLE
:
...
...
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