Beispiel #1
0
        public override double Get(double x, double y, double z, double w, double u, double v)
        {
            double value = Source.Get(x, y, z, w, u, v);

            // Apply brightness
            value += Brightness.Get(x, y, z, w, u, v);

            // Subtract contrastThreshold, scale by contrastFactor, add contrastThreshold
            double threshold = ContrastThreshold.Get(x, y, z, w, u, v);

            value -= threshold;
            value *= ContrastFactor.Get(x, y, z, w, u, v);
            value += threshold;
            return(value);
        }