2020-05-01 05:35:01 -0600 | received badge | ● Popular Question (source) |
2018-07-16 08:53:37 -0600 | commented answer | How to do copy cv::Mat by pointer into tensor of type float? thank you very much! |
2018-07-16 08:53:27 -0600 | marked best answer | How to do copy cv::Mat by pointer into tensor of type float? Hi, I want to use opencv with tensorflow and try to copy my cv::Mat into tensor by get assertion from opencv. I have following code: image is my initial image, it has size 160 x 160. I make it with next procedure: I'm getting the error here: error: OpenCV(3.4.1) Error: Assertion failed (mask.depth() == 0 && (mcn == 1 || mcn == cn)) in copyTo, file /home/dmitry/code/opencv-3.4.1/modules/core/src/copy.cpp, line 382 terminate called after throwing an instance of 'cv::Exception' what(): OpenCV(3.4.1) /home/dmitry/code/opencv-3.4.1/modules/core/src/copy.cpp:382: error: (-215) mask.depth() == 0 && (mcn == 1 || mcn == cn) in function copyTo Please help. |
2018-07-16 08:53:27 -0600 | received badge | ● Scholar (source) |
2018-07-16 08:29:00 -0600 | commented question | How to do copy cv::Mat by pointer into tensor of type float? I've added the description of error. |
2018-07-16 08:28:36 -0600 | edited question | How to do copy cv::Mat by pointer into tensor of type float? How to do copy cv::Mat by pointer into tensor of type float? Hi, I want to use opencv with tensorflow and try to copy my |
2018-07-16 08:27:57 -0600 | received badge | ● Editor (source) |
2018-07-16 08:27:57 -0600 | edited question | How to do copy cv::Mat by pointer into tensor of type float? How to do copy cv::Mat by pointer into tensor of type float? Hi, I want to use opencv with tensorflow and try to copy my |
2018-07-16 08:13:44 -0600 | asked a question | How to do copy cv::Mat by pointer into tensor of type float? How to do copy cv::Mat by pointer into tensor of type float? Hi, I want to use opencv with tensorflow and try to copy my |