Assignment 3
Assignment 3
write a program to read an image and add noise in it, then apply CNN model to remove
it
Q2. Write a program to Create CNN model, and apply it to enhance the image picture
quality
Q 3. Explain the DL with the help of Applications of deep learning in object recognition
Q 5. Explain faster recurrent neural networks (FRNN) for disease detection and
visualization
Q 6. Explain the Role of machine learning and deep learning in disease visualization
CNN code:-
clc
clear all
close all
% % load data
'IncludeSubfolders',true,...
'LabelSource','foldernames');
dnds = denoisingImageDatastore(imds,...
'PatchesPerImage',512,...
'PatchSize',50,...
'GaussianNoiseLevel',[0.01 0.1],...
'ChannelFormat','grayscale')
% % layer design
layers = [ ...
imageInputLayer([50 50 1])
convolution2dLayer(3,64,'Stride',1,'Padding',[1 1 1 1])
reluLayer
convolution2dLayer(3,64,'Stride',1,'Padding',[2 2 2 2])
reluLayer
convolution2dLayer(3,64,'Stride',1,'Padding',[1 1 1 1])
reluLayer
convolution2dLayer(3,1)
regressionLayer]
'MiniBatchSize',128, ...
'ValidationFrequency',5, ...
'InitialLearnRate',1e-4,'Plots','training-progress');
% % network training
%inp=imread('cameraman.tif');
inp=imread('C:\Users\vijaykumars\Downloads\cnncode (1)\peppers256.PNG');
noise=imnoise(inp,'gaussian',0.1,0.001);
figure,
imshow(noise)
figure,
subplot(2,1,1)
imshow(noise);
title('noisy')
subplot(2,1,2)
imshow(denoisedR )
title('denoised ')