フィルターのクリア

find a table in onother table by 80%

1 回表示 (過去 30 日間)
Konstantinos Kontos
Konstantinos Kontos 2012 年 5 月 21 日
hello everyone i have a table K2 50 X 50 that has 0 and 1 and a bigger table A 4864 X 3404.i want to find if table K2 is in table A(the elements of the table ) by a threshold of 80%.i have to search in the big table but how i scan all the 50 X 50 tables exists? thanks a lot

採用された回答

Sean de Wolski
Sean de Wolski 2012 年 5 月 21 日
You could do this with two calls to conv2():
A=[1 0 1];
V=[1 1 1 1 1 0 0 1 1 0 1];
small_matrix = A;
big_matrix = V;
xbig = logical(big_matrix);
xsmall = logical(small_matrix);
Xmorethan80 = (conv2(double(xbig),double(xsmall),'valid')+...
conv2(double(~xbig),double(~xsmall),'valid')) > (numel(small_matrix)*.8)
I do not get the error you are describing with the above.
  14 件のコメント
Konstantinos Kontos
Konstantinos Kontos 2012 年 5 月 21 日
i see the results with the imshow but i dont know if is the correct cause i see black pixels there that o didnt expected.Furthermore if i want to see if the table exactly is on the other table, just erase the *.8?
thanks again you are really great!!
Konstantinos Kontos
Konstantinos Kontos 2012 年 5 月 21 日
where i see white pixels is that it found the small matric to the bigger?

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by