Why is my image appearing all white? I am trying to detect its edges with the following code..
Show older comments
clc;
clf;
i=imread('AB_1-16_pH_7.jpg');
subplot(421);
imshow(i);
title('orginalimage');
j=rgb2gray(i);
subplot(422);
imshow(j);
title('grayimage');
subplot(423);
m=edge(j,'canny');
imshow(11);
title('edge with canny function');
subplot(424);
figure(2)
m=imread('AB_1-16_pH_7.jpg');
imshow(m);
title('base image');
1 Comment
Star Strider
on 6 Oct 2014
Posting or attaching your image would help.
Accepted Answer
More Answers (1)
Neo
on 20 Oct 2014
0 votes
1 Comment
Image Analyst
on 20 Oct 2014
For individual commands, look them up in the help. In general, to learn MATLAB, see this link: http://www.mathworks.com/matlabcentral/answers/8026-best-way-s-to-master-matlab.
It looks like my code does a Canny edge and it's not all white so it looks like I solved your problem, so if you wouldn't mind officially "Accepting" my answer, I'd appreciate it.
Categories
Find more on Image Arithmetic in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!