find if a table exists!!

1 回表示 (過去 30 日間)
Konstantinos Kontos
Konstantinos Kontos 2012 年 5 月 24 日
hi i have the above code
for i=300:430
for j=2500:3500
if(K3==Foto2(i:i+60,j:j+190))
do these...............
imshow(Foto2(i:i+60,j:j+190))
end
end
end
My problem is that i want to convert the code so the if statement checks if the 2 metrices are the same by a catrain rate eg 80%.How can i do that?
  2 件のコメント
Walter Roberson
Walter Roberson 2012 年 5 月 24 日
How does this differ from your previous question that Sean already answered?
Konstantinos Kontos
Konstantinos Kontos 2012 年 5 月 24 日
with the previus answer i couldnt see in what exactly spot K3==Foto2.Furthermore it didnt work really good for that i want to do.

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

採用された回答

Walter Roberson
Walter Roberson 2012 年 5 月 24 日
if mean2(K3==Foto2(i:i+60,j:j+190)) >= 0.8
  1 件のコメント
Konstantinos Kontos
Konstantinos Kontos 2012 年 5 月 24 日
it finds the small matric but only if the K3 taken for Foto2.In other cases that has a lot of same elements does not work.ty anyway!!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by