Closed brodyh closed 8 years ago
Yes, it's safe. Just make sure the size() is consistent with rows/cols. I recall it wasn't when I had it uncommented earlier. I'll try to fix it over the weekend, but meanwhile just uncomment and check the values of mat.size() and mat.rows/mat.cols before you access them.
Do you a have a newer version that supports matrices with 3 channels such as color images?
Hi Sudeep,
Is it safe to uncomment the code here for conversions from 3 dimensional numpy arrays? I needed it for converting RGB images to cv::Mat.
Thanks!