Skip to content
Snippets Groups Projects
Commit f8a55170 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Minor tweaks

parent 13f97d39
No related branches found
No related tags found
1 merge request!347Feature buckets experiment
Pipeline #26716 failed
......@@ -58,7 +58,7 @@ void StereoCSF::compute(cv::InputArray l, cv::InputArray r, cv::OutputArray disp
cv::Mat gradtmp;
impl_->gl.toGpuMat().download(gradtmp);
cv::imshow("Gradient Left", gradtmp);
//cv::imshow("Gradient Left", gradtmp);
cv::Mat tmp;
impl_->focal.toGpuMat().download(tmp);
......
......@@ -93,7 +93,7 @@ struct SalientGradient {
float weight = weighting(dist, float(radius));
float thresh = gthresh; //max(gthresh, focal_thresh);
//for (int u=-3; u<=3; ++u) {
// thresh = (x+u >= 0 && x+u < width) ? max(thresh, float(magnitude(y,x+u))) : thresh;
// thresh = (x+u >= 0 && x+u < width) ? max(thresh, weight*float(magnitude(y,x+u))) : thresh;
//}
float m = float(magnitude(y,x)) * weight;
......@@ -104,7 +104,7 @@ struct SalientGradient {
buckets.add(y, make_short2(x, a));
}
angle(y,x) = uchar(weight*255.0f);
angle(y,x) = uchar(thresh*weight);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment