Home | History | Annotate | Download | only in src

Lines Matching defs:cur_rect

57     Rect cur_rect = window;
72 cur_rect = cur_rect & Rect(0, 0, size.width, size.height);
73 if( cur_rect == Rect() )
75 cur_rect.x = size.width/2;
76 cur_rect.y = size.height/2;
78 cur_rect.width = std::max(cur_rect.width, 1);
79 cur_rect.height = std::max(cur_rect.height, 1);
81 Moments m = isUMat ? moments(umat(cur_rect)) : moments(mat(cur_rect));
90 int nx = std::min(std::max(cur_rect.x + dx, 0), size.width - cur_rect.width);
91 int ny = std::min(std::max(cur_rect.y + dy, 0), size.height - cur_rect.height);
93 dx = nx - cur_rect.x;
94 dy = ny - cur_rect.y;
95 cur_rect.x = nx;
96 cur_rect.y = ny;
103 window = cur_rect;