Positioning camera perpendicular to image slice in rotated volumes
Andrzej Marciniak <[email protected]> Tue, 12 Mar 2019 18:10:33 -0700 (MST)
| Newsgroups | gmane.comp.lib.vtk.user |
|---|---|
| Message-ID | <[email protected]> |
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 _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: https://vtk.org/mailman/listinfo/vtkusers