protected virtual bool IncludePredicate(Int16Double p, Int16Double or) { byte v = bmp.GetPixel(p.X, p.Y); byte vr = bmp.GetPixel(or.X, or.Y); return(Math.Abs(vr - v) < r); }
protected virtual bool IncludePredicate(Int16Double p, ref double value) { byte v = bmp.GetPixel(p.X, p.Y); value = v; return(value >= cmin && value <= cmax); }
protected virtual bool IncludePredicate(Int16Double p) { byte v = bmp.GetPixel(p.X, p.Y); return(v >= min && v <= max); }