Commit 5df3c44d authored by Maria Dimashova's avatar Maria Dimashova

added check to weight in rgbd

parent fed67b37
......@@ -450,7 +450,8 @@ bool computeKsi( int transformType,
double diff = static_cast<double>(image1.at<uchar>(v1,u1)) -
static_cast<double>(image0.at<uchar>(v0,u0));
double w = 1./(sigma + std::abs(diff));
double w = sigma + std::abs(diff);
w = w > DBL_EPSILON ? 1./w : 1.;
(*computeCFuncPtr)( (double*)C.ptr(pointCount),
w * sobelScale * dI_dx1.at<short int>(v1,u1),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment