Method RandomSampling
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
RandomSampling(OutputArray, InputArray, int)
Point cloud sampling by randomly selecting points.
public static void RandomSampling(OutputArray sampledPts, InputArray inputPts, int sampledPtsSize)
Parameters
sampledPtsOutputArrayPoint cloud after sampling.
inputPtsInputArrayOriginal point cloud, Mat of size Nx3/3xN.
sampledPtsSizeintThe desired point cloud size after sampling.
RandomSampling(OutputArray, InputArray, float)
Point cloud sampling by randomly selecting points.
public static void RandomSampling(OutputArray sampledPts, InputArray inputPts, float sampledScale)
Parameters
sampledPtsOutputArrayPoint cloud after sampling.
inputPtsInputArrayOriginal point cloud, Mat of size Nx3/3xN.
sampledScalefloatRange (0, 1); the percentage of the sampled point cloud relative to the original size.