MATLAB: Volume fraction for 2-d image

image processingImage Processing Toolboxvolume fraction

How can I find the volume fraction difference between the two images? And is there a way to simulate the dry image looks like the wet one using matlab?

Best Answer

Just threshold
binaryImage = grayImage > someThreshold;
areaFraction = sum(binaryImage(:)) / numel(binaryImage);
Do it for each image. You might want to mask it by the circle. Let me know if you need to know how to mask.