rcatool.stats.sal.threshold

rcatool.stats.sal.threshold(data, thr_type, value)[source]

Function to calculate the threshold to be used to identify objects.

Parameters:
  • data (array) – 2D data array.

  • thr_type (string) – Type of threshold. Can be either “S” for specified (any absolute value), “F” for a fraction (between 0 and 1) of the maximum value, and “P” for a percentile (95 for the 95th percentile etc).

  • value (int/float) – The corresponding value based on the chosen threhold type.