Class 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 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'
      static void convert​(georegression.struct.point.Point3D_F32 src, georegression.struct.point.Point3D_F64 dst)  
      static void convert​(georegression.struct.point.Point3D_F64 src, georegression.struct.point.Point3D_F32 dst)  
      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
      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
      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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PointCloudUtils

        public PointCloudUtils()
    • 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 cloud
        target - 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) Cloud
        mean - (Output) mean of each axis
        stdev - (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 cloud
        minNeighbors - Minimum number of neighbors for it to not be pruned
        radius - 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 cloud
        colors - Color of each point.
        minNeighbors - Minimum number of neighbors for it to not be pruned
        radius - 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)