Ask Your Question

Revision history [back]

openCV 2.4.5. and Submatrices

Hello everybody,

I wanted to ask for some help as I encounter some difficulties trying to work with submatrices auf an Image. Here is what I want to achieve:

Having a picture auf 10000 x 10000 pixels I want to calculate the mean of single 4x4 blocks in that picture and then substract the mean from the 16 pixel values in the block.

What is the best way to access those 4x4 submatrices and process them.

Thank you very much for your help!

best regards,

Max