36#include <auterion_sdk/camera/camera.hpp>
37#include <auterion_sdk/object_detection/image_detections_2d.hpp>
48inline ImageDetections2D detectionsForImage(
const ImageHeader& header) {
50 return ImageDetections2D{header.
frame_id, header.timestamp,
51 static_cast<uint32_t
>(std::max(header.width, 0)),
52 static_cast<uint32_t
>(std::max(header.height, 0))};
62inline ImageDetections2D detectionsForImage(
const Image& image) {
63 return detectionsForImage(image.header());
uint16_t frame_id
Id of the source frame (0 = unset).
Definition image_detections_2d.hpp:66