Skip to content

Commit

Permalink
Merge pull request hybridgroup#164 from DesWurstes/patch-1
Browse files Browse the repository at this point in the history
Fix: It doesn't compile on my machine.
  • Loading branch information
deadprogram authored Apr 12, 2018
2 parents ab6d932 + ec0c79a commit a0b3520
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions imgproc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ Contour ApproxPolyDP(Contour curve, double epsilon, bool closed) {
Point* points = new Point[length];

for (size_t i = 0; i < length; i++) {
points[i] = Point{approxCurvePts[i].x, approxCurvePts[i].y};
points[i] = (Point){approxCurvePts[i].x, approxCurvePts[i].y};
}

return Contour{points, length};
return (Contour){points, length};
}

void CvtColor(Mat src, Mat dst, int code) {
Expand Down Expand Up @@ -130,7 +130,7 @@ struct Contours FindContours(Mat src, int mode, int method) {
pts[j] = pt;
}

points[i] = Contour{pts, (int)contours[i].size()};
points[i] = (Contour){pts, (int)contours[i].size()};
}

Contours cons = {points, (int)contours.size()};
Expand Down

0 comments on commit a0b3520

Please sign in to comment.