필터 지우기
필터 지우기

why video processing slows down over time?

조회 수: 2 (최근 30일)
Kurian Thomas
Kurian Thomas 2014년 1월 8일
댓글: Kurian Thomas 2014년 1월 8일
I wrote a program to detect an object from a live video. For this background subtraction is used. Program runs in realtime for some time from start. Over time it is slowing down. The processing used is just some image arithmetic and morphological operations which run in 0.05 seconds, and this is done in video timer function. Timer period is 0.1 seconds. How can i solve the 'slowing down problem.

채택된 답변

Image Analyst
Image Analyst 2014년 1월 8일
Are you storing the images in an axes, like you're using image() or imshow()? Try inserting a "cla('reset')" just before and see if that speeds it up. Otherwise you may be loading all of the images in there instead of replacing them.
  댓글 수: 1
Kurian Thomas
Kurian Thomas 2014년 1월 8일
Problem solved. Thank you very much. I used a 'hold on' after displaying image and forgot to 'hold off'. So i was loading all of the images to the same axes!!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by