how can draw shape along moving trajectory ?

 採用された回答

KSSV
KSSV 2017 年 2 月 6 日

0 投票

I don't know what shape you want...I am taking a random shape here, it looks weird. But this is the procedure you have to follow:
clc; clear all ;
k = rand(10,2)/10 ;
k = [k ; k(1,:)] ; % a random shape
% random trajectory
N = 10 ;
x = rand(N,1) ;
y = rand(N,1) ;
for i = 1:N
plot(x,y,'.-b') ;
hold on
patch(x(i)+k(:,1),y(i)+k(:,2),'r')
hold off
pause(0.1)
end

1 件のコメント

Selva Karna
Selva Karna 2017 年 2 月 6 日
Thank you for reply....
i want plot triangle from contour points, its possible to plot ??
i have attached plz refer me

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

その他の回答 (1 件)

Selva Karna
Selva Karna 2017 年 2 月 6 日

0 投票

i want plot triangle shape from different fingers along moving using contours points , its possible ? KSSV?

カテゴリ

ヘルプ センター および File ExchangeImage Processing and Computer Vision についてさらに検索

質問済み:

2017 年 2 月 6 日

回答済み:

2017 年 2 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by