wkcuber.downsampling
#  
def
downsample_mags(
path: pathlib.Path,
layer_name: Union[str, NoneType] = None,
from_mag: Union[webknossos.geometry.mag.Mag, NoneType] = None,
max_mag: Union[webknossos.geometry.mag.Mag, NoneType] = None,
interpolation_mode: str = 'default',
buffer_shape: Union[webknossos.geometry.vec3_int.Vec3Int, NoneType] = None,
compress: bool = True,
executor: Union[argparse.Namespace, NoneType] = None,
sampling_mode: Union[str, webknossos.dataset.sampling_modes.SamplingModes] = <SamplingModes.ANISOTROPIC: 'anisotropic'>,
force_sampling_scheme: bool = False
) -> None:
Argument path
expects the directory containing the dataset.
Argument layer_name
expects the name of the layer (color or segmentation).
Argument from_mag
expects the resolution to base downsampling on.
For the other parameters see the CLI help or Layer.downsample
and Layer.downsampling_mag
.