darsia.AxisReduction# class AxisReduction(axis, dim=3, mode='average', **kwargs)[source]# Bases: object Object for reduction along a provided axis. Parameters: axisint or strNumeric axis index (matrix indexing) or Cartesian axis. dimintDimension of the input image. modestrMode used in the reduction (“average”, “sum”, “slice”). **kwargsAdditional arguments: “slice_idx” (int): index of the slice (only for mode “slice”) Raises: NotImplementedErrorIf dim not 3. Methods Attributes axis Cartesian axis along which reduction is performed. mode Mode. kwargs Additional arguments. axis# Cartesian axis along which reduction is performed. kwargs# Additional arguments. mode# Mode.