tumourkit.segmentation.hovernet.extract_patches.save_batch
- tumourkit.segmentation.hovernet.extract_patches.save_batch(name: str, save_dir: str, processing_function: Callable[[str, str, str, str], ndarray], orig_dir: str, png_dir: str, csv_dir: str, shape: str) None
Loads data from paths and saves the joined array in npy format. Three output shapes are supported: ‘full’: The whole image is saved. ‘518’: Image is pieced into 518x518 patches. ‘270’: Image is pieced into 270x270 patches.