Hi all,I'm now working on a project about Video processing, and I've having some problems. I'm processing some jpeg images which is 240*360 pixels, thus I have to create a matrix of 240*360 to store some processed data for each pixels, I tried to create such matrix using the command M=zeros(240:360) and it prompted me the error message 'maximum variable size allowed by the program is exceeded'. However, I tried to type the command M=zeros(360) and it works.
I don't really understand the situation, M=zeros(240:360) should return a matrix of 240*360 which contains 86400 elements, while the later command: M=zeros(360) should return a matrix of 360*360 which contains 129600 elements, obviously the later matrix occupies much more memory than the first one. But the program just allowed me to do the later operation, I'm now confused with the situation.
Indeed I can continue my project with a 360*30 matrix for each frames, however it doesn't seem to be efficient enough since there's more than thousands of frames for each video. Any answers will be appreciated:)
Best Answer