40 template <
typename Sensor>
46 template <
typename Sensor>
50 sensor.GetImageWidth(),
51 sensor.GetImageHeight(),
54 std::memcpy(bitmap.data(),
reinterpret_cast<const void *
>(&header),
sizeof(header));
55 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. ...
auto begin() noexcept
Begin iterator to the data generated by the sensor.
static SharedPtr< SensorData > Deserialize(RawData &&data)
#define DEBUG_ASSERT(predicate)
static constexpr auto header_offset
static const ImageHeader & DeserializeHeader(const RawData &data)
static Buffer Serialize(const Sensor &sensor, Buffer &&bitmap)
Serializes image buffers generated by camera sensors.
Wrapper around the raw data generated by a sensor plus some useful meta-information.