Package boofcv.io.points.impl
Class PlyCodec
java.lang.Object
boofcv.io.points.impl.PlyCodec
For reading PLY point files.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidread(InputStream input, PlyReader output) static voidreadCloud(InputStream input, PointCloudWriter output) static voidreadMesh(InputStream input, VertexMesh mesh, DogArray_I32 colorRGB) static voidstatic voidsaveBinary(PlyWriter data, ByteOrder order, boolean saveAsFloat, OutputStream outputWriter) static voidsaveCloudAscii(PointCloudReader cloud, boolean saveRgb, Writer outputWriter) static voidsaveCloudBinary(PointCloudReader cloud, ByteOrder order, boolean saveRgb, boolean saveAsFloat, OutputStream outputWriter) Saves data in binary formatstatic voidsaveMeshAscii(VertexMesh mesh, @Nullable DogArray_I32 colorRGB, Writer outputWriter) static voidsaveMeshBinary(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
-