extract the difference betwwen 2 images
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
samer mahmoud
am 6 Dez. 2015
Kommentiert: Walter Roberson
am 7 Dez. 2015
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/152498/image.png)
Hello, i want the difference between 2 image and get this difference this picture show what i want
3 Kommentare
Image Analyst
am 6 Dez. 2015
Yes but there's much more required. For example, why does it get a standing person and not the chair or other things in the room? I suspect this is from a paper so you'd have to follow the directions in the paper rather than ask us.
Walter Roberson
am 6 Dez. 2015
Unless this is two examples of obtaining the difference of two images, with there being two constant-background images available that are not shown here?
Akzeptierte Antwort
Dima Lisin
am 7 Dez. 2015
What you are looking for is background subtraction. It is not really as simple as taking the difference between the two images. If you have a video taken with a stationary camera, then you can detect moving objects using the vision.ForegroundDetector object from the Computer Vision System Toolbox. See the Motion-based Multiple Object Tracking Example for more information.
4 Kommentare
Walter Roberson
am 7 Dez. 2015
That is what that example code does. Look at the example code setupSystemObjects() and see how it uses a vision video file reader to open a video file.
The example code detects the differences between frames and uses them to track moving objects.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Computer Vision with Simulink finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!