From a419225ea3676f8386fba2620ed7391027a5f3c3 Mon Sep 17 00:00:00 2001 From: Fabien Freling Date: Wed, 6 Aug 2014 23:11:56 +0200 Subject: [PATCH] Add logging lines. --- rotation.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/rotation.cpp b/rotation.cpp index 1d88ea1..c9db6a3 100644 --- a/rotation.cpp +++ b/rotation.cpp @@ -549,6 +549,15 @@ Image* rotate(Image const& src, double angle) Point const qdx(ceil(src_delta_x.x * q_pos / src.width), ceil(src_delta_x.y * q_pos / src.width)); Point const qdy(ceil(src_delta_y.x * q_pos / src.height), ceil(src_delta_y.y * q_pos / src.height)); + if (false) + { + LOG << "src delta x: " << src_delta_x << endl; + LOG << "src delta y: " << src_delta_y << endl; + LOG << "qdx: " << qdx << endl; + LOG << "qdy: " << qdy << endl; + LOG << "q pos: " << q_pos << endl; + } + DPoint const rot_origin_in_src_grid = get_mapped_point(*rotated, Point(0, 0), -rotation); DPoint const rot_origin_in_src = convert_img_coord_precision(src, rot_origin_in_src_grid); @@ -583,6 +592,13 @@ Image* rotate(Image const& src, double angle) int const right_border = 0; int const core_pixels = width - left_padding - left_border - right_border - right_padding; + if (false) + { + LOG << "left padding = " << left_padding << endl; + LOG << "right padding = " << right_padding << endl; + LOG << "core pixels = " << core_pixels << endl; + } + // Left padding for (int x = 0; x < left_padding; ++x, ++buffer_index) {