フィルターのクリア

How to rotate a 2d moving image like a car?

1 回表示 (過去 30 日間)
Muneef
Muneef 2013 年 11 月 26 日
コメント済み: Walter Roberson 2013 年 11 月 27 日
hello every one i am facing problem in rotating my car's image when i press a key the car just move upwards without any rotation because velocity change.
  7 件のコメント
Muneef
Muneef 2013 年 11 月 27 日
kindly sir , tell me how to rotate it at specific angle when i used imrotate it flips my axis all to gather . can i use the xrot and yrot equations to move it?
Walter Roberson
Walter Roberson 2013 年 11 月 27 日
Use the method I indicated in your duplicate of the question: create an hgtransform. http://www.mathworks.com/help/matlab/ref/makehgtform.html

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

採用された回答

Image Analyst
Image Analyst 2013 年 11 月 26 日
The image must remain rectangular with the edges aligned with your computer screen. So to rotate a car within that image, you're going to have to use imrotate().
  4 件のコメント
Muneef
Muneef 2013 年 11 月 26 日
yes i just want to rotate a car like in parking mania either by imrotateor any other command but i cant able to apply it . by im rotate my whole figure flips and car did not rotate help required in code?
Muneef
Muneef 2013 年 11 月 26 日
ok i am going to apply the flipIr command did all these command work with xdata and ydata type image means i have set image like that set(car,'xdata',value,'ydata',value)

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

その他の回答 (1 件)

Muneef
Muneef 2013 年 11 月 26 日
thanks i have done it

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by