added fix to feature projection

This commit is contained in:
2019-06-18 11:03:52 +02:00
parent 1b29047451
commit dcbc69a1c4
3 changed files with 9 additions and 23 deletions

View File

@ -498,15 +498,9 @@ double Feature::cvKernel(
double delta = 0;
if(type == "Sobel_x")
{
std::cout << "image value x" << ((double)xderImage.at<short>(pose.y, pose.x))/255. << std::endl;
delta = ((double)xderImage.at<short>(pose.y, pose.x))/255.;
}
else if (type == "Sobel_y")
{
std::cout << "image value y" << ((double)yderImage.at<short>(pose.y, pose.x))/255. << std::endl;
delta = ((double)yderImage.at<short>(pose.y, pose.x))/255.;
}
return delta;
}