out of memory with [c,s]=wavedec2()
Afficher commentaires plus anciens
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.
Réponses (1)
Wayne King
le 27 Oct 2013
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?
Catégories
En savoir plus sur Watermarking dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!