NaviNIBS.Navigator.Model.Calculations module¶
- NaviNIBS.Navigator.Model.Calculations.getClosestPointToPointOnMesh(session, whichMesh, point_MRISpace)[source]¶
- Return type:
ndarray]
- NaviNIBS.Navigator.Model.Calculations.calculateMidlineRefDirectionsFromCoilToMRITransf(session, coilToMRITransf)[source]¶
Calculate the reference directions for angle=0 and angle=+90 degrees from midline, in the MRI space.
Note that these directions are dependent on the coilToMRITransf, since the definition of “midline” can differ when on top of the head vs. extreme left/right vs. extreme anterior/posterior.
- :return
refDir1: handle angle (i.e. coil’s -y axis) corresponding to 0 degrees from midline refDir2: handle angle (i.e. coil’s -y axis) corresponding to +90 degrees from midline May return (None, None) if coilToMRITransf is None.
- Return type:
ndarray] | tuple[None, None]
- NaviNIBS.Navigator.Model.Calculations.calculateAngleFromMidlineFromCoilToMRITransf(session, coilToMRITransf)[source]¶
- Return type:
float | None
- NaviNIBS.Navigator.Model.Calculations.calculateCoilToMRITransfFromTargetEntryAngle(session, targetCoord, entryCoord, angle, depthOffset, prevCoilToMRITransf=None)[source]¶
Implemented outside of Target class to allow preparing for invalidating old coilToMRITransf when targetCoord, entryCoord, angle, or depthOffset change, before actually applying that change to the instance.
- Return type:
ndarray | None