Package boofcv.alg.cloud
Class PointCloudUtils_F64
java.lang.Object
boofcv.alg.cloud.PointCloudUtils_F64
Various utility functions for working with point clouds with a float type of double.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doubleautoScale(List<Point3D_F64> cloud, double target) Automatically rescales the point cloud based so that it has a standard deviation of 'target'static DogArray<Point3dRgbI_F64>filter(AccessPointIndex<Point3D_F64> accessPoint, AccessColorIndex accessColor, int size, BoofLambdas.FilterInt filter, @Nullable DogArray<Point3dRgbI_F64> output) Creates a new list of points while filtering out pointsstatic voidprune(List<Point3D_F64> cloud, int minNeighbors, double radius) Prunes points from the point cloud if they have very few neighborsstatic voidprune(List<Point3D_F64> cloud, DogArray_I32 colors, int minNeighbors, double radius) Prunes points from the point cloud if they have very few neighborsstatic voidstatistics(List<Point3D_F64> cloud, Point3D_F64 mean, Point3D_F64 stdev) Computes the mean and standard deviation of each axis in the point cloud computed in dependently
-
Constructor Details
-
PointCloudUtils_F64
public PointCloudUtils_F64()
-
-
Method Details
-
filter
public static DogArray<Point3dRgbI_F64> filter(AccessPointIndex<Point3D_F64> accessPoint, AccessColorIndex accessColor, int size, BoofLambdas.FilterInt filter, @Nullable @Nullable DogArray<Point3dRgbI_F64> output) Creates a new list of points while filtering out points -
autoScale
Automatically rescales the point cloud based so that it has a standard deviation of 'target'- Parameters:
cloud- The point cloudtarget- The desired standard deviation of the cloud. Try 100- Returns:
- The selected scale factor
-
statistics
Computes the mean and standard deviation of each axis in the point cloud computed in dependently- Parameters:
cloud- (Input) Cloudmean- (Output) mean of each axisstdev- (Output) standard deviation of each axis
-
prune
Prunes points from the point cloud if they have very few neighbors- Parameters:
cloud- Point cloudminNeighbors- Minimum number of neighbors for it to not be prunedradius- search distance for neighbors
-
prune
public static void prune(List<Point3D_F64> cloud, DogArray_I32 colors, int minNeighbors, double radius) Prunes points from the point cloud if they have very few neighbors- Parameters:
cloud- Point cloudcolors- Color of each point.minNeighbors- Minimum number of neighbors for it to not be prunedradius- search distance for neighbors
-