public static double Filter0(IntegralImage image, int x, int y, int w, int h, Func<double, double, double> cmp)
{
//Debug.Assert(x >= 0);
//Debug.Assert(y >= 0);
//Debug.Assert(w >= 1);
//Debug.Assert(h >= 1);
double a = image.Area(x, y, x + w - 1, y + h - 1);
double b = 0;
return cmp(a, b);
}