separating objects in an image

is there any way to separate object in an image based on white space bettween them.

2 个评论

How about imcrop?
imcrop using coordinates. It means i must know the coordinates first. The problem is i don't know how to get coordinates from this picture.

请先登录,再进行评论。

回答(1 个)

Ameer Hamza
Ameer Hamza 2020-10-17

0 个投票

See bwconncomp(): https://www.mathworks.com/help/images/ref/bwconncomp.html from image processing toolbox.

1 个评论

I'm already trying using regionprops but i don't know how to continue it.
A = imread('E:\Dataset\Crop\Contoh honocoroko.jpg');
level = graythresh(A);
b = im2bw(A,level);
CC = bwconncomp(b);
stats = regionprops(CC,'All');

请先登录,再进行评论。

产品

提问:

2020-10-17

评论:

2020-10-18

Community Treasure Hunt

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

Start Hunting!

Translated by