First time here? Check out the FAQ!
answered 2012-09-04 04:48:58 -0600
You can use template version of Mat:
Mat_<Vec3b> bgrMat; bgrMat(y, x) = Vec3b(0,0,0); Vec3b* row = bgrMat[y] // pointer to mat row