 src="HTML/matlabPyrTools_15.png" alt=""><br>
<img vspace="5" hspace="5" src="HTML/matlabPyrTools_16.png" alt=""> 
<h2>Convolution routines:<a name="11"></a></h2>
<h2>Compare speed of convolution/downsampling routines:<a name="12"></a></h2><pre class="codeinput">noise = rand(400); filt = rand(10);
tic; res1 = corrDn(noise,filt(10:-1:1,10:-1:1),<span class="string">'reflect1'</span>,[2 2]); toc;
tic; ires = rconv2(noise,filt); res2 = ires(1:2:400,1:2:400); toc;
imStats(res1,res2)
</pre><pre class="codeoutput