Skip to content

Commit 470d34d

Browse files
PalkoNazarvpisarev
authored andcommitted
make tmpRow proper size before copyTo to avoid reallocated tmpCol (opencv#10860)
* make tmpRow proper size before copyTo to avoid reallocated tmpCol * do the transposition without creating temporary array; replace TAB with spaces. * revert the previous commit
1 parent a0c2718 commit 470d34d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/calib3d/src/circlesgrid.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ void CirclesGridClusterFinder::hierarchicalClustering(const std::vector<Point2f>
117117
Mat tmpRow = dists.row(minIdx);
118118
Mat tmpCol = dists.col(minIdx);
119119
cv::min(dists.row(minLoc.x), dists.row(minLoc.y), tmpRow);
120+
tmpRow = tmpRow.t();
120121
tmpRow.copyTo(tmpCol);
121122

122123
clusters[minIdx].splice(clusters[minIdx].end(), clusters[maxIdx]);

0 commit comments

Comments
 (0)