Fixed rotate_image() so that it uses the generic image interface rather than

expecting an array2d like object.
This commit is contained in:
Davis King 2016-08-22 16:47:51 -04:00
parent 091d441ccb
commit dec0d93a51

View File

@ -578,7 +578,7 @@ namespace dlib
rect += rotate_point(center(rimg), rimg.tr_corner(), -angle);
rect += rotate_point(center(rimg), rimg.bl_corner(), -angle);
rect += rotate_point(center(rimg), rimg.br_corner(), -angle);
out_img.set_size(rect.height(), rect.width());
set_image_size(out_img, rect.height(), rect.width());
const matrix<double,2,2> R = rotation_matrix(angle);