Borrar filtros
Borrar filtros

How can I plot a cube with different images projected on each face?

10 visualizaciones (últimos 30 días)
I have a hyperspectral data cube, DATCUBE, where size(DATCUBE)=[512,512,128]. I would like to create a 3d plot that looks like a cube where each face shows the sum or mean of the cube in the relevant directions.
So the top of the cube, parallel to the x/y plane would have an image of sum(DATCUBE,3) projected onto it, and the right side of the cube (parallel to the y plane) would be an image of squeeze(sum(DATCUBE,2)), etc...
I think I could write code to do this by looping through the data and making patches, but that sounds pretty convoluted and surely somebody has done this before. While searching for this functionality, I found code to project plots on cube faces in python, but not matlab which I found surprising.
There is an example similar to what I want to create on this website about halfway down the page:

Respuesta aceptada

Matt J
Matt J el 1 de Mayo de 2023

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by