Working with image pixels

Posted by Mario on Stack Overflow See other posts from Stack Overflow or by Mario
Published on 2011-01-12T20:41:38Z Indexed on 2011/01/12 23:53 UTC
Read the original article Hit count: 195

Filed under:
|

Hey Guys,

I'm trying to do a project here, which I want to implement the following:

I have a rotation matrix and translation matrix are estimated, now I have an image in a certain location and I want to multiply all the image pixel by the rotation matrix and add the results to the translation matrix.....

My issue is how to work with the pixels? I mean how to extract the pixel from the image in order to do the operation that I mentioned above?

it's ok to give me the suggestion in either opencv or c++

*I need to know how to do this operation new_p(x,y) = old(x,y)* rotation_matrix + translation_matrix. I'm defining the image like that IplImage(), 3 channel image. For now I need to do the geometrical transformation*

Thank you.

© Stack Overflow or respective owner

Related posts about c++

Related posts about opencv