biapy.data.post_processing

BiaPy post-processing package.

This package provides post-processing utilities and functions for refining model predictions, such as filtering, morphological operations, and other enhancements for 2D and 3D biomedical image data.

biapy.data.post_processing.apply_post_processing(cfg, data)[source]

Create training and validation generators.

Parameters:
  • cfg (YACS CN object) – Configuration.

  • data (4D/5D Numpy array) – Data to apply post_proccessing. E.g. (num_of_images, y, x, channels) for 2D and (num_of_images, z, y, x, channels) for 3D.

Returns:

data – Data to apply post_proccessing. E.g. (num_of_images, y, x, channels) for 2D and (num_of_images, z, y, x, channels) for 3D.

Return type:

4D/5D Numpy array