Exemple #1
0
        public void FileReadHeightTest()
        {
            PCDReader <PointXYZ> reader = new PCDReader <PointXYZ>();

            PCDHeader header = reader.ReadHeader("test.pcd");

            Assert.AreEqual(1, header.Height);
        }
Exemple #2
0
        public void FileReadPointsTest()
        {
            PCDReader <PointXYZ> reader = new PCDReader <PointXYZ>();

            PCDHeader header = reader.ReadHeader("test.pcd");

            Assert.AreEqual(213, header.Points);
        }
Exemple #3
0
        public void FileReadVersionTest()
        {
            PCDReader <PointXYZ> reader = new PCDReader <PointXYZ>();

            PCDHeader header = reader.ReadHeader("test.pcd");

            Assert.AreEqual(PCDVersion.PCDv7, header.Version);
        }
Exemple #4
0
        public void FileReadFieldsTest()
        {
            PCDReader <PointXYZ> reader = new PCDReader <PointXYZ>();

            PCDHeader header = reader.ReadHeader("test.pcd");

            Assert.AreEqual(4, header.Fields.Count);
            Assert.AreEqual(4, header.Fields[0].Size);
            Assert.AreEqual('F', header.Fields[0].Type);
            Assert.AreEqual(1, header.Fields[0].Count);
        }