error using edge detection function

2 次查看(过去 30 天)
anas qazaz
anas qazaz 2015-10-19
评论: anas qazaz 2015-10-24
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
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.

Community Treasure Hunt

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

Start Hunting!

Translated by