libcarla/include/carla/sensor/s11n/OpticalFlowImageSerializer.cpp
2024-10-18 13:19:59 +08:00

22 lines
523 B
C++

//
// Created by flo on 09.11.20.
//
#include "OpticalFlowImageSerializer.h"
#include "carla/sensor/s11n/OpticalFlowImageSerializer.h"
#include "carla/sensor/data/Image.h"
namespace carla {
namespace sensor {
namespace s11n {
SharedPtr<SensorData> OpticalFlowImageSerializer::Deserialize(RawData &&data) {
auto image = SharedPtr<data::OpticalFlowImage>(new data::OpticalFlowImage{std::move(data)});
return image;
}
} // namespace s11n
} // namespace sensor
} // namespace carla