How display 3-D binary as an image?

7 Ansichten (letzte 30 Tage)
zrowork
zrowork am 29 Apr. 2018
Bearbeitet: zrowork am 10 Mai 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 Kommentare
Rik
Rik am 29 Apr. 2018
So what do you want? A patch maybe?
zrowork
zrowork am 29 Apr. 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.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

zrowork
zrowork am 10 Mai 2018
Bearbeitet: zrowork am 10 Mai 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.

Kategorien

Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by