Detecting concavity within regions.

Hello. Does anyone know how to detect and separate two overlapping regions in a black and white image? I'm thinking that using the concavity will help, but really any method that detects and separates the overlaps will work. I've attached an image with arrows pointing at example situations where regions overlap and I want to separate them as well as an original image. Thanks!

답변 (1개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 7월 1일

1 개 추천

The morphological approach might works.
im=im2bw(rgb2gray(imread('test_image_cheng.png')));
se=strel('disk',18);
%................^Change accordingly
result=imerode(im,se);
result=imdilate(result,se);
subplot(121);imshow(im);
subplot(122);imshow(result);

카테고리

도움말 센터File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

제품

릴리스

R2019a

질문:

2019년 7월 1일

답변:

2019년 7월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by