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
0aece25e
Commit
0aece25e
authored
22 years ago
by
Stephen Smith
Browse files
Options
Downloads
Patches
Plain Diff
Checked in prior to CVS conversion
parent
eb2a5683
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
avwfixfloat.cc
+4
-2
4 additions, 2 deletions
avwfixfloat.cc
avwmerge.c
+4
-3
4 additions, 3 deletions
avwmerge.c
with
8 additions
and
5 deletions
avwfixfloat.cc
+
4
−
2
View file @
0aece25e
#include
<math.h>
#include
<iostream>
#include
<iostream>
#include
<string>
#include
<string>
#include
"newimageall.h"
#include
"newimageall.h"
...
@@ -76,13 +77,14 @@ int main(int argc, char *argv[])
...
@@ -76,13 +77,14 @@ int main(int argc, char *argv[])
int
ival1
=
(
int
)
*
(
cptr
+
1
);
int
ival1
=
(
int
)
*
(
cptr
+
1
);
int
ival2
=
(
int
)
*
(
cptr
+
2
);
int
ival2
=
(
int
)
*
(
cptr
+
2
);
int
ival3
=
(
int
)
*
(
cptr
+
3
);
int
ival3
=
(
int
)
*
(
cptr
+
3
);
if
(
(
ival3
==
0
)
&&
(
(
ival0
!=
0
)
||
(
ival1
!=
0
)
||
(
ival2
!=
0
)
)
)
if
(
(
(
ival3
==
0
)
&&
(
(
ival0
!=
0
)
||
(
ival1
!=
0
)
||
(
ival2
!=
0
)
)
)
||
(
ival3
<-
125
)
)
{
{
badcount
++
;
badcount
++
;
if
(
verbose
)
{
if
(
verbose
)
{
cerr
<<
"BAD VALUE DETECTED - fixing it"
<<
endl
;
cerr
<<
"BAD VALUE DETECTED - fixing it"
<<
endl
;
dump_float
((
float
*
)
cptr
);
cerr
<<
endl
;
dump_float
((
float
*
)
cptr
);
cerr
<<
endl
;
// cerr << " value = " << vol1(x,y,z,t) << endl;
}
}
*
(
cptr
+
0
)
=
0
;
*
(
cptr
+
0
)
=
0
;
*
(
cptr
+
1
)
=
0
;
*
(
cptr
+
1
)
=
0
;
...
...
This diff is collapsed.
Click to expand it.
avwmerge.c
+
4
−
3
View file @
0aece25e
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
/* avwmerge.c - concatenate AVW files into a single output
/* avwmerge.c - concatenate AVW files into a single output
Steve Smith
and
David Flitney, FMRIB Image Analysis Group
Steve Smith
,
David Flitney
and Stuart Clare
, FMRIB Image Analysis Group
Copyright (C) 2000-200
1
University of Oxford */
Copyright (C) 2000-200
2
University of Oxford */
/* CCOPYRIGHT */
/* CCOPYRIGHT */
...
@@ -29,6 +29,7 @@ void usage()
...
@@ -29,6 +29,7 @@ void usage()
printf
(
"-x : concatenate images in the x direction
\n
"
);
printf
(
"-x : concatenate images in the x direction
\n
"
);
printf
(
"-y : concatenate images in the y direction
\n
"
);
printf
(
"-y : concatenate images in the y direction
\n
"
);
printf
(
"-z : concatenate images in the z direction
\n\n
"
);
printf
(
"-z : concatenate images in the z direction
\n\n
"
);
printf
(
"-a : auto-choose: single slices -> volume, volumes -> 4D (time series)
\n\n
"
);
exit
(
1
);
exit
(
1
);
}
}
...
@@ -88,7 +89,7 @@ for(i = 0; i < argc-3; i++)
...
@@ -88,7 +89,7 @@ for(i = 0; i < argc-3; i++)
bpp
=
AvwGetDataType
(
src
,
&
t
)
/
8
;
bpp
=
AvwGetDataType
(
src
,
&
t
)
/
8
;
V
=
v
[
0
];
X
=
x
[
0
];
Y
=
y
[
0
];
Z
=
z
[
0
];
V
=
v
[
0
];
X
=
x
[
0
];
Y
=
y
[
0
];
Z
=
z
[
0
];
if
(
direction
==
4
){
if
(
direction
==
4
){
if
((
z
[
0
]
==
0
)
&&
(
v
[
0
]
==
0
))
direction
=
3
;
if
((
z
[
0
]
<
2
)
&&
(
v
[
0
]
<
2
))
direction
=
3
;
else
direction
=
0
;
else
direction
=
0
;
}
}
}
}
...
...
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