How to draw a inscribed circle having maximum radius inside the binary image. I have already identified the centroid of the object.

3 Ansichten (letzte 30 Tage)
I have attached the image what I am expecting.
  2 Kommentare
Rik
Rik am 16 Okt. 2020
The centroid you marked is not the center of the circle. Do you want it to be?
Nabanita Roy
Nabanita Roy am 17 Okt. 2020
No, the centroid is not the centroid of the circle. I want to get the maximum inscribed circle inside the white object.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Rik
Rik am 16 Okt. 2020
If you invert your image, you can use bwdist to find the point furthest from the edge. That distance is by default the radius of your circle.

Weitere Antworten (0)

Produkte


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by