Working with image pixels
- by Mario
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.