• Home
  • Raw
  • Download

Lines Matching full:pt2

80 bool clipLine( Size img_size, Point& pt1, Point& pt2 )  in clipLine()  argument
89 x1 = pt1.x; y1 = pt1.y; x2 = pt2.x; y2 = pt2.y; in clipLine()
132 pt2.x = (int)x2; in clipLine()
133 pt2.y = (int)y2; in clipLine()
139 bool clipLine( Rect img_rect, Point& pt1, Point& pt2 ) in clipLine() argument
142 pt1 -= tl; pt2 -= tl; in clipLine()
143 bool inside = clipLine(img_rect.size(), pt1, pt2); in clipLine()
144 pt1 += tl; pt2 += tl; in clipLine()
153 LineIterator::LineIterator(const Mat& img, Point pt1, Point pt2, in LineIterator() argument
161 (unsigned)pt2.x >= (unsigned)(img.cols) || in LineIterator()
163 (unsigned)pt2.y >= (unsigned)(img.rows) ) in LineIterator()
165 if( !clipLine( img.size(), pt1, pt2 ) ) in LineIterator()
176 int dx = pt2.x - pt1.x; in LineIterator()
177 int dy = pt2.y - pt1.y; in LineIterator()
184 pt1.x ^= (pt1.x ^ pt2.x) & s; in LineIterator()
185 pt1.y ^= (pt1.y ^ pt2.y) & s; in LineIterator()
239 Line( Mat& img, Point pt1, Point pt2, in Line() argument
247 LineIterator iterator(img, pt1, pt2, connectivity, true); in Line()
284 LineAA( Mat& img, Point pt1, Point pt2, const void* color ) in LineAA() argument
302 Line(img, pt1, pt2, color); in LineAA()
308 pt2.x -= XY_ONE*2; in LineAA()
309 pt2.y -= XY_ONE*2; in LineAA()
315 if( !clipLine( size, pt1, pt2 )) in LineAA()
318 dx = pt2.x - pt1.x; in LineAA()
319 dy = pt2.y - pt1.y; in LineAA()
330 pt1.x ^= pt2.x & j; in LineAA()
331 pt2.x ^= pt1.x & j; in LineAA()
332 pt1.x ^= pt2.x & j; in LineAA()
333 pt1.y ^= pt2.y & j; in LineAA()
334 pt2.y ^= pt1.y & j; in LineAA()
335 pt1.y ^= pt2.y & j; in LineAA()
339 pt2.x += XY_ONE; in LineAA()
340 ecount = (pt2.x >> XY_SHIFT) - (pt1.x >> XY_SHIFT); in LineAA()
348 j = (pt2.x >> (XY_SHIFT - 7)) & 0x78; in LineAA()
354 pt1.x ^= pt2.x & i; in LineAA()
355 pt2.x ^= pt1.x & i; in LineAA()
356 pt1.x ^= pt2.x & i; in LineAA()
357 pt1.y ^= pt2.y & i; in LineAA()
358 pt2.y ^= pt1.y & i; in LineAA()
359 pt1.y ^= pt2.y & i; in LineAA()
363 pt2.y += XY_ONE; in LineAA()
364 ecount = (pt2.y >> XY_SHIFT) - (pt1.y >> XY_SHIFT); in LineAA()
372 j = (pt2.y >> (XY_SHIFT - 7)) & 0x78; in LineAA()
635 Line2( Mat& img, Point pt1, Point pt2, const void* color ) in Line2() argument
652 if( !clipLine( sizeScaled, pt1, pt2 )) in Line2()
655 dx = pt2.x - pt1.x; in Line2()
656 dy = pt2.y - pt1.y; in Line2()
667 pt1.x ^= pt2.x & j; in Line2()
668 pt2.x ^= pt1.x & j; in Line2()
669 pt1.x ^= pt2.x & j; in Line2()
670 pt1.y ^= pt2.y & j; in Line2()
671 pt2.y ^= pt1.y & j; in Line2()
672 pt1.y ^= pt2.y & j; in Line2()
676 ecount = (pt2.x - pt1.x) >> XY_SHIFT; in Line2()
682 pt1.x ^= pt2.x & i; in Line2()
683 pt2.x ^= pt1.x & i; in Line2()
684 pt1.x ^= pt2.x & i; in Line2()
685 pt1.y ^= pt2.y & i; in Line2()
686 pt2.y ^= pt1.y & i; in Line2()
687 pt1.y ^= pt2.y & i; in Line2()
691 ecount = (pt2.y - pt1.y) >> XY_SHIFT; in Line2()
710 ICV_PUT_POINT((pt2.x + (XY_ONE >> 1)) >> XY_SHIFT, in Line2()
711 (pt2.y + (XY_ONE >> 1)) >> XY_SHIFT); in Line2()
751 ICV_PUT_POINT((pt2.x + (XY_ONE >> 1)) >> XY_SHIFT, in Line2()
752 (pt2.y + (XY_ONE >> 1)) >> XY_SHIFT); in Line2()
793 ICV_PUT_POINT((pt2.x + (XY_ONE >> 1)) >> XY_SHIFT, in Line2()
794 (pt2.y + (XY_ONE >> 1)) >> XY_SHIFT); in Line2()
1661 void line( InputOutputArray _img, Point pt1, Point pt2, const Scalar& color, in line() argument
1674 ThickLine( img, pt1, pt2, buf, thickness, line_type, 3, shift ); in line()
1677 void arrowedLine(InputOutputArray img, Point pt1, Point pt2, const Scalar& color, in arrowedLine() argument
1680 …const double tipSize = norm(pt1-pt2)*tipLength; // Factor to normalize the size of the tip dependi… in arrowedLine()
1682 line(img, pt1, pt2, color, thickness, line_type, shift); in arrowedLine()
1684 const double angle = atan2( (double) pt1.y - pt2.y, (double) pt1.x - pt2.x ); in arrowedLine()
1686 Point p(cvRound(pt2.x + tipSize * cos(angle + CV_PI / 4)), in arrowedLine()
1687 cvRound(pt2.y + tipSize * sin(angle + CV_PI / 4))); in arrowedLine()
1688 line(img, p, pt2, color, thickness, line_type, shift); in arrowedLine()
1690 p.x = cvRound(pt2.x + tipSize * cos(angle - CV_PI / 4)); in arrowedLine()
1691 p.y = cvRound(pt2.y + tipSize * sin(angle - CV_PI / 4)); in arrowedLine()
1692 line(img, p, pt2, color, thickness, line_type, shift); in arrowedLine()
1695 void rectangle( InputOutputArray _img, Point pt1, Point pt2, in rectangle() argument
1713 pt[1].x = pt2.x; in rectangle()
1715 pt[2] = pt2; in rectangle()
1717 pt[3].y = pt2.y; in rectangle()
2450 cv::Point pt1, pt2; in cvDrawContours() local
2461 CV_READ_SEQ_ELEM( pt2, reader ); in cvDrawContours()
2462 pt2 += offset; in cvDrawContours()
2464 cv::ThickLine( img, pt1, pt2, clr, thickness, line_type, 2, shift ); in cvDrawContours()
2466 pts.push_back(pt2); in cvDrawContours()
2467 pt1 = pt2; in cvDrawContours()
2483 cvClipLine( CvSize size, CvPoint* pt1, CvPoint* pt2 ) in cvClipLine() argument
2485 CV_Assert( pt1 && pt2 ); in cvClipLine()
2486 return cv::clipLine( size, *(cv::Point*)pt1, *(cv::Point*)pt2 ); in cvClipLine()
2565 cvInitLineIterator( const CvArr* img, CvPoint pt1, CvPoint pt2, in cvInitLineIterator() argument
2570 cv::LineIterator li(cv::cvarrToMat(img), pt1, pt2, connectivity, left_to_right!=0); in cvInitLineIterator()
2583 cvLine( CvArr* _img, CvPoint pt1, CvPoint pt2, CvScalar color, in cvLine() argument
2587 cv::line( img, pt1, pt2, color, thickness, line_type, shift ); in cvLine()
2591 cvRectangle( CvArr* _img, CvPoint pt1, CvPoint pt2, in cvRectangle() argument
2596 cv::rectangle( img, pt1, pt2, color, thickness, line_type, shift ); in cvRectangle()