compute_peak_to_mean_ratio
grb_trigger.features.compute_peak_to_mean_ratio(fg_window)Compute the peak-to-mean ratio of the foreground window.
Parameters
fg_windowtuple of numpy.ndarray-
Foreground window returned by
split_windows.
Returns
- numpy.ndarray, shape (2,)
-
max / meanfor the low and high channel (0if the mean is 0).
Raises
- ValueError
-
If a channel of
fg_windowis empty.