out of memory with [c,s]=wavedec2()
이전 댓글 표시
i apply wavelet transform for MP4 video, already i read the video and divide it to frames and divide each frame to each color channel and each color channel to 512*512 blocks, and apply wavedec2 to each block. how solve out of memory error in [c,s]=wavedec2(img,4,db2)?? the error exactly is:
??? Error using ==> conv2
Out of memory. Type HELP MEMORY for your options.
Error in ==> dwt2 at 94
z = conv2(y,Hi_D(:)','valid');
Error in ==> wavedec2 at 66
[x,h,v,d] = dwt2(x,Lo_D,Hi_D); % decomposition
Error in ==> WaveletTransform at 21
[C,S]=wavedec2(img,nLevel,wname);
also it shouldn't have problem with AVI video. my MP4 video is short and 2 sec.
답변 (1개)
Wayne King
2013년 10월 27일
Are you saying that wavedec2() throws a memory error on a single call with a 512x512?
For example, this does not cause a memory issue:
X = randn(512,512);
[C,S] = wavedec2(X,4,'db2');
Are you sure that you are not somehow aggregating data in your img variable so that it is growing in your WavletTransform script?
카테고리
도움말 센터 및 File Exchange에서 Discrete Multiresolution Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!