Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
avwutils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
avwutils
Commits
b0bb840a
Commit
b0bb840a
authored
16 years ago
by
Matthew Webster
Browse files
Options
Downloads
Patches
Plain Diff
removed volumeinfo
parent
f56c5017
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
fslorient.cc
+4
-5
4 additions, 5 deletions
fslorient.cc
fslpspec.cc
+6
-15
6 additions, 15 deletions
fslpspec.cc
fslswapdim.cc
+2
-3
2 additions, 3 deletions
fslswapdim.cc
with
12 additions
and
23 deletions
fslorient.cc
+
4
−
5
View file @
b0bb840a
...
@@ -106,11 +106,10 @@ int fmrib_main(int argc,char *argv[])
...
@@ -106,11 +106,10 @@ int fmrib_main(int argc,char *argv[])
int
retval
=
0
;
int
retval
=
0
;
string
option
=
argv
[
1
],
filename
;
string
option
=
argv
[
1
],
filename
;
volumeinfo
volinfo
;
volume4D
<
T
>
invol
;
volume4D
<
T
>
invol
;
filename
=
argv
[
argc
-
1
];
filename
=
argv
[
argc
-
1
];
read_orig_volume4D
(
invol
,
filename
,
volinfo
);
read_orig_volume4D
(
invol
,
filename
);
if
(
option
==
"-getorient"
)
{
if
(
option
==
"-getorient"
)
{
getorient
(
invol
);
getorient
(
invol
);
...
@@ -185,9 +184,9 @@ int fmrib_main(int argc,char *argv[])
...
@@ -185,9 +184,9 @@ int fmrib_main(int argc,char *argv[])
if
(
modified
)
{
if
(
modified
)
{
if
(
FslBaseFileType
(
F
sl
Get
FileType
(
&
volinfo
))
!=
FSL_TYPE_ANALYZE
)
{
if
(
FslBaseFileType
(
f
slFileType
(
filename
))
!=
FSL_TYPE_ANALYZE
)
{
FslSetOverrideOutputType
(
F
sl
Get
FileType
(
&
volinfo
));
FslSetOverrideOutputType
(
f
slFileType
(
filename
));
save_orig_volume4D
(
invol
,
filename
,
volinfo
);
save_orig_volume4D
(
invol
,
filename
);
FslSetOverrideOutputType
(
-
1
);
// restore to default
FslSetOverrideOutputType
(
-
1
);
// restore to default
}
else
{
}
else
{
cerr
<<
"Cannot modify orientation for Analyze files"
<<
endl
;
cerr
<<
"Cannot modify orientation for Analyze files"
<<
endl
;
...
...
This diff is collapsed.
Click to expand it.
fslpspec.cc
+
6
−
15
View file @
b0bb840a
...
@@ -60,28 +60,19 @@ int fmrib_main(int argc, char* argv[])
...
@@ -60,28 +60,19 @@ int fmrib_main(int argc, char* argv[])
outname
=
inname
;
outname
=
inname
;
Matrix
iMat
,
oMat
;
Matrix
iMat
,
oMat
;
volume4D
<
float
>
vout
;
volume4D
<
float
>
vin
,
vout
;
volume
<
float
>
mask
;
volume
<
float
>
mask
;
volumeinfo
volinfo
;
float
vinTR
;
{
read_volume4D
(
vin
,
argv
[
1
]);
volume4D
<
float
>
vin
;
generate_masks
(
mask
,
stddevvol
(
vin
));
read_volume4D
(
vin
,
argv
[
1
],
volinfo
);
iMat
=
vin
.
matrix
(
mask
);
generate_masks
(
mask
,
stddevvol
(
vin
));
iMat
=
vin
.
matrix
(
mask
);
vinTR
=
vin
.
TR
();
}
oMat
=
calcFFT
(
iMat
);
oMat
=
calcFFT
(
iMat
);
vout
.
setmatrix
(
oMat
,
mask
);
vout
.
setmatrix
(
oMat
,
mask
);
vout
.
setTR
(
vinTR
);
copybasicproperties
(
vin
,
vout
);
int
retval
=
0
;
return
save_volume4D
(
vout
,
outname
);
retval
=
save_volume4D
(
vout
,
outname
,
volinfo
);
return
retval
;
}
}
...
...
This diff is collapsed.
Click to expand it.
fslswapdim.cc
+
2
−
3
View file @
b0bb840a
...
@@ -35,9 +35,8 @@ int fmrib_main(int argc,char *argv[])
...
@@ -35,9 +35,8 @@ int fmrib_main(int argc,char *argv[])
showmat
=
true
;
showmat
=
true
;
}
}
volumeinfo
volinfo
;
volume4D
<
T
>
invol
;
volume4D
<
T
>
invol
;
read_orig_volume4D
(
invol
,
inname
,
volinfo
);
read_orig_volume4D
(
invol
,
inname
);
Matrix
affmat
;
Matrix
affmat
;
affmat
=
invol
.
swapmat
(
newx
,
newy
,
newz
);
affmat
=
invol
.
swapmat
(
newx
,
newy
,
newz
);
...
@@ -54,7 +53,7 @@ int fmrib_main(int argc,char *argv[])
...
@@ -54,7 +53,7 @@ int fmrib_main(int argc,char *argv[])
int
retval
=
0
;
int
retval
=
0
;
if
(
outname
!=
""
)
{
if
(
outname
!=
""
)
{
retval
=
save_orig_volume4D
(
invol
,
outname
,
volinfo
);
retval
=
save_orig_volume4D
(
invol
,
outname
);
}
}
return
retval
;
return
retval
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment