Can u help me!!! Pls. Thx u much

2 ビュー (過去 30 日間)
Ho Thinh
Ho Thinh 2015 年 4 月 27 日
回答済み: Image Analyst 2015 年 5 月 18 日
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 件のコメント
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 日
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 日
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.

カテゴリ

Help Center および File ExchangeComputer Vision with Simulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by