mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Fixed rotate_image() so that it uses the generic image interface rather than
expecting an array2d like object.
This commit is contained in:
parent
091d441ccb
commit
dec0d93a51
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user