react-vtkjs-viewport icon indicating copy to clipboard operation
react-vtkjs-viewport copied to clipboard

Wrong orientation for Sagittal plane

Open kurienzach opened this issue 3 years ago • 2 comments

Almost all DICOM viewers render the Sagittal view with the head facing left. See attached image for different b/w OHIF and Radiant.

I tried modifying the sliceNormal for the sagittal view from [1,0,0] to [-1, 0, 0] in the props to View2D component which makes the orientation right but selects the wrong slice. Is there any way this can be corrected? I have basic understanding of VTK. If somebody can give me pointers on how to go about making this change inside react-vtkjs-viewer, I can attempt to fix this. sagittal-view-radiant sagittal-view-ohif

kurienzach avatar Feb 13 '22 08:02 kurienzach

Any one figured solution for this ?

vishnuvardhana avatar Apr 21 '22 08:04 vishnuvardhana

I used a hack in the OHIF v2 code I gleaned from another issue's comments (https://github.com/OHIF/Viewers/issues/2847) to take care of this. In extensions/vtk/src/commandsModule.js I set the sliceNormal to [-0.999999995, 0.0001, 0] where it was original [1, 0, 0].

Todd Jensen, PhD Jensen Informatics LLC

jensen0914 avatar Mar 05 '24 18:03 jensen0914