필터 지우기
필터 지우기

I am working on project which involve image processing on video files.when i am executing my program,matlab and my system hangs and program stop responding to my commands.can someone help?

조회 수: 1 (최근 30일)
I am working on project which involve image processing on video files.All my codes are working fine.But,sometimes,when i am executing my program,matlab and my system hangs and program stop responding to my commands.I suspect it may be due to main memory getting overloaded.Is there any way,in which i can keep flushing main memory as one action is completed?

채택된 답변

Walter Roberson
Walter Roberson 2012년 5월 20일
"clear" variables when you are finished using them.
If you are using virtual memory or swap space, you might want to reduce that so that the program runs out of memory and gives an error instead of using the (very slow) disc as memory.
  댓글 수: 3
Walter Roberson
Walter Roberson 2012년 5월 21일
newframe = get first frame
while true
oldframe = newframe;
newframe = get another frame
do the frame difference
clear oldframe
end
clear newframe

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Computer Vision with Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by