• Home
  • Raw
  • Download

Lines Matching refs:img

99     uchar* img = pImage + step * seed.y;  in icvFloodFill_8u_CnIR()  local
112 val0[0] = img[L]; in icvFloodFill_8u_CnIR()
115 img[L] = newVal[0]; in icvFloodFill_8u_CnIR()
117 while( ++R < roi.width && img[R] == val0[0] ) in icvFloodFill_8u_CnIR()
118 img[R] = newVal[0]; in icvFloodFill_8u_CnIR()
120 while( --L >= 0 && img[L] == val0[0] ) in icvFloodFill_8u_CnIR()
121 img[L] = newVal[0]; in icvFloodFill_8u_CnIR()
126 ICV_SET_C3( val0, img + L*3 ); in icvFloodFill_8u_CnIR()
129 ICV_SET_C3( img + L*3, newVal ); in icvFloodFill_8u_CnIR()
131 while( --L >= 0 && ICV_EQ_C3( img + L*3, val0 )) in icvFloodFill_8u_CnIR()
132 ICV_SET_C3( img + L*3, newVal ); in icvFloodFill_8u_CnIR()
134 while( ++R < roi.width && ICV_EQ_C3( img + R*3, val0 )) in icvFloodFill_8u_CnIR()
135 ICV_SET_C3( img + R*3, newVal ); in icvFloodFill_8u_CnIR()
167 img = pImage + (YC + dir) * step; in icvFloodFill_8u_CnIR()
177 if( (unsigned)i < (unsigned)roi.width && img[i] == val0[0] ) in icvFloodFill_8u_CnIR()
180 img[i] = newVal[0]; in icvFloodFill_8u_CnIR()
181 while( --j >= 0 && img[j] == val0[0] ) in icvFloodFill_8u_CnIR()
182 img[j] = newVal[0]; in icvFloodFill_8u_CnIR()
184 while( ++i < roi.width && img[i] == val0[0] ) in icvFloodFill_8u_CnIR()
185 img[i] = newVal[0]; in icvFloodFill_8u_CnIR()
193 if( (unsigned)i < (unsigned)roi.width && ICV_EQ_C3( img + i*3, val0 )) in icvFloodFill_8u_CnIR()
196 ICV_SET_C3( img + i*3, newVal ); in icvFloodFill_8u_CnIR()
197 while( --j >= 0 && ICV_EQ_C3( img + j*3, val0 )) in icvFloodFill_8u_CnIR()
198 ICV_SET_C3( img + j*3, newVal ); in icvFloodFill_8u_CnIR()
200 while( ++i < roi.width && ICV_EQ_C3( img + i*3, val0 )) in icvFloodFill_8u_CnIR()
201 ICV_SET_C3( img + i*3, newVal ); in icvFloodFill_8u_CnIR()
231 int* img = pImage + (step /= sizeof(pImage[0])) * seed.y; in icvFloodFill_32f_CnIR() local
244 val0[0] = img[L]; in icvFloodFill_32f_CnIR()
247 img[L] = newVal[0]; in icvFloodFill_32f_CnIR()
249 while( ++R < roi.width && img[R] == val0[0] ) in icvFloodFill_32f_CnIR()
250 img[R] = newVal[0]; in icvFloodFill_32f_CnIR()
252 while( --L >= 0 && img[L] == val0[0] ) in icvFloodFill_32f_CnIR()
253 img[L] = newVal[0]; in icvFloodFill_32f_CnIR()
258 ICV_SET_C3( val0, img + L*3 ); in icvFloodFill_32f_CnIR()
261 ICV_SET_C3( img + L*3, newVal ); in icvFloodFill_32f_CnIR()
263 while( --L >= 0 && ICV_EQ_C3( img + L*3, val0 )) in icvFloodFill_32f_CnIR()
264 ICV_SET_C3( img + L*3, newVal ); in icvFloodFill_32f_CnIR()
266 while( ++R < roi.width && ICV_EQ_C3( img + R*3, val0 )) in icvFloodFill_32f_CnIR()
267 ICV_SET_C3( img + R*3, newVal ); in icvFloodFill_32f_CnIR()
299 img = pImage + (YC + dir) * step; in icvFloodFill_32f_CnIR()
309 if( (unsigned)i < (unsigned)roi.width && img[i] == val0[0] ) in icvFloodFill_32f_CnIR()
312 img[i] = newVal[0]; in icvFloodFill_32f_CnIR()
313 while( --j >= 0 && img[j] == val0[0] ) in icvFloodFill_32f_CnIR()
314 img[j] = newVal[0]; in icvFloodFill_32f_CnIR()
316 while( ++i < roi.width && img[i] == val0[0] ) in icvFloodFill_32f_CnIR()
317 img[i] = newVal[0]; in icvFloodFill_32f_CnIR()
325 if( (unsigned)i < (unsigned)roi.width && ICV_EQ_C3( img + i*3, val0 )) in icvFloodFill_32f_CnIR()
328 ICV_SET_C3( img + i*3, newVal ); in icvFloodFill_32f_CnIR()
329 while( --j >= 0 && ICV_EQ_C3( img + j*3, val0 )) in icvFloodFill_32f_CnIR()
330 ICV_SET_C3( img + j*3, newVal ); in icvFloodFill_32f_CnIR()
332 while( ++i < roi.width && ICV_EQ_C3( img + i*3, val0 )) in icvFloodFill_32f_CnIR()
333 ICV_SET_C3( img + i*3, newVal ); in icvFloodFill_32f_CnIR()
378 uchar* img = pImage + step*seed.y; in icvFloodFill_Grad_8u_CnIR() local
405 val0[i] = img[L*cn+i]; in icvFloodFill_Grad_8u_CnIR()
412 while( !mask[R + 1] && DIFF_INT_C1( img + (R+1), val0 )) in icvFloodFill_Grad_8u_CnIR()
415 while( !mask[L - 1] && DIFF_INT_C1( img + (L-1), val0 )) in icvFloodFill_Grad_8u_CnIR()
420 while( !mask[R + 1] && DIFF_INT_C1( img + (R+1), img + R )) in icvFloodFill_Grad_8u_CnIR()
423 while( !mask[L - 1] && DIFF_INT_C1( img + (L-1), img + L )) in icvFloodFill_Grad_8u_CnIR()
431 while( !mask[R + 1] && DIFF_INT_C3( img + (R+1)*3, val0 )) in icvFloodFill_Grad_8u_CnIR()
434 while( !mask[L - 1] && DIFF_INT_C3( img + (L-1)*3, val0 )) in icvFloodFill_Grad_8u_CnIR()
439 while( !mask[R + 1] && DIFF_INT_C3( img + (R+1)*3, img + R*3 )) in icvFloodFill_Grad_8u_CnIR()
442 while( !mask[L - 1] && DIFF_INT_C3( img + (L-1)*3, img + L*3 )) in icvFloodFill_Grad_8u_CnIR()
481 img = pImage + (YC + dir) * step; in icvFloodFill_Grad_8u_CnIR()
489 if( !mask[i] && DIFF_INT_C1( img + i, val0 )) in icvFloodFill_Grad_8u_CnIR()
493 while( !mask[--j] && DIFF_INT_C1( img + j, val0 )) in icvFloodFill_Grad_8u_CnIR()
496 while( !mask[++i] && DIFF_INT_C1( img + i, val0 )) in icvFloodFill_Grad_8u_CnIR()
505 if( !mask[i] && DIFF_INT_C1( img + i, img - curstep + i )) in icvFloodFill_Grad_8u_CnIR()
509 while( !mask[--j] && DIFF_INT_C1( img + j, img + (j+1) )) in icvFloodFill_Grad_8u_CnIR()
513 (DIFF_INT_C1( img + i, img + (i-1) ) || in icvFloodFill_Grad_8u_CnIR()
514 (DIFF_INT_C1( img + i, img + i - curstep) && i <= R))) in icvFloodFill_Grad_8u_CnIR()
526 (((val[0] = img[i], in icvFloodFill_Grad_8u_CnIR()
528 DIFF_INT_C1( val, img - curstep + (i-1))) || in icvFloodFill_Grad_8u_CnIR()
530 DIFF_INT_C1( val, img - curstep + i )) || in icvFloodFill_Grad_8u_CnIR()
532 DIFF_INT_C1( val, img - curstep + (i+1) )))) in icvFloodFill_Grad_8u_CnIR()
536 while( !mask[--j] && DIFF_INT_C1( img + j, img + (j+1) )) in icvFloodFill_Grad_8u_CnIR()
540 ((val[0] = img[i], in icvFloodFill_Grad_8u_CnIR()
541 DIFF_INT_C1( val, img + (i-1) )) || in icvFloodFill_Grad_8u_CnIR()
543 DIFF_INT_C1( val, img - curstep + (i-1) ))) || in icvFloodFill_Grad_8u_CnIR()
545 DIFF_INT_C1( val, img - curstep + i )) || in icvFloodFill_Grad_8u_CnIR()
547 DIFF_INT_C1( val, img - curstep + (i+1) )))) in icvFloodFill_Grad_8u_CnIR()
555 img = pImage + YC * step; in icvFloodFill_Grad_8u_CnIR()
558 img[i] = newVal[0]; in icvFloodFill_Grad_8u_CnIR()
561 sum[0] += img[i]; in icvFloodFill_Grad_8u_CnIR()
569 img = pImage + (YC + dir) * step; in icvFloodFill_Grad_8u_CnIR()
577 if( !mask[i] && DIFF_INT_C3( img + i*3, val0 )) in icvFloodFill_Grad_8u_CnIR()
581 while( !mask[--j] && DIFF_INT_C3( img + j*3, val0 )) in icvFloodFill_Grad_8u_CnIR()
584 while( !mask[++i] && DIFF_INT_C3( img + i*3, val0 )) in icvFloodFill_Grad_8u_CnIR()
593 if( !mask[i] && DIFF_INT_C3( img + i*3, img - curstep + i*3 )) in icvFloodFill_Grad_8u_CnIR()
597 while( !mask[--j] && DIFF_INT_C3( img + j*3, img + (j+1)*3 )) in icvFloodFill_Grad_8u_CnIR()
601 (DIFF_INT_C3( img + i*3, img + (i-1)*3 ) || in icvFloodFill_Grad_8u_CnIR()
602 (DIFF_INT_C3( img + i*3, img + i*3 - curstep) && i <= R))) in icvFloodFill_Grad_8u_CnIR()
614 (((ICV_SET_C3( val, img+i*3 ), in icvFloodFill_Grad_8u_CnIR()
616 DIFF_INT_C3( val, img - curstep + (i-1)*3 )) || in icvFloodFill_Grad_8u_CnIR()
618 DIFF_INT_C3( val, img - curstep + i*3 )) || in icvFloodFill_Grad_8u_CnIR()
620 DIFF_INT_C3( val, img - curstep + (i+1)*3 )))) in icvFloodFill_Grad_8u_CnIR()
624 while( !mask[--j] && DIFF_INT_C3( img + j*3, img + (j+1)*3 )) in icvFloodFill_Grad_8u_CnIR()
628 ((ICV_SET_C3( val, img + i*3 ), in icvFloodFill_Grad_8u_CnIR()
629 DIFF_INT_C3( val, img + (i-1)*3 )) || in icvFloodFill_Grad_8u_CnIR()
631 DIFF_INT_C3( val, img - curstep + (i-1)*3 ))) || in icvFloodFill_Grad_8u_CnIR()
633 DIFF_INT_C3( val, img - curstep + i*3 )) || in icvFloodFill_Grad_8u_CnIR()
635 DIFF_INT_C3( val, img - curstep + (i+1)*3 )))) in icvFloodFill_Grad_8u_CnIR()
643 img = pImage + YC * step; in icvFloodFill_Grad_8u_CnIR()
646 ICV_SET_C3( img + i*3, newVal ); in icvFloodFill_Grad_8u_CnIR()
650 sum[0] += img[i*3]; in icvFloodFill_Grad_8u_CnIR()
651 sum[1] += img[i*3+1]; in icvFloodFill_Grad_8u_CnIR()
652 sum[2] += img[i*3+2]; in icvFloodFill_Grad_8u_CnIR()
684 float* img = pImage + (step /= sizeof(float))*seed.y; in icvFloodFill_Grad_32f_CnIR() local
711 val0[i] = img[L*cn+i]; in icvFloodFill_Grad_32f_CnIR()
718 while( !mask[R + 1] && DIFF_FLT_C1( img + (R+1), val0 )) in icvFloodFill_Grad_32f_CnIR()
721 while( !mask[L - 1] && DIFF_FLT_C1( img + (L-1), val0 )) in icvFloodFill_Grad_32f_CnIR()
726 while( !mask[R + 1] && DIFF_FLT_C1( img + (R+1), img + R )) in icvFloodFill_Grad_32f_CnIR()
729 while( !mask[L - 1] && DIFF_FLT_C1( img + (L-1), img + L )) in icvFloodFill_Grad_32f_CnIR()
737 while( !mask[R + 1] && DIFF_FLT_C3( img + (R+1)*3, val0 )) in icvFloodFill_Grad_32f_CnIR()
740 while( !mask[L - 1] && DIFF_FLT_C3( img + (L-1)*3, val0 )) in icvFloodFill_Grad_32f_CnIR()
745 while( !mask[R + 1] && DIFF_FLT_C3( img + (R+1)*3, img + R*3 )) in icvFloodFill_Grad_32f_CnIR()
748 while( !mask[L - 1] && DIFF_FLT_C3( img + (L-1)*3, img + L*3 )) in icvFloodFill_Grad_32f_CnIR()
787 img = pImage + (YC + dir) * step; in icvFloodFill_Grad_32f_CnIR()
795 if( !mask[i] && DIFF_FLT_C1( img + i, val0 )) in icvFloodFill_Grad_32f_CnIR()
799 while( !mask[--j] && DIFF_FLT_C1( img + j, val0 )) in icvFloodFill_Grad_32f_CnIR()
802 while( !mask[++i] && DIFF_FLT_C1( img + i, val0 )) in icvFloodFill_Grad_32f_CnIR()
811 if( !mask[i] && DIFF_FLT_C1( img + i, img - curstep + i )) in icvFloodFill_Grad_32f_CnIR()
815 while( !mask[--j] && DIFF_FLT_C1( img + j, img + (j+1) )) in icvFloodFill_Grad_32f_CnIR()
819 (DIFF_FLT_C1( img + i, img + (i-1) ) || in icvFloodFill_Grad_32f_CnIR()
820 (DIFF_FLT_C1( img + i, img + i - curstep) && i <= R))) in icvFloodFill_Grad_32f_CnIR()
833 (((val[0] = img[i], in icvFloodFill_Grad_32f_CnIR()
835 DIFF_FLT_C1( val, img - curstep + (i-1) )) || in icvFloodFill_Grad_32f_CnIR()
837 DIFF_FLT_C1( val, img - curstep + i )) || in icvFloodFill_Grad_32f_CnIR()
839 DIFF_FLT_C1( val, img - curstep + (i+1) )))) in icvFloodFill_Grad_32f_CnIR()
843 while( !mask[--j] && DIFF_FLT_C1( img + j, img + (j+1) )) in icvFloodFill_Grad_32f_CnIR()
847 ((val[0] = img[i], in icvFloodFill_Grad_32f_CnIR()
848 DIFF_FLT_C1( val, img + (i-1) )) || in icvFloodFill_Grad_32f_CnIR()
850 DIFF_FLT_C1( val, img - curstep + (i-1) ))) || in icvFloodFill_Grad_32f_CnIR()
852 DIFF_FLT_C1( val, img - curstep + i )) || in icvFloodFill_Grad_32f_CnIR()
854 DIFF_FLT_C1( val, img - curstep + (i+1) )))) in icvFloodFill_Grad_32f_CnIR()
862 img = pImage + YC * step; in icvFloodFill_Grad_32f_CnIR()
865 img[i] = newVal[0]; in icvFloodFill_Grad_32f_CnIR()
868 sum[0] += img[i]; in icvFloodFill_Grad_32f_CnIR()
876 img = pImage + (YC + dir) * step; in icvFloodFill_Grad_32f_CnIR()
884 if( !mask[i] && DIFF_FLT_C3( img + i*3, val0 )) in icvFloodFill_Grad_32f_CnIR()
888 while( !mask[--j] && DIFF_FLT_C3( img + j*3, val0 )) in icvFloodFill_Grad_32f_CnIR()
891 while( !mask[++i] && DIFF_FLT_C3( img + i*3, val0 )) in icvFloodFill_Grad_32f_CnIR()
900 if( !mask[i] && DIFF_FLT_C3( img + i*3, img - curstep + i*3 )) in icvFloodFill_Grad_32f_CnIR()
904 while( !mask[--j] && DIFF_FLT_C3( img + j*3, img + (j+1)*3 )) in icvFloodFill_Grad_32f_CnIR()
908 (DIFF_FLT_C3( img + i*3, img + (i-1)*3 ) || in icvFloodFill_Grad_32f_CnIR()
909 (DIFF_FLT_C3( img + i*3, img + i*3 - curstep) && i <= R))) in icvFloodFill_Grad_32f_CnIR()
922 (((ICV_SET_C3( val, img+i*3 ), in icvFloodFill_Grad_32f_CnIR()
924 DIFF_FLT_C3( val, img - curstep + (i-1)*3 )) || in icvFloodFill_Grad_32f_CnIR()
926 DIFF_FLT_C3( val, img - curstep + i*3 )) || in icvFloodFill_Grad_32f_CnIR()
928 DIFF_FLT_C3( val, img - curstep + (i+1)*3 )))) in icvFloodFill_Grad_32f_CnIR()
932 while( !mask[--j] && DIFF_FLT_C3( img + j*3, img + (j+1)*3 )) in icvFloodFill_Grad_32f_CnIR()
936 ((ICV_SET_C3( val, img + i*3 ), in icvFloodFill_Grad_32f_CnIR()
937 DIFF_FLT_C3( val, img + (i-1)*3 )) || in icvFloodFill_Grad_32f_CnIR()
939 DIFF_FLT_C3( val, img - curstep + (i-1)*3 ))) || in icvFloodFill_Grad_32f_CnIR()
941 DIFF_FLT_C3( val, img - curstep + i*3 )) || in icvFloodFill_Grad_32f_CnIR()
943 DIFF_FLT_C3( val, img - curstep + (i+1)*3 )))) in icvFloodFill_Grad_32f_CnIR()
951 img = pImage + YC * step; in icvFloodFill_Grad_32f_CnIR()
954 ICV_SET_C3( img + i*3, newVal ); in icvFloodFill_Grad_32f_CnIR()
958 sum[0] += img[i*3]; in icvFloodFill_Grad_32f_CnIR()
959 sum[1] += img[i*3+1]; in icvFloodFill_Grad_32f_CnIR()
960 sum[2] += img[i*3+2]; in icvFloodFill_Grad_32f_CnIR()
991 void* img, int step, CvSize size, CvPoint seed, void* newval,
995 void* img, int step, uchar* mask, int maskStep, CvSize size,
1032 CvMat stub, *img = (CvMat*)arr; in cvFloodFill() local
1042 CV_CALL( img = cvGetMat( img, &stub )); in cvFloodFill()
1043 type = CV_MAT_TYPE( img->type ); in cvFloodFill()
1067 size = cvGetMatSize( img ); in cvFloodFill()
1080 const uchar* seed_ptr = img->data.ptr + img->step*seed_point.y + elem_size*seed_point.x; in cvFloodFill()
1091 IPPI_CALL( func( img->data.ptr, img->step, size, in cvFloodFill()
1149 IPPI_CALL( func( img->data.ptr, img->step, mask->data.ptr, mask->step, in cvFloodFill()