To tilt image backwards

4 ビュー (過去 30 日間)
nadine
nadine 2013 年 2 月 4 日
Hello, I hope I can describe the problem clear enough: I am displaying a 2D image (medical imaging) that i would like to tilt backwards (Or make it look like it is tilting backwards, since it is a 2D image and i am staying in a 2D space) Currently i am using the projective Transformation. So far I am putting in diffrent values for the Tform parameters, but I am doing it manually, which means, I would need either to find out the right parameters, to make the image tilt in the right way, OR find a function that does the calculation for me. Does anyone understand, and could give me advice, on how to make this work correctly? Thank you for your time.
  2 件のコメント
Jan
Jan 2013 年 2 月 4 日
What is the actual question? What are the "right" parameters? Which calculation to want to be performed?
nadine
nadine 2013 年 2 月 4 日
Okay sorry for that: let me give you an example to clearify, you hold a sheet of paper in your hand in front of your face, now you tilt it backwards. The perspective changes... what to do to simulate that change of angles. Im doing my best here to describe, is it more clear now? thank you

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

回答 (2 件)

Image Analyst
Image Analyst 2013 年 2 月 4 日
How am I supposed to know the right transform? All I can suggest is Steve's blog for more examples: http://blogs.mathworks.com/steve/2006/08/04/spatial-transformations-defining-and-applying-custom-transforms/
  2 件のコメント
nadine
nadine 2013 年 2 月 4 日
Thank you for your comment, unfortunately that is not what i am looking for.
Image Analyst
Image Analyst 2013 年 2 月 4 日
編集済み: Image Analyst 2013 年 2 月 4 日
The imtransform() example in the help on Projective Transformation is an image that is tilted back. Why is that not what you looking for? I think it's what you asked for.

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


Jurgen
Jurgen 2013 年 2 月 4 日
Instead of doing it manually, use a for loop, compare with 'correct' reference image (e.g. sum of squared differences) and select the best transform at the end.
Only in some cases can you extract the parameters directly. I think one such an example would be radon transform with rotated images. Don't think projective has such a method.

カテゴリ

Help Center および File ExchangeGeometric Transformation and Image Registration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by