Réponse acceptée

Image Analyst
Image Analyst le 16 Fév 2015

0 votes

Make sure that floor(st2.EquivDiameter/2) is equal to 10.

4 commentaires

Ivan Shorokhov
Ivan Shorokhov le 16 Fév 2015
@Image Analyst, thank you for your answer, but why floor(st2.EquivDiameter/2) should be equal to 10?
Image Analyst
Image Analyst le 16 Fév 2015
I thought you said you wanted to grow the shape by 10 pixels. "I have managed to extend the size of original image, but it is not precise 10 pixels." - is that not what you want?
Ivan Shorokhov
Ivan Shorokhov le 16 Fév 2015
@Image Analyst, I would like to extend size of original shape, so I want to make white circle bigger.
Image Analyst
Image Analyst le 16 Fév 2015
imdilate() does that. I'm not sure why you then passed it through contour() instead of just calling imshow(mm_corn);

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by