Package boofcv.alg.cloud
Class PointCloudUtils_F32
java.lang.Object
boofcv.alg.cloud.PointCloudUtils_F32
Various utility functions for working with point clouds with a float type of float.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic floatautoScale(List<Point3D_F32> cloud, float target) Automatically rescales the point cloud based so that it has a standard deviation of 'target'static DogArray<Point3dRgbI_F32>filter(AccessPointIndex<Point3D_F32> accessPoint, AccessColorIndex accessColor, int size, BoofLambdas.FilterInt filter, @Nullable DogArray<Point3dRgbI_F32> output) Creates a new list of points while filtering out pointsstatic voidprune(List<Point3D_F32> cloud, int minNeighbors, float radius) Prunes points from the point cloud if they have very few neighborsstatic voidprune(List<Point3D_F32> cloud, DogArray_I32 colors, int minNeighbors, float radius) Prunes points from the point cloud if they have very few neighborsstatic voidstatistics(List<Point3D_F32> cloud, Point3D_F32 mean, Point3D_F32 stdev) Computes the mean and standard deviation of each axis in the point cloud computed in dependently
-
Constructor Details
-
PointCloudUtils_F32
public PointCloudUtils_F32()
-
-
Method Details
-
filter
public static DogArray<Point3dRgbI_F32> filter(AccessPointIndex<Point3D_F32> accessPoint, AccessColorIndex accessColor, int size, BoofLambdas.FilterInt filter, @Nullable @Nullable DogArray<Point3dRgbI_F32> 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_F32> cloud, DogArray_I32 colors, int minNeighbors, float 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
-