Skip to content

wkcuber.cubing

# &nbsp def create_parser() -> argparse.ArgumentParser:
# &nbsp def find_source_filenames(source_path: pathlib.Path) -> List[pathlib.Path]:
# &nbsp def read_image_file( file_name: pathlib.Path, dtype: numpy.dtype, z_slice: int, channel_index: Union[int, NoneType], sample_index: Union[int, NoneType] ) -> numpy.ndarray:
# &nbsp def cubing_job( args: Tuple[webknossos.dataset.view.View, webknossos.geometry.mag.Mag, webknossos.dataset._downsampling_utils.InterpolationModes, List[str], int, bool, Union[int, NoneType], Union[int, NoneType], str, int] ) -> Any:
# &nbsp def get_channel_and_sample_count_and_dtype(source_path: pathlib.Path) -> Tuple[int, int, str]:
# &nbsp def cubing( source_path: pathlib.Path, target_path: pathlib.Path, layer_name: str, batch_size: Union[int, NoneType], channel_index: Union[int, NoneType], sample_index: Union[int, NoneType], dtype: Union[str, NoneType], target_mag_str: str, data_format: webknossos.dataset._array.DataFormat, chunk_shape: webknossos.geometry.vec3_int.Vec3Int, chunks_per_shard: webknossos.geometry.vec3_int.Vec3Int, interpolation_mode_str: str, start_z: int, skip_first_z_slices: int, pad: bool, voxel_size: Tuple[float, float, float], executor: Union[cluster_tools.schedulers.cluster_executor.ClusterExecutor, cluster_tools.executors.multiprocessing.MultiprocessingExecutor] ) -> webknossos.dataset.layer.Layer: