PatchDatasetABC#

class PatchDatasetABC[source]#

Defines abstract base class for patch dataset.

Methods

load_img

Load an image from a provided path.

preproc

Define the pre-processing of this class of loader.

Attributes

preproc_func

Return the current pre-processing function of this instance.

static load_img(path)[source]#

Load an image from a provided path.

Parameters:

path (str) – Path to an image file.

static preproc(image)[source]#

Define the pre-processing of this class of loader.

property preproc_func#

Return the current pre-processing function of this instance.

The returned function is expected to behave as follows: >>> transformed_img = func(img)