public static double Min(IImage <double> img)
 => img.Aggregate(Math.Min);
 public static double Max(IImage <double> img)
 => img.Aggregate(Math.Max);