Effacer les filtres
Effacer les filtres

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 vue (au cours des 30 derniers jours)
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?

Réponse acceptée

Walter Roberson
Walter Roberson le 20 Mai 2012
"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 commentaires
Walter Roberson
Walter Roberson le 21 Mai 2012
newframe = get first frame
while true
oldframe = newframe;
newframe = get another frame
do the frame difference
clear oldframe
end
clear newframe

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Computer Vision with Simulink dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by