Set label image size

This commit is contained in:
Juha Reunanen 2019-10-27 17:07:34 +02:00
parent 0fc72cc00e
commit 276e763df0
1 changed files with 1 additions and 0 deletions

View File

@ -77,6 +77,7 @@ int main(int argc, char** argv) try
matrix<rgb_pixel> rgb_label_image; matrix<rgb_pixel> rgb_label_image;
matrix<rgb_pixel> input_chip; matrix<rgb_pixel> input_chip;
rgb_label_image.set_size(input_image.nr(), input_image.nc());
rgb_label_image = rgb_pixel(0, 0, 0); rgb_label_image = rgb_pixel(0, 0, 0);
for (const auto& instance : instances) for (const auto& instance : instances)