MATLAB: Volume enclosed by isosurface

isosurface volume

How can I calculate the volume enclosed by an isosurface, in this case my isosufaces are generally irregular cylinders.
I've attached an image to give you and idea of the tubes (although its not a great one!)
Convex hull method over estimates due to its curvature, but could possibly work for small segments and summation over the whole tube. However, there must be a simpler way!?
Many thanks, Will

Best Answer

Cleaned up image and counted the data points which represent voxels (of known value)..... easy
Related Question