Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
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
fslpy
Commits
52a63bd8
There was a problem fetching the pipeline summary.
Commit
52a63bd8
authored
8 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
Double used for scale/offset transforms.
parent
14f57b57
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fsl/utils/transform.py
+1
-1
1 addition, 1 deletion
fsl/utils/transform.py
with
1 addition
and
1 deletion
fsl/utils/transform.py
+
1
−
1
View file @
52a63bd8
...
@@ -63,7 +63,7 @@ def scaleOffsetXform(scales, offsets):
...
@@ -63,7 +63,7 @@ def scaleOffsetXform(scales, offsets):
if
lens
<
3
:
scales
=
scales
+
[
1.0
]
*
(
3
-
lens
)
if
lens
<
3
:
scales
=
scales
+
[
1.0
]
*
(
3
-
lens
)
if
leno
<
3
:
offsets
=
offsets
+
[
0.0
]
*
(
3
-
leno
)
if
leno
<
3
:
offsets
=
offsets
+
[
0.0
]
*
(
3
-
leno
)
xform
=
np
.
eye
(
4
,
dtype
=
np
.
float
32
)
xform
=
np
.
eye
(
4
,
dtype
=
np
.
float
64
)
xform
[
0
,
0
]
=
scales
[
0
]
xform
[
0
,
0
]
=
scales
[
0
]
xform
[
1
,
1
]
=
scales
[
1
]
xform
[
1
,
1
]
=
scales
[
1
]
...
...
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