I am trying to detect circles in some pictures but the circles aren't always perfect. This makes houghCircles
very impractical to use because it seems to only support almost perfect circles. So now i am searching for a way to kind of "fix" my circles.
for reproduction purposes:
First i threshold the picture to get a binary picutre:
cv::threshold(input, output, threshvalue, 1, cv::THRESH_BINARY_INV);
After thresholding i detect the Hough Circles with :
std::vector<cv::Vec3f> circles;
HoughCircles(binarypicture,circles,cv::HOUGH_GRADIENT,1,100,30,26,45);