CARLA
LibCarla
source
carla
sensor
s11n
OpticalFlowImageSerializer.cpp
Go to the documentation of this file.
1
//
2
// Created by flo on 09.11.20.
3
//
4
5
#include "
OpticalFlowImageSerializer.h
"
6
#include "
carla/sensor/s11n/OpticalFlowImageSerializer.h
"
7
8
#include "
carla/sensor/data/Image.h
"
9
10
namespace
carla
{
11
namespace
sensor {
12
namespace
s11n {
13
14
SharedPtr<SensorData>
OpticalFlowImageSerializer::Deserialize
(
RawData
&&data) {
15
auto
image =
SharedPtr<data::OpticalFlowImage>
(
new
data::OpticalFlowImage
{std::move(data)});
16
return
image;
17
}
18
19
}
// namespace s11n
20
}
// namespace sensor
21
}
// namespace carla
carla::sensor::data::ImageTmpl
Templated image for any type of pixel.
Definition:
ImageTmpl.h:24
carla::SharedPtr
boost::shared_ptr< T > SharedPtr
Use this SharedPtr (boost::shared_ptr) to keep compatibility with boost::python, but it would be nice...
Definition:
Memory.h:20
carla
This file contains definitions of common data structures used in traffic manager. ...
Definition:
Carla.cpp:133
carla::sensor::s11n::OpticalFlowImageSerializer::Deserialize
static SharedPtr< SensorData > Deserialize(RawData &&data)
Definition:
OpticalFlowImageSerializer.cpp:14
OpticalFlowImageSerializer.h
Image.h
carla::sensor::RawData
Wrapper around the raw data generated by a sensor plus some useful meta-information.
Definition:
RawData.h:21
Generated by
1.8.13