separating objects in an image

조회 수: 8 (최근 30일)
Edo Wijaya
Edo Wijaya 2020년 10월 17일
댓글: Edo Wijaya 2020년 10월 18일
is there any way to separate object in an image based on white space bettween them.
  댓글 수: 2
KSSV
KSSV 2020년 10월 17일
How about imcrop?
Edo Wijaya
Edo Wijaya 2020년 10월 18일
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일
See bwconncomp(): https://www.mathworks.com/help/images/ref/bwconncomp.html from image processing toolbox.
  댓글 수: 1
Edo Wijaya
Edo Wijaya 2020년 10월 18일
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');

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by