Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Dissipated memory: videoinput and start
Replies: 2   Last Post: Jan 10, 2014 9:54 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Wael

Posts: 85
Registered: 7/21/09
Dissipated memory: videoinput and start
Posted: Nov 24, 2010 1:43 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello,

I want to process images from a webcam, i noticed that there is some memory dissipation somewhere, can you please advise me what am i doing wrong?

Following is the simple code and the memory chart associated with it:

>> vid = videoinput('winvideo',1,'YUY2_320x240');
>>set(vid,'TriggerRepeat',Inf);
>>set(vid,'ReturnedColorSpace','ycbcr');
>>start(vid)


following is the memory commands separated within 1 minute interval.
#1: memory
Maximum possible array: 892 MB (9.357e+008 bytes) *
Memory available for all arrays: 1477 MB (1.548e+009 bytes) **
Memory used by MATLAB: 288 MB (3.024e+008 bytes)
Physical Memory (RAM): 3543 MB (3.715e+009 bytes)

#2: memory
Maximum possible array: 716 MB (7.511e+008 bytes) *
Memory available for all arrays: 1298 MB (1.361e+009 bytes) **
Memory used by MATLAB: 312 MB (3.269e+008 bytes)
Physical Memory (RAM): 3543 MB (3.715e+009 bytes)

#3: memory
Maximum possible array: 708 MB (7.427e+008 bytes) *
Memory available for all arrays: 1290 MB (1.353e+009 bytes) **
Memory used by MATLAB: 356 MB (3.737e+008 bytes)
Physical Memory (RAM): 3543 MB (3.715e+009 bytes)

#4: memory
Maximum possible array: 580 MB (6.085e+008 bytes) *
Memory available for all arrays: 1194 MB (1.252e+009 bytes) **
Memory used by MATLAB: 379 MB (3.974e+008 bytes)
Physical Memory (RAM): 3543 MB (3.715e+009 bytes)

.
.
.

>>memory
Maximum possible array: 260 MB (2.730e+008 bytes) *
Memory available for all arrays: 874 MB (9.163e+008 bytes) **
Memory used by MATLAB: 717 MB (7.516e+008 bytes)
Physical Memory (RAM): 3543 MB (3.715e+009 bytes)


i just run the code above and waited some time and gave the 'memory' command.

Please advise

Regards

Louis




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.