CONV2 Overlap-add Method
Overlap-add method of CONV2 using FFT2:
CONV2OLAM Overlap-add method of CONV2 using FFT2.
Y = CONV2OLAM(A,B) performs the 2-D convolution of matrices A and B using the overlap/add method and using internal parameters (FFT2 size and block length) which guarantee efficient execution.
If [ma,na] = size(A) and [mb,nb] = size(B), then size(Y) = [ma+mb-1,na+nb-1].
allows you to have some control over the internal parameters by using a zero padding.
If mode is equal to:
- - 0 is the default value, if not specified. This value for mode uses overlap/add method. Ex.
conv2olam(a,b,0)
is equivalent to perform conv2olam(a,b).
- - 1 the dimensions of input matrices are zero padded to their nextpow2 values (type ‘help nextpow2′ on Matlab prompt) to perform FFT2 and IFFT2. No overlap is performed. Ex.
conv2olam(a,b,1)
- - 2 the dimensions of input matrices are not zero padded to perform these FFT-based operations. No overlap is performed. Ex.
conv2olam(a,b,2)
- - 3 the dimensions of matrices are zero padded to fixed values which must be specified to perform overlapping. Ex.
conv2olam(a,b,3,512,512)
uses 512 X 512 matrices to perform overlap/add method.
See also CONV2, FILTFILT, FFT2, IFFT2.
Report bugs to luigi.rosa@tiscali.it
The zip file includes:
- readme.txt —> this description
- conv2olam.m —> the M-file which contains the m-function to perform
Please contribute if you find this software useful.
Popularity: 5% [?]
Related Posts
Comments
One Comment on CONV2 Overlap-add Method
-
priyanka pawar on
Sat, 28th Aug 2010 11:01
Tell me what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!
Include MATLAB code in your comment by doing the following:
<pre lang="MATLAB">
%insert code here
</pre>

















































