First time here? Check out the FAQ!
answered 2017-05-02 04:08:02 -0600
you need to allocate space for the pixels, if you want to draw into it:
mRbga = new Mat(roi_canny.size(), CV_8UC3, Scalar.all(0));