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