Skip to content

Commit 467fd62

Browse files
authored
Merge pull request #3321 from y-guyon:fix_get_subbox_chart_physical
Remove unused size of get_subbox_chart_physical()
2 parents 47bf66f + badef60 commit 467fd62

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

modules/mcc/src/checker_detector.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -802,8 +802,7 @@ void CCheckerDetectorImpl::
802802

803803
// get physical char box model
804804
std::vector<cv::Point2f> chartPhy;
805-
cv::Size size_box_phy;
806-
get_subbox_chart_physical(points, chartPhy, size_box_phy);
805+
get_subbox_chart_physical(points, chartPhy);
807806

808807
// Find the perspective transformation that brings current chart to rectangular form
809808
Matx33f ccT = cv::getPerspectiveTransform(points, chartPhy);
@@ -1101,7 +1100,7 @@ void CCheckerDetectorImpl::
11011100
}
11021101

11031102
void CCheckerDetectorImpl::
1104-
get_subbox_chart_physical(const std::vector<cv::Point2f> &points, std::vector<cv::Point2f> &chartPhy, cv::Size &size)
1103+
get_subbox_chart_physical(const std::vector<cv::Point2f> &points, std::vector<cv::Point2f> &chartPhy)
11051104
{
11061105
float w, h;
11071106
cv::Point2f v1 = points[1] - points[0];
@@ -1117,8 +1116,6 @@ void CCheckerDetectorImpl::
11171116
chartPhy[1] = cv::Point2f(w, 0);
11181117
chartPhy[2] = cv::Point2f(w, h);
11191118
chartPhy[3] = cv::Point2f(0, h);
1120-
1121-
size = cv::Size((int)w, (int)h);
11221119
}
11231120

11241121
void CCheckerDetectorImpl::

modules/mcc/src/checker_detector.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,7 @@ class CCheckerDetectorImpl : public CCheckerDetector
164164
private: // methods aux
165165
void get_subbox_chart_physical(
166166
const std::vector<cv::Point2f> &points,
167-
std::vector<cv::Point2f> &chartPhy,
168-
cv::Size &size);
167+
std::vector<cv::Point2f> &chartPhy);
169168

170169
void reduce_array(
171170
const std::vector<float> &x,

0 commit comments

Comments
 (0)