I'm trying to mimic auto white balance part from Fred's ImageMagick script with the latest version, but the result seems to be different from expected.
The mask created by composite operation is a RGB image instead of a gray scaled image.
What is causing the difference from command line behavior?
The mask created by composite operation is a RGB image instead of a gray scaled image.
What is causing the difference from command line behavior?
using (MagickImage mask = image.Clone()) { mask.ColorSpace = ColorSpace.HSB; mask.Negate(Channels.Green); using (MagickImage newMask = mask.Separate(Channels.Green).First()) { using (MagickImage maskBlue = mask.Separate(Channels.Blue).First()) { // Becomes a RGB image. newMask.Composite(maskBlue, CompositeOperator.Multiply); } } }