I am working on image processing and should know the conv2 equivalent from Matlab in C ++ OpenCV.
I found this link , but it does not meet my requirements.
The problem I am facing is that I need to convolve the Mat image with a two-dimensional double array, which does not match the link above.
Matlab code:
img = conv2(img1,Mx,'same')
Where
Mx = {
{0, 0, 0, 0, 0, 0} ,
{0, -0.0003, -0.0035, 0, 0.0035, 0.0003} ,
{0, -0.0090, -0.0903, 0, 0.0903, 0.0090} ,
{0, -0.0229, -0.2292, 0, 0.2292, 0.0229} ,
{0, -0.0090, -0.0903, 0, 0.0903, 0.0090} ,
{0, -0.0003, -0.0035, 0, 0.0035, 0.0003}
};
Thank.