mirror of
https://github.com/opencv/opencv.git
synced 2024-12-12 07:09:12 +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;
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user