Sobel function error in image
이전 댓글 표시
I edit the code but again there is an error
I=imread('first palm.jpg');
subplot(1,2,1);
imshow(I);title('first palm');
BW1=edge(I,'sobel');
BW2=edge(I,'canny');
subplot(1,2,2);
imshow(BW1);
title('sobel edge detector image');
subplot(1,2,1);
imshow(I);
title('first palm');
subplot(1,2,2);
imshow(BW2);title('canny edge detector image');
and this error "Error in Edges (line 4) BW1=edge(I,'sobel');" appear to me
댓글 수: 1
eltaf kazemi
2021년 4월 28일
most of these are for gray scale images.
I suggest using "rgb2gray"
답변 (1개)
Image Analyst
2013년 12월 17일
0 개 추천
If you still care, is I an RGB image or gray scale?
카테고리
도움말 센터 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!