Re: How to speed up conv2 ?



Daniel Mark wrote:


Hello all:

I got the following method to speed up the two-dimension
correlation
calculation, but I need helps to implement it in matlab.

A two-dimensional correlation calculation over a large image is
very
time-consuming,
and to overcome this, we can do the correlation in the frequency
domain by multiplying the
two-dimensional FFTs the Hermitian template and the image, then
took
the inverse FFT
to obtain the output image.

Anyone can help?

THank you very much
-Daniel

If your 2D matrix contain integer pixels, and you own an INTEL based
processor, check out the Image Processing Toolbox function imfilter.
Apparently if you meet the above requirements, the function
subcontracts the processing to code implemented using the INTEL IPP
which uses both the MMX and SIMD processors buried in the Pentium, so
it should go like a bat out of hell, as it will be processing 8
pixels in parallel.

Hope this is of some use to you

Dave Robinson
.



Relevant Pages

  • Re: When a country with 70 million people ...
    ... correlation between population and success on the football field. ... know that GDP has different influence in difference regions. ... calculation but yours already makes it very clear). ... that the midgets will skew the analysis whenever a linear regression ...
    (rec.sport.soccer)
  • Re: How to speed up conv2 ?
    ... I got the following method to speed up the two-dimension ... A two-dimensional correlation calculation over a large image is ... bear in mind that FFT domain ... kernel must be properly padded. ...
    (comp.soft-sys.matlab)
  • Re: How to speed up conv2 ?
    ... I got the following method to speed up the two-dimension ... A two-dimensional correlation calculation over a large image is ... bear in mind that FFT domain ... kernel must be properly padded. ...
    (comp.soft-sys.matlab)
  • Re: Loop in button code
    ... various retail sites and calculate a correlation from each location compared ... calculation in excel. ... historical data and run hundreds of these calculations, ... I thought that once I got a loop to work off my button on a form I could ...
    (microsoft.public.access.modulesdaovba)