Skip to content

Commit

Permalink
Discard frames with large errors
Browse files Browse the repository at this point in the history
  • Loading branch information
SeverinDenisenko committed Jan 21, 2025
1 parent bb6362e commit 82351ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions astroimsumlib/summation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ void delaney_frame_summator::sum(frame fr)
<< "x error: " << matcher.get_error_x() << ", "
<< "y error: " << matcher.get_error_y() << std::endl;

if(norm(matcher.get_error_x()) > 1.0 || norm(matcher.get_error_y()) > 1.0) {
std::cerr << "imsum: error is too large, skipping!!!" << std::endl;
}

pool.run_parallel_works(
[w, h, threads, this, transform, frame = fr](size_t thr) mutable {
long size = w / threads;
Expand Down

0 comments on commit 82351ed

Please sign in to comment.