dbdicom.extensions.numpy.threshold#

dbdicom.extensions.numpy.threshold(input: Series, low_threshold=0, high_threshold=1, method='absolute') Series[source]#

Create a mask series by thresholding.

Parameters:
  • input (dbd.Series) – original data to be masked

  • low_threshold (int, optional) – Lower threshold for masking. Defaults to 0.

  • high_threshold (int, optional) – Upper threshold for masking. Defaults to 1.

  • method (str, optional) – Type of thresholding, either ‘absolute’ (thresholds are absolute signal values), ‘quantiles’ (thresholds are quantiles), or ‘range’ (thresholds are between 0 and 1). Defaults to ‘absolute’.

Returns:

mask series with values = 1 inside and 0 outside.

Return type:

dbd.Series