threshold ============================================ .. py:function:: petpal.preproc.image_operations_4d.threshold(input_image_numpy: numpy.ndarray, lower_bound: float = -np.inf, upper_bound: float = np.inf) Threshold an image above and/or below a pair of values.