Can u help me!!! Pls. Thx u much
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/149509/image.png)
3 Commenti
dhia jamaa
il 18 Mag 2015
- 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
Risposte (2)
B.k Sumedha
il 18 Mag 2015
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
0 Commenti
Image Analyst
il 18 Mag 2015
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.
0 Commenti
Vedere anche
Categorie
Scopri di più su Computer Vision with Simulink in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!