From dec0d93a51ee321c3073aa05df78178b7137d40b Mon Sep 17 00:00:00 2001 From: Davis King Date: Mon, 22 Aug 2016 16:47:51 -0400 Subject: [PATCH] Fixed rotate_image() so that it uses the generic image interface rather than expecting an array2d like object. --- dlib/image_transforms/interpolation.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlib/image_transforms/interpolation.h b/dlib/image_transforms/interpolation.h index 63bb16605..32f935d66 100644 --- a/dlib/image_transforms/interpolation.h +++ b/dlib/image_transforms/interpolation.h @@ -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 R = rotation_matrix(angle);