How to perform dilation operation and compute volume?

조회 수: 2 (최근 30일)
yu sh
yu sh 2016년 9월 17일
댓글: Image Analyst 2016년 9월 18일
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.

채택된 답변

Image Analyst
Image Analyst 2016년 9월 17일
편집: Image Analyst 2016년 9월 17일
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
yu sh
yu sh 2016년 9월 18일
편집: yu sh 2016년 9월 18일
Thanks Image Analyst, the arrays I have are the center coordinates and radii of individual spheres (polydispersed) present in 'A'. I want to confirm that I should input the center coordinates array in imdilate function right? and also in the structuring element function which radius value should be given? I have different radii of individual spheres in A, I want them to be taken into conisderation. Secondly in order to compute the total volume of dilated object kindly guide me how can I perform this.
Image Analyst
Image Analyst 2016년 9월 18일
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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by