How to detect clear bubbles
조회 수: 4 (최근 30일)
이전 댓글 표시
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?
댓글 수: 0
답변 (1개)
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')
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!