Home | History | Annotate | Download | only in src

Lines Matching refs:start_pt

526     CvPoint         start_pt = {INT_MIN, INT_MIN}, end_pt = {0, 0}, pt = {0,0};
553 start_pt = *(CvPoint*)cvGetSeqElem( src_contour, -1 );
555 if( start_pt.x != end_pt.x || start_pt.y != end_pt.y )
577 CV_READ_SEQ_ELEM( start_pt, reader ); /* read the first point */
584 dx = pt.x - start_pt.x;
585 dy = pt.y - start_pt.y;
614 CV_WRITE_SEQ_ELEM( start_pt, writer );
626 CV_READ_SEQ_ELEM( start_pt, reader );
632 dx = end_pt.x - start_pt.x;
633 dy = end_pt.y - start_pt.y;
640 dist = abs((pt.y - start_pt.y) * dx - (pt.x - start_pt.x) * dy);
657 CV_READ_SEQ_ELEM( start_pt, reader );
662 CV_WRITE_SEQ_ELEM( start_pt, writer );
680 CV_READ_SEQ_ELEM( start_pt, reader );
691 dx = end_pt.x - start_pt.x;
692 dy = end_pt.y - start_pt.y;
693 dist = abs((pt.x - start_pt.x)*dy - (pt.y - start_pt.y)*dx);
697 *((CvPoint*)reader2.ptr) = start_pt = end_pt;
703 *((CvPoint*)reader2.ptr) = start_pt = pt;
730 CvPoint2D32f start_pt = {-1e6f, -1e6f}, end_pt = {0, 0}, pt = {0,0};
757 start_pt = *(CvPoint2D32f*)cvGetSeqElem( src_contour, -1 );
759 if( fabs(start_pt.x - end_pt.x) > FLT_EPSILON ||
760 fabs(start_pt.y - end_pt.y) > FLT_EPSILON )
782 CV_READ_SEQ_ELEM( start_pt, reader ); /* read the first point */
789 dx = pt.x - start_pt.x;
790 dy = pt.y - start_pt.y;
819 CV_WRITE_SEQ_ELEM( start_pt, writer );
831 CV_READ_SEQ_ELEM( start_pt, reader );
837 dx = end_pt.x - start_pt.x;
838 dy = end_pt.y - start_pt.y;
845 dist = fabs((pt.y - start_pt.y) * dx - (pt.x - start_pt.x) * dy);
862 CV_READ_SEQ_ELEM( start_pt, reader );
867 CV_WRITE_SEQ_ELEM( start_pt, writer );
885 CV_READ_SEQ_ELEM( start_pt, reader );
896 dx = end_pt.x - start_pt.x;
897 dy = end_pt.y - start_pt.y;
898 dist = fabs((pt.x - start_pt.x)*dy - (pt.y - start_pt.y)*dx);
902 *((CvPoint2D32f*)reader2.ptr) = start_pt = end_pt;
908 *((CvPoint2D32f*)reader2.ptr) = start_pt = pt;