convolution

Is there a Python equivalent of MATLAB's conv2 function?

Does Python or any of its modules have an equivalent of MATLAB's conv2 function? More specifically, I'm interested in something that does the same computation as conv2(A, B, 'same') in MATLAB. ...

Convolve working with Interpolated Functions in Mathematica

I'm using Mathematica 7. I have an interpolated function, here's an example: pressures = WeatherData["Chicago", "Pressure", {2010, 8}] // DeleteCases[#, {_, _Missing}] & // Map[{AbsoluteTime[#[[1]]], #[[2]]} &, #] & // Interpolation; I'd like to compute it's derivative, which is straight forward: dpressures = D[pressur...

I'm looking for specific matrices to plug into a convolution matrix

Assuming I already have a working convolution matrix algorithm in place, I'm looking for practical examples of general matrices that are useful for image processing in particular. The canonical examples you'll find everywhere are non-gaussian box blur: 1 1 1 1 1 1 1 1 1 Image sharpening: 0 -1 0 -1 5 -1 0 -1 0 Edge detec...

process 35 x 35 kernal using convolution method

Dear all, I would like to do a convolution using a 35 x 35 kernel. Any suggestion? or any method already in opencv i can use? Because now the cvfilter2d can only support until 10 x 10 kernel. ...

Optimizing 1D Convolution

Is there a way to speed up this 1D convolution ? I tried to make the dy cache efficient but compiling with g++ and -O3 gave worse performances. I am convolving with [-1. , 0., 1] in both directions. Is not homework. #include<iostream> #include<cstdlib> #include<sys/time.h> void print_matrix( int height, int width, float *matrix){ ...

Fast 2D convolution for DSP

I want to implement some image-processing algorithms which are intended to run on a beagleboard. These algorithms use convolutions extensively. I'm trying to find a good C implementation for 2D convolution (probably using the Fast Fourier Transform). I also want the algorithm to be able to run on the beagleboard's DSP, because I've heard...