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
0588bbaf
Commit
0588bbaf
authored
9 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
Fixes to users of axisBounds - the calculateSamplePoints was generating
bad points due to the (default) reduced bounds.
parent
9d2df1ed
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fsl/fsleyes/gl/routines.py
+6
-4
6 additions, 4 deletions
fsl/fsleyes/gl/routines.py
with
6 additions
and
4 deletions
fsl/fsleyes/gl/routines.py
+
6
−
4
View file @
0588bbaf
...
...
@@ -127,8 +127,8 @@ def calculateSamplePoints(shape, resolution, xform, xax, yax, origin='centre'):
# values of a bounding box which
# encapsulates the entire image,
# in the display coordinate system
xmin
,
xmax
=
transform
.
axisBounds
(
shape
,
xform
,
xax
,
origin
)
ymin
,
ymax
=
transform
.
axisBounds
(
shape
,
xform
,
yax
,
origin
)
xmin
,
xmax
=
transform
.
axisBounds
(
shape
,
xform
,
xax
,
origin
,
boundary
=
None
)
ymin
,
ymax
=
transform
.
axisBounds
(
shape
,
xform
,
yax
,
origin
,
boundary
=
None
)
# Number of samples along each display
# axis, given the requested resolution
...
...
@@ -455,8 +455,10 @@ def slice2D(dataShape,
"""
zax
=
3
-
xax
-
yax
xmin
,
xmax
=
transform
.
axisBounds
(
dataShape
,
voxToDisplayMat
,
xax
,
origin
)
ymin
,
ymax
=
transform
.
axisBounds
(
dataShape
,
voxToDisplayMat
,
yax
,
origin
)
xmin
,
xmax
=
transform
.
axisBounds
(
dataShape
,
voxToDisplayMat
,
xax
,
origin
,
boundary
=
None
)
ymin
,
ymax
=
transform
.
axisBounds
(
dataShape
,
voxToDisplayMat
,
yax
,
origin
,
boundary
=
None
)
if
geometry
==
'
triangles
'
:
...
...
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