Skip to content

Commit

Permalink
Fix error with --global-align, add valid area to Task_Align verbose o…
Browse files Browse the repository at this point in the history
…utput (#21)
  • Loading branch information
PetteriAimonen committed May 20, 2022
1 parent 7897c5d commit 8649bc7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/focusstack.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<Task_Align>(m_aligned_grayscales.at(m_refidx),
aligned = std::make_shared<Task_Align>(m_grayscale_imgs.at(m_refidx),
m_aligned_imgs.at(m_refidx),
m_grayscale_imgs.at(i),
m_input_images.at(i),
Expand Down
3 changes: 3 additions & 0 deletions src/task_align.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 8649bc7

Please sign in to comment.