First time here? Check out the FAQ!
answered 2016-04-04 07:28:59 -0600
Use the warpAffine method:
cv::Mat rotation = cv::getRotationMatrix2D(rotatedRect.center, -rotatedRect.angle, 1); cv::warpAffine(src, dst, rotation, dst.size());