Skip to content

Oriented views#29

Merged
floryst merged 8 commits intomasterfrom
oriented-views
Mar 22, 2021
Merged

Oriented views#29
floryst merged 8 commits intomasterfrom
oriented-views

Conversation

@floryst
Copy link
Copy Markdown
Contributor

@floryst floryst commented Mar 2, 2021

This PR rewrites the views to better handle dataset orientation.

  • cameras transform to the dataset, not the other way around
  • slice views now mimic an orthogonal MPR view, so there should be consistent coronal, sagittal, and axial views (assuming the dataset orientation is correct)
    • This means the slices are along IJK, but each slice is correctly oriented in space.

Also fixes up overloaded term "bounds". Bounds now refers to world
bounds, and extent is the image-space bounds of the image.
This is a useful transform to have in the image config.
applyViewAnnotations makes much more sense.
Instead of transforming objects into image space, just transform the
camera to look at slices correctly.

The views no longer look along fixed world axes.
Instead, they are labeled as Axial, Sagittal, or Coronal, and the
direction in which they look is solely determined by the dataset
orientation.

In fact, the views look along each dataset's IJK axis, effectively
operating as an orthogonal MPR view. This should provide a more
consistent view when looking at different datasets.
Picking the width and height of the resize-to-fit rectangle depends on
both the looking axis and the view up axis.
@floryst floryst requested a review from timthirion March 2, 2021 16:27
@agirault agirault self-requested a review March 3, 2021 20:48
Copy link
Copy Markdown
Contributor

@timthirion timthirion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM. One minor comment on naming.

Comment thread src/components/VtkThreeView.vue Outdated
@timthirion
Copy link
Copy Markdown
Contributor

Code LGTM but I haven't tested. Let me know if you'd like me to before merging.

@floryst floryst merged commit 62ddef1 into master Mar 22, 2021
@floryst floryst deleted the oriented-views branch March 22, 2021 14:59
PaulHax pushed a commit to PaulHax/VolView that referenced this pull request Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants