From 16f1261264f2a4d65753fb63471e0a1519377192 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 28 Nov 2023 04:52:25 +0100 Subject: a --- wall-tileset-tool/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wall-tileset-tool') diff --git a/wall-tileset-tool/main.cpp b/wall-tileset-tool/main.cpp index 4736157a..8fc907ae 100644 --- a/wall-tileset-tool/main.cpp +++ b/wall-tileset-tool/main.cpp @@ -122,7 +122,7 @@ bool do_group(state st, size_t i, size_t j, Group& new_group) return false; } - cv::Mat mat = cv::imread(cv::String{filename.data(), filename.size()}), mat2; + cv::Mat mat = cv::imread(cv::String{filename.data(), filename.size()}, cv::IMREAD_ANYCOLOR), mat2; if ((Group_)j == Group_::top) { cv::rotate(mat, mat2, cv::ROTATE_90_COUNTERCLOCKWISE); @@ -130,7 +130,7 @@ bool do_group(state st, size_t i, size_t j, Group& new_group) swap(mat, mat2); } - if (Vector2ui((unsigned)mat.cols, (unsigned)mat.rows) != expected_size) [[unlikely]] + if (Vector2ui{(unsigned)mat.cols, (unsigned)mat.rows} != expected_size) [[unlikely]] { ERR << "fatal: wrong image size, expected size" << resolution{expected_size} << colon(',') -- cgit v1.2.3