openlifu.plan.solution_analysis.get_focus_matrix¶
- openlifu.plan.solution_analysis.get_focus_matrix(focus, origin=[0, 0, 0]) ndarray[source]¶
Get the coordinate transform from the focus to the transducer
The “focal coordinate system” here refers to a coordinate system whose z-axis is along the ray from the transducer’s “effective origin” (see Transducer.get_effective_origin) to the focus center.
- Parameters:
focus – A 3D point describing the focal coordinate system location in transducer coordinates
origin – A 3D point describing the transducer “effective origin” in transducer coordinates
- Returns: A 4x4 affine transform matrix that describes the coordinate transformation from the focus
coordinate system to the transducer coordinates.