• Home
  • Raw
  • Download

Lines Matching refs:j

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()
399 &edges2[j-1], 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()
432 &edges2[j-1]/*, in _cvWorkSouthEast()
435 w2 = W[i-1][j-1].w_southeast + _cvBendingWork( &edges1[i-2], in _cvWorkSouthEast()
437 &edges2[j-2], in _cvWorkSouthEast()
438 &edges2[j-1]/*, in _cvWorkSouthEast()
441 small_edge.x = NULL_EDGE*edges2[j-2].x; in _cvWorkSouthEast()
442 small_edge.y = NULL_EDGE*edges2[j-2].y; in _cvWorkSouthEast()
444 w3 = W[i-1][j-1].w_south + _cvBendingWork( /*&null_edge*/&small_edge, in _cvWorkSouthEast()
446 &edges2[j-2], in _cvWorkSouthEast()
447 &edges2[j-1]/*, 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
487 small_edge.x = NULL_EDGE*edges2[j-1].x; in _cvWorkSouth()
488 small_edge.y = NULL_EDGE*edges2[j-1].y; in _cvWorkSouth()
490 w1 = W[i][j-1].w_southeast + _cvBendingWork(&edges1[i-1], in _cvWorkSouth()
492 &edges2[j-2], in _cvWorkSouth()
493 &edges2[j-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()
545 int j; in icvBlendContours() local
590 for(j=0; j < corr->total; j++) in icvBlendContours()
629 int i,j; // counter of cycles in icvCalcContoursCorrespondence() local
709 for(j=1; j<Nj; j++) in icvCalcContoursCorrespondence()
711 W[0][j].w_east = inf; in icvCalcContoursCorrespondence()
712 W[0][j].w_southeast = inf; in icvCalcContoursCorrespondence()
717 j=0;///////// 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()
724 j=1;////////// 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()
736 …_cvBendingWork( &edges1[i-2], &edges1[i-1], /*&null_edge*/&small_edge, &edges2[j-1]/*, &edges2[Nj-… in icvCalcContoursCorrespondence()
738 W[i][j].path_se = PATH_TO_E; in icvCalcContoursCorrespondence()
741 for(j=2; j<Nj; j++) 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()
758 small_edge.x = NULL_EDGE*edges2[j-2].x; in icvCalcContoursCorrespondence()
759 small_edge.y = NULL_EDGE*edges2[j-2].y; in icvCalcContoursCorrespondence()
761 W[i][j].w_southeast = W[i][j].w_southeast + in icvCalcContoursCorrespondence()
762 …_cvBendingWork( /*&null_edge*/&small_edge, &edges1[i-1], &edges2[j-2], &edges2[j-1]/*, &edges1[Ni-… in icvCalcContoursCorrespondence()
763 W[i][j].path_se = 3; in icvCalcContoursCorrespondence()
767 for(j=2; j<Nj; j++) 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()
774 i=Ni-1;j=Nj-1; 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()
807 CV_WRITE_SEQ_ELEM( j, writer ); in icvCalcContoursCorrespondence()
812 path = W[i][j].path_e; in icvCalcContoursCorrespondence()
824 path = W[i][j].path_se; in icvCalcContoursCorrespondence()
825 j--; i--; in icvCalcContoursCorrespondence()
836 path = W[i][j].path_s; in icvCalcContoursCorrespondence()
837 j--; in icvCalcContoursCorrespondence()
841 } while( (i>=0) && (j>=0) ); in icvCalcContoursCorrespondence()