How to convert from "const cv::cuda::GpuMat" to "const cv::cuda::PtrStepSz<uchar3>"

asked 2013-10-30 10:45:41 -0600

Compvis gravatar image

Hi,

I tried to conver from "const cv::cuda::GpuMat" to "const cv::cuda::PtrStepSz<uchar3>" but i couldn't. In code below:

void FireDetectorCaller(const PtrStepSz<uchar3>& src, PtrStepSz<uchar3>& dst);
void FireDetector(const GpuMat& src, GpuMat& dst)
{
FireDetectorCaller(src,dst);
}

Compiler says: error : no suitable user-defined conversion from "const cv::cuda::GpuMat" to "const cv::cuda::PtrStepSz<uchar3>" exists

How can i fix this? Could you pls help me? Thank in advance,

edit retag flag offensive close merge delete

Comments

Solved!!!!!!!!!!!!!!!!!!!

Compvis gravatar imageCompvis ( 2013-11-02 02:35:07 -0600 )edit

Could you please let me know how did you solve this issue? I am working on the same thing for a Project. Is this possible with NVCC 7.5 ? Please let me know how did you figure this out or if is possible to do this on GPU or not? Or any alternative is possible? Thanks!

sarthakahuja11 gravatar imagesarthakahuja11 ( 2016-10-01 14:35:29 -0600 )edit

Please someone help me out on this. I am facing serious issues regarding this :/

sarthakahuja11 gravatar imagesarthakahuja11 ( 2016-10-03 08:44:08 -0600 )edit