40 template <
typename Sensor>
42 uint32_t ImageWidth, uint32_t ImageHeight,
float FovAngle);
47 template <
typename Sensor>
49 uint32_t ImageWidth, uint32_t ImageHeight,
float FovAngle) {
56 std::memcpy(bitmap.data(),
reinterpret_cast<const void *
>(&header),
sizeof(header));
57 return std::move(bitmap);
static Buffer Serialize(const Sensor &sensor, Buffer &&bitmap, uint32_t ImageWidth, uint32_t ImageHeight, float FovAngle)
boost::shared_ptr< T > SharedPtr
Use this SharedPtr (boost::shared_ptr) to keep compatibility with boost::python, but it would be nice...
static const ImageHeader & DeserializeHeader(const RawData &data)
This file contains definitions of common data structures used in traffic manager. ...
auto begin() noexcept
Begin iterator to the data generated by the sensor.
#define DEBUG_ASSERT(predicate)
static SharedPtr< SensorData > Deserialize(RawData &&data)
static constexpr auto header_offset
Serializes image buffers generated by camera sensors.
Wrapper around the raw data generated by a sensor plus some useful meta-information.