How to perform dilation operation and compute volume?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
yu sh
am 17 Sep. 2016
Kommentiert: Image Analyst
am 18 Sep. 2016
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/156426/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/156428/image.jpeg)
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 17 Sep. 2016
Bearbeitet: Image Analyst
am 17 Sep. 2016
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);
2 Kommentare
Image Analyst
am 18 Sep. 2016
You said "I have generated image 'A'" so are you now saying that's not true, and you actually do not have A yet? If so, you can modify how the FAQ creates a circle to create a sphere: http://matlab.wikia.com/wiki/FAQ#How_do_I_create_a_circle.3F. Then you'll have A
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 3-D Volumetric Image Processing finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!