|
@@ -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) {
|