please help me with this error?
조회 수: 1 (최근 30일)
이전 댓글 표시
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')
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/403700/image.png)
댓글 수: 0
답변 (1개)
Ameer Hamza
2020년 11월 5일
편집: Ameer Hamza
2020년 11월 5일
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
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!