Skip to content

Commit

Permalink
Fixed rotation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorTatarnikov committed Aug 2, 2024
1 parent 26d4a31 commit 303ddb3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions brainglobe_registration/registration_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,14 @@ def _on_adjust_atlas_rotation(self, pitch: float, yaw: float, roll: float):
output_chunks=(2, bounding_box[1], bounding_box[2]),
)

self._atlas_annotations_layer.data = dask_affine_transform(
self._atlas.annotation,
np.linalg.inv(transform_matrix),
order=0,
output_shape=bounding_box,
output_chunks=(2, bounding_box[1], bounding_box[2]),
)

# Resets the viewer grid to update the grid to the new atlas
self._viewer.reset_view()

Expand Down
Empty file.

0 comments on commit 303ddb3

Please sign in to comment.