How display 3-D binary as an image?

6 visualizaciones (últimos 30 días)
zrowork
zrowork el 29 de Abr. de 2018
Editada: zrowork el 10 de Mayo de 2018
I have problem with the following data to display it as an 3d binary object or image:
m(:,:,2) = [ 0 0 0 0 0 0; 0 0 0 0 0 0; 0 0 1 1 0 0; 0 0 1 1 0 0; 0 0 0 0 0 0; 0 0 0 0 0 0];
m(:,:,3) = [ 0 0 0 0 0 0; 0 0 0 0 0 0; 0 0 1 1 0 0; 0 0 1 1 0 0; 0 0 0 0 0 0; 0 0 0 0 0 0];
m(:,:,4) = [ 0 0 0 0 0 0; 0 0 0 0 0 0; 0 0 0 0 0 0; 0 0 0 0 0 0; 0 0 0 0 0 0; 0 0 0 0 0 0];
m(:,:,5) = zeros;
m
Does anybody have a solution how to display this data? Thank you.
  3 comentarios
Rik
Rik el 29 de Abr. de 2018
So what do you want? A patch maybe?
zrowork
zrowork el 29 de Abr. de 2018
Normally I have 3d matrix 431x473x72 inside which are different numbers. For now I try to display it on simple 3d-matrix, that the result would look like as below.
I would like to display positions with number 1 as a cube or just merge this positions together to obtain some shape.

Iniciar sesión para comentar.

Respuestas (1)

zrowork
zrowork el 10 de Mayo de 2018
Editada: zrowork el 10 de Mayo de 2018
So, I have found a solution. I have used isosurface command.
m(:,:,2) = [ 0 0 0 0 0 0; 0 0 0 0 0 0; 0 0 1 1 0 0; 0 0 1 1 0 0; 0 0 0 0 0 0; 0 0 0 0 0 0];
m(:,:,3) = [ 0 0 0 0 0 0; 0 0 0 0 0 0; 0 0 1 1 0 0; 0 0 1 1 0 0; 0 0 0 0 0 0; 0 0 0 0 0 0];
m(:,:,4) = [ 0 0 0 0 0 0; 0 0 0 0 0 0; 0 0 0 0 0 0; 0 0 0 0 0 0; 0 0 0 0 0 0; 0 0 0 0 0 0];
m(:,:,5) = zeros;
isosurface(m)
The result looks like:
Unfortunately, in big data (3D Matrix 431x473x72) it is not possible to notice this kind of object because matrix is too big.
Does anybody have solution how zoom exactly to the created surface which is unseen in this case? It's somewhere there.

Categorías

Más información sobre Creating, Deleting, and Querying Graphics Objects 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