mirror of
https://github.com/opencv/opencv.git
synced 2024-12-14 00:39:13 +08:00
Merge pull request #21968 from No-Plane-Cannot-Be-Detected:5.x-randomSampling_bug
This commit is contained in:
commit
8b3d2a57ad
@ -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;
|
for (int i = 0; i < ori_pts_size; ++i) pts_idxs[i] = i;
|
||||||
randShuffle(pts_idxs, 1, rng);
|
randShuffle(pts_idxs, 1, rng);
|
||||||
|
|
||||||
int channels = input_pts.channels();
|
int channels = sampled_pts.channels();
|
||||||
if (channels == 3 && sampled_pts.isVector())
|
if (channels == 3 && sampled_pts.isVector())
|
||||||
{
|
{
|
||||||
// std::vector<cv::Point3f>
|
// std::vector<cv::Point3f>
|
||||||
|
Loading…
Reference in New Issue
Block a user