Exemple #1
0
 public override Pixel ProcessPixel(Pixel original, LightningParameters parameters_)
 {
     return(original * parameters_.Coefficient);
 }
Exemple #2
0
 public abstract Pixel ProcessPixel(Pixel original, IParameters parameters);
Exemple #3
0
 public Photo(int width, int height)
 {
     Width  = width;
     Height = height;
     Data   = new Pixel[width, height];
 }
Exemple #4
0
 public override Pixel ProcessPixel(Pixel original, IParameters parameters)
 {
     return(original * (parameters as LighteningParameters).Coefficient);
 }
Exemple #5
0
 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];
 }
Exemple #7
0
 protected abstract Pixel ProcessPixel(Pixel original, double[] parameters);
Exemple #8
0
 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)));
 }