Read Image Coordinates
2 views (last 30 days)
Show older comments
Hi all ,
I need a way to read the (x,y,z,colors) of a 3D image .
Thanks
7 Comments
Image Analyst
on 8 Jun 2012
All that code does is to stack your slices into a volumetric gray scale image, and type out your inputs to the command window. It doesn't do anything like marching cubes.
Accepted Answer
Walter Roberson
on 8 Jun 2012
x, y, z, and colors are inputs to the MarchingCubes routine.
You should be reading the data before you call MarchingCubes.
If your x, y, and z are equally spaced then
[x, y, z] = ndgrid( 1:size(c,1), 1:size(c,2), 1:size(c,3) );
More Answers (0)
See Also
Categories
Find more on Import, Export, and Conversion in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!