Lines Matching refs:W

77 void _cvWorkEast     (int i, int j, _CvWork** W, CvPoint2D32f* edges1, CvPoint2D32f* edges2);
78 void _cvWorkSouthEast(int i, int j, _CvWork** W, CvPoint2D32f* edges1, CvPoint2D32f* edges2);
79 void _cvWorkSouth (int i, int j, _CvWork** W, CvPoint2D32f* edges1, CvPoint2D32f* edges2);
382 void _cvWorkEast(int i, int j, _CvWork** W, CvPoint2D32f* edges1, CvPoint2D32f* edges2) in _cvWorkEast() argument
388 w1 = W[i-1][j].w_east /*+ _cvBendingWork( &edges1[i-2], in _cvWorkEast()
397 w2 = W[i-1][j].w_southeast + _cvBendingWork(&edges1[i-2], in _cvWorkEast()
405 W[i][j].w_east = w1 + _cvStretchingWork( &edges1[i-1], &null_edge ); in _cvWorkEast()
406 W[i][j].path_e = PATH_TO_E; in _cvWorkEast()
410 W[i][j].w_east = w2 + _cvStretchingWork( &edges1[i-1], &null_edge ); in _cvWorkEast()
411 W[i][j].path_e = PATH_TO_SE; in _cvWorkEast()
420 void _cvWorkSouthEast(int i, int j, _CvWork** W, CvPoint2D32f* edges1, CvPoint2D32f* edges2) in _cvWorkSouthEast() argument
429 w1 = W[i-1][j-1].w_east + _cvBendingWork(&edges1[i-2], in _cvWorkSouthEast()
435 w2 = W[i-1][j-1].w_southeast + _cvBendingWork( &edges1[i-2], in _cvWorkSouthEast()
444 w3 = W[i-1][j-1].w_south + _cvBendingWork( /*&null_edge*/&small_edge, in _cvWorkSouthEast()
454 W[i][j].w_southeast = w1 + _cvStretchingWork( &edges1[i-1], &edges2[j-1] ); in _cvWorkSouthEast()
455 W[i][j].path_se = PATH_TO_E; in _cvWorkSouthEast()
459 W[i][j].w_southeast = w3 + _cvStretchingWork( &edges1[i-1], &edges2[j-1] ); in _cvWorkSouthEast()
460 W[i][j].path_se = 3; in _cvWorkSouthEast()
467 W[i][j].w_southeast = w2 + _cvStretchingWork( &edges1[i-1], &edges2[j-1] ); in _cvWorkSouthEast()
468 W[i][j].path_se = PATH_TO_SE; in _cvWorkSouthEast()
472 W[i][j].w_southeast = w3 + _cvStretchingWork( &edges1[i-1], &edges2[j-1] ); in _cvWorkSouthEast()
473 W[i][j].path_se = 3; in _cvWorkSouthEast()
480 void _cvWorkSouth(int i, int j, _CvWork** W, CvPoint2D32f* edges1, CvPoint2D32f* edges2) in _cvWorkSouth() argument
490 w1 = W[i][j-1].w_southeast + _cvBendingWork(&edges1[i-1], in _cvWorkSouth()
496 w2 = W[i][j-1].w_south /*+ _cvBendingWork( &null_edge , in _cvWorkSouth()
504 W[i][j].w_south = w1 + _cvStretchingWork( &null_edge, &edges2[j-1] ); in _cvWorkSouth()
505 W[i][j].path_s = PATH_TO_SE; in _cvWorkSouth()
509 W[i][j].w_south = w2 + _cvStretchingWork( &null_edge, &edges2[j-1] ); in _cvWorkSouth()
510 W[i][j].path_s = 3; in _cvWorkSouth()
631 _CvWork** W; // graph for search minimum of work in icvCalcContoursCorrespondence() local
652 W = (_CvWork**)malloc(sizeof(_CvWork*)*Ni); in icvCalcContoursCorrespondence()
655 W[i] = (_CvWork*)malloc(sizeof(_CvWork)*Nj); in icvCalcContoursCorrespondence()
689 W[0][0].w_east = 0; in icvCalcContoursCorrespondence()
690 W[0][0].w_south = 0; in icvCalcContoursCorrespondence()
691 W[0][0].w_southeast = 0; in icvCalcContoursCorrespondence()
693 W[1][1].w_southeast = _cvStretchingWork( &edges1[0], &edges2[0] ); in icvCalcContoursCorrespondence()
694 W[1][1].w_east = inf; in icvCalcContoursCorrespondence()
695 W[1][1].w_south = inf; in icvCalcContoursCorrespondence()
696 W[1][1].path_se = PATH_TO_SE; in icvCalcContoursCorrespondence()
698 W[0][1].w_south = _cvStretchingWork( &null_edge, &edges2[0] ); in icvCalcContoursCorrespondence()
699 W[0][1].path_s = 3; in icvCalcContoursCorrespondence()
700 W[1][0].w_east = _cvStretchingWork( &edges2[0], &null_edge ); in icvCalcContoursCorrespondence()
701 W[1][0].path_e = PATH_TO_E; in icvCalcContoursCorrespondence()
705 W[i][0].w_south = inf; in icvCalcContoursCorrespondence()
706 W[i][0].w_southeast = inf; in icvCalcContoursCorrespondence()
711 W[0][j].w_east = inf; in icvCalcContoursCorrespondence()
712 W[0][j].w_southeast = inf; in icvCalcContoursCorrespondence()
718 W[i][j].w_east = W[i-1][j].w_east; in icvCalcContoursCorrespondence()
719 W[i][j].w_east = W[i][j].w_east /*+ in icvCalcContoursCorrespondence()
721 W[i][j].w_east = W[i][j].w_east + _cvStretchingWork( &edges2[i-1], &null_edge ); in icvCalcContoursCorrespondence()
722 W[i][j].path_e = PATH_TO_E; in icvCalcContoursCorrespondence()
725 W[i][j].w_south = inf; in icvCalcContoursCorrespondence()
727 _cvWorkEast (i, j, W, edges1, edges2); in icvCalcContoursCorrespondence()
729 W[i][j].w_southeast = W[i-1][j-1].w_east; in icvCalcContoursCorrespondence()
730 W[i][j].w_southeast = W[i][j].w_southeast + _cvStretchingWork( &edges1[i-1], &edges2[j-1] ); in icvCalcContoursCorrespondence()
735 W[i][j].w_southeast = W[i][j].w_southeast + in icvCalcContoursCorrespondence()
738 W[i][j].path_se = PATH_TO_E; in icvCalcContoursCorrespondence()
744 W[i][j].w_south = W[i][j-1].w_south; in icvCalcContoursCorrespondence()
745 W[i][j].w_south = W[i][j].w_south + _cvStretchingWork( &null_edge, &edges2[j-1] ); in icvCalcContoursCorrespondence()
746 W[i][j].w_south = W[i][j].w_south /*+ in icvCalcContoursCorrespondence()
748 W[i][j].path_s = 3; in icvCalcContoursCorrespondence()
751 W[i][j].w_east= inf; in icvCalcContoursCorrespondence()
753 _cvWorkSouth(i, j, W, edges1, edges2); in icvCalcContoursCorrespondence()
755 W[i][j].w_southeast = W[i-1][j-1].w_south; in icvCalcContoursCorrespondence()
756 W[i][j].w_southeast = W[i][j].w_southeast + _cvStretchingWork( &edges1[i-1], &edges2[j-1] ); in icvCalcContoursCorrespondence()
761 W[i][j].w_southeast = W[i][j].w_southeast + in icvCalcContoursCorrespondence()
763 W[i][j].path_se = 3; in icvCalcContoursCorrespondence()
769 _cvWorkEast (i, j, W, edges1, edges2); in icvCalcContoursCorrespondence()
770 _cvWorkSouthEast(i, j, W, edges1, edges2); in icvCalcContoursCorrespondence()
771 _cvWorkSouth (i, j, W, edges1, edges2); in icvCalcContoursCorrespondence()
783 if( W[i][j].w_east > W[i][j].w_southeast ) in icvCalcContoursCorrespondence()
785 if( W[i][j].w_southeast > W[i][j].w_south ) in icvCalcContoursCorrespondence()
796 if( W[i][j].w_east < W[i][j].w_south ) in icvCalcContoursCorrespondence()
812 path = W[i][j].path_e; in icvCalcContoursCorrespondence()
824 path = W[i][j].path_se; in icvCalcContoursCorrespondence()
836 path = W[i][j].path_s; in icvCalcContoursCorrespondence()
847 free(W[i]); in icvCalcContoursCorrespondence()
849 free(W); in icvCalcContoursCorrespondence()