scallops.segmentation.util.threshold_quantile

scallops.segmentation.util.threshold_quantile(image, quantile)

Compute threshold using specified quantile after subtraction of the minimum per channel.

Parameters:
  • image (DataArray) – Image with the dimensions (t,c,z,y,x)

  • quantile (float) – Quantile (between 0 and 1 inclusive)

Returns:

Tuple of image with minimum subtracted and computed threshold

Return type:

tuple[DataArray, ndarray]