[vtkusers] Positioning camera perpendicular to image slice in rotated volumes
Andrzej Marciniak
marciniak.andrzej.zg at gmail.com
Tue Mar 12 21:10:33 EDT 2019
I have MRI scans which are strongly rotated (direction of
ImageData is not identity matrix). How to set initial position and viewUp of
camera, so it can be perfectly perpendicular to imageSlice in vtk.js?
My idea is to:
- get coords of point in the middle of volume and set it as focal point
- calculate position camera so that direction of projection is perpendicular
to image slice plane
- orthogonalizeViewUp in camera.
However, I don't want to reinvent the wheel - if there is ready solution in
API I'd be very thankful for any help.
--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
More information about the vtkusers
mailing list