UFO 1.0.0
An Efficient Probabilistic 3D Mapping Framework That Embraces the Unknown
Loading...
Searching...
No Matches
file_type.hpp
1
42#ifndef UFO_IO_FILE_TYPE_HPP
43#define UFO_IO_FILE_TYPE_HPP
44
45// STL
46#include <filesystem>
47
48namespace ufo
49{
74enum class FileType {
75 UNKNOWN,
76 UFO,
77 XYZ,
78 XYZI,
79 XYZN,
80 XYZRGB,
81 PTS,
82 PLY,
83 PCD,
84 OBJ,
85 JPEG,
86 PNG,
87 QTP
88};
89
102[[nodiscard]] FileType fileType(std::filesystem::path const& file);
103} // namespace ufo
104
105#endif // UFO_IO_FILE_TYPE_HPP
All vision-related classes and functions.
Definition cloud.hpp:49
FileType
Enumerates all file formats supported by the UFO I/O subsystem.
Definition file_type.hpp:74
@ XYZRGB
ASCII XYZ + RGB colour (.xyzrgb).
@ XYZN
ASCII XYZ + surface normal (.xyzn).
@ XYZI
ASCII XYZ + intensity (.xyzi).
@ PLY
Stanford PLY mesh / point cloud (.ply).
@ PNG
PNG lossless image (.png).
@ PCD
PCL Point Cloud Data (.pcd).
@ UNKNOWN
Unrecognised or missing file extension.
@ PTS
Leica PTS point cloud (.pts).
@ QTP
UFO quantised-tree point-cloud format (.qtp).
@ JPEG
JPEG compressed image (.jpeg, .jpg).
@ UFO
Native UFOMap binary format (.ufo).
@ XYZ
ASCII XYZ point cloud (.xyz).
@ OBJ
Wavefront OBJ (.obj).
FileType fileType(std::filesystem::path const &file)
Infers the FileType from the extension of file (case-insensitive).
Definition file_type.cpp:31