New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix anatomical orientation of CCF #48
Comments
In fact, it is Currently, data displayed in Slicer are shown in RAS Showing the data in in expected coordinate frame can be done applying the following rotation matrix (the value were obtained by manually setting the matrix in the transform module with volume rendering enabled):
Note that the values above can directly be copy-paste in the matrix widget of the transform module in Slicer. Here is the transformed volume: For reference, here is the original un-transformed volume: Remaining issue is that the direction are inversed, to address this we should look into defining new slice orientation presets. See https://www.slicer.org/wiki/Documentation/Nightly/Developers/Slice_Orientation_Presets |
In addition of applying the transform described above, the Coronal preset should be updated from
to
Updating the existing preset can be done using: s = getNode("vtkMRMLSliceNodeGreen")
s.DisableModifiedEventOn()
orientationMatrix = vtk.vtkMatrix3x3()
orientationMatrix.SetElement(0, 0, -1.0)
orientationMatrix.SetElement(1, 0, 0.0)
orientationMatrix.SetElement(2, 0, 0.0)
orientationMatrix.SetElement(0, 1, 0.0)
orientationMatrix.SetElement(1, 1, 0.0)
orientationMatrix.SetElement(2, 1, 1.0)
orientationMatrix.SetElement(0, 2, 0.0)
orientationMatrix.SetElement(1, 2, -1.0)
orientationMatrix.SetElement(2, 2, 0.0)
s.RemoveSliceOrientationPreset("Coronal")
s.AddSliceOrientationPreset("Coronal", orientationMatrix)
s.DisableModifiedEventOff() |
The approach implemented in 49425f9 (BUG: Fix anatomical orientation. See #48) to ensure that `+x` is `+P` updated the coronal preset. This commit updates the preset to ensure the left side of the brain is on the left of the viewers when using the "coronal" reference view. This commit also flip the axis label P and A to match the PIR convention. See #101 (comment)
The approach implemented in 49425f9 (BUG: Fix anatomical orientation. See #48) to ensure that `+x` is `+P` updated the coronal preset. This commit updates the preset to ensure the left side of the brain is on the left of the viewers when using the "coronal" reference view. This commit also flips the axis label P and A to match the PIR convention. See #101 (comment)
Currently the brain is not oriented correctly. The orientation header in the
.nrrd
files used for the CCF are incorrect. Please use ASL (x=A-to-P, y=S-to-I, z=L-to-R).The text was updated successfully, but these errors were encountered: