invesalius / invesalius3

3D medical imaging reconstruction software
https://invesalius.github.io/
GNU General Public License v2.0
627 stars 285 forks source link

Add stylus/probe visualization #808

Closed lukatolo closed 2 months ago

lukatolo commented 3 months ago

To correctly orient the stylus in VTK relative to the head, a manual calibration must be done. (This is because the head-reference-marker-tool can be placed on the physical head at an arbitrary orientation. Even though the stylus is already calibrated with the camera, it is not calibrated with the physical head, hence the manual step.)

The calibration is defined by 3x3 rotation matrix r_stylus, which rotates the stylus to the correct orientation relative to head. The manual step can be skipped if precise stylus orientation is not important. If the plane of the head-marker-tool is aligned with the physical head's face, the stylus may even look right without calibration.

Additions to code:

Refactors to code (last commit):

Note on aligning passive tracker tools (eg. with Polaris ROM files) Stylus: