public override Pixel ProcessPixel(Pixel original, LightningParameters parameters_) { return(original * parameters_.Coefficient); }
public abstract Pixel ProcessPixel(Pixel original, IParameters parameters);
public Photo(int width, int height) { Width = width; Height = height; Data = new Pixel[width, height]; }
public override Pixel ProcessPixel(Pixel original, IParameters parameters) { return(original * (parameters as LighteningParameters).Coefficient); }
public Pixel ProcessPixel(Pixel original, double[] parameters) { return(original * parameters[0]); }
public Photo(int width_, int height_) { Width = width_; Height = height_; data = new Pixel[Width, Height]; }
protected abstract Pixel ProcessPixel(Pixel original, double[] parameters);
public static Pixel operator *(double vector, Pixel pixel) { return(new Pixel(Pixel.Trim(pixel.R * vector), Pixel.Trim(pixel.G * vector), Pixel.Trim(pixel.B * vector))); }