Lines Matching refs:edge
995 edge[2];
1065 edge[0].idx = edge[1].idx = imin;
1067 edge[0].ye = edge[1].ye = y = ymin;
1068 edge[0].di = 1;
1069 edge[1].di = npts - 1;
1079 if( y >= edge[i].ye )
1081 int idx = edge[i].idx, di = edge[i].di;
1103 edge[i].ye = ye;
1104 edge[i].dx = ((xe - xs)*2 + (ye - y)) / (2 * (ye - y));
1105 edge[i].x = xs;
1106 edge[i].idx = idx;
1111 if( edge[left].x > edge[right].x )
1117 x1 = edge[left].x;
1118 x2 = edge[right].x;
1135 x1 += edge[left].dx;
1136 x2 += edge[right].dx;
1138 edge[left].x = x1;
1139 edge[right].x = x2;
1167 CvPolyEdge edge;
1225 edge.y0 = pt0.y;
1226 edge.y1 = pt1.y;
1227 edge.x = pt0.x;
1228 edge.dx = (pt1.x - pt0.x) / (pt1.y - pt0.y);
1229 assert( edge.y0 < edge.y1 );
1231 CV_WRITE_SEQ_ELEM( edge, writer );
1312 /* exlude edge if y reachs its lower point */
1320 /* go to the next edge in active list */
1326 /* insert new edge into active list if y reachs its upper point */