46#include <ufo/cloud/point_cloud.hpp>
47#include <ufo/io/cloud_properties.hpp>
48#include <ufo/io/file_type.hpp>
49#include <ufo/io/image_properties.hpp>
50#include <ufo/io/jpeg.hpp>
51#include <ufo/io/obj.hpp>
52#include <ufo/io/pcd.hpp>
53#include <ufo/io/ply.hpp>
54#include <ufo/io/png.hpp>
55#include <ufo/io/pts.hpp>
56#include <ufo/io/qtp.hpp>
57#include <ufo/io/ufo.hpp>
58#include <ufo/io/xyz.hpp>
59#include <ufo/io/xyzi.hpp>
60#include <ufo/io/xyzn.hpp>
61#include <ufo/io/xyzrgb.hpp>
62#include <ufo/vision/color.hpp>
63#include <ufo/vision/image.hpp>
69[[nodiscard]] CloudProperties cloudProperties(std::filesystem::path
const& file);
71template <std::size_t Dim,
class T,
class... Ts>
72bool read(std::filesystem::path
const& file, PointCloud<Dim, T, Ts...>& pc)
88 std::println(stderr,
"[UFO | Read] Unknown point cloud file type: {}",
95template <std::size_t Dim,
class T,
class... Ts>
96bool write(std::filesystem::path
const& file, PointCloud<Dim, T, Ts...>
const& pc)
112 std::println(stderr,
"[UFO | Write] Unknown point cloud file type: {}",
121[[nodiscard]] ImageProperties imageProperties(std::filesystem::path
const& file);
124bool read(std::filesystem::path
const& file, Image<T>& image)
140 std::println(stderr,
"[UFO | Read] Unknown image file type: {}", file.c_str());
147bool write(std::filesystem::path
const& file, Image<T>
const& image)
163 std::println(stderr,
"[UFO | Write] Unknown image file type: {}", file.c_str());
All vision-related classes and functions.
bool readPNG(std::filesystem::path const &file, Image< Color< CT, T, Alpha, Weight > > &image)
Reads a PNG file into an Image of the specified colour type.
bool writePNG(std::filesystem::path const &file, Image< Color< CT, T, Alpha, Weight > > const &image)
Writes an Image to a PNG file.
@ 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).