separating objects in an image

8 visualizaciones (últimos 30 días)
Edo Wijaya
Edo Wijaya el 17 de Oct. de 2020
Comentada: Edo Wijaya el 18 de Oct. de 2020
is there any way to separate object in an image based on white space bettween them.
  2 comentarios
KSSV
KSSV el 17 de Oct. de 2020
How about imcrop?
Edo Wijaya
Edo Wijaya el 18 de Oct. de 2020
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.

Iniciar sesión para comentar.

Respuestas (1)

Ameer Hamza
Ameer Hamza el 17 de Oct. de 2020
See bwconncomp(): https://www.mathworks.com/help/images/ref/bwconncomp.html from image processing toolbox.
  1 comentario
Edo Wijaya
Edo Wijaya el 18 de Oct. de 2020
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');

Iniciar sesión para comentar.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by