Add check: color-dithering usage on colored Image
This commit is contained in:
parent
3cece9ae1d
commit
a2535ce630
1 changed files with 7 additions and 0 deletions
|
@ -883,6 +883,13 @@ std::unique_ptr<Image> 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
|
||||
|
|
Loading…
Reference in a new issue