locpix.img_processing.data_loading.transforms.transform#

class transform(mean, std, transform_list, dtypeconv=False)[source]#

Bases: object

Wrapper for transforms to allow input and label to be transformed together

Args: mean (float) : Mean for normalisation of image std (float) : Std for normalisation of image transform_list (list) : List of transforms to be applied dtypeconv (string) : Whether to convert image

__init__(mean, std, transform_list, dtypeconv=False)[source]#

Args: mean (float) : Mean for normalisation of image std (float) : Std for normalisation of image transform_list (list) : List of transforms to be applied dtypeconv (string) : Whether to convert image

Methods

__init__(mean, std, transform_list[, dtypeconv])

Args: mean (float) : Mean for normalisation of image std (float) : Std for normalisation of image transform_list (list) : List of transforms to be applied dtypeconv (string) : Whether to convert image