Skip to content
Snippets Groups Projects
Commit 41613789 authored by Julian Steinmetz's avatar Julian Steinmetz
Browse files

Using hsv values from the original image instead of minimal values for filling...

Using hsv values from the original image instead of minimal values for filling the pixels in fillSobelRash.
parent 777430aa
No related branches found
No related tags found
No related merge requests found
......@@ -520,7 +520,7 @@ cv::Mat fillSobelRash(cv::Mat& sobel, cv::Mat& hsvValue)
assert(sobel.cols == hsvValue.cols);
assert(sobel.type() == hsvValue.type());
const int max_distance = 20;
const int max_distance = 100;
const int subtractor_divisor = 10;
double min,max;
......@@ -555,7 +555,12 @@ cv::Mat fillSobelRash(cv::Mat& sobel, cv::Mat& hsvValue)
{
has_bottom_border = has_bottom_border ? has_bottom_border : sobel.at<float>(a,x) > tresholdSobel;
}
result.at<float>(y,x) = tresholdSobel;
if(has_bottom_border && has_top_border)
{
result.at<float>(y,x) = hsvValue.at<float>(y,x);
}
}
//result.at<float>(y,x) = tresholdSobel;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment