dev-ros/
image_rotate

Rotates an image minimizing the angle between a vector and the camera frame

https://wiki.ros.org/image_rotate