how to plot mouse movment without missing any point
古いコメントを表示
Hii every one I need help In my project I am ploting mouse movment on x and y axes. But in that some points misses..
This is how I am using plot..
p = get(h_axes,'CurrentPoint');
x = p(1,1);
y = p(1,2);
x_pen = [x_pen x];
y_pen = [y_pen y];
plot( h_axes,[x_pen(end-1) x],[y_pen(end-1) y]','b.-', ...
'MarkerEdgeColor','k', 'MarkerFaceColor','b', ...
'MarkerSize',10, 'Tag','TRAJECTORIA' );
I am devloping pen like tool which in which I want to plots mouse tracing continously but some points misses,,.. Is there any way to solve this..
2 件のコメント
per isakson
2015 年 1 月 29 日
編集済み: per isakson
2015 年 1 月 29 日
- Is this code inside a loop?
- Which Matlab release?
- Is  hold on ?
- Only the two most recent points are displayed. Is that by intent?
chhaya gohel
2015 年 1 月 30 日
回答 (1 件)
Image Analyst
2015 年 1 月 30 日
0 投票
If you have the Image Processing Toolbox, how about using imfreehand()? Demos attached.
1 件のコメント
chhaya gohel
2015 年 1 月 30 日
カテゴリ
ヘルプ センター および File Exchange で ROI-Based Processing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!