Lines Matching refs:tolerance
198 int g, int b, int a, int tolerance=2) {
211 if (r >= 0 && abs(r - int(pixel[0])) > tolerance) {
214 if (g >= 0 && abs(g - int(pixel[1])) > tolerance) {
220 if (b >= 0 && abs(b - int(pixel[2])) > tolerance) {
226 if (a >= 0 && abs(a - int(pixel[3])) > tolerance) {
241 const Rect &r2, int tolerance=1) {
245 if (abs(r1.left - r2.left) > tolerance) {
248 if (abs(r1.top - r2.top) > tolerance) {
254 if (abs(r1.right - r2.right) > tolerance) {
260 if (abs(r1.bottom - r2.bottom) > tolerance) {