Package boofcv.alg.cloud
Class PointCloudUtils
- java.lang.Object
-
- boofcv.alg.cloud.PointCloudUtils
-
public class PointCloudUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PointCloudUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static doubleautoScale(java.util.List<georegression.struct.point.Point3D_F64> cloud, double target)Automatically rescales the point cloud based so that it has a standard deviation of 'target'static voidconvert(georegression.struct.point.Point3D_F32 src, georegression.struct.point.Point3D_F64 dst)static voidconvert(georegression.struct.point.Point3D_F64 src, georegression.struct.point.Point3D_F32 dst)static voidprune(java.util.List<georegression.struct.point.Point3D_F64> cloud, int minNeighbors, double radius)Prunes points from the point cloud if they have very few neighborsstatic voidprune(java.util.List<georegression.struct.point.Point3D_F64> cloud, org.ddogleg.struct.GrowQueue_I32 colors, int minNeighbors, double radius)Prunes points from the point cloud if they have very few neighborsstatic voidstatistics(java.util.List<georegression.struct.point.Point3D_F64> cloud, georegression.struct.point.Point3D_F64 mean, georegression.struct.point.Point3D_F64 stdev)Computes the mean and standard deviation of each axis in the point cloud computed in dependently
-
-
-
Method Detail
-
autoScale
public static double autoScale(java.util.List<georegression.struct.point.Point3D_F64> cloud, double target)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
public static void statistics(java.util.List<georegression.struct.point.Point3D_F64> cloud, georegression.struct.point.Point3D_F64 mean, georegression.struct.point.Point3D_F64 stdev)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
public static void prune(java.util.List<georegression.struct.point.Point3D_F64> cloud, int minNeighbors, double radius)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(java.util.List<georegression.struct.point.Point3D_F64> cloud, org.ddogleg.struct.GrowQueue_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
-
convert
public static void convert(georegression.struct.point.Point3D_F64 src, georegression.struct.point.Point3D_F32 dst)
-
convert
public static void convert(georegression.struct.point.Point3D_F32 src, georegression.struct.point.Point3D_F64 dst)
-
-