1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

Merge pull request #21968 from No-Plane-Cannot-Be-Detected:5.x-randomSampling_bug

This commit is contained in:
Alexander Alekhin
2022-05-17 21:17:28 +00:00
+2 -2
View File
@@ -163,7 +163,7 @@ randomSampling(OutputArray sampled_pts, InputArray input_pts, const int sampled_
for (int i = 0; i < ori_pts_size; ++i) pts_idxs[i] = i;
randShuffle(pts_idxs, 1, rng);
int channels = input_pts.channels();
int channels = sampled_pts.channels();
if (channels == 3 && sampled_pts.isVector())
{
// std::vector<cv::Point3f>
@@ -365,4 +365,4 @@ int farthestPointSampling(OutputArray sampled_point_flags, InputArray input_pts,
} // farthestPointSampling()
//! @} _3d
} //end namespace cv
} //end namespace cv