Lines Matching refs:GCVtx
54 typedef struct GCVtx struct
56 GCVtx *next; argument
64 GCVtx; argument
68 GCVtx* dst;
81 GCVtx** orphans;
123 static int icvGCResizeOrphansBuf( GCVtx**& orphans, int norphans ) in icvGCResizeOrphansBuf()
126 GCVtx** newOrphans = (GCVtx**)cvAlloc( newNOrphans*sizeof(orphans[0]) ); in icvGCResizeOrphansBuf()
134 static int64 icvGCMaxFlow( GCVtx* vtx, int nvtx, GCEdge* edges, GCVtx**& _orphans, int& _maxOrphans… in icvGCMaxFlow()
137 GCVtx stub, *nil = &stub, *first = nil, *last = nil; in icvGCMaxFlow()
142 GCVtx** orphans = _orphans; in icvGCMaxFlow()
148 GCVtx* v = vtx + i; in icvGCMaxFlow()
168 GCVtx* v, *u; in icvGCMaxFlow()
278 GCVtx* v = orphans[--norphans]; in icvGCMaxFlow()
596 static inline void icvAddEdge( GCVtx *x, GCVtx* y, GCEdge* edgeBuf, int nedges, int w, int rw ) in icvAddEdge()
612 static inline int icvAddTWeights( GCVtx* vtx, int sourceWeight, int sinkWeight ) in icvAddTWeights()
623 static inline int icvAddTerm( GCVtx* x, GCVtx* y, int A, int B, int C, int D, in icvAddTerm()
663 GCVtx *var, *var1; in icvAlphaExpand()
668 GCVtx* vbuf = (GCVtx*)state->vtxBuf->data.ptr; in icvAlphaExpand()
678 GCVtx** pleft0 = (GCVtx**)state->ptrLeft->data.ptr; in icvAlphaExpand()
679 GCVtx** pright0 = (GCVtx**)state->ptrRight->data.ptr; in icvAlphaExpand()
682 int pstep = (int)(state->ptrLeft->step/sizeof(GCVtx*)); in icvAlphaExpand()
703 GCVtx** pleft = pleft0 + pstep*y; in icvAlphaExpand()
704 GCVtx** pright = pright0 + pstep*y; in icvAlphaExpand()
707 GCVtx** plr[] = { pleft, pright }; in icvAlphaExpand()
715 GCVtx** ptr = (k == 0 ? pleft0 : pright0) + y1*pstep; in icvAlphaExpand()
718 GCVtx* v = ptr[x] = &vbuf[nvtx++]; in icvAlphaExpand()
765 GCVtx** p = plr[k]; in icvAlphaExpand()
822 GCVtx** pleft = pleft0 + pstep*y; in icvAlphaExpand()
823 GCVtx** pright = pright0 + pstep*y; in icvAlphaExpand()
826 GCVtx* var = pleft[x]; in icvAlphaExpand()
874 int pcn = (int)(sizeof(GCVtx*)/sizeof(int)); in cvFindStereoCorrespondenceGC()
875 int vcn = (int)(sizeof(GCVtx)/sizeof(int)); in cvFindStereoCorrespondenceGC()