Home | History | Annotate | Download | only in src

Lines Matching defs:pSite

74     CvVoronoiSite2D* psite;
95 { (STRUCT)->psite = SITE ; (STRUCT)->pedge = EDGE; (STRUCT)->pnode = NODE;}
182 // pSite: in, original site (pNode must be the begin point of pEdge
183 // for this pSite, this property hold out far all edges)
187 int _cvNodeMultyplicity(CvVoronoiSite2D* pSite,
353 CvVoronoiSite2D* pSite = 0;
371 _CV_READ_SEQ_ELEM(pSite,reader,CvVoronoiSite2D*);
372 if(pSite->node[0] == pSite->node[1])
374 pEdge = CV_LAST_VORONOIEDGE2D(pSite);
375 pNode = CV_VORONOIEDGE2D_BEGINNODE(pEdge,pSite);
379 pEdge1 = CV_PREV_VORONOIEDGE2D(pEdge,pSite);
380 pNode1 = CV_VORONOIEDGE2D_BEGINNODE(pEdge1,pSite);
385 if(_cvNodeMultyplicity(pSite, pEdge,pNode,LinkedEdges,LinkedSites) == 1)
389 _CV_INITIALIZE_CVLCMDATA(&LCMdata,pSite,pEdge,CV_VORONOIEDGE2D_ENDNODE(pEdge,pSite));
395 _CV_INITIALIZE_CVLCMDATA(&LCMdata,pSite,pEdge,CV_VORONOIEDGE2D_ENDNODE(pEdge,pSite));
401 _CV_INITIALIZE_CVLCMDATA(&LCMdata,pSite,pEdge,CV_VORONOIEDGE2D_ENDNODE(pEdge,pSite));
416 CvVoronoiSite2D* pSite, *pSite_first, *pSite_last;
442 for(pSite = pSite_first;
443 pSite != pSite_last;
444 pSite = CV_NEXT_VORONOISITE2D(pSite),
445 pEdge = CV_PREV_VORONOIEDGE2D(CV_LAST_VORONOIEDGE2D(pSite),pSite))
447 pSite);
449 pEdge = CV_PREV_VORONOIEDGE2D(pEdge,pSite))
451 pNode0 = CV_VORONOIEDGE2D_BEGINNODE(pEdge,pSite);
452 pNode1 = CV_VORONOIEDGE2D_ENDNODE(pEdge,pSite);
455 _CV_INITIALIZE_CVLCMDATA(&LCMOutputData,pSite,pEdge,pNode1);
465 pSite = CV_TWIN_VORONOISITE2D(pSite,pEdge);
466 pEdge_stop = CV_FIRST_VORONOIEDGE2D(pSite);
467 if(pSite == pSite_last)
471 if(pSite == pSite_last)
474 CV_WRITE_SEQ_ELEM(pSite->node[1]->pt, writer);
489 CvVoronoiSite2D* pSite = pLCMInputData->psite;
490 CvVoronoiNode2D* pNode = CV_VORONOIEDGE2D_BEGINNODE(pEdge,pSite);
494 int multyplicity = _cvNodeMultyplicity(pSite,pEdge,pNode,LinkedEdges,LinkedSites);
498 pLCMInputData->psite = CV_TWIN_VORONOISITE2D(LinkedSites[1],LinkedEdges[1]);
513 pSite = LinkedSites[i];
514 _CV_INITIALIZE_CVLCMDATA(&LCMOutputData,CV_TWIN_VORONOISITE2D(pSite,pEdge),pEdge,pNode);
526 CvVoronoiSite2D* pSite = pLCMInputData->psite;
545 pNode1 = CV_VORONOIEDGE2D_BEGINNODE(pEdge,pSite);
551 _CV_INITIALIZE_CVLCMDATA(&LCMData,pSite,pEdge,pNode1);
555 pEdge = LCMData.pedge; pSite = LCMData.psite;
561 _CV_INITIALIZE_CVLCMDATA(&LCMData,pSite,pEdge,pNode0);
576 CvVoronoiSite2D* pSite = pLCMInputData->psite;
577 CvVoronoiNode2D* pNode = CV_VORONOIEDGE2D_BEGINNODE(pEdge,pSite);
632 int _cvNodeMultyplicity(CvVoronoiSite2D* pSite,
640 assert(pNode == CV_VORONOIEDGE2D_BEGINNODE(pEdge,pSite));
649 LinkedSites[multyplicity] = pSite;
652 pEdge_cur = CV_PREV_VORONOIEDGE2D(pEdge_cur,pSite);
653 pSite = CV_TWIN_VORONOISITE2D(pSite,pEdge_cur);
663 pLCMCCNData->site_first = pLCMData->psite;
664 pLCMCCNData->site_last = CV_TWIN_VORONOISITE2D(pLCMData->psite,pLCMData->pedge);
665 if(pLCMData->pedge == CV_LAST_VORONOIEDGE2D(pLCMData->psite))
667 pLCMCCNData->edge = CV_PREV_VORONOIEDGE2D(pLCMData->pedge,pLCMData->psite);
669 pLCMCCNData->site_first_pt = pLCMData->psite->node[0]->pt;
670 pLCMCCNData->site_last_pt = pLCMData->psite->node[0]->pt;