what is error in this sobel function code
조회 수: 14 (최근 30일)
이전 댓글 표시
I edit the code in this format
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'); figure,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
답변 (1개)
Image Analyst
2013년 6월 26일
You forgot to post the error, but if you use the sobel option of edge, it takes a single threshold, not an array of two thresholds like you tried to do.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!