Lines Matching refs:CV_MAT_ELEM
62 #define CV_MAT_3COLOR_ELEM(img,type,y,x,c) CV_MAT_ELEM(img,type,y,(x)*3+(c))
91 num += CV_MAT_ELEM(*f,uchar,i,j)!=0; in Init()
121 if (CV_MAT_ELEM(*f,uchar,i,j)!=0) { in Add()
213 a11=CV_MAT_ELEM(*t,float,i1,j1); in FastMarching_solve()
214 a22=CV_MAT_ELEM(*t,float,i2,j2); in FastMarching_solve()
217 if( CV_MAT_ELEM(*f,uchar,i1,j1) != INSIDE ) in FastMarching_solve()
218 if( CV_MAT_ELEM(*f,uchar,i2,j2) != INSIDE ) in FastMarching_solve()
225 else if( CV_MAT_ELEM(*f,uchar,i2,j2) != INSIDE ) in FastMarching_solve()
244 CV_MAT_ELEM(*f,uchar,ii,jj) = (uchar)known; in icvCalcFMM()
254 if (CV_MAT_ELEM(*f,uchar,i,j)==INSIDE) { in icvCalcFMM()
259 CV_MAT_ELEM(*t,float,i,j) = dist; in icvCalcFMM()
260 CV_MAT_ELEM(*f,uchar,i,j) = BAND; in icvCalcFMM()
269 if (CV_MAT_ELEM(*f,uchar,i,j) == CHANGE) { in icvCalcFMM()
270 CV_MAT_ELEM(*f,uchar,i,j) = KNOWN; in icvCalcFMM()
271 CV_MAT_ELEM(*t,float,i,j) = -CV_MAT_ELEM(*t,float,i,j); in icvCalcFMM()
288 CV_MAT_ELEM(*f,uchar,ii,jj) = KNOWN; in icvTeleaInpaintFMM()
296 if (CV_MAT_ELEM(*f,uchar,i,j)==INSIDE) { in icvTeleaInpaintFMM()
301 CV_MAT_ELEM(*t,float,i,j) = dist; in icvTeleaInpaintFMM()
307 if (CV_MAT_ELEM(*f,uchar,i,j+1)!=INSIDE) { in icvTeleaInpaintFMM()
308 if (CV_MAT_ELEM(*f,uchar,i,j-1)!=INSIDE) { in icvTeleaInpaintFMM()
309 … gradT.x=(float)((CV_MAT_ELEM(*t,float,i,j+1)-CV_MAT_ELEM(*t,float,i,j-1)))*0.5f; in icvTeleaInpaintFMM()
311 gradT.x=(float)((CV_MAT_ELEM(*t,float,i,j+1)-CV_MAT_ELEM(*t,float,i,j))); in icvTeleaInpaintFMM()
314 if (CV_MAT_ELEM(*f,uchar,i,j-1)!=INSIDE) { in icvTeleaInpaintFMM()
315 gradT.x=(float)((CV_MAT_ELEM(*t,float,i,j)-CV_MAT_ELEM(*t,float,i,j-1))); in icvTeleaInpaintFMM()
320 if (CV_MAT_ELEM(*f,uchar,i+1,j)!=INSIDE) { in icvTeleaInpaintFMM()
321 if (CV_MAT_ELEM(*f,uchar,i-1,j)!=INSIDE) { in icvTeleaInpaintFMM()
322 … gradT.y=(float)((CV_MAT_ELEM(*t,float,i+1,j)-CV_MAT_ELEM(*t,float,i-1,j)))*0.5f; in icvTeleaInpaintFMM()
324 gradT.y=(float)((CV_MAT_ELEM(*t,float,i+1,j)-CV_MAT_ELEM(*t,float,i,j))); in icvTeleaInpaintFMM()
327 if (CV_MAT_ELEM(*f,uchar,i-1,j)!=INSIDE) { in icvTeleaInpaintFMM()
328 gradT.y=(float)((CV_MAT_ELEM(*t,float,i,j)-CV_MAT_ELEM(*t,float,i-1,j))); in icvTeleaInpaintFMM()
338 if ((CV_MAT_ELEM(*f,uchar,k,l)!=INSIDE)&& in icvTeleaInpaintFMM()
344 … lev = (float)(1./(1+fabs(CV_MAT_ELEM(*t,float,k,l)-CV_MAT_ELEM(*t,float,i,j)))); in icvTeleaInpaintFMM()
350 if (CV_MAT_ELEM(*f,uchar,k,l+1)!=INSIDE) { in icvTeleaInpaintFMM()
351 if (CV_MAT_ELEM(*f,uchar,k,l-1)!=INSIDE) { in icvTeleaInpaintFMM()
357 if (CV_MAT_ELEM(*f,uchar,k,l-1)!=INSIDE) { in icvTeleaInpaintFMM()
363 if (CV_MAT_ELEM(*f,uchar,k+1,l)!=INSIDE) { in icvTeleaInpaintFMM()
364 if (CV_MAT_ELEM(*f,uchar,k-1,l)!=INSIDE) { in icvTeleaInpaintFMM()
370 if (CV_MAT_ELEM(*f,uchar,k-1,l)!=INSIDE) { in icvTeleaInpaintFMM()
391 CV_MAT_ELEM(*f,uchar,i,j) = BAND; in icvTeleaInpaintFMM()
401 CV_MAT_ELEM(*f,uchar,ii,jj) = KNOWN; in icvTeleaInpaintFMM()
409 if (CV_MAT_ELEM(*f,uchar,i,j)==INSIDE) { in icvTeleaInpaintFMM()
414 CV_MAT_ELEM(*t,float,i,j) = dist; in icvTeleaInpaintFMM()
420 if (CV_MAT_ELEM(*f,uchar,i,j+1)!=INSIDE) { in icvTeleaInpaintFMM()
421 if (CV_MAT_ELEM(*f,uchar,i,j-1)!=INSIDE) { in icvTeleaInpaintFMM()
422 … gradT.x=(float)((CV_MAT_ELEM(*t,float,i,j+1)-CV_MAT_ELEM(*t,float,i,j-1)))*0.5f; in icvTeleaInpaintFMM()
424 gradT.x=(float)((CV_MAT_ELEM(*t,float,i,j+1)-CV_MAT_ELEM(*t,float,i,j))); in icvTeleaInpaintFMM()
427 if (CV_MAT_ELEM(*f,uchar,i,j-1)!=INSIDE) { in icvTeleaInpaintFMM()
428 gradT.x=(float)((CV_MAT_ELEM(*t,float,i,j)-CV_MAT_ELEM(*t,float,i,j-1))); in icvTeleaInpaintFMM()
433 if (CV_MAT_ELEM(*f,uchar,i+1,j)!=INSIDE) { in icvTeleaInpaintFMM()
434 if (CV_MAT_ELEM(*f,uchar,i-1,j)!=INSIDE) { in icvTeleaInpaintFMM()
435 … gradT.y=(float)((CV_MAT_ELEM(*t,float,i+1,j)-CV_MAT_ELEM(*t,float,i-1,j)))*0.5f; in icvTeleaInpaintFMM()
437 gradT.y=(float)((CV_MAT_ELEM(*t,float,i+1,j)-CV_MAT_ELEM(*t,float,i,j))); in icvTeleaInpaintFMM()
440 if (CV_MAT_ELEM(*f,uchar,i-1,j)!=INSIDE) { in icvTeleaInpaintFMM()
441 gradT.y=(float)((CV_MAT_ELEM(*t,float,i,j)-CV_MAT_ELEM(*t,float,i-1,j))); in icvTeleaInpaintFMM()
451 if ((CV_MAT_ELEM(*f,uchar,k,l)!=INSIDE)&& in icvTeleaInpaintFMM()
457 … lev = (float)(1./(1+fabs(CV_MAT_ELEM(*t,float,k,l)-CV_MAT_ELEM(*t,float,i,j)))); in icvTeleaInpaintFMM()
463 if (CV_MAT_ELEM(*f,uchar,k,l+1)!=INSIDE) { in icvTeleaInpaintFMM()
464 if (CV_MAT_ELEM(*f,uchar,k,l-1)!=INSIDE) { in icvTeleaInpaintFMM()
465 … gradI.x=(float)((CV_MAT_ELEM(*out,uchar,km,lp+1)-CV_MAT_ELEM(*out,uchar,km,lm-1)))*2.0f; in icvTeleaInpaintFMM()
467 … gradI.x=(float)((CV_MAT_ELEM(*out,uchar,km,lp+1)-CV_MAT_ELEM(*out,uchar,km,lm))); in icvTeleaInpaintFMM()
470 if (CV_MAT_ELEM(*f,uchar,k,l-1)!=INSIDE) { in icvTeleaInpaintFMM()
471 … gradI.x=(float)((CV_MAT_ELEM(*out,uchar,km,lp)-CV_MAT_ELEM(*out,uchar,km,lm-1))); in icvTeleaInpaintFMM()
476 if (CV_MAT_ELEM(*f,uchar,k+1,l)!=INSIDE) { in icvTeleaInpaintFMM()
477 if (CV_MAT_ELEM(*f,uchar,k-1,l)!=INSIDE) { in icvTeleaInpaintFMM()
478 … gradI.y=(float)((CV_MAT_ELEM(*out,uchar,kp+1,lm)-CV_MAT_ELEM(*out,uchar,km-1,lm)))*2.0f; in icvTeleaInpaintFMM()
480 … gradI.y=(float)((CV_MAT_ELEM(*out,uchar,kp+1,lm)-CV_MAT_ELEM(*out,uchar,km,lm))); in icvTeleaInpaintFMM()
483 if (CV_MAT_ELEM(*f,uchar,k-1,l)!=INSIDE) { in icvTeleaInpaintFMM()
484 … gradI.y=(float)((CV_MAT_ELEM(*out,uchar,kp,lm)-CV_MAT_ELEM(*out,uchar,km-1,lm))); in icvTeleaInpaintFMM()
489 Ia += (float)w * (float)(CV_MAT_ELEM(*out,uchar,km,lm)); in icvTeleaInpaintFMM()
500 CV_MAT_ELEM(*out,uchar,i-1,j-1) = CV_CAST_8U(isat); in icvTeleaInpaintFMM()
504 CV_MAT_ELEM(*f,uchar,i,j) = BAND; in icvTeleaInpaintFMM()
522 CV_MAT_ELEM(*f,uchar,ii,jj) = KNOWN; in icvNSInpaintFMM()
530 if (CV_MAT_ELEM(*f,uchar,i,j)==INSIDE) { in icvNSInpaintFMM()
535 CV_MAT_ELEM(*t,float,i,j) = dist; in icvNSInpaintFMM()
546 if ((CV_MAT_ELEM(*f,uchar,k,l)!=INSIDE)&& in icvNSInpaintFMM()
553 if (CV_MAT_ELEM(*f,uchar,k+1,l)!=INSIDE) { in icvNSInpaintFMM()
554 if (CV_MAT_ELEM(*f,uchar,k-1,l)!=INSIDE) { in icvNSInpaintFMM()
561 if (CV_MAT_ELEM(*f,uchar,k-1,l)!=INSIDE) { in icvNSInpaintFMM()
567 if (CV_MAT_ELEM(*f,uchar,k,l+1)!=INSIDE) { in icvNSInpaintFMM()
568 if (CV_MAT_ELEM(*f,uchar,k,l-1)!=INSIDE) { in icvNSInpaintFMM()
575 if (CV_MAT_ELEM(*f,uchar,k,l-1)!=INSIDE) { in icvNSInpaintFMM()
603 CV_MAT_ELEM(*f,uchar,i,j) = BAND; in icvNSInpaintFMM()
613 CV_MAT_ELEM(*f,uchar,ii,jj) = KNOWN; in icvNSInpaintFMM()
621 if (CV_MAT_ELEM(*f,uchar,i,j)==INSIDE) { in icvNSInpaintFMM()
626 CV_MAT_ELEM(*t,float,i,j) = dist; in icvNSInpaintFMM()
637 if ((CV_MAT_ELEM(*f,uchar,k,l)!=INSIDE)&& in icvNSInpaintFMM()
644 if (CV_MAT_ELEM(*f,uchar,k+1,l)!=INSIDE) { in icvNSInpaintFMM()
645 if (CV_MAT_ELEM(*f,uchar,k-1,l)!=INSIDE) { in icvNSInpaintFMM()
646 … gradI.x=(float)(abs(CV_MAT_ELEM(*out,uchar,kp+1,lm)-CV_MAT_ELEM(*out,uchar,kp,lm))+ in icvNSInpaintFMM()
647 … abs(CV_MAT_ELEM(*out,uchar,kp,lm)-CV_MAT_ELEM(*out,uchar,km-1,lm))); in icvNSInpaintFMM()
649 … gradI.x=(float)(abs(CV_MAT_ELEM(*out,uchar,kp+1,lm)-CV_MAT_ELEM(*out,uchar,kp,lm)))*2.0f; in icvNSInpaintFMM()
652 if (CV_MAT_ELEM(*f,uchar,k-1,l)!=INSIDE) { in icvNSInpaintFMM()
653 … gradI.x=(float)(abs(CV_MAT_ELEM(*out,uchar,kp,lm)-CV_MAT_ELEM(*out,uchar,km-1,lm)))*2.0f; in icvNSInpaintFMM()
658 if (CV_MAT_ELEM(*f,uchar,k,l+1)!=INSIDE) { in icvNSInpaintFMM()
659 if (CV_MAT_ELEM(*f,uchar,k,l-1)!=INSIDE) { in icvNSInpaintFMM()
660 … gradI.y=(float)(abs(CV_MAT_ELEM(*out,uchar,km,lp+1)-CV_MAT_ELEM(*out,uchar,km,lm))+ in icvNSInpaintFMM()
661 … abs(CV_MAT_ELEM(*out,uchar,km,lm)-CV_MAT_ELEM(*out,uchar,km,lm-1))); in icvNSInpaintFMM()
663 … gradI.y=(float)(abs(CV_MAT_ELEM(*out,uchar,km,lp+1)-CV_MAT_ELEM(*out,uchar,km,lm)))*2.0f; in icvNSInpaintFMM()
666 if (CV_MAT_ELEM(*f,uchar,k,l-1)!=INSIDE) { in icvNSInpaintFMM()
667 … gradI.y=(float)(abs(CV_MAT_ELEM(*out,uchar,km,lm)-CV_MAT_ELEM(*out,uchar,km,lm-1)))*2.0f; in icvNSInpaintFMM()
682 Ia += (float)w * (float)(CV_MAT_ELEM(*out,uchar,km,lm)); in icvNSInpaintFMM()
690 CV_MAT_ELEM(*out,uchar,i-1,j-1) = CV_CAST_8U(out_val); in icvNSInpaintFMM()
694 CV_MAT_ELEM(*f,uchar,i,j) = BAND; in icvNSInpaintFMM()
706 CV_MAT_ELEM(*image,type,0,j) = value;\
709 CV_MAT_ELEM(*image,type,i,0) = CV_MAT_ELEM(*image,type,i,image->cols-1) = value;\
712 CV_MAT_ELEM(*image,type,erows-1,j) = value;\
720 if (CV_MAT_ELEM(*src,type,i,j)!=0)\
721 CV_MAT_ELEM(*dst,type,i+1,j+1) = INSIDE;\