error in calculating distance

2 ビュー (過去 30 日間)
Pat
Pat 2012 年 1 月 13 日
I have a image and have divided it into blocks
C = mat2cell(I,[128 128],[128 128])
my output is
C =
[128x128 uint8] [128x128 uint8]
[128x128 uint8] [128x128 uint8]
i have taken first block
A1=I(1:128, 1:128);
i want to calculte distance of A1 with C1 ,i tried euclidean distance but i get error
Error in ==> EuD at 23
Distance= sqrt(d);
  9 件のコメント
Image Analyst
Image Analyst 2012 年 1 月 14 日
That's not an official MATLAB error message - the text that shows up in red in the command window. We need the official error message. Please, please simply copy and paste your command window - DON'T paraphrase.
Walter Roberson
Walter Roberson 2012 年 1 月 14 日
C1 might be that size and data type, but did define it as
C1 = C{1,1};
or as something else?

サインインしてコメントする。

回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by