You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// DarthAffe 10.08.2024: Mask needs to be a 1 channel all max value image when it's not used - I really don't like this concept as it adds unnecessary allocations, but that's how it is :(
if(image.Width!=mask.Width)thrownewArgumentException("The mask needs to have the same with as the image.",nameof(mask));
241
+
if(image.Height!=mask.Height)thrownewArgumentException("The mask needs to have the same height as the image.",nameof(mask));
242
+
243
+
parameter.Validate();
244
+
245
+
if(imageis not IImage<ColorRGB>refImage)
246
+
refImage=image.ConvertTo<ColorRGB>();
247
+
248
+
// DarthAffe 10.08.2024: HPPH does currently not support monochrome images, that's why we need to convert it here. We're going for the simple conversion as the source image is supposed to be monochrome anyway.
0 commit comments