Ask Your Question
0

Gpu version of filter2D

asked 2013-07-13 17:42:22 -0600

Hansg91 gravatar image

updated 2013-07-13 17:42:55 -0600

Hi,

I wanted to try out the Gpu version of filter2D, but it is giving me a strange compile error:

error: in passing argument 7 of 'void cv::gpu::filter2D(const cv::gpu::GpuMat&, cv::gpu::GpuMat&, int, const cv::Mat&, cv::Point, int, cv::gpu::Stream&)'

But I am not even changing that parameter, it is the default parameter. I call it in the following manner:

cv::gpu::filter2D(gpuPatch, gpuResponse, CV_32F, m_model.weights[i], cv::Point(-1, -1), 0, cv::BORDER_CONSTANT);

What is going wrong here ?

Thanks in advance :)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-12-11 02:24:43 -0600

Balaji gravatar image

updated 2013-12-11 03:18:53 -0600

Hi,

The statement that you are executing has a syntax error because the arguments do not match the defination of the function: cv::gpu::filter2D(gpuPatch, gpuResponse, CV_32F, m_model.weights[i], cv::Point(-1, -1), 0, cv::BORDER_CONSTANT);

Try executing the following statement, you wont get a compile time error: cv::gpu::filter2D(gpuPatch, gpuResponse, CV_32F, m_model.weights[i], cv::Point(-1, -1),cv::BORDER_CONSTANT);

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-07-13 17:42:22 -0600

Seen: 706 times

Last updated: Dec 11 '13