Home | History | Annotate | Download | only in src

Lines Matching refs:PT

49     CvPoint pt;
72 CvPoint pt = chain->origin;
82 CV_WRITE_SEQ_ELEM( pt, writer );
100 CV_READ_CHAIN_POINT( pt, reader );
109 CV_WRITE_SEQ_ELEM( pt, writer );
117 array[i].pt = pt;
121 //assert( pt.x == chain->origin.x && pt.y == chain->origin.y );
141 pt0 = array[i].pt;
158 dx = array[i2].pt.x - array[i1].pt.x;
159 dy = array[i2].pt.y - array[i1].pt.y;
165 dk_num = (pt0.x - array[i1].pt.x) * dy - (pt0.y - array[i1].pt.y) * dx;
192 dx1 = array[i1].pt.x - pt0.x;
193 dy1 = array[i1].pt.y - pt0.y;
194 dx2 = array[i2].pt.x - pt0.x;
195 dy2 = array[i2].pt.y - pt0.y;
368 CV_WRITE_SEQ_ELEM( current->pt, writer );
488 #define READ_PT(pt, pos) \
489 pt = src_contour[pos]; \
492 #define READ_DST_PT(pt, pos) \
493 pt = dst_contour[pos]; \
496 #define WRITE_PT(pt) \
497 dst_contour[new_count++] = pt
499 typedef cv::Point_<T> PT;
502 PT start_pt((T)-1000000, (T)-1000000), end_pt(0, 0), pt(0,0);
548 READ_PT(pt, pos);
549 dx = pt.x - start_pt.x;
550 dy = pt.y - start_pt.y;
596 READ_PT(pt, pos);
597 dist = fabs((pt.y - start_pt.y) * dx - (pt.x - start_pt.x) * dy);
638 READ_DST_PT(pt, pos);
647 dist = fabs((pt.x - start_pt.x)*dy - (pt.y - start_pt.y)*dx);
648 successive_inner_product = (pt.x - start_pt.x) * (end_pt.x - pt.x) +
649 (pt.y - start_pt.y) * (end_pt.y - pt.y);
657 READ_DST_PT(pt, pos);
661 dst_contour[wpos] = start_pt = pt;
663 pt = end_pt;
667 dst_contour[wpos] = pt;