Lines Matching refs:pt2
81 cvClipLine( CvSize img_size, CvPoint* pt1, CvPoint* pt2 ) in cvClipLine() argument
93 if( !pt1 || !pt2 ) in cvClipLine()
99 x1 = pt1->x; y1 = pt1->y; x2 = pt2->x; y2 = pt2->y; in cvClipLine()
143 pt2->x = x2; in cvClipLine()
144 pt2->y = y2; in cvClipLine()
160 cvInitLineIterator( const CvArr* img, CvPoint pt1, CvPoint pt2, in cvInitLineIterator() argument
184 (unsigned)pt2.x >= (unsigned)(mat->width) || in cvInitLineIterator()
186 (unsigned)pt2.y >= (unsigned)(mat->height) ) in cvInitLineIterator()
193 dx = pt2.x - pt1.x; in cvInitLineIterator()
194 dy = pt2.y - pt1.y; in cvInitLineIterator()
201 pt1.x ^= (pt1.x ^ pt2.x) & s; in cvInitLineIterator()
202 pt1.y ^= (pt1.y ^ pt2.y) & s; in cvInitLineIterator()
256 icvLine( CvMat* mat, CvPoint pt1, CvPoint pt2, in icvLine() argument
259 if( cvClipLine( cvGetMatSize(mat), &pt1, &pt2 )) in icvLine()
270 count = cvInitLineIterator( mat, pt1, pt2, &iterator, connectivity, 1 ); in icvLine()
296 icvLineAA( CvMat* img, CvPoint pt1, CvPoint pt2, in icvLineAA() argument
317 pt2.x -= XY_ONE*2; in icvLineAA()
318 pt2.y -= XY_ONE*2; in icvLineAA()
324 if( !cvClipLine( size, &pt1, &pt2 )) in icvLineAA()
327 dx = pt2.x - pt1.x; in icvLineAA()
328 dy = pt2.y - pt1.y; in icvLineAA()
339 pt1.x ^= pt2.x & j; in icvLineAA()
340 pt2.x ^= pt1.x & j; in icvLineAA()
341 pt1.x ^= pt2.x & j; in icvLineAA()
342 pt1.y ^= pt2.y & j; in icvLineAA()
343 pt2.y ^= pt1.y & j; in icvLineAA()
344 pt1.y ^= pt2.y & j; in icvLineAA()
348 pt2.x += XY_ONE; in icvLineAA()
349 ecount = (pt2.x >> XY_SHIFT) - (pt1.x >> XY_SHIFT); in icvLineAA()
357 j = (pt2.x >> (XY_SHIFT - 7)) & 0x78; in icvLineAA()
363 pt1.x ^= pt2.x & i; in icvLineAA()
364 pt2.x ^= pt1.x & i; in icvLineAA()
365 pt1.x ^= pt2.x & i; in icvLineAA()
366 pt1.y ^= pt2.y & i; in icvLineAA()
367 pt2.y ^= pt1.y & i; in icvLineAA()
368 pt1.y ^= pt2.y & i; in icvLineAA()
372 pt2.y += XY_ONE; in icvLineAA()
373 ecount = (pt2.y >> XY_SHIFT) - (pt1.y >> XY_SHIFT); in icvLineAA()
381 j = (pt2.y >> (XY_SHIFT - 7)) & 0x78; in icvLineAA()
561 icvLine2( CvMat* img, CvPoint pt1, CvPoint pt2, const void* color ) in icvLine2() argument
580 pt2.x -= XY_ONE*2; in icvLine2()
581 pt2.y -= XY_ONE*2; in icvLine2()
587 if( !cvClipLine( size, &pt1, &pt2 )) in icvLine2()
590 dx = pt2.x - pt1.x; in icvLine2()
591 dy = pt2.y - pt1.y; in icvLine2()
602 pt1.x ^= pt2.x & j; in icvLine2()
603 pt2.x ^= pt1.x & j; in icvLine2()
604 pt1.x ^= pt2.x & j; in icvLine2()
605 pt1.y ^= pt2.y & j; in icvLine2()
606 pt2.y ^= pt1.y & j; in icvLine2()
607 pt1.y ^= pt2.y & j; in icvLine2()
611 ecount = (pt2.x - pt1.x) >> XY_SHIFT; in icvLine2()
617 pt1.x ^= pt2.x & i; in icvLine2()
618 pt2.x ^= pt1.x & i; in icvLine2()
619 pt1.x ^= pt2.x & i; in icvLine2()
620 pt1.y ^= pt2.y & i; in icvLine2()
621 pt2.y ^= pt1.y & i; in icvLine2()
622 pt1.y ^= pt2.y & i; in icvLine2()
626 ecount = (pt2.y - pt1.y) >> XY_SHIFT; in icvLine2()
641 tptr = ptr + ((pt2.x + (XY_ONE >> 1))>> XY_SHIFT)*3 + in icvLine2()
642 ((pt2.y + (XY_ONE >> 1)) >> XY_SHIFT)*step; in icvLine2()
681 tptr = ptr + ((pt2.x + (XY_ONE >> 1))>> XY_SHIFT) + in icvLine2()
682 ((pt2.y + (XY_ONE >> 1)) >> XY_SHIFT)*step; in icvLine2()
719 tptr = ptr + ((pt2.x + (XY_ONE >> 1))>> XY_SHIFT)*pix_size + in icvLine2()
720 ((pt2.y + (XY_ONE >> 1)) >> XY_SHIFT)*step; in icvLine2()
1737 cvLine( void* img, CvPoint pt1, CvPoint pt2, CvScalar color, in cvLine() argument
1763 icvThickLine( mat, pt1, pt2, buf, thickness, line_type, 3, shift ); in cvLine()
1770 cvRectangle( void* img, CvPoint pt1, CvPoint pt2, in cvRectangle() argument
1801 pt[1].x = pt2.x; in cvRectangle()
1803 pt[2] = pt2; in cvRectangle()
1805 pt[3].y = pt2.y; in cvRectangle()
2539 CvPoint pt1, pt2; in cvDrawContours() local
2562 CV_READ_SEQ_ELEM( pt2, reader ); in cvDrawContours()
2563 pt2.x += offset.x; in cvDrawContours()
2564 pt2.y += offset.y; in cvDrawContours()
2570 pt2.x = cvRound( pt2f.x * XY_ONE ); in cvDrawContours()
2571 pt2.y = cvRound( pt2f.y * XY_ONE ); in cvDrawContours()
2573 icvThickLine( mat, pt1, pt2, clr, thickness, line_type, 2, shift ); in cvDrawContours()
2574 pt1 = pt2; in cvDrawContours()