torchsig.image_datasets.transforms.denoisingΒΆ

Functions

isolate_foreground_signal

filters image (a tensor of shape [1, width, height] in grayscale) to seperate foreground from background noise, and returns the filtered image tensor; an integer filter_strength can be passed in to tune the filtration effect

normalize_image

returns the infinity norm of an image Inputs: image: image to norm as a 2d ndarray Outputs: the normalized image