Class PlyCodec

java.lang.Object
boofcv.io.points.impl.PlyCodec

public class PlyCodec
extends Object
For reading PLY point files
  • Constructor Details

    • PlyCodec

      public PlyCodec()
  • Method Details

    • saveAscii

      public static void saveAscii​(PointCloudReader cloud, boolean saveRgb, Writer outputWriter) throws IOException
      Throws:
      IOException
    • saveBinary

      public static void saveBinary​(PointCloudReader cloud, ByteOrder order, boolean saveRgb, boolean saveAsFloat, OutputStream outputWriter) throws IOException
      Saves data in binary format
      Parameters:
      cloud - (Input) Point cloud data
      order - The byte order of the binary data. ByteOrder.BIG_ENDIAN is recommended
      saveRgb - if true it will save RGB information
      saveAsFloat - if true it will save it as a 4-byte float and if false as an 8-byte double
      outputWriter - Stream it will write to
      Throws:
      IOException
    • read

      public static void read​(InputStream input, PointCloudWriter output) throws IOException
      Throws:
      IOException