Borrar filtros
Borrar filtros

stack up 3D images into a 4D matrix

8 visualizaciones (últimos 30 días)
SaHaR
SaHaR el 3 de Jul. de 2020
Comentada: SaHaR el 4 de Jul. de 2020
Hello,
I have multiple 3D images and I should stack up these images into a 4D matrix and use it as an input for another code for feature extraction. I have tested this method : cat(4,im1,im2,im3) but it doesn't work well as input. How can I convert these images into 4D matrix ?
  9 comentarios
Image Analyst
Image Analyst el 3 de Jul. de 2020
Looks like it should work as long as vol1, vol2, vol3, and ROI are all 3-D arrays whose lengths match in every dimension.
Note that arrays are not indexed (x,y,z) they are indexed (rows, columns, slices) so the convention is that y, which is rows, comes first, not x as you have it.
(rows, columns, slices) is (y, x, z).
So if you're getting an error, or the images look transposed, check that the order of your dimensions is correct.
SaHaR
SaHaR el 4 de Jul. de 2020
Thank you.
problem solved :)

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre MRI 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