Code covered by the BSD License  

Highlights from
CONV2 Overlap-add Method

4.33333

4.3 | 6 ratings Rate this file 18 Downloads (last 30 days) File Size: 4.43 KB File ID: #4373

CONV2 Overlap-add Method

by Luigi Rosa

 

15 Jan 2004 (Updated 19 Jan 2004)

Overlap-add method of CONV2 using FFT2.

| Watch this File

File Information
Description

CONV2OLAM Overlap-add method of CONV2 using FFT2.

See readme.txt for more informations.

Please contribute if you find this software useful.

Report bugs to luigi.rosa@tiscali.it
 
 ***********************************
  Luigi Rosa
  Via Centrale 27
  67042 Civita di Bagno
  L'Aquila --- ITALY
  email luigi.rosa@tiscali.it
  mobile +39 340 3463208
  http://utenti.lycos.it/matlab
 **********************************

MATLAB release MATLAB 6.5 (R13)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (6)
05 Dec 2005 Ila Fiete

This is a simple code for 2-d convolution, based on the built-in matlab routine for 2-d fft. You can write it easily yourself, but this code is pretty clean and straightforward.

For large matrices, filter2 or conv2 are v. slow in matlab for large matrices. This code leads to a considerable speedup, by a factor of 5-10 on my machine, when I convolve a 500^2 matrix with a 100^2 one.

12 Dec 2005 uuu uuu

uuuuu

02 Sep 2006 Jason Jury

Nice straightforward m-file. Benchmarked on AMD-64 with Linux. Run time for convolving 2 500x500 matrices (with zero-padding) was 1.5 seconds; same problem with 'conv2' command took 490 seconds. For large problems with conv2olam, the run time scales as N^(2.2), for NxN square matrices. With conv2, run time scales as N^(4.6).

25 Oct 2007 Usman Khan

Excellent work. Must be appriciated.

04 Jul 2008 Kiran Bhagat

Beautiful work...

18 May 2010 Till

They way i understand it it can only handle matrices with a maximum size of 2.^13 = 8192. It would be nice if bigger matrices would work as well.

Please login to add a comment or rating.
Updates
19 Jan 2004

Software Upgraded: Speed optimized

Tag Activity for this File
Tag Applied By Date/Time
convolution Luigi Rosa 22 Oct 2008 07:12:46
overlapadd method Luigi Rosa 22 Oct 2008 07:12:46
fft2 Luigi Rosa 22 Oct 2008 07:12:46
conv2 Luigi Rosa 22 Oct 2008 07:12:46
overlapsave cristian 24 Nov 2009 19:54:18
overlapadd method Rashmi 07 Jan 2010 10:08:23
overlapadd method Hengameh 20 Apr 2011 18:58:29
convolution Dushyant Singh 04 May 2011 02:32:06
conv2 David 20 Jul 2011 13:52:48
overlapadd method David 20 Jul 2011 13:52:50
conv2 student fudan 17 Sep 2011 12:20:26

Contact us at files@mathworks.com