How to quantify a 3D picture

2 views (last 30 days)
Irfan Aly
Irfan Aly on 31 Mar 2014
Commented: Image Analyst on 31 Mar 2014
Hi
I have two questions. Firstly i have a project in which i need to quantify images of natural sand. For instance working out the diameter volume from images of natural sand. I can do this in 2-Dimension. However I have to do this 3-Dimension.
How do i incorporate 3d images into matlab and how can i quantify it.
Can anyone advise please?
Thank you

Answers (1)

Image Analyst
Image Analyst on 31 Mar 2014
How are you generating the 3D image? Is it true volumetric 3D data like from a CT instrument, where you have an intensity for each and every x,y,z location? Or is it pseudo-3D data like from stereo cameras or a profilometer, where you don't have data at every x,y,z location but just at 1 z location (in essence it's a surface, not a volume)?
  2 Comments
Irfan Aly
Irfan Aly on 31 Mar 2014
Edited: Image Analyst on 31 Mar 2014
I haven't generated the 3d image yet. I was hoping to use the following codes to get a 3d image.
image3D = cat(3, slice1, slice2, slice3, slice4, slice5);
You could put it into a loop
for slice = 1 : totalNumberOfSlices
thisSlice = GetSlice(); % Whatever you have to do to get one 2D image.
if slice == 1
image3D = thisSlice;
else
image3D = cat(3, image3D, thisSlice);
end
end
I have attached an example of a picture i took. I can quantify this picture in 2 dimensions using regionprops. Can you advise on how i can do this 3 dimensions please.
Thank you for the reply.
Image Analyst
Image Analyst on 31 Mar 2014
That does not look like a slice. It looks like a particle sitting on a black paper. If you do have actual slices, then you can cat them together like that (in fact I'm pretty sure that's my code that you got from somewhere). Many of the routines that work in 2D also work in 3D, so you can just go ahead and try it.

Sign in to comment.

Tags

Community Treasure Hunt

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

Start Hunting!