برای اینکار می بایست تصویر را transpose کرده بهمراه flip افقی
Mat rotate_img = img.t(); cv::flip(rotate_img,rotate_img,1);