Ask Your Question
0

Gpu version of filter2D

asked Jul 13 '13

Hansg91 gravatar image

updated Jul 13 '13

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 :)

Preview: (hide)

1 answer

Sort by » oldest newest most voted
1

answered Dec 11 '13

Balaji gravatar image

updated Dec 11 '13

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);

Preview: (hide)

Question Tools

Stats

Asked: Jul 13 '13

Seen: 757 times

Last updated: Dec 11 '13