MATLAB: How to extract XYZ data from Isosurface

extractisosurfacexyz

I have a 3D array of data. There is a distinct ellipsoid shape in the middle. I would like to extract the coordinate points that describe that ellipsoid. Using the isosurface function, I have found the ellipsoid, and it is correct. Is there a way to extract XYZ coordinate data from the isosurface function? Or, is there a more elegant way to extract 3D coordinate points from a 3D array of data where there is a specific value that comprises the shape?

Best Answer

Why not just use find()?
[rows, columns, slices] = find(array3D == someValue);