Skip to content
Snippets Groups Projects
Commit 0c660d2b authored by Christopher Randolph Rhodes's avatar Christopher Randolph Rhodes
Browse files

Corrected upper clipping range in focus-adaptive projection

parent 9bce8268
No related branches found
No related tags found
No related merge requests found
......@@ -106,7 +106,8 @@ class TestZStackDerivedDataProducts(unittest.TestCase):
dff['centroid-0'].to_numpy(),
dff['centroid-1'].to_numpy(),
dff['zi'].to_numpy(),
self.stack
self.stack,
degree=4,
)
self.assertEqual(img.shape[0:2], self.stack.shape[0:2])
......
......@@ -181,7 +181,7 @@ def project_stack_from_focal_points(
zi_image = xy_features.reshape(
stack.hw
).round().clip(
0, stack.nz
0, (stack.nz - 1)
).astype('uint16')
return np.take_along_axis(
......
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