MATLAB: How to perform dilation operation and compute volume

center coordinatesdilationimage processingImage Processing Toolboxradiusvolume

Hi everyone, I have center coordinates and radius of a sphere through which I have generated image 'A'. I want to dilate this volume object like done in image 'D' and want to compute the total volume of the dilated object. Kindly guide me how can I do this in MATLAB.

Best Answer

You can do that with imdilate(). Just pass it your A array that you say you already have:
se = strel('sphere', radius);
D = imdilate(A, se);