Commit 351f6eeb authored by Ilya Lysenkov's avatar Ilya Lysenkov

Fixed compile errors under Windows

parent 998fab0e
......@@ -145,7 +145,7 @@ void BlobDetector::findBlobs(const cv::Mat &image, const cv::Mat &binaryImage, v
{
double area = moms.m00;
double perimeter = arcLength(Mat(contours[contourIdx]), true);
double ratio = 4 * M_PI * area / (perimeter * perimeter);
double ratio = 4 * CV_PI * area / (perimeter * perimeter);
if (ratio < params.minCircularity)
continue;
}
......
......@@ -106,7 +106,7 @@ void Graph::floydWarshall(cv::Mat &distanceMatrix, int infinity) const
for (Vertices::const_iterator it1 = vertices.begin(); it1 != vertices.end(); it1++)
{
distanceMatrix.at<int> (it1->first, it1->first) = 0;
for (Neighbors::iterator it2 = it1->second.neighbors.begin(); it2 != it1->second.neighbors.end(); it2++)
for (Neighbors::const_iterator it2 = it1->second.neighbors.begin(); it2 != it1->second.neighbors.end(); it2++)
{
assert( it1->first != *it2 );
distanceMatrix.at<int> (it1->first, *it2) = edgeWeight;
......
......@@ -100,7 +100,7 @@ struct CirclesGridFinderParameters
int minGraphConfidence;
float vertexGain;
float vertexPenalty;
float existingVertexGain;
int existingVertexGain;
float edgeGain;
float edgePenalty;
float convexHullFactor;
......
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