wkcuber.convert_nifti
#  
def
to_target_datatype(
data: numpy.ndarray,
target_dtype: Union[type, str, numpy.dtype],
is_segmentation_layer: bool
) -> numpy.ndarray:
#  
def
convert_nifti(
source_nifti_path: pathlib.Path,
target_path: pathlib.Path,
layer_name: str,
dtype: str,
voxel_size: Tuple[float, ...],
data_format: webknossos.dataset._array.DataFormat,
chunk_shape: webknossos.geometry.vec3_int.Vec3Int,
chunks_per_shard: webknossos.geometry.vec3_int.Vec3Int,
is_segmentation_layer: bool = False,
bbox_to_enforce: Union[webknossos.geometry.bounding_box.BoundingBox, NoneType] = None,
use_orientation_header: bool = False,
flip_axes: Union[int, Tuple[int, ...], NoneType] = None
) -> None:
#  
def
convert_folder_nifti(
source_folder_path: pathlib.Path,
target_path: pathlib.Path,
color_subpath: str,
segmentation_subpath: str,
voxel_size: Tuple[float, ...],
data_format: webknossos.dataset._array.DataFormat,
chunk_shape: webknossos.geometry.vec3_int.Vec3Int,
chunks_per_shard: webknossos.geometry.vec3_int.Vec3Int,
use_orientation_header: bool = False,
bbox_to_enforce: Union[webknossos.geometry.bounding_box.BoundingBox, NoneType] = None,
flip_axes: Union[int, Tuple[int, ...], NoneType] = None
) -> None: