Skip to content

Commit

Permalink
revert cam angle
Browse files Browse the repository at this point in the history
  • Loading branch information
emilykubota committed Jan 5, 2024
1 parent 70fb6cd commit 9739423
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions fsub_extractor/utils/fury_viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,7 @@ def visualize_bundles(
roi_actor=None,
hemi="lh",
roll_val=0,
pitch_val=0,
yaw_val=0,
camera_angle="sagittal",
filename=None,
):

Expand All @@ -268,8 +267,7 @@ def visualize_bundles(
hemi = hemisphere (default: 'lh')
roi_actor: list of fury roi actors (e.g., [output] of define roi_actor)
slice_actor: list fury slice actors (e.g., [output] of define_slice_actor)
roll_val: roll value for camera angle (default 0)
yaw_val: yaw value for camera angle (default 0)
camera_angle: view for camera ("sagittal" or "axial", default = "sagittal")
filename: fullpath to save the image (e.g., .png)
note: for plotting multiple streamlines, rois, or slices the function
Expand All @@ -296,8 +294,14 @@ def visualize_bundles(

cam = figure.GetActiveCamera()
cam.SetViewUp(0, 0, 0)
cam.Yaw(yaw_val)
cam.Roll(roll_val)

if camera_angle == "sagittal":
if hemi == "lh":
cam.Yaw(270)
cam.Roll(90)
if hemi == "rh":
cam.Yaw(90)
cam.Roll(270)

if interactive:
window.show(figure)
Expand Down

0 comments on commit 9739423

Please sign in to comment.