openCV 2.4.5. and Submatrices [closed]

asked 2013-06-10 08:52:10 -0600

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

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-09-27 07:52:11.589973

Comments

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?

comwizz2 gravatar imagecomwizz2 ( 2013-06-10 14:19:03 -0600 )edit

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

djtschke gravatar imagedjtschke ( 2013-06-10 16:03:29 -0600 )edit