필터 지우기
필터 지우기

Is it possible to iterate a rigid translation?

조회 수: 1 (최근 30일)
Martina Falchi
Martina Falchi 2021년 5월 20일
댓글: Martina Falchi 2021년 5월 21일
Hi everybody, once again I need your precious help.
In your opinion, it is possible to iterate a translation using a transformation matrix like T=[1 0 0 0; 0 1 0 0; 0 0 1 0; tx ty tz 1], with the functions affine3d and imwarp?
I have a 3D matrix and I have to translate it by 30 pixels "i" times along x-axis, so I think that my T has to be like T=[1 0 0 0; 0 1 0 0; 0 0 1 0; 30*i 0 0 1], but I can't develop good code that does what I want. I'd also like to save each translated image (it's a field distribution on a xy plane).
Thanks to anyone who will try to help me!

채택된 답변

Image Analyst
Image Analyst 2021년 5월 20일
What's wrong with simply using imtranslate()?
  댓글 수: 2
Image Analyst
Image Analyst 2021년 5월 21일
I don't think using one built-in function is any more professional than using a different one. If you want to translate a matrix, then use the function built for that, not a more complicated one.
Martina Falchi
Martina Falchi 2021년 5월 21일
Ok, thanks for the advice!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by