openCV 2.4.5. and Submatrices [closed]
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
This question would be alot easier to answer with a little more info. What kind of image, RGB RGBA Grayscale? More importantly, what language are you trying to do this under?
Hello and thanks for the interest in my post. At the moment I am working with RGB images and so 3 dimensional matrices. Although my ultimate goal is to let the calculations be channel independent, working with. n-channels. At the Moment I am experimenting with the cvGetSubRect Method which seems to lead in the right direction, although now I am encountering some problems being data type related... I am still thankful for any help concerning my initial request. I am trying to do this in c++. best regards, Max