Closed junjun1023 closed 1 year ago
You would pass a custom argument to the world_from_anatomical
transform, thus rotating the volume with respect to world. The faceup()
method is just a convenience method that modifies this transform with a rotation. You can see its source code for an example of how to do construct the rotation.
I get the hu_matrix from
pydicom
then createvolume
withVolume.from_hu
and trying to get projection with PA view. Because theanatomical_coordinate_system
forVolume.from_hu
does not implementRAS
, I can only get projection on axial plane. The raised error showNotImplementedError("conversion from RAS (not hard, look at LPS example)" )
.The rotation matrix of LPS is
I know the difference between
LPS
andRAS
is only the opposite direction of axis. However, I tried to add negative symbol-
, but I still can't get PA view projection.Could you please give me some hint to modify it?