Obtaining datas from a 3D Plot

I got a 3D pattern while working for my project.But i need a 3D matrix from the 3d pattern i have obtained.Can anyone help me pls?Also I used surf function for 3d patterning.

Respuestas (1)

Image Analyst
Image Analyst el 7 de Oct. de 2014
I don't understand what you already have, and what you want. The surf() function does not create a 3D array. It creates a 2.5D (two and a half D) perspective rendering of a 2D array. It does not create a 3D (volumetric) array, which would mean that there would be a value for every single (x,y,z) coordinate. So surf() output is not really 3D.
You say you have a 3D pattern already . Exactly what is this? Is it some variable? What does it say when you put this on its own line just after you've created it?
whos my3DPattern % Replace name with the actual name of your variable of course.
And define what a "3d matrix" is. Is that a Y rows by X columns by Z planes volumetric image - an actual 3D array like zeros(rows, columns, planes)? Can you give a small example, like with a 3 by 3 or 5 by 5 array?

3 comentarios

Annu Maria Mathew
Annu Maria Mathew el 8 de Oct. de 2014
Editada: Annu Maria Mathew el 8 de Oct. de 2014
i wana get a data sheet which explains the x coordinate with its corresponding y and z coordinates(just like a 3 by 3).Also i wana find the shape of a particular area in my plot. can you just help in finding those.
Image Analyst
Image Analyst el 8 de Oct. de 2014
What is a data sheet? Do you mean an Excel workbook? If so, what numbers would be in it? And what exactly do you mean by shape? Like the Fourier descriptors? The circularity? Something else? To get the area, you can use regionprops().
Annu Maria Mathew
Annu Maria Mathew el 10 de Oct. de 2014
thankyou for the answer.I need to get the values of x,y and z coordinates as in an array.Let me try with regionprops()

Iniciar sesión para comentar.

Etiquetas

Preguntada:

el 7 de Oct. de 2014

Comentada:

el 10 de Oct. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by