2D convolution using openCV in C
问题 I want to implement a program which performs the 2D convolution using openCV. I'm new with openCV. my naive implementation is here: #include <stdio.h> #include <cv.h> //used for kernel unsigned short int kernel[3][3] __attribute__(( aligned(32))); // input and output image unsigned short int input[512][512] __attribute__(( aligned(32))); unsigned short int output[512][512] __attribute__((aligned(32))); int main() { //data are assigned to input and kernel matrices before. const CvArr* src =