torchsig.image_datasets.transforms.denoising.isolate_foreground_signal¶
- torchsig.image_datasets.transforms.denoising.isolate_foreground_signal(image, filter_strength=0)[source]¶
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