Denoising an image using ImageTranslatorFGR

One can use the following lines to denoise a single image with default options using our Object-Oriented denoising API.

from aydin.it.fgr import ImageTranslatorFGR

it = ImageTranslatorFGR()

it.train(noisy, noisy)
denoised = it.translate(noisy)

It is also easy to pass specific transforms to use before and/or after denoising. One can do the the following:

from aydin.it.fgr import ImageTranslatorFGR

it = ImageTranslatorFGR()
it.add_transform(RangeTransform())
it.add_transform(PaddingTransform())

it.train(noisy, noisy)
denoised = it.translate(noisy)