1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-16 13:57:05 +08:00

Merge pull request #3321 from y-guyon:fix_get_subbox_chart_physical

Remove unused size of get_subbox_chart_physical()
This commit is contained in:
Alexander Smorkalov
2022-09-05 15:26:51 +03:00
committed by GitHub
2 changed files with 3 additions and 7 deletions

View File

@@ -802,8 +802,7 @@ void CCheckerDetectorImpl::
// get physical char box model
std::vector<cv::Point2f> chartPhy;
cv::Size size_box_phy;
get_subbox_chart_physical(points, chartPhy, size_box_phy);
get_subbox_chart_physical(points, chartPhy);
// Find the perspective transformation that brings current chart to rectangular form
Matx33f ccT = cv::getPerspectiveTransform(points, chartPhy);
@@ -1101,7 +1100,7 @@ void CCheckerDetectorImpl::
}
void CCheckerDetectorImpl::
get_subbox_chart_physical(const std::vector<cv::Point2f> &points, std::vector<cv::Point2f> &chartPhy, cv::Size &size)
get_subbox_chart_physical(const std::vector<cv::Point2f> &points, std::vector<cv::Point2f> &chartPhy)
{
float w, h;
cv::Point2f v1 = points[1] - points[0];
@@ -1117,8 +1116,6 @@ void CCheckerDetectorImpl::
chartPhy[1] = cv::Point2f(w, 0);
chartPhy[2] = cv::Point2f(w, h);
chartPhy[3] = cv::Point2f(0, h);
size = cv::Size((int)w, (int)h);
}
void CCheckerDetectorImpl::

View File

@@ -164,8 +164,7 @@ protected:
private: // methods aux
void get_subbox_chart_physical(
const std::vector<cv::Point2f> &points,
std::vector<cv::Point2f> &chartPhy,
cv::Size &size);
std::vector<cv::Point2f> &chartPhy);
void reduce_array(
const std::vector<float> &x,