I have 1 picture. And I want background is black . And egg is white . Use matlab. white not have on black with background is black Can u help me...Thank u very much Sorry my english is bad. It will grammatical errors. Hope u understand my question. Thnx

댓글 수: 3

Jan
Jan 2015년 4월 27일
Do you want to find the shape of the egg? Do you have the image processing toolbox?
Ho Thinh
Ho Thinh 2015년 4월 27일
편집: Ho Thinh 2015년 4월 27일
No, I want to background of this image is only black and egg is white. how to removed interferences out of the image.
dhia jamaa
dhia jamaa 2015년 5월 18일
  • the egg is clear so its pixels should be equal to 255. so you hould to put other pixels to 0 (which is black).
input=imread(image) if input(i,j)~=255 then input(i,j)=0 i think this should work

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

답변 (2개)

B.k Sumedha
B.k Sumedha 2015년 5월 18일

0 개 추천

threshold=25;
for f=1:frames
I=read(obj,f);
figure(1);imshow(I);title('Input Video Sequence');
if f==1
Background=I;
Fg=abs(I-Background);
else
Fg=abs(I-Background);
end
Fg(Fg>threshold) = 255;
Fg(Fg<=threshold) = 0;
figure(2);imshow(Fg);
drawnow;
pause(0.2)
end
Image Analyst
Image Analyst 2015년 5월 18일

0 개 추천

See my attached demo to extract the biggest blob in the image. That will pull out just the egg and not all the other clutter.

카테고리

도움말 센터 및 File Exchange에서 Computer Vision with Simulink에 대해 자세히 알아보기

질문:

2015년 4월 27일

답변:

2015년 5월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by