PatchDatasetABC¶
- class PatchDatasetABC[source]¶
Define abstract base class for patch dataset.
Initialize
PatchDatasetABC
.Methods
Load an image from a provided path.
Define the pre-processing of this class of loader.
Attributes
Return the current pre-processing function of this instance.
inputs
labels
- static load_img(path)[source]¶
Load an image from a provided path.
- Parameters:
path (str or Path) – Path to an image file.
- Returns:
Image as a numpy array.
- Return type: