Info

この質問は閉じられています。 編集または回答するには再度開いてください。

comparing the values

2 ビュー (過去 30 日間)
FIR
FIR 2012 年 2 月 15 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
i have extracted features of 8 images
A=115.9607 118.7609 118.7595 118.7681 118.3420 118.1658 118.0285 118.0862
and one query image from same dataset
query=118.7595
now i want to compare these two values A,query ,if the query value is present in A,i want to display the query image ,i used euc distance ,i get error ,please help

回答 (1 件)

Andrei Bobrov
Andrei Bobrov 2012 年 2 月 15 日
eg: imageCells - cell array contains 8 images (double array)
t = {'descend','ascend'}
imageCells = arrayfun(@(i1)sort(rand(200,200,3),randi(3),t{randi(2)}),1:8,'un',0)
A=[115.9607 118.7609 118.7595 118.7681 118.3420 118.1658 118.0285 118.0862];
query=118.7595;
t = abs(A - query) < 100*eps;
if any(t), imshow(imageCells{t}); end
  3 件のコメント
FIR
FIR 2012 年 2 月 15 日
plz can u tell how to form it
Andrei Bobrov
Andrei Bobrov 2012 年 2 月 16 日
corrected

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by