Ask Your Question

charlesjiangxm's profile - activity

2017-11-27 20:14:08 -0500 asked a question How to deallocate (free, release) cv::cuda::GpuMat?

How to deallocate (free, release) cv::cuda::GpuMat? I tried to use GpuMat.release() function to release the GpuMat I've

2017-11-25 05:12:16 -0500 commented answer Why mat.ptr<>() has the same address among all the elements inside std::vector<cv::Mat>?

Oh I got it, thanks a lot!

2017-11-25 05:11:58 -0500 marked best answer Why mat.ptr<>() has the same address among all the elements inside std::vector<cv::Mat>?

If I construct outfea_ in the following manner, then you'll find the three output have exactly the same value. Is it a bug in opencv?

std::vector<cv::Mat> outfea_(3, cv::Mat(5, 5, CV_32FC1, cv::Scalar(0)));
cout<< outfea_.at(0).ptr<float>(0)<<endl;
cout<< outfea_.at(1).ptr<float>(0)<<endl;
cout<< outfea_.at(2).ptr<float>(0)<<endl;
2017-11-25 05:11:58 -0500 received badge  Scholar (source)
2017-11-25 03:58:49 -0500 received badge  Editor (source)
2017-11-25 03:58:49 -0500 edited question Why mat.ptr<>() has the same address among all the elements inside std::vector<cv::Mat>?

Why mat.ptr<>() has the same address among all the elements inside std::vector<cv::mat>? If I construct outf

2017-11-25 03:55:57 -0500 asked a question Why mat.ptr<>() has the same address among all the elements inside std::vector<cv::Mat>?

Why mat.ptr<>() has the same address among all the elements inside std::vector<cv::mat>? If I construct outf