Package boofcv.io.points
Class PointCloudIO
java.lang.Object
boofcv.io.points.PointCloudIO
Code for reading different point cloud formats
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic interfaceA writer without the initialization step. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidload(PointCloudIO.Format format, InputStream input, PointCloudWriter output) Reads a point cloud from the input stream in the specified format and writes it to the output.static voidload(PointCloudIO.Format format, InputStream input, PointCloudIO.FunctionalWriter output) The same asload(Format, InputStream, PointCloudWriter), but with a simplified writer that removes the initialization function.static voidload(PointCloudIO.Format format, InputStream input, VertexMesh mesh, DogArray_I32 vertexRgb) Reads a 3D mesh from the input stream in the specified format and writes it to the output.static DogArray<Point3D_F32>load3D32F(PointCloudIO.Format format, InputStream input, @Nullable DogArray<Point3D_F32> storage) static DogArray<Point3D_F64>load3D64F(PointCloudIO.Format format, InputStream input, @Nullable DogArray<Point3D_F64> storage) static DogArray<Point3dRgbI_F64>load3DRgb64F(PointCloudIO.Format format, InputStream input, @Nullable DogArray<Point3dRgbI_F64> storage) static voidsave3D(PointCloudIO.Format format, AccessPointIndex<Point3D_F64> accessPoint, AccessColorIndex accessColor, int size, boolean saveRGB, OutputStream outputStream) Saves point cloud using access API.static voidsave3D(PointCloudIO.Format format, PointCloudReader cloud, boolean saveRGB, OutputStream outputStream) Saves point cloud to disk using a high level API.static voidsave3D(PointCloudIO.Format format, VertexMesh mesh, @Nullable DogArray_I32 colorRGB, OutputStream outputStream)
-
Constructor Details
-
PointCloudIO
public PointCloudIO()
-
-
Method Details
-
save3D
public static void save3D(PointCloudIO.Format format, PointCloudReader cloud, boolean saveRGB, OutputStream outputStream) throws IOException Saves point cloud to disk using a high level API. For more control over the format use the CODEC directly.- Throws:
IOException- See Also:
-
save3D
public static void save3D(PointCloudIO.Format format, VertexMesh mesh, @Nullable @Nullable DogArray_I32 colorRGB, OutputStream outputStream) throws IOException - Throws:
IOException
-
save3D
public static void save3D(PointCloudIO.Format format, AccessPointIndex<Point3D_F64> accessPoint, AccessColorIndex accessColor, int size, boolean saveRGB, OutputStream outputStream) throws IOException Saves point cloud using access API.- Throws:
IOException- See Also:
-
load3D32F
public static DogArray<Point3D_F32> load3D32F(PointCloudIO.Format format, InputStream input, @Nullable @Nullable DogArray<Point3D_F32> storage) throws IOException - Throws:
IOException
-
load3D64F
public static DogArray<Point3D_F64> load3D64F(PointCloudIO.Format format, InputStream input, @Nullable @Nullable DogArray<Point3D_F64> storage) throws IOException - Throws:
IOException
-
load3DRgb64F
public static DogArray<Point3dRgbI_F64> load3DRgb64F(PointCloudIO.Format format, InputStream input, @Nullable @Nullable DogArray<Point3dRgbI_F64> storage) throws IOException - Throws:
IOException
-
load
public static void load(PointCloudIO.Format format, InputStream input, PointCloudWriter output) throws IOException Reads a point cloud from the input stream in the specified format and writes it to the output.- Parameters:
format- Storage formatinput- Input streamoutput- Output cloud writer- Throws:
IOException
-
load
public static void load(PointCloudIO.Format format, InputStream input, VertexMesh mesh, DogArray_I32 vertexRgb) throws IOException Reads a 3D mesh from the input stream in the specified format and writes it to the output.- Parameters:
format- Storage formatinput- Input streammesh- (Output) 3D meshvertexRgb- (Output) color of each vertex- Throws:
IOException
-
load
public static void load(PointCloudIO.Format format, InputStream input, PointCloudIO.FunctionalWriter output) throws IOException The same asload(Format, InputStream, PointCloudWriter), but with a simplified writer that removes the initialization function. Result is more concise code with less flexibility- Throws:
IOException
-