How to draw the bounding box around the apple

1 次查看(过去 30 天)
I am new in Matlab, my task is to draw the bounding box around the apple, plz help me in this task.

采纳的回答

Image Analyst
Image Analyst 2015-12-6
Very easy. Just use color segmentation. I have several demos in my File Exchange:
If the apple has irregularities on the edges after segmentation, you can use activecontour() as shown in my attached demo to smooth the outline. Or else you can blur the color channel image before you threshold it.

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by