Using IMU (roll pitch and yaw data) with opencv

Hello. Currently I’m using IMU sensor and measure the roll pitch and yaw angle. I wanted to ask how can I rotate image (using opencv) with the roll, pitch and yaw data from sensor?

Thank you

I’d recommend turning everything into 4x4 transformation/pose matrices.

a computer graphics course might be helpful in understanding the math. or see what the tutorials in the opencv documentation can do for you. they’re fairly terse, not an introduction to the math.

maybe i misunderstand it, but to rotate an image in 3d space, wouldnt you rather use a 3d engine, like opengl ?

what are you trying to achieve, here ?