How to rotate a 2D array (2D image) in 3D space around the x-axis?
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
IOANNIS
el 21 de En. de 2023
Respondida: IOANNIS
el 21 de En. de 2023
Hi everyone,
I have a 2D image ( a 2D array ) and i want to rotate this image in 3D space around the x-axis using an angle
and i want to store the resulted rotated 2D image in a new 2D array.
For example, if i want to rotate this 2D image around the z-axis i can do it using:
A = imread('img.tif');
A_RotZ = imrotate(A,angle,'nearest','loose');
but i can't find how to do the same around x-axis.
A_RotX = ???
Any ideas?
2 comentarios
Matt J
el 21 de En. de 2023
i want to store the resulted rotated 2D image in a new 2D array.
Surely you mean you want to store it in a 3D array. If the image is rotated about the x-axis it will no longer occupy the xy plane, so how would you be able to express it in 2D form?
Respuesta aceptada
Ver también
Categorías
Más información sobre Geometric Transformation and Image Registration 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!