Lines Matching defs:tolerance
195 int g, int b, int a, int tolerance=2) {
209 if (r >= 0 && abs(r - int(pixel[0])) > tolerance) {
212 if (g >= 0 && abs(g - int(pixel[1])) > tolerance) {
218 if (b >= 0 && abs(b - int(pixel[2])) > tolerance) {
224 if (a >= 0 && abs(a - int(pixel[3])) > tolerance) {
240 const Rect &r2, int tolerance=1) {
244 if (abs(r1.left - r2.left) > tolerance) {
247 if (abs(r1.top - r2.top) > tolerance) {
253 if (abs(r1.right - r2.right) > tolerance) {
259 if (abs(r1.bottom - r2.bottom) > tolerance) {