diff --git a/Bonsai.Vision/Normalize.cs b/Bonsai.Vision/Normalize.cs index 111da4d20..b8184a062 100644 --- a/Bonsai.Vision/Normalize.cs +++ b/Bonsai.Vision/Normalize.cs @@ -30,7 +30,7 @@ public override IObservable Process(IObservable source) var range = max - min; var scale = range > 0 ? 1.0 / range : 0; - var shift = range > 0 ? -min : 0; + var shift = range > 0 ? -min * scale : 0; CV.ConvertScale(input, output, scale, shift); return output; });