diff --git a/src/image.cc b/src/image.cc index 73ae9fe..5ebffc1 100644 --- a/src/image.cc +++ b/src/image.cc @@ -883,6 +883,13 @@ std::unique_ptr Image::ToColorDitheredWithBlueNoise(Image *blue_noise) { return {}; } + if (this->IsGrayscale()) { + std::cout << "ERROR ToColorDitheredWithBlueNoise: current Image is not " + "non-grayscale" + << std::endl; + return {}; + } + auto opencl_handle = GetOpenCLHandle(); if (!opencl_handle) { std::cout