First time here? Check out the FAQ!
answered 2012-11-26 07:46:12 -0600
I think this code can help you!
Mat x,y,z; x=Mat(image.at<cv::Vec3b>(i,j)); x.convertTo(y,c.type()); //c is your 3x3 matrix z=c*y;