Borrar filtros
Borrar filtros

Is it possible to iterate a rigid translation?

1 visualización (últimos 30 días)
Martina Falchi
Martina Falchi el 20 de Mayo de 2021
Comentada: Martina Falchi el 21 de Mayo de 2021
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!

Respuesta aceptada

Image Analyst
Image Analyst el 20 de Mayo de 2021
What's wrong with simply using imtranslate()?
  2 comentarios
Image Analyst
Image Analyst el 21 de Mayo de 2021
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 el 21 de Mayo de 2021
Ok, thanks for the advice!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Images en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by