Commit f8193232 authored by Balint Cristian's avatar Balint Cristian

Fix AGAST keypoint declared size.

parent c41dc915
...@@ -793,7 +793,7 @@ static void AGAST_5_8(InputArray _img, std::vector<KeyPoint>& keypoints, int thr ...@@ -793,7 +793,7 @@ static void AGAST_5_8(InputArray _img, std::vector<KeyPoint>& keypoints, int thr
keypoints.reserve(nExpectedCorners); keypoints.reserve(nExpectedCorners);
} }
} }
keypoints.push_back(KeyPoint(Point2f((float)x, (float)y), 1.0f)); keypoints.push_back(KeyPoint(Point2f((float)x, (float)y), 7.0f));
total++; total++;
goto homogeneous; goto homogeneous;
success_structured: success_structured:
...@@ -810,7 +810,7 @@ static void AGAST_5_8(InputArray _img, std::vector<KeyPoint>& keypoints, int thr ...@@ -810,7 +810,7 @@ static void AGAST_5_8(InputArray _img, std::vector<KeyPoint>& keypoints, int thr
keypoints.reserve(nExpectedCorners); keypoints.reserve(nExpectedCorners);
} }
} }
keypoints.push_back(KeyPoint(Point2f((float)x, (float)y), 1.0f)); keypoints.push_back(KeyPoint(Point2f((float)x, (float)y), 7.0f));
total++; total++;
goto structured; goto structured;
} }
...@@ -3237,7 +3237,7 @@ static void AGAST_7_12d(InputArray _img, std::vector<KeyPoint>& keypoints, int t ...@@ -3237,7 +3237,7 @@ static void AGAST_7_12d(InputArray _img, std::vector<KeyPoint>& keypoints, int t
keypoints.reserve(nExpectedCorners); keypoints.reserve(nExpectedCorners);
} }
} }
keypoints.push_back(KeyPoint(Point2f((float)x, (float)y), 1.0f)); keypoints.push_back(KeyPoint(Point2f((float)x, (float)y), 7.0f));
total++; total++;
goto homogeneous; goto homogeneous;
success_structured: success_structured:
...@@ -3254,7 +3254,7 @@ static void AGAST_7_12d(InputArray _img, std::vector<KeyPoint>& keypoints, int t ...@@ -3254,7 +3254,7 @@ static void AGAST_7_12d(InputArray _img, std::vector<KeyPoint>& keypoints, int t
keypoints.reserve(nExpectedCorners); keypoints.reserve(nExpectedCorners);
} }
} }
keypoints.push_back(KeyPoint(Point2f((float)x, (float)y), 1.0f)); keypoints.push_back(KeyPoint(Point2f((float)x, (float)y), 7.0f));
total++; total++;
goto structured; goto structured;
} }
...@@ -5319,7 +5319,7 @@ static void AGAST_7_12s(InputArray _img, std::vector<KeyPoint>& keypoints, int t ...@@ -5319,7 +5319,7 @@ static void AGAST_7_12s(InputArray _img, std::vector<KeyPoint>& keypoints, int t
keypoints.reserve(nExpectedCorners); keypoints.reserve(nExpectedCorners);
} }
} }
keypoints.push_back(KeyPoint(Point2f((float)x, (float)y), 1.0f)); keypoints.push_back(KeyPoint(Point2f((float)x, (float)y), 7.0f));
total++; total++;
goto homogeneous; goto homogeneous;
success_structured: success_structured:
...@@ -5336,7 +5336,7 @@ static void AGAST_7_12s(InputArray _img, std::vector<KeyPoint>& keypoints, int t ...@@ -5336,7 +5336,7 @@ static void AGAST_7_12s(InputArray _img, std::vector<KeyPoint>& keypoints, int t
keypoints.reserve(nExpectedCorners); keypoints.reserve(nExpectedCorners);
} }
} }
keypoints.push_back(KeyPoint(Point2f((float)x, (float)y), 1.0f)); keypoints.push_back(KeyPoint(Point2f((float)x, (float)y), 7.0f));
total++; total++;
goto structured; goto structured;
} }
...@@ -7440,7 +7440,7 @@ static void OAST_9_16(InputArray _img, std::vector<KeyPoint>& keypoints, int thr ...@@ -7440,7 +7440,7 @@ static void OAST_9_16(InputArray _img, std::vector<KeyPoint>& keypoints, int thr
keypoints.reserve(nExpectedCorners); keypoints.reserve(nExpectedCorners);
} }
} }
keypoints.push_back(KeyPoint(Point2f((float)x, (float)y), 1.0f)); keypoints.push_back(KeyPoint(Point2f((float)x, (float)y), 7.0f));
total++; total++;
} }
} }
...@@ -7892,7 +7892,7 @@ static void AGAST_ALL(InputArray _img, std::vector<KeyPoint>& keypoints, int thr ...@@ -7892,7 +7892,7 @@ static void AGAST_ALL(InputArray _img, std::vector<KeyPoint>& keypoints, int thr
keypoints.reserve(nExpectedCorners); keypoints.reserve(nExpectedCorners);
} }
} }
keypoints.push_back(KeyPoint(Point2f((float)x, (float)y), 1.0f)); keypoints.push_back(KeyPoint(Point2f((float)x, (float)y), 7.0f));
total++; total++;
goto homogeneous; goto homogeneous;
success_structured: success_structured:
...@@ -7909,7 +7909,7 @@ static void AGAST_ALL(InputArray _img, std::vector<KeyPoint>& keypoints, int thr ...@@ -7909,7 +7909,7 @@ static void AGAST_ALL(InputArray _img, std::vector<KeyPoint>& keypoints, int thr
keypoints.reserve(nExpectedCorners); keypoints.reserve(nExpectedCorners);
} }
} }
keypoints.push_back(KeyPoint(Point2f((float)x, (float)y), 1.0f)); keypoints.push_back(KeyPoint(Point2f((float)x, (float)y), 7.0f));
total++; total++;
goto structured; goto structured;
} }
......
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