From 794a04c8158932b2104a967409ec4e69fd56cc26 Mon Sep 17 00:00:00 2001 From: Christian Rauch Date: Fri, 19 Jan 2024 14:41:01 +0100 Subject: [PATCH] remove designated initialisers --- example/opencv_demo.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/example/opencv_demo.cc b/example/opencv_demo.cc index b015f3e2..4e166ae8 100644 --- a/example/opencv_demo.cc +++ b/example/opencv_demo.cc @@ -140,11 +140,7 @@ int main(int argc, char *argv[]) cvtColor(frame, gray, COLOR_BGR2GRAY); // Make an image_u8_t header for the Mat data - image_u8_t im = { .width = gray.cols, - .height = gray.rows, - .stride = gray.cols, - .buf = gray.data - }; + image_u8_t im = {gray.cols, gray.rows, gray.cols, gray.data}; zarray_t *detections = apriltag_detector_detect(td, &im);