Lines Matching refs:p_cur
197 _CvPyramid *p_cur; in icvPyrSegmentation8uC1R() local
282 p_cur = (_CvPyramid *) p_base; in icvPyrSegmentation8uC1R()
298 pyram[l] = p_cur; in icvPyrSegmentation8uC1R()
306 for( j = 0; j <= size.width; j++, p_cur++ ) in icvPyrSegmentation8uC1R()
308 p_cur->c = pyramida[i * roi.width + j]; in icvPyrSegmentation8uC1R()
309 p_cur->p = &stub; in icvPyrSegmentation8uC1R()
310 p_cur->a = 0; in icvPyrSegmentation8uC1R()
311 p_cur->rect.x2 = 0; in icvPyrSegmentation8uC1R()
335 p_cur = pyram[l] + (size.width + 1) * size.height; in icvPyrSegmentation8uC1R()
337 p_cur[j].c = 0; in icvPyrSegmentation8uC1R()
345 p_cur = pyram[level]; in icvPyrSegmentation8uC1R()
346 for( i = 0; i <= size.height; i++, p_cur += size.width + 1 ) in icvPyrSegmentation8uC1R()
348 p_cur[j].c = 0; in icvPyrSegmentation8uC1R()
378 p_cur = pyram[l]; in icvPyrSegmentation8uC1R()
379 for( i = 0; i < size.height; i++, p_cur += size.width + 1 ) in icvPyrSegmentation8uC1R()
383 _CvPyramid *p1 = p_cur[j].p; in icvPyrSegmentation8uC1R()
384 _CvPyramid *p2 = p_cur[j + 1].p; in icvPyrSegmentation8uC1R()
386 float t0 = (float) p_cur[j].a * p_cur[j].c; in icvPyrSegmentation8uC1R()
387 float t1 = (float) p_cur[j + 1].a * p_cur[j + 1].c; in icvPyrSegmentation8uC1R()
393 p_cur[j].a = p_cur[j + 1].a = 0; in icvPyrSegmentation8uC1R()
396 p_cur[size.width].a = 0; in icvPyrSegmentation8uC1R()
402 p_cur[j].a = 0; in icvPyrSegmentation8uC1R()
408 p_cur = pyram[l + 1]; in icvPyrSegmentation8uC1R()
414 for( i = 0; i <= size.height; i++, p_cur += size.width + 1 ) in icvPyrSegmentation8uC1R()
420 int a = p_cur[j].a; in icvPyrSegmentation8uC1R()
426 p_cur[j].c *= icvInvTab[a - 1]; in icvPyrSegmentation8uC1R()
430 p_cur[j].c /= a; in icvPyrSegmentation8uC1R()
435 p_cur[j].c = p_prev->c; in icvPyrSegmentation8uC1R()
444 if( p_cur[size.width].a == 0 ) in icvPyrSegmentation8uC1R()
446 p_cur[size.width].c = p_prev[(l != 0) - 1].c; in icvPyrSegmentation8uC1R()
450 p_cur[size.width].c /= p_cur[size.width].a; in icvPyrSegmentation8uC1R()
453 cmp_node.data = p_cur + size.width; in icvPyrSegmentation8uC1R()
462 int a = p_cur[j].a; in icvPyrSegmentation8uC1R()
468 p_cur[j].c *= icvInvTab[a - 1]; in icvPyrSegmentation8uC1R()
472 p_cur[j].c /= a; in icvPyrSegmentation8uC1R()
475 cmp_node.data = p_cur + j; in icvPyrSegmentation8uC1R()
480 p_cur[j].c = p_prev->c; in icvPyrSegmentation8uC1R()
496 p_cur[j].a = 0; in icvPyrSegmentation8uC1R()
515 p_cur = pyram[level]; in icvPyrSegmentation8uC1R()
517 for( i = 0; i < size.height; i++, p_cur += size.width + 1 ) in icvPyrSegmentation8uC1R()
521 if( p_cur[j].a != 0 ) in icvPyrSegmentation8uC1R()
523 cmp_node.data = p_cur + j; in icvPyrSegmentation8uC1R()
540 p_cur = pyram[l]; in icvPyrSegmentation8uC1R()
555 _CvPyramid *p = p_cur->p; in icvPyrSegmentation8uC1R()
559 p_cur->c = p->c; in icvPyrSegmentation8uC1R()
565 _c.f = p_cur->c; dst_image[j] = (uchar)_c.i; in icvPyrSegmentation8uC1R()
566 p_cur = _CV_NEXT_BASE_C1(p_cur, 1); in icvPyrSegmentation8uC1R()
570 p_cur++; in icvPyrSegmentation8uC1R()
611 _CvPyramidC3 *p_cur; in icvPyrSegmentation8uC3R() local
701 p_cur = (_CvPyramidC3 *) p_base; in icvPyrSegmentation8uC3R()
717 pyram[l] = p_cur; in icvPyrSegmentation8uC3R()
725 assert( (char*)p_cur - buffer < buffer_size ); in icvPyrSegmentation8uC3R()
726 for( j = 0; j <= size.width; j++, p_cur++ ) in icvPyrSegmentation8uC3R()
728 p_cur->c = ((_CvRGBf *) pyramida)[i * roi.width + j]; in icvPyrSegmentation8uC3R()
729 p_cur->p = &stub; in icvPyrSegmentation8uC3R()
730 p_cur->a = 0; in icvPyrSegmentation8uC3R()
731 p_cur->rect.x2 = 0; in icvPyrSegmentation8uC3R()
755 p_cur = pyram[l] + (size.width + 1) * size.height; in icvPyrSegmentation8uC3R()
757 p_cur[j].c.blue = p_cur[j].c.green = p_cur[j].c.red = 0; in icvPyrSegmentation8uC3R()
765 p_cur = pyram[level]; in icvPyrSegmentation8uC3R()
766 for( i = 0; i <= size.height; i++, p_cur += size.width + 1 ) in icvPyrSegmentation8uC3R()
768 p_cur[j].c.blue = p_cur[j].c.green = p_cur[j].c.red = 0; in icvPyrSegmentation8uC3R()
798 p_cur = pyram[l]; in icvPyrSegmentation8uC3R()
799 for( i = 0; i < size.height; i++, p_cur += size.width + 1 ) in icvPyrSegmentation8uC3R()
803 _CvPyramidC3 *p = p_cur[j].p; in icvPyrSegmentation8uC3R()
804 float a = (float) p_cur[j].a; in icvPyrSegmentation8uC3R()
806 p->c.blue += a * p_cur[j].c.blue; in icvPyrSegmentation8uC3R()
807 p->c.green += a * p_cur[j].c.green; in icvPyrSegmentation8uC3R()
808 p->c.red += a * p_cur[j].c.red; in icvPyrSegmentation8uC3R()
811 p_cur[j].a = 0; in icvPyrSegmentation8uC3R()
814 p_cur[size.width].a = 0; in icvPyrSegmentation8uC3R()
820 p_cur[j].a = 0; in icvPyrSegmentation8uC3R()
826 p_cur = pyram[l + 1]; in icvPyrSegmentation8uC3R()
832 for( i = 0; i <= size.height; i++, p_cur += size.width + 1 ) in icvPyrSegmentation8uC3R()
838 int a = p_cur[j].a; in icvPyrSegmentation8uC3R()
852 p_cur[j].c.blue *= inv_a; in icvPyrSegmentation8uC3R()
853 p_cur[j].c.green *= inv_a; in icvPyrSegmentation8uC3R()
854 p_cur[j].c.red *= inv_a; in icvPyrSegmentation8uC3R()
858 p_cur[j].c = p_prev->c; in icvPyrSegmentation8uC3R()
867 if( p_cur[size.width].a == 0 ) in icvPyrSegmentation8uC3R()
869 p_cur[size.width].c = p_prev[(l != 0) - 1].c; in icvPyrSegmentation8uC3R()
873 p_cur[size.width].c.blue /= p_cur[size.width].a; in icvPyrSegmentation8uC3R()
874 p_cur[size.width].c.green /= p_cur[size.width].a; in icvPyrSegmentation8uC3R()
875 p_cur[size.width].c.red /= p_cur[size.width].a; in icvPyrSegmentation8uC3R()
878 cmp_node.data = p_cur + size.width; in icvPyrSegmentation8uC3R()
887 int a = p_cur[j].a; in icvPyrSegmentation8uC3R()
901 p_cur[j].c.blue *= inv_a; in icvPyrSegmentation8uC3R()
902 p_cur[j].c.green *= inv_a; in icvPyrSegmentation8uC3R()
903 p_cur[j].c.red *= inv_a; in icvPyrSegmentation8uC3R()
905 cmp_node.data = p_cur + j; in icvPyrSegmentation8uC3R()
910 p_cur[j].c = p_prev->c; in icvPyrSegmentation8uC3R()
926 p_cur[j].a = 0; in icvPyrSegmentation8uC3R()
945 p_cur = pyram[level]; in icvPyrSegmentation8uC3R()
947 for( i = 0; i < size.height; i++, p_cur += size.width + 1 ) in icvPyrSegmentation8uC3R()
951 if( p_cur[j].a != 0 ) in icvPyrSegmentation8uC3R()
953 cmp_node.data = p_cur + j; in icvPyrSegmentation8uC3R()
970 p_cur = pyram[l]; in icvPyrSegmentation8uC3R()
985 _CvPyramidC3 *p = p_cur->p; in icvPyrSegmentation8uC3R()
990 p_cur->c = p->c; in icvPyrSegmentation8uC3R()
997 _c.f = p_cur->c.blue; dst_image[j*3] = (uchar)_c.i; in icvPyrSegmentation8uC3R()
998 _c.f = p_cur->c.green; dst_image[j*3+1] = (uchar)_c.i; in icvPyrSegmentation8uC3R()
999 _c.f = p_cur->c.red; dst_image[j*3+2] = (uchar)_c.i; in icvPyrSegmentation8uC3R()
1000 p_cur = _CV_NEXT_BASE_C3(p_cur,1); in icvPyrSegmentation8uC3R()
1004 p_cur++; in icvPyrSegmentation8uC3R()
1032 _CvPyramid *p_cur = (_CvPyramid *) layer_data; in icvUpdatePyrLinks_8u_C1() local
1046 c0 = p_cur->c; in icvUpdatePyrLinks_8u_C1()
1074 p_cur->p = p; in icvUpdatePyrLinks_8u_C1()
1079 p_cur = (_CvPyramid*)((char*)p_cur + sizeof(_CvPyramidBase)); in icvUpdatePyrLinks_8u_C1()
1085 int a = p_cur->a; in icvUpdatePyrLinks_8u_C1()
1088 p_cur->c = 0; in icvUpdatePyrLinks_8u_C1()
1089 p_cur++; in icvUpdatePyrLinks_8u_C1()
1091 icvMaxRoi( &(p->rect), &(p_cur[-1].rect) ); in icvUpdatePyrLinks_8u_C1()
1096 p_cur->p = stub; in icvUpdatePyrLinks_8u_C1()
1099 cmp_node.data = p_cur; in icvUpdatePyrLinks_8u_C1()
1104 p_cur = _CV_NEXT_BASE_C1(p_cur,1); in icvUpdatePyrLinks_8u_C1()
1108 p_cur->c = 0; in icvUpdatePyrLinks_8u_C1()
1109 p_cur++; in icvUpdatePyrLinks_8u_C1()
1114 c0 = p_cur->c; in icvUpdatePyrLinks_8u_C1()
1144 p_cur->p = p; in icvUpdatePyrLinks_8u_C1()
1149 p_cur = _CV_NEXT_BASE_C1(p_cur,1); in icvUpdatePyrLinks_8u_C1()
1155 int a = p_cur->a; in icvUpdatePyrLinks_8u_C1()
1158 p_cur->c = 0; in icvUpdatePyrLinks_8u_C1()
1159 p_cur++; in icvUpdatePyrLinks_8u_C1()
1161 icvMaxRoi( &(p->rect), &(p_cur[-1].rect) ); in icvUpdatePyrLinks_8u_C1()
1166 p_cur->p = stub; in icvUpdatePyrLinks_8u_C1()
1169 cmp_node.data = p_cur; in icvUpdatePyrLinks_8u_C1()
1174 p_cur = _CV_NEXT_BASE_C1(p_cur,1); in icvUpdatePyrLinks_8u_C1()
1178 p_cur->c = 0; in icvUpdatePyrLinks_8u_C1()
1179 p_cur++; in icvUpdatePyrLinks_8u_C1()
1187 p_cur->c = 0; in icvUpdatePyrLinks_8u_C1()
1188 p_cur++; in icvUpdatePyrLinks_8u_C1()
1215 _CvPyramidC3 *p_cur = (_CvPyramidC3 *) layer_data; in icvUpdatePyrLinks_8u_C3() local
1229 c1 = _CV_RGB_DIST( p_cur->c, p_next1[0].c ); in icvUpdatePyrLinks_8u_C3()
1230 c2 = _CV_RGB_DIST( p_cur->c, p_next1[1].c ); in icvUpdatePyrLinks_8u_C3()
1231 c3 = _CV_RGB_DIST( p_cur->c, p_next3[0].c ); in icvUpdatePyrLinks_8u_C3()
1232 c4 = _CV_RGB_DIST( p_cur->c, p_next3[1].c ); in icvUpdatePyrLinks_8u_C3()
1254 p_cur->p = p; in icvUpdatePyrLinks_8u_C3()
1259 p_cur = _CV_NEXT_BASE_C3(p_cur,1); in icvUpdatePyrLinks_8u_C3()
1265 int a = p_cur->a; in icvUpdatePyrLinks_8u_C3()
1268 p_cur->c.blue = p_cur->c.green = p_cur->c.red = 0; in icvUpdatePyrLinks_8u_C3()
1269 p_cur++; in icvUpdatePyrLinks_8u_C3()
1271 icvMaxRoi( &(p->rect), &(p_cur[-1].rect) ); in icvUpdatePyrLinks_8u_C3()
1276 p_cur->p = stub; in icvUpdatePyrLinks_8u_C3()
1279 cmp_node.data = p_cur; in icvUpdatePyrLinks_8u_C3()
1285 p_cur = _CV_NEXT_BASE_C3(p_cur,1); in icvUpdatePyrLinks_8u_C3()
1289 p_cur->c.blue = p_cur->c.green = p_cur->c.red = 0; in icvUpdatePyrLinks_8u_C3()
1290 p_cur++; in icvUpdatePyrLinks_8u_C3()
1295 c1 = _CV_RGB_DIST( p_cur->c, p_next1[0].c ); in icvUpdatePyrLinks_8u_C3()
1296 c2 = _CV_RGB_DIST( p_cur->c, p_next1[1].c ); in icvUpdatePyrLinks_8u_C3()
1297 c3 = _CV_RGB_DIST( p_cur->c, p_next3[0].c ); in icvUpdatePyrLinks_8u_C3()
1298 c4 = _CV_RGB_DIST( p_cur->c, p_next3[1].c ); in icvUpdatePyrLinks_8u_C3()
1323 p_cur->p = p; in icvUpdatePyrLinks_8u_C3()
1328 p_cur = _CV_NEXT_BASE_C3(p_cur,1); in icvUpdatePyrLinks_8u_C3()
1334 int a = p_cur->a; in icvUpdatePyrLinks_8u_C3()
1337 p_cur->c.blue = p_cur->c.green = p_cur->c.red = 0; in icvUpdatePyrLinks_8u_C3()
1338 p_cur++; in icvUpdatePyrLinks_8u_C3()
1340 icvMaxRoi( &(p->rect), &(p_cur[-1].rect) ); in icvUpdatePyrLinks_8u_C3()
1345 p_cur->p = stub; in icvUpdatePyrLinks_8u_C3()
1348 cmp_node.data = p_cur; in icvUpdatePyrLinks_8u_C3()
1353 p_cur = _CV_NEXT_BASE_C3(p_cur,1); in icvUpdatePyrLinks_8u_C3()
1357 p_cur->c.blue = p_cur->c.green = p_cur->c.red = 0; in icvUpdatePyrLinks_8u_C3()
1358 p_cur++; in icvUpdatePyrLinks_8u_C3()
1366 p_cur->c.blue = p_cur->c.green = p_cur->c.red = 0; in icvUpdatePyrLinks_8u_C3()
1367 p_cur++; in icvUpdatePyrLinks_8u_C3()