43 template <
typename Sensor>
49 template <
typename Sensor>
53 sensor.GetImageWidth(),
54 sensor.GetImageHeight(),
57 std::memcpy(bitmap.data(),
reinterpret_cast<const void *
>(&header),
sizeof(header));
58 return std::move(bitmap);
#define DEBUG_ASSERT(predicate)
Wrapper around the raw data generated by a sensor plus some useful meta-information.
auto begin() noexcept
Begin iterator to the data generated by the sensor.
Serializes the single-channel float32 distance images produced by the path-traced distance camera.
static SharedPtr< SensorData > Deserialize(RawData &&data)
static Buffer Serialize(const Sensor &sensor, Buffer &&bitmap)
static const ImageHeader & DeserializeHeader(const RawData &data)
static constexpr auto header_offset
This file contains definitions of common data structures used in traffic manager.
std::shared_ptr< T > SharedPtr