フィルターのクリア

finding distance of objects in different frames

1 回表示 (過去 30 日間)
Marry M
Marry M 2015 年 12 月 9 日
コメント済み: Marry M 2015 年 12 月 10 日
Hello,
I have 10 frames and each frame with two objects in it, the centre of objects in each frame (binary image) calculated, please see the code:
for n=1:10 %n=number of frames
filename = strcat('C:\Users\A\Documents\MATLAB\frames\',srcFiles(n).name);
I= imread (filename);
bw=im2bw(I,.1);
.
.
centre=[centrex, centrey]; % x-y coordinates of centres of each object in bw
distance=sqrt((centrex2-centrex1)^2+(centrey2-centrey1)^2)
end
I want to find: if the ‘distance’ of two objects in a frame is 150 (for instance) do not calculate the ‘distance’ for other frames and save the ‘centre’, can you please help me. thank you
  1 件のコメント
Marry M
Marry M 2015 年 12 月 10 日
I'm still waiting for your help please

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Processing and Computer Vision についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by