From 276e763df072c63d7ed84b0bf8acc449ca08ec73 Mon Sep 17 00:00:00 2001 From: Juha Reunanen Date: Sun, 27 Oct 2019 17:07:34 +0200 Subject: [PATCH] Set label image size --- examples/dnn_instance_segmentation_ex.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/dnn_instance_segmentation_ex.cpp b/examples/dnn_instance_segmentation_ex.cpp index 22c5d6797..e4569637c 100644 --- a/examples/dnn_instance_segmentation_ex.cpp +++ b/examples/dnn_instance_segmentation_ex.cpp @@ -77,6 +77,7 @@ int main(int argc, char** argv) try matrix rgb_label_image; matrix input_chip; + rgb_label_image.set_size(input_image.nr(), input_image.nc()); rgb_label_image = rgb_pixel(0, 0, 0); for (const auto& instance : instances)