Main Content

denoisingNetwork

Get image denoising network

Description

net = denoisingNetwork(modelName) returns a pretrained image denoising deep neural network specified by modelName.

This function requires Deep Learning Toolbox™.

example

Examples

collapse all

Get the pretrained image denoising convolutional neural network, "DnCNN".

net = denoisingNetwork("DnCNN")
net = 
  dlnetwork with properties:

         Layers: [58x1 nnet.cnn.layer.Layer]
    Connections: [57x2 table]
     Learnables: [76x3 table]
          State: [36x3 table]
     InputNames: {'InputLayer'}
    OutputNames: {'Conv20'}
    Initialized: 1

  View summary with summary.

Load the pretrained denoising convolutional neural network, "DnCNN".

net = denoisingNetwork("DnCNN");

Load a grayscale image into the workspace, then create a noisy version of the image.

I = imread("cameraman.tif");
noisyI = imnoise(I,"gaussian",0,0.01);

Display the two images as a montage.

montage({I,noisyI})
title("Original Image (Left) and Noisy Image (Right)")

Figure contains an axes object. The hidden axes object with title Original Image (Left) and Noisy Image (Right) contains an object of type image.

Remove noise from the noisy image, then display the result.

denoisedI = denoiseImage(noisyI,net);
imshow(denoisedI)
title("Denoised Image")

Figure contains an axes object. The hidden axes object with title Denoised Image contains an object of type image.

Input Arguments

collapse all

Name of pretrained denoising deep neural network, specified as the character vector 'DnCnn'. This is the only pretrained denoising network currently available, and it is trained for grayscale images only.

Data Types: char | string

Output Arguments

collapse all

Pretrained denoising deep neural network, returned as a dlnetwork (Deep Learning Toolbox) object.

References

[1] Zhang, K., W. Zuo, Y. Chen, D. Meng, and L. Zhang. "Beyond a Gaussian Denoiser: Residual Learning of Deep CNN for Image Denoising." IEEE Transactions on Image Processing. Vol. 26, Number 7, Feb. 2017, pp. 3142-3155.

Version History

Introduced in R2017b

expand all