필터 지우기
필터 지우기

How to apply median filter to whole video??

조회 수: 3 (최근 30일)
Rutvi Modi
Rutvi Modi 2015년 10월 23일
답변: Dima Lisin 2015년 10월 23일
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