グレースケールとカラー画像をそれぞれのオプションで読み込んだ場合† #geshi(c++){{ #include <opencv2/imgcodecs.hpp> #include <opencv2/core.hpp> #include <iostream> const char filename_lena[] = "file/path/to/color/image"; // 512x512 px 3 channels const char filename_gray[] = "file/path/to/gray/image"; // 512x512 px 1 channel const char optionNameDefault[] = "default "; const int options[] = { cv::IMREAD_UNCHANGED, cv::IMREAD_GRAYSCA