diff --git a/src/algo/depth-to-rgb-calibration/optimizer.cpp b/src/algo/depth-to-rgb-calibration/optimizer.cpp index 6e696c858a..318b857966 100644 --- a/src/algo/depth-to-rgb-calibration/optimizer.cpp +++ b/src/algo/depth-to-rgb-calibration/optimizer.cpp @@ -1270,8 +1270,8 @@ void params::set_depth_resolution( size_t width, size_t height ) bool const XGA = (width == 1024 && height == 768); if( XGA ) { - AC_LOG( DEBUG, "... changing IR threshold: " << grad_ir_threshold << " -> " << 1.5 << " (because of resolution)" ); - grad_ir_threshold = 1.5; + AC_LOG( DEBUG, "... changing IR threshold: " << grad_ir_threshold << " -> " << 2.5 << " (because of resolution)" ); + grad_ir_threshold = 2.5; } } diff --git a/src/algo/depth-to-rgb-calibration/optimizer.h b/src/algo/depth-to-rgb-calibration/optimizer.h index d243b19fc6..39276618f3 100644 --- a/src/algo/depth-to-rgb-calibration/optimizer.h +++ b/src/algo/depth-to-rgb-calibration/optimizer.h @@ -112,10 +112,10 @@ namespace depth_to_rgb_calibration { struct svm_model_linear { svm_model_linear(); - std::vector< double > mu = { 26.451657421181550, 1.834669247710750, 3.491429858876404, 3.786071463994616, 1.267059679244040e+04, 1.739017433204909e+04, 7.950284312071314, 7.037505628020683, 1.669357700781532e+04, -4.000499638952811e+02 }; - std::vector< double > sigma = { 64.543314844188930,0.399466249006394,5.051691865199965,4.838800439657138,3.560637036816310e+03,4.169466021585641e+03,3.946730380178832,2.688331347779885,9.166971780432328e+03,1.309539174549818e+03 }; - std::vector< double > beta = { 0.036404266074054, 0.217416714219929, -1.448206804928638, -0.426383040511132, 0.482625970398315, -0.341211816013196, 1.476722279284806, -0.570440485581453, 0.174994874978338, -0.217118614894225 }; - double bias = -0.765669809855658; + std::vector< double > mu = { 0,0,0,0,0,0,0,0,0,0 }; + std::vector< double > sigma = { 1,1,1,1,1,1,1,1,1,1 }; + std::vector< double > beta = { -0.00598037736275758, -0.419810195765952, -0.0519142921084610, 0.0511261823872767, -0.00326064850787589, 0.00134513193142993, -0.0305126906030304, 0, 0.000390629893900041, -0.000589640043298588 };// { 0.036404266074054, 0.217416714219929, -1.448206804928638, -0.426383040511132, 0.482625970398315, -0.341211816013196, 1.476722279284806, -0.570440485581453, 0.174994874978338, -0.217118614894225 }; + double bias = 14.782481183385837; }; struct svm_model_gaussian { diff --git a/src/algo/depth-to-rgb-calibration/valid-results.cpp b/src/algo/depth-to-rgb-calibration/valid-results.cpp index 6c1be94255..41cc14bc0c 100644 --- a/src/algo/depth-to-rgb-calibration/valid-results.cpp +++ b/src/algo/depth-to-rgb-calibration/valid-results.cpp @@ -350,7 +350,7 @@ bool optimizer::is_valid_results() res = false; } - bool res_svm = valid_by_svm(gaussian); //(gaussian);// (linear); + bool res_svm = valid_by_svm(linear); //(gaussian); return (res && res_svm); }