2016-12-02 05:10:28 -0600 | received badge | ● Editor (source) |
2016-12-02 04:58:43 -0600 | commented question | Transform buffer to cv::Mat without copy. sure but i have some code in c++ that I want to use in python without recoding every things |
2016-12-02 04:15:46 -0600 | asked a question | Transform buffer to cv::Mat without copy. I try to convert buffered data in cv::Mat (it's originaly to make a python binding numpy array to cv::Mat) my code here https://github.com/edmBernard/pybind1... in python when we do channel slicing the internal strides in "simply" set to 3 instead of 1 (there is no copy) so b is not continuous In full opencv C++, it's equivalente to try to get only one channel from a CV_8UC3 image. I try this but it don't seem to work as I think edit : there is some misunderstanding of my problem I try to be cleaner |