apply_normalization#

radionets.evaluation.utils.apply_normalization(img_test, norm_dict)[source]#

Applies one of currently two normalization methods if the training was normalized

Parameters:
img_testtorch.Tensor

input image

norm_dictdictionary

either empty (no normalization) or containing the factors

Returns:
img_testtorch.Tensor

normalized image

norm_dictdictionary

updated dictionary