Browse Source

5 iterations seems to be easily enough to get great picture

Martijn Braam 3 years ago
parent
commit
693680306c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      stackercpp.cpp

+ 1 - 1
stackercpp.cpp

@@ -13,7 +13,7 @@ Stacker::add_frame(unsigned char *data, int width, int height)
     Mat mat = Mat(height, width, CV_8UC3, data);
     Mat grayscale = Mat(height, width, CV_8UC1);
     cv::cvtColor(mat, grayscale, cv::COLOR_BGR2GRAY);
-    int number_of_iterations = 5000;
+    int number_of_iterations = 5;
     double termination_eps = 1e-10;
     TermCriteria criteria(TermCriteria::COUNT + TermCriteria::EPS, number_of_iterations, termination_eps);
     if (layers == 0) {