How to apply median filter to whole video??

i want to detect foreground from video.i will first apply median filter than after i will subtract frame from reference frame..

Antworten (2)

Image Analyst
Image Analyst am 23 Okt. 2015

0 Stimmen

You can do it one frame at a time. A demo is attached. Feel free to adapt it.

1 Kommentar

Rutvi Modi
Rutvi Modi am 23 Okt. 2015
sir i already converted video in images.but i want to take 1st pixel of 1st image and likewise 1st pixel in every image and then apply median filter to generate reference image 1st pixel but how to apply it?

Melden Sie sich an, um zu kommentieren.

Dima Lisin
Dima Lisin am 23 Okt. 2015

0 Stimmen

If you have the Computer Vision System Toolbox, try vision.ForegroundDetector. It models the background using a mixture of Gaussians, which is better than subtracting the median.

Gefragt:

am 23 Okt. 2015

Beantwortet:

am 23 Okt. 2015

Community Treasure Hunt

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

Start Hunting!

Translated by