Package boofcv.io.points.impl
Class PlyCodec
java.lang.Object
boofcv.io.points.impl.PlyCodec
For reading PLY point files.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
read
(InputStream input, PlyReader output) static void
readCloud
(InputStream input, PointCloudWriter output) static void
readMesh
(InputStream input, VertexMesh mesh, DogArray_I32 colorRGB) static void
static void
saveBinary
(PlyWriter data, ByteOrder order, boolean saveAsFloat, OutputStream outputWriter) static void
saveCloudAscii
(PointCloudReader cloud, boolean saveRgb, Writer outputWriter) static void
saveCloudBinary
(PointCloudReader cloud, ByteOrder order, boolean saveRgb, boolean saveAsFloat, OutputStream outputWriter) Saves data in binary formatstatic void
saveMeshAscii
(VertexMesh mesh, @Nullable DogArray_I32 colorRGB, Writer outputWriter) static void
saveMeshBinary
(VertexMesh mesh, @Nullable DogArray_I32 colorRGB, ByteOrder order, boolean saveAsFloat, OutputStream outputWriter) Saves data in binary format
-
Constructor Details
-
PlyCodec
public PlyCodec()
-
-
Method Details
-
saveAscii
- Throws:
IOException
-
saveMeshAscii
public static void saveMeshAscii(VertexMesh mesh, @Nullable @Nullable DogArray_I32 colorRGB, Writer outputWriter) throws IOException - Throws:
IOException
-
saveCloudAscii
public static void saveCloudAscii(PointCloudReader cloud, boolean saveRgb, Writer outputWriter) throws IOException - Throws:
IOException
-
saveCloudBinary
public static void saveCloudBinary(PointCloudReader cloud, ByteOrder order, boolean saveRgb, boolean saveAsFloat, OutputStream outputWriter) throws IOException Saves data in binary format- Parameters:
cloud
- (Input) Point cloud dataorder
- The byte order of the binary data. ByteOrder.BIG_ENDIAN is recommendedsaveRgb
- if true it will save RGB informationsaveAsFloat
- if true it will save it as a 4-byte float and if false as an 8-byte doubleoutputWriter
- Stream it will write to- Throws:
IOException
-
saveMeshBinary
public static void saveMeshBinary(VertexMesh mesh, @Nullable @Nullable DogArray_I32 colorRGB, ByteOrder order, boolean saveAsFloat, OutputStream outputWriter) throws IOException Saves data in binary format- Parameters:
mesh
- (Input) Point cloud datacolorRGB
- (Input) color of each vertexsaveAsFloat
- if true it will save it as a 4-byte float and if false as an 8-byte doubleoutputWriter
- Stream it will write to- Throws:
IOException
-
saveBinary
public static void saveBinary(PlyWriter data, ByteOrder order, boolean saveAsFloat, OutputStream outputWriter) throws IOException - Throws:
IOException
-
readCloud
- Throws:
IOException
-
readMesh
public static void readMesh(InputStream input, VertexMesh mesh, DogArray_I32 colorRGB) throws IOException - Throws:
IOException
-
read
- Throws:
IOException
-