diff --git a/src/focusstack.cc b/src/focusstack.cc index 3337552..7701936 100644 --- a/src/focusstack.cc +++ b/src/focusstack.cc @@ -368,7 +368,7 @@ void FocusStack::schedule_alignment(int i) { // Align directly against the global reference, but use neighbour as a guess. // This can give slightly better alignment in shallow stacks with little blur. - aligned = std::make_shared(m_aligned_grayscales.at(m_refidx), + aligned = std::make_shared(m_grayscale_imgs.at(m_refidx), m_aligned_imgs.at(m_refidx), m_grayscale_imgs.at(i), m_input_images.at(i), diff --git a/src/task_align.cc b/src/task_align.cc index 3ecf643..cc868f6 100644 --- a/src/task_align.cc +++ b/src/task_align.cc @@ -424,4 +424,7 @@ void Task_Align::compute_valid_area() m_valid_area = a; limit_valid_area(cv::Rect(left, top, right - left, bottom - top)); + + m_logger->verbose("%s valid area X %d, Y %d, W %d, H %d\n", + m_filename.c_str(), m_valid_area.x, m_valid_area.y, m_valid_area.width, m_valid_area.height); } \ No newline at end of file