separating objects in an image

9 ビュー (過去 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