MATLAB: 2D Mask of a 3D image

image analysisimage processingImage Processing Toolbox

Hey there,
I'm rather new to using Matlab and my boss has asked me to analyze some SEM images of several membranes to compare the porosity and pore size of various membranes. The images I was given to analyze are 3D black and white images that I'd like to import into Matlab to further analyze. Ideally I'd like to be able to utilize the threshold of the image to identify the depth and thus the volume of the membrane being studied to further characterize the pores but that could be further down the road. My main question is what is the best way to create a 2D mask of the surface layer/cross-section of the image in Matlab? Also, I'd be more than happy to email a sample image if that will help clarify anything. Thanks again.
Sample Photo: https://dl.dropbox.com/u/95356349/3-009-HT-1%20T4.jpg

Best Answer

Like you said, use the threshold to identify regions of interest:
binaryImage = oneSlice > thresholdValue;
Then call do further processing or call regionprops().