waterlinkedsonar
C++ client library for the Water Linked Sonar 3D-15
Loading...
Searching...
No Matches
conversions.hpp
Go to the documentation of this file.
1
8
9#ifndef WATERLINKEDSONAR_CONVERSIONS_HPP
10#define WATERLINKEDSONAR_CONVERSIONS_HPP
11
12#include <cstdint>
13#include <vector>
15
16namespace waterlinked::sonar {
17
26 std::vector<float>& out);
27
40bool range_image_to_points(const RangeImageView& img, std::vector<float>& out,
41 bool organized);
42
52 std::vector<std::uint16_t>& out);
53
54} // namespace waterlinked::sonar
55
56#endif // WATERLINKEDSONAR_CONVERSIONS_HPP
Views of the decoded RIP messages: range images, bitmap images and IMU batches.
Definition client.hpp:14
bool range_image_to_points(const RangeImageView &img, std::vector< float > &out, bool organized)
Converts a range image to XYZ float32 triples using the pixel-to-angle mapping from the Water Linked ...
bool range_image_to_distances(const RangeImageView &img, std::vector< float > &out)
Converts a range image to per-pixel distances.
bool bitmap_to_strength_linear(const BitmapImageView &img, std::vector< std::uint16_t > &out)
Recovers linear 15-bit signal strength from a SIGNAL_STRENGTH bitmap, inverting the device's logarith...
8-bit greyscale image, displayable without further processing.
Definition messages.hpp:62
Per-pixel distance to the strongest reflection.
Definition messages.hpp:29