How to detect clear bubbles

조회 수: 4 (최근 30일)
shsi@145
shsi@145 2019년 1월 15일
댓글: shsi@145 2019년 1월 15일
Hello everyone,
I have three colors in my image in which I want to detect the red region as bubble. For that I have to remove the green and black regions present in and outside the red bubble for clear detection of bubble. Like this I have a so many images for which the bubble position will keep on changing. Could anyone please suggest a way to do it?
image.jpg

답변 (1개)

KSSV
KSSV 2019년 1월 15일
I = imread('download.jpg') ;
R = I(:,:,1) ;
G = I(:,:,2) ;
B = I(:,:,3) ;
[y,x] = find(R==255) ;
imshow(I)
hold on
plot(x,y,'.k')
  댓글 수: 1
shsi@145
shsi@145 2019년 1월 15일
Hi,
Thanks for your answer.
But it can detect only red region. It cannot remove or club green+black regions

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

Community Treasure Hunt

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

Start Hunting!

Translated by