neuralib.tracking.facemap.core.KeyPointTrack
- class neuralib.tracking.facemap.core.KeyPointTrack[source]
Bases:
objectsingle keypoint tracked result
- __init__(name, x, y, likelihood)
Method generated by attrs for class KeyPointTrack.
- Parameters:
name (str)
x (ndarray)
y (ndarray)
likelihood (ndarray)
- Return type:
None
- name: str
name of keypoint
- x: ndarray
x loc. Array[float, F]
- y: ndarray
y loc. Array[float, F]
- likelihood: ndarray
tracking likelihood. Array[float, F]
- property mean_xy: ndarray
mean x y loc. Array[float, F]
- with_outlier_filter(filter_window=15, baseline_window=50, max_spike=25, max_diff=25)[source]
x,y with outlier filter (remove jump and do the interpolation)
- Parameters:
filter_window (int) – window size for median filter
baseline_window (int) – window size for baseline estimation
max_spike (int) – maximum spike size
max_diff (int) – maximum difference between baseline and filtered signal
- Returns:
- Return type:
Self