mphy0026.algorithms.compute_tracked_pointer_posn module
Module to point pointer computations.
- mphy0026.algorithms.compute_tracked_pointer_posn.check_tracker_data(tracker_frame, tracker_type, pointer, reference)[source]
Checks what data is valid from tracker.
- Parameters:
tracker_frame – frame of data
tracker_type – string [vega|aurora|aruco]
pointer – config information for pointer
reference – optional config information for reference
- Returns:
- mphy0026.algorithms.compute_tracked_pointer_posn.compute_tracked_pointer_posn(tracker_frame, tracker_type, pointer, reference, offset, template_mode=False)[source]
Computes the pointer position, or returns None if not enough items tracked.
- Parameters:
tracker_frame – tracker frame
tracker_type – tracker type must be [vega|aurora|aruco]
pointer – config information for pointer
reference – optional config information for reference
offset – 4x1 tip offset in pointer coordinate system
template_mode – If True, you can calibrate pointer tip, using ref.
- Returns:
1x3 ndarray of pointer tip