Rank: 355574 based on 0 downloads (last 30 days) and 0 file submitted

Holger Goerlitz


Personal Profile:


Watch this Author's files


Comments and Ratings by Holger Goerlitz View all
Updated File Comments Rating
13 Feb 2012 gmregress Geometric Mean Regression (Reduced Major Axis Regression). Author: Antonio Trujillo-Ortiz

Thank you very much, very well done and works great.

A quick comparison with the rma.m by Edward T. Peltzer (http://web.ics.purdue.edu/~braile/eas309/rma.m) gives identical results.

Except for one error, I believe: gmregress always returns a positive slope, even for data with a negative trend. After correcting the slope by (compare to rma.m):

si = r/abs(r); % sign of correl. coeff.

b = si*b;

negative slopes are negative.

Thanks for the function again,

09 Jan 2009 mmread Read virtually any media file in Windows, Linux, or Mac. Author: Micah Richert

Hi Micah,

thanks for your help. You're right, when I disable trySeeking, it correctly reads and displays every frame that I give as an argument to mmread. Unfortunately, this makes the function too slow for me, so I have to find another way. Is it possible that mmread with trySeeking=true sometimes does not read the correct frame as specified by the framenumber?

I looked into the processFrame option, and I'm sorry, I don't really understand how to use it - would you offer some more advice on that? Am I expected to adjust processFrame.m to my needs, e.g. where it says "% now do something with the data..."? However, I also get my original problem (which is that the displayed image does not correspond to the framenumber) when I use processFrame.m without changing it:

for i=1:1000,

The displayed image is changing roughly every 10-30 frames, and then for the next 10-30 frames the displayed image does not change again.

Some other observations that might help to figure out what is going on:
- In the above code which includes "processframe", I sometimes
also get Matlabs Out Of Memory Error.
- Without using "processframe", the video-structure returned by mmread does not contain any image-data, i.e., video.frames is a 1x0 structure array.

I'm sure I'm doing something wrong here, especially with processframe - any help would be highly appreciated.


08 Jan 2009 mmread Read virtually any media file in Windows, Linux, or Mac. Author: Micah Richert

Dear Micah,

thanks for this code; that seems to solve my problems of working with mpeg2 movies in Matlab.

I get the same Warning message as Francesca pointed out above:

Warning: In the directory "D:\common\matlab\_MatlabCentralToolboxes\mmread",
mexDDGrab.mexw32 now shadows mexDDGrab.dll.

but I can open my mpg-file. Is this anything to worry about?

In addition, I have another problem: I am stepping through a long mpeg2 movie, reading and displaying only one frame at a time, using mmread('mymovie.mpg',framenumber). However, when I successively increase framenumber by 1, it seems that mmread keeps retrieving the same image (there is now change visible in the displayed image). Only when doing bigger jumps of sometimes 10 or 50 frames, I really get the new frame.

Do you have any idea what's going on here?

Thanks for your help, and again for mmread as a whole!

Contact us