binarize_image_with_threshold ================================================================ .. py:function:: petpal.preproc.image_operations_4d.binarize_image_with_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, and return a binary mask. :param input_image_numpy: Input image data to binarize with threshold (upper and/or lower). :type input_image_numpy: np.ndarray :param lower_bound: Lower bound of the threshold. :type lower_bound: float :param upper_bound: Upper bound of the threshold. :type upper_bound: float :returns: *bounded_image (np.ndarray)* -- Binary mask of original image where voxels within threshold are 1, and 0 elsewhere.