Skip to content
Snippets Groups Projects
Commit 448f2871 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Bugfix - transform.axisBounds was assuming image shape of 3 dimensions.

parent 2ea2c061
No related branches found
No related tags found
No related merge requests found
......@@ -565,7 +565,7 @@ class DisplayContext(props.HasProperties):
for ax in range(3):
lo, hi = transform.axisBounds(img.shape, xform, ax)
lo, hi = transform.axisBounds(img.shape[:3], xform, ax)
if lo < minBounds[ax]: minBounds[ax] = lo
if hi > maxBounds[ax]: maxBounds[ax] = hi
......
......@@ -25,7 +25,7 @@ def concat(x1, x2):
def axisBounds(shape, xform, axis):
"""Returns the (lo, hi) bounds of the specified axis."""
x, y, z = shape
x, y, z = shape[:3]
x -= 0.5
y -= 0.5
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment