Example for convolution of two matrices
- Author
- woelk 01/2008 (c) www. vision-n.de
#include <Base/Math/Matrix.hh>
#include <iostream>
using namespace BIAS;
using namespace std;
int main(int argc, char *argv[])
{
const int sl=3, sr=3;
for (int y=0; y<sl; y++){
for (int x=0; x<sl; x++){
left[y][x] = 1;
}
}
for (int y=0; y<sr; y++){
for (int x=0; x<sr; x++){
right[y][x] = 1;
}
}
Conv(left, right, res);
cout << "convolution of "<<left<<" and "<<right<<" results in "<<res<<endl;
return 0;
}