error using edge detection function

hi, all i have error in edgedet function my code is shown in the attaching picture please help with regards.

댓글 수: 1

anas qazaz
anas qazaz 2015년 10월 24일
Dear, Walter my picture is gray scale not true color also i try pictures gray scale in format of tiff, jpg, but the same error appear how i can use the bulit in edgedet function for gray scale images .tiff, .jpeg, .jpg regards

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2015년 10월 20일

0 개 추천

JPEG images are always TrueColor, and so are always 3 dimensional. You are trying to apply edge() to a 3 dimensional array, but it is restricted to 2 dimensional arrays.

질문:

2015년 10월 19일

댓글:

2015년 10월 24일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by