9#ifndef WATERLINKEDSONAR_RIP_CONVERSIONS_HPP
10#define WATERLINKEDSONAR_RIP_CONVERSIONS_HPP
16namespace waterlinked::sonar {
32 std::vector<float>& distances);
50 std::vector<std::uint16_t>& strength);
bool range_image_to_distances(const RangeImageView &image, std::vector< float > &distances)
Converts a range image to per-pixel distances in meters, 0 where a pixel has no reflection.
bool bitmap_to_strength_linear(const BitmapImageView &image, std::vector< std::uint16_t > &strength)
Converts a SIGNAL_STRENGTH bitmap to 15-bit linear signal strength, 0 where a pixel has no reflection...
bool range_image_to_points(const RangeImageView &image, std::vector< float > &points, PointLayout layout)
Converts a range image to x, y, z triples in meters.
PointLayout
Layout of the point cloud produced by range_image_to_points().
Definition conversions.hpp:19
@ UNORGANIZED
One point per pixel with a reflection, in row-major order.
@ ORGANIZED
One point per pixel in row-major order; NaN where a pixel has no reflection.
Views of the messages carried by the Range Image Protocol.
8-bit greyscale image that can be displayed as is.
Definition messages.hpp:52
Distance to the strongest reflection for each pixel.
Definition messages.hpp:26