Ask Your Question

Revision history [back]

How to operate on each pixel of a cv2.cv.Mat with a 3 x 3 matrix?

I want to operate on each bgr pixel of a CvMat with a (3 x 3) Miyazaki matrix (http://www.cg.info.hiroshima-cu.ac.jp/~miyazaki/knowledge/teche40.html).

I have tried various operations but I keep getting various errors.

Any help on what operation/syntax is needed would be greatly appreciated!