darsia.reduce_axis# reduce_axis(image, axis, mode='average', **kwargs)[source]# Utility function, essentially wrapping AxisReduction as a method. Parameters: imageImageNd image. axisint or strNumeric index (corresponding to matrix indexing) or Cartesian axis. modestrMode used in the reduction (“sum”, “scaled”, “slice”). **kwargsAdditional arguments: “slice_idx” (int): index of the slice (only for mode “slice”) Returns: Image(n-1)d image.