please help me with this error?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
clc;
clear all;
close all;
a=imread('C:\Users\hp\Pictures\Saved Pictures\boat.jpg'); % to read the grayscale image
b = imnoise(a,'salt & pepper'); % to create the noisy image
figure
subplot (1, 2, 1)
imshow(a)
title ('Original Image')
subplot (1, 2, 2)
imshow(b)
title ('Noisy Image')
0 Commenti
Risposte (1)
Ameer Hamza
il 5 Nov 2020
Modificato: Ameer Hamza
il 5 Nov 2020
This means that you don't have the image file named "boat.jpg" at the location you specified in your code. Do you have an image file with this name on your Computer? If yes, place it the path you mentioned in your code or write the correct path.
0 Commenti
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!