Lines Matching refs:CV_MAT_ELEM
64 #define CV_MAT_3COLOR_ELEM(img,type,y,x,c) CV_MAT_ELEM(img,type,y,(x)*3+(c))
93 num += CV_MAT_ELEM(*f,uchar,i,j)!=0; in Init()
123 if (CV_MAT_ELEM(*f,uchar,i,j)!=0) { in Add()
215 a11=CV_MAT_ELEM(*t,float,i1,j1); in FastMarching_solve()
216 a22=CV_MAT_ELEM(*t,float,i2,j2); in FastMarching_solve()
219 if( CV_MAT_ELEM(*f,uchar,i1,j1) != INSIDE ) in FastMarching_solve()
220 if( CV_MAT_ELEM(*f,uchar,i2,j2) != INSIDE ) in FastMarching_solve()
227 else if( CV_MAT_ELEM(*f,uchar,i2,j2) != INSIDE ) in FastMarching_solve()
246 CV_MAT_ELEM(*f,uchar,ii,jj) = (uchar)known; in icvCalcFMM()
256 if (CV_MAT_ELEM(*f,uchar,i,j)==INSIDE) { in icvCalcFMM()
261 CV_MAT_ELEM(*t,float,i,j) = dist; in icvCalcFMM()
262 CV_MAT_ELEM(*f,uchar,i,j) = BAND; in icvCalcFMM()
271 if (CV_MAT_ELEM(*f,uchar,i,j) == CHANGE) { in icvCalcFMM()
272 CV_MAT_ELEM(*f,uchar,i,j) = KNOWN; in icvCalcFMM()
273 CV_MAT_ELEM(*t,float,i,j) = -CV_MAT_ELEM(*t,float,i,j); in icvCalcFMM()
290 CV_MAT_ELEM(*f,uchar,ii,jj) = KNOWN; in icvTeleaInpaintFMM()
298 if (CV_MAT_ELEM(*f,uchar,i,j)==INSIDE) { in icvTeleaInpaintFMM()
303 CV_MAT_ELEM(*t,float,i,j) = dist; in icvTeleaInpaintFMM()
309 if (CV_MAT_ELEM(*f,uchar,i,j+1)!=INSIDE) { in icvTeleaInpaintFMM()
310 if (CV_MAT_ELEM(*f,uchar,i,j-1)!=INSIDE) { in icvTeleaInpaintFMM()
311 … gradT.x=(float)((CV_MAT_ELEM(*t,float,i,j+1)-CV_MAT_ELEM(*t,float,i,j-1)))*0.5f; in icvTeleaInpaintFMM()
313 gradT.x=(float)((CV_MAT_ELEM(*t,float,i,j+1)-CV_MAT_ELEM(*t,float,i,j))); in icvTeleaInpaintFMM()
316 if (CV_MAT_ELEM(*f,uchar,i,j-1)!=INSIDE) { in icvTeleaInpaintFMM()
317 gradT.x=(float)((CV_MAT_ELEM(*t,float,i,j)-CV_MAT_ELEM(*t,float,i,j-1))); in icvTeleaInpaintFMM()
322 if (CV_MAT_ELEM(*f,uchar,i+1,j)!=INSIDE) { in icvTeleaInpaintFMM()
323 if (CV_MAT_ELEM(*f,uchar,i-1,j)!=INSIDE) { in icvTeleaInpaintFMM()
324 … gradT.y=(float)((CV_MAT_ELEM(*t,float,i+1,j)-CV_MAT_ELEM(*t,float,i-1,j)))*0.5f; in icvTeleaInpaintFMM()
326 gradT.y=(float)((CV_MAT_ELEM(*t,float,i+1,j)-CV_MAT_ELEM(*t,float,i,j))); in icvTeleaInpaintFMM()
329 if (CV_MAT_ELEM(*f,uchar,i-1,j)!=INSIDE) { in icvTeleaInpaintFMM()
330 gradT.y=(float)((CV_MAT_ELEM(*t,float,i,j)-CV_MAT_ELEM(*t,float,i-1,j))); in icvTeleaInpaintFMM()
340 if ((CV_MAT_ELEM(*f,uchar,k,l)!=INSIDE)&& in icvTeleaInpaintFMM()
346 … lev = (float)(1./(1+fabs(CV_MAT_ELEM(*t,float,k,l)-CV_MAT_ELEM(*t,float,i,j)))); in icvTeleaInpaintFMM()
352 if (CV_MAT_ELEM(*f,uchar,k,l+1)!=INSIDE) { in icvTeleaInpaintFMM()
353 if (CV_MAT_ELEM(*f,uchar,k,l-1)!=INSIDE) { in icvTeleaInpaintFMM()
359 if (CV_MAT_ELEM(*f,uchar,k,l-1)!=INSIDE) { in icvTeleaInpaintFMM()
365 if (CV_MAT_ELEM(*f,uchar,k+1,l)!=INSIDE) { in icvTeleaInpaintFMM()
366 if (CV_MAT_ELEM(*f,uchar,k-1,l)!=INSIDE) { in icvTeleaInpaintFMM()
372 if (CV_MAT_ELEM(*f,uchar,k-1,l)!=INSIDE) { in icvTeleaInpaintFMM()
392 CV_MAT_ELEM(*f,uchar,i,j) = BAND; in icvTeleaInpaintFMM()
402 CV_MAT_ELEM(*f,uchar,ii,jj) = KNOWN; in icvTeleaInpaintFMM()
410 if (CV_MAT_ELEM(*f,uchar,i,j)==INSIDE) { in icvTeleaInpaintFMM()
415 CV_MAT_ELEM(*t,float,i,j) = dist; in icvTeleaInpaintFMM()
421 if (CV_MAT_ELEM(*f,uchar,i,j+1)!=INSIDE) { in icvTeleaInpaintFMM()
422 if (CV_MAT_ELEM(*f,uchar,i,j-1)!=INSIDE) { in icvTeleaInpaintFMM()
423 … gradT.x=(float)((CV_MAT_ELEM(*t,float,i,j+1)-CV_MAT_ELEM(*t,float,i,j-1)))*0.5f; in icvTeleaInpaintFMM()
425 gradT.x=(float)((CV_MAT_ELEM(*t,float,i,j+1)-CV_MAT_ELEM(*t,float,i,j))); in icvTeleaInpaintFMM()
428 if (CV_MAT_ELEM(*f,uchar,i,j-1)!=INSIDE) { in icvTeleaInpaintFMM()
429 gradT.x=(float)((CV_MAT_ELEM(*t,float,i,j)-CV_MAT_ELEM(*t,float,i,j-1))); in icvTeleaInpaintFMM()
434 if (CV_MAT_ELEM(*f,uchar,i+1,j)!=INSIDE) { in icvTeleaInpaintFMM()
435 if (CV_MAT_ELEM(*f,uchar,i-1,j)!=INSIDE) { in icvTeleaInpaintFMM()
436 … gradT.y=(float)((CV_MAT_ELEM(*t,float,i+1,j)-CV_MAT_ELEM(*t,float,i-1,j)))*0.5f; in icvTeleaInpaintFMM()
438 gradT.y=(float)((CV_MAT_ELEM(*t,float,i+1,j)-CV_MAT_ELEM(*t,float,i,j))); in icvTeleaInpaintFMM()
441 if (CV_MAT_ELEM(*f,uchar,i-1,j)!=INSIDE) { in icvTeleaInpaintFMM()
442 gradT.y=(float)((CV_MAT_ELEM(*t,float,i,j)-CV_MAT_ELEM(*t,float,i-1,j))); in icvTeleaInpaintFMM()
452 if ((CV_MAT_ELEM(*f,uchar,k,l)!=INSIDE)&& in icvTeleaInpaintFMM()
458 … lev = (float)(1./(1+fabs(CV_MAT_ELEM(*t,float,k,l)-CV_MAT_ELEM(*t,float,i,j)))); in icvTeleaInpaintFMM()
464 if (CV_MAT_ELEM(*f,uchar,k,l+1)!=INSIDE) { in icvTeleaInpaintFMM()
465 if (CV_MAT_ELEM(*f,uchar,k,l-1)!=INSIDE) { in icvTeleaInpaintFMM()
466 … gradI.x=(float)((CV_MAT_ELEM(*out,uchar,km,lp+1)-CV_MAT_ELEM(*out,uchar,km,lm-1)))*2.0f; in icvTeleaInpaintFMM()
468 … gradI.x=(float)((CV_MAT_ELEM(*out,uchar,km,lp+1)-CV_MAT_ELEM(*out,uchar,km,lm))); in icvTeleaInpaintFMM()
471 if (CV_MAT_ELEM(*f,uchar,k,l-1)!=INSIDE) { in icvTeleaInpaintFMM()
472 … gradI.x=(float)((CV_MAT_ELEM(*out,uchar,km,lp)-CV_MAT_ELEM(*out,uchar,km,lm-1))); in icvTeleaInpaintFMM()
477 if (CV_MAT_ELEM(*f,uchar,k+1,l)!=INSIDE) { in icvTeleaInpaintFMM()
478 if (CV_MAT_ELEM(*f,uchar,k-1,l)!=INSIDE) { in icvTeleaInpaintFMM()
479 … gradI.y=(float)((CV_MAT_ELEM(*out,uchar,kp+1,lm)-CV_MAT_ELEM(*out,uchar,km-1,lm)))*2.0f; in icvTeleaInpaintFMM()
481 … gradI.y=(float)((CV_MAT_ELEM(*out,uchar,kp+1,lm)-CV_MAT_ELEM(*out,uchar,km,lm))); in icvTeleaInpaintFMM()
484 if (CV_MAT_ELEM(*f,uchar,k-1,l)!=INSIDE) { in icvTeleaInpaintFMM()
485 … gradI.y=(float)((CV_MAT_ELEM(*out,uchar,kp,lm)-CV_MAT_ELEM(*out,uchar,km-1,lm))); in icvTeleaInpaintFMM()
490 Ia += (float)w * (float)(CV_MAT_ELEM(*out,uchar,km,lm)); in icvTeleaInpaintFMM()
500 CV_MAT_ELEM(*out,uchar,i-1,j-1) = cv::saturate_cast<uchar>(sat); 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()
600 CV_MAT_ELEM(*f,uchar,i,j) = BAND; in icvNSInpaintFMM()
610 CV_MAT_ELEM(*f,uchar,ii,jj) = KNOWN; in icvNSInpaintFMM()
618 if (CV_MAT_ELEM(*f,uchar,i,j)==INSIDE) { in icvNSInpaintFMM()
623 CV_MAT_ELEM(*t,float,i,j) = dist; in icvNSInpaintFMM()
634 if ((CV_MAT_ELEM(*f,uchar,k,l)!=INSIDE)&& in icvNSInpaintFMM()
641 if (CV_MAT_ELEM(*f,uchar,k+1,l)!=INSIDE) { in icvNSInpaintFMM()
642 if (CV_MAT_ELEM(*f,uchar,k-1,l)!=INSIDE) { in icvNSInpaintFMM()
643 … gradI.x=(float)(abs(CV_MAT_ELEM(*out,uchar,kp+1,lm)-CV_MAT_ELEM(*out,uchar,kp,lm))+ in icvNSInpaintFMM()
644 … abs(CV_MAT_ELEM(*out,uchar,kp,lm)-CV_MAT_ELEM(*out,uchar,km-1,lm))); in icvNSInpaintFMM()
646 … gradI.x=(float)(abs(CV_MAT_ELEM(*out,uchar,kp+1,lm)-CV_MAT_ELEM(*out,uchar,kp,lm)))*2.0f; in icvNSInpaintFMM()
649 if (CV_MAT_ELEM(*f,uchar,k-1,l)!=INSIDE) { in icvNSInpaintFMM()
650 … gradI.x=(float)(abs(CV_MAT_ELEM(*out,uchar,kp,lm)-CV_MAT_ELEM(*out,uchar,km-1,lm)))*2.0f; in icvNSInpaintFMM()
655 if (CV_MAT_ELEM(*f,uchar,k,l+1)!=INSIDE) { in icvNSInpaintFMM()
656 if (CV_MAT_ELEM(*f,uchar,k,l-1)!=INSIDE) { in icvNSInpaintFMM()
657 … gradI.y=(float)(abs(CV_MAT_ELEM(*out,uchar,km,lp+1)-CV_MAT_ELEM(*out,uchar,km,lm))+ in icvNSInpaintFMM()
658 … abs(CV_MAT_ELEM(*out,uchar,km,lm)-CV_MAT_ELEM(*out,uchar,km,lm-1))); in icvNSInpaintFMM()
660 … gradI.y=(float)(abs(CV_MAT_ELEM(*out,uchar,km,lp+1)-CV_MAT_ELEM(*out,uchar,km,lm)))*2.0f; in icvNSInpaintFMM()
663 if (CV_MAT_ELEM(*f,uchar,k,l-1)!=INSIDE) { in icvNSInpaintFMM()
664 … gradI.y=(float)(abs(CV_MAT_ELEM(*out,uchar,km,lm)-CV_MAT_ELEM(*out,uchar,km,lm-1)))*2.0f; in icvNSInpaintFMM()
679 Ia += (float)w * (float)(CV_MAT_ELEM(*out,uchar,km,lm)); in icvNSInpaintFMM()
685 CV_MAT_ELEM(*out,uchar,i-1,j-1) = cv::saturate_cast<uchar>((double)Ia/s); in icvNSInpaintFMM()
688 CV_MAT_ELEM(*f,uchar,i,j) = BAND; in icvNSInpaintFMM()
700 CV_MAT_ELEM(*image,type,0,j) = value;\
703 CV_MAT_ELEM(*image,type,i,0) = CV_MAT_ELEM(*image,type,i,image->cols-1) = value;\
706 CV_MAT_ELEM(*image,type,erows-1,j) = value;\
714 if (CV_MAT_ELEM(*src,type,i,j)!=0)\
715 CV_MAT_ELEM(*dst,type,i+1,j+1) = INSIDE;\