How to apply median filter to whole video??

3 次查看(过去 30 天)
i want to detect foreground from video.i will first apply median filter than after i will subtract frame from reference frame..

回答(2 个)

Image Analyst
Image Analyst 2015-10-23
You can do it one frame at a time. A demo is attached. Feel free to adapt it.
  1 个评论
Rutvi Modi
Rutvi Modi 2015-10-23
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?

请先登录,再进行评论。


Dima Lisin
Dima Lisin 2015-10-23
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.

Community Treasure Hunt

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

Start Hunting!

Translated by