k 935 3rdparty/libjasper/jas_cm.c int k; k 963 3rdparty/libjasper/jas_cm.c for (k = j + 1; k < lut->size; ++k) { k 964 3rdparty/libjasper/jas_cm.c by = lut->data[k]; k 971 3rdparty/libjasper/jas_cm.c if (k < lut->size) { k 972 3rdparty/libjasper/jas_cm.c --k; k 974 3rdparty/libjasper/jas_cm.c bx = ((double) k) / (lut->size - 1); k 411 3rdparty/libjasper/jas_image.c int k; k 445 3rdparty/libjasper/jas_image.c for (k = cmpt->cps_; k > 0; --k) { k 468 3rdparty/libjasper/jas_image.c int k; k 496 3rdparty/libjasper/jas_image.c for (k = cmpt->cps_; k > 0; --k) { k 891 3rdparty/libjasper/jas_image.c int k; k 901 3rdparty/libjasper/jas_image.c for (k = cmpt->cps_; k > 0; --k) { k 915 3rdparty/libjasper/jas_image.c int k; k 925 3rdparty/libjasper/jas_image.c for (k = cmpt->cps_; k > 0; --k) { k 1277 3rdparty/libjasper/jas_image.c int k; k 1414 3rdparty/libjasper/jas_image.c k = jas_image_getcmptbytype(inimage, JAS_IMAGE_CT_COLOR(j)); k 1415 3rdparty/libjasper/jas_image.c if (jas_image_readcmpt2(inimage, k, 0, i, width, 1, incmptfmts[j].buf)) k 1420 3rdparty/libjasper/jas_image.c k = jas_image_getcmptbytype(outimage, JAS_IMAGE_CT_COLOR(j)); k 1421 3rdparty/libjasper/jas_image.c if (jas_image_writecmpt2(outimage, k, 0, i, width, 1, outcmptfmts[j].buf)) k 340 3rdparty/libjasper/jpc_mqenc.c int_fast16_t k; k 344 3rdparty/libjasper/jpc_mqenc.c k = 11 - mqenc->ctreg + 1; k 345 3rdparty/libjasper/jpc_mqenc.c while (k > 0) { k 350 3rdparty/libjasper/jpc_mqenc.c k -= mqenc->ctreg; k 382 3rdparty/libjasper/jpc_t1dec.c int k; k 408 3rdparty/libjasper/jpc_t1dec.c k = vscanlen; k 413 3rdparty/libjasper/jpc_t1dec.c if (--k <= 0) { k 422 3rdparty/libjasper/jpc_t1dec.c if (--k <= 0) { k 431 3rdparty/libjasper/jpc_t1dec.c if (--k <= 0) { k 472 3rdparty/libjasper/jpc_t1dec.c int k; k 514 3rdparty/libjasper/jpc_t1dec.c k = vscanlen; k 519 3rdparty/libjasper/jpc_t1dec.c if (--k <= 0) { k 528 3rdparty/libjasper/jpc_t1dec.c if (--k <= 0) { k 537 3rdparty/libjasper/jpc_t1dec.c if (--k <= 0) { k 590 3rdparty/libjasper/jpc_t1dec.c int k; k 617 3rdparty/libjasper/jpc_t1dec.c k = vscanlen; k 622 3rdparty/libjasper/jpc_t1dec.c if (--k <= 0) { k 630 3rdparty/libjasper/jpc_t1dec.c if (--k <= 0) { k 638 3rdparty/libjasper/jpc_t1dec.c if (--k <= 0) { k 672 3rdparty/libjasper/jpc_t1dec.c int k; k 715 3rdparty/libjasper/jpc_t1dec.c k = vscanlen; k 720 3rdparty/libjasper/jpc_t1dec.c if (--k <= 0) { k 728 3rdparty/libjasper/jpc_t1dec.c if (--k <= 0) { k 736 3rdparty/libjasper/jpc_t1dec.c if (--k <= 0) { k 780 3rdparty/libjasper/jpc_t1dec.c int k; k 845 3rdparty/libjasper/jpc_t1dec.c k = vscanlen - runlen; k 863 3rdparty/libjasper/jpc_t1dec.c k = vscanlen; k 871 3rdparty/libjasper/jpc_t1dec.c if (--k <= 0) { k 881 3rdparty/libjasper/jpc_t1dec.c if (--k <= 0) { k 891 3rdparty/libjasper/jpc_t1dec.c if (--k <= 0) { k 448 3rdparty/libjasper/jpc_t1enc.c int k; k 470 3rdparty/libjasper/jpc_t1enc.c k = vscanlen; k 474 3rdparty/libjasper/jpc_t1enc.c if (--k <= 0) { k 481 3rdparty/libjasper/jpc_t1enc.c if (--k <= 0) { k 488 3rdparty/libjasper/jpc_t1enc.c if (--k <= 0) { k 533 3rdparty/libjasper/jpc_t1enc.c int k; k 569 3rdparty/libjasper/jpc_t1enc.c k = vscanlen; k 573 3rdparty/libjasper/jpc_t1enc.c if (--k <= 0) { k 581 3rdparty/libjasper/jpc_t1enc.c if (--k <= 0) { k 589 3rdparty/libjasper/jpc_t1enc.c if (--k <= 0) { k 597 3rdparty/libjasper/jpc_t1enc.c if (--k <= 0) { k 650 3rdparty/libjasper/jpc_t1enc.c int k; k 672 3rdparty/libjasper/jpc_t1enc.c k = vscanlen; k 676 3rdparty/libjasper/jpc_t1enc.c if (--k <= 0) { k 683 3rdparty/libjasper/jpc_t1enc.c if (--k <= 0) { k 690 3rdparty/libjasper/jpc_t1enc.c if (--k <= 0) { k 728 3rdparty/libjasper/jpc_t1enc.c int k; k 764 3rdparty/libjasper/jpc_t1enc.c k = vscanlen; k 768 3rdparty/libjasper/jpc_t1enc.c if (--k <= 0) { k 775 3rdparty/libjasper/jpc_t1enc.c if (--k <= 0) { k 782 3rdparty/libjasper/jpc_t1enc.c if (--k <= 0) { k 834 3rdparty/libjasper/jpc_t1enc.c int k; k 878 3rdparty/libjasper/jpc_t1enc.c for (k = 0; k < vscanlen; ++k) { k 885 3rdparty/libjasper/jpc_t1enc.c runlen = k; k 898 3rdparty/libjasper/jpc_t1enc.c k = vscanlen - runlen; k 917 3rdparty/libjasper/jpc_t1enc.c k = vscanlen; k 922 3rdparty/libjasper/jpc_t1enc.c if (--k <= 0) { k 929 3rdparty/libjasper/jpc_t1enc.c if (--k <= 0) { k 936 3rdparty/libjasper/jpc_t1enc.c if (--k <= 0) { k 105 3rdparty/libjasper/jpc_tagtree.c int k; k 140 3rdparty/libjasper/jpc_tagtree.c k = nplh[i]; k 141 3rdparty/libjasper/jpc_tagtree.c while (--k >= 0) { k 144 3rdparty/libjasper/jpc_tagtree.c if (--k >= 0) { k 171 3rdparty/libjasper/jpc_util.c int k; k 182 3rdparty/libjasper/jpc_util.c k = i - j; k 183 3rdparty/libjasper/jpc_util.c if (k < jas_seq_start(x) || k >= jas_seq_end(x)) { k 186 3rdparty/libjasper/jpc_util.c v = jas_seq_get(x, k); k 458 3rdparty/libjpeg/jcarith.c int tbl, k, ke; k 497 3rdparty/libjpeg/jcarith.c for (k = cinfo->Ss - 1; k < ke;) { k 498 3rdparty/libjpeg/jcarith.c st = entropy->ac_stats[tbl] + 3 * k; k 501 3rdparty/libjpeg/jcarith.c if ((v = (*block)[natural_order[++k]]) >= 0) { k 529 3rdparty/libjpeg/jcarith.c (k <= cinfo->arith_ac_K[tbl] ? 189 : 217); k 544 3rdparty/libjpeg/jcarith.c if (k < cinfo->Se) { k 545 3rdparty/libjpeg/jcarith.c st = entropy->ac_stats[tbl] + 3 * k; k 598 3rdparty/libjpeg/jcarith.c int tbl, k, ke, kex; k 646 3rdparty/libjpeg/jcarith.c for (k = cinfo->Ss - 1; k < ke;) { k 647 3rdparty/libjpeg/jcarith.c st = entropy->ac_stats[tbl] + 3 * k; k 648 3rdparty/libjpeg/jcarith.c if (k >= kex) k 651 3rdparty/libjpeg/jcarith.c if ((v = (*block)[natural_order[++k]]) >= 0) { k 678 3rdparty/libjpeg/jcarith.c if (k < cinfo->Se) { k 679 3rdparty/libjpeg/jcarith.c st = entropy->ac_stats[tbl] + 3 * k; k 698 3rdparty/libjpeg/jcarith.c int blkn, ci, tbl, k, ke; k 783 3rdparty/libjpeg/jcarith.c for (k = 0; k < ke;) { k 784 3rdparty/libjpeg/jcarith.c st = entropy->ac_stats[tbl] + 3 * k; k 786 3rdparty/libjpeg/jcarith.c while ((v = (*block)[natural_order[++k]]) == 0) { k 810 3rdparty/libjpeg/jcarith.c (k <= cinfo->arith_ac_K[tbl] ? 189 : 217); k 825 3rdparty/libjpeg/jcarith.c if (k < cinfo->lim_Se) { k 826 3rdparty/libjpeg/jcarith.c st = entropy->ac_stats[tbl] + 3 * k; k 633 3rdparty/libjpeg/jchuff.c register int r, k; k 657 3rdparty/libjpeg/jchuff.c for (k = cinfo->Ss; k <= Se; k++) { k 658 3rdparty/libjpeg/jchuff.c if ((temp = (*block)[natural_order[k]]) == 0) { k 790 3rdparty/libjpeg/jchuff.c register int r, k; k 818 3rdparty/libjpeg/jchuff.c for (k = cinfo->Ss; k <= Se; k++) { k 819 3rdparty/libjpeg/jchuff.c temp = (*block)[natural_order[k]]; k 827 3rdparty/libjpeg/jchuff.c absvalues[k] = temp; /* save abs value for main pass */ k 829 3rdparty/libjpeg/jchuff.c EOB = k; /* EOB = index of last newly-nonzero coef */ k 838 3rdparty/libjpeg/jchuff.c for (k = cinfo->Ss; k <= Se; k++) { k 839 3rdparty/libjpeg/jchuff.c if ((temp = absvalues[k]) == 0) { k 845 3rdparty/libjpeg/jchuff.c while (r > 15 && k <= EOB) { k 875 3rdparty/libjpeg/jchuff.c temp = ((*block)[natural_order[k]] < 0) ? 0 : 1; k 921 3rdparty/libjpeg/jchuff.c register int k, r, i; k 962 3rdparty/libjpeg/jchuff.c for (k = 1; k <= Se; k++) { k 963 3rdparty/libjpeg/jchuff.c if ((temp = block[natural_order[k]]) == 0) { k 1127 3rdparty/libjpeg/jchuff.c register int k, r; k 1156 3rdparty/libjpeg/jchuff.c for (k = 1; k <= Se; k++) { k 1157 3rdparty/libjpeg/jchuff.c if ((temp = block[natural_order[k]]) == 0) { k 326 3rdparty/libjpeg/jdarith.c int tbl, sign, k; k 348 3rdparty/libjpeg/jdarith.c k = cinfo->Ss - 1; k 350 3rdparty/libjpeg/jdarith.c st = entropy->ac_stats[tbl] + 3 * k; k 353 3rdparty/libjpeg/jdarith.c k++; k 356 3rdparty/libjpeg/jdarith.c if (k >= cinfo->Se) { k 371 3rdparty/libjpeg/jdarith.c (k <= cinfo->arith_ac_K[tbl] ? 189 : 217); k 389 3rdparty/libjpeg/jdarith.c (*block)[natural_order[k]] = (JCOEF) (v << cinfo->Al); k 390 3rdparty/libjpeg/jdarith.c } while (k < cinfo->Se); k 440 3rdparty/libjpeg/jdarith.c int tbl, k, kex; k 468 3rdparty/libjpeg/jdarith.c k = cinfo->Ss - 1; k 470 3rdparty/libjpeg/jdarith.c st = entropy->ac_stats[tbl] + 3 * k; k 471 3rdparty/libjpeg/jdarith.c if (k >= kex) k 474 3rdparty/libjpeg/jdarith.c thiscoef = *block + natural_order[++k]; k 492 3rdparty/libjpeg/jdarith.c if (k >= cinfo->Se) { k 498 3rdparty/libjpeg/jdarith.c } while (k < cinfo->Se); k 515 3rdparty/libjpeg/jdarith.c int blkn, ci, tbl, sign, k; k 586 3rdparty/libjpeg/jdarith.c k = 0; k 590 3rdparty/libjpeg/jdarith.c st = entropy->ac_stats[tbl] + 3 * k; k 593 3rdparty/libjpeg/jdarith.c k++; k 596 3rdparty/libjpeg/jdarith.c if (k >= cinfo->lim_Se) { k 611 3rdparty/libjpeg/jdarith.c (k <= cinfo->arith_ac_K[tbl] ? 189 : 217); k 628 3rdparty/libjpeg/jdarith.c (*block)[natural_order[k]] = (JCOEF) v; k 629 3rdparty/libjpeg/jdarith.c } while (k < cinfo->lim_Se); k 769 3rdparty/libjpeg/jdhuff.c register int s, k, r; k 807 3rdparty/libjpeg/jdhuff.c for (k = cinfo->Ss; k <= Se; k++) { k 812 3rdparty/libjpeg/jdhuff.c k += r; k 817 3rdparty/libjpeg/jdhuff.c (*block)[natural_order[k]] = (JCOEF) (s << Al); k 829 3rdparty/libjpeg/jdhuff.c k += 15; /* ZRL: skip 15 zeroes in band */ k 906 3rdparty/libjpeg/jdhuff.c register int s, k, r; k 950 3rdparty/libjpeg/jdhuff.c k = cinfo->Ss; k 982 3rdparty/libjpeg/jdhuff.c thiscoef = *block + natural_order[k]; k 997 3rdparty/libjpeg/jdhuff.c k++; k 998 3rdparty/libjpeg/jdhuff.c } while (k <= Se); k 1000 3rdparty/libjpeg/jdhuff.c int pos = natural_order[k]; k 1006 3rdparty/libjpeg/jdhuff.c k++; k 1007 3rdparty/libjpeg/jdhuff.c } while (k <= Se); k 1017 3rdparty/libjpeg/jdhuff.c thiscoef = *block + natural_order[k]; k 1029 3rdparty/libjpeg/jdhuff.c k++; k 1030 3rdparty/libjpeg/jdhuff.c } while (k <= Se); k 1092 3rdparty/libjpeg/jdhuff.c register int s, k, r; k 1102 3rdparty/libjpeg/jdhuff.c k = 1; k 1119 3rdparty/libjpeg/jdhuff.c for (; k < coef_limit; k++) { k 1126 3rdparty/libjpeg/jdhuff.c k += r; k 1134 3rdparty/libjpeg/jdhuff.c (*block)[natural_order[k]] = (JCOEF) s; k 1138 3rdparty/libjpeg/jdhuff.c k += 15; k 1150 3rdparty/libjpeg/jdhuff.c for (; k <= Se; k++) { k 1157 3rdparty/libjpeg/jdhuff.c k += r; k 1163 3rdparty/libjpeg/jdhuff.c k += 15; k 1216 3rdparty/libjpeg/jdhuff.c register int s, k, r; k 1226 3rdparty/libjpeg/jdhuff.c k = 1; k 1243 3rdparty/libjpeg/jdhuff.c for (; k < coef_limit; k++) { k 1250 3rdparty/libjpeg/jdhuff.c k += r; k 1258 3rdparty/libjpeg/jdhuff.c (*block)[jpeg_natural_order[k]] = (JCOEF) s; k 1262 3rdparty/libjpeg/jdhuff.c k += 15; k 1274 3rdparty/libjpeg/jdhuff.c for (; k < DCTSIZE2; k++) { k 1281 3rdparty/libjpeg/jdhuff.c k += r; k 1287 3rdparty/libjpeg/jdhuff.c k += 15; k 279 3rdparty/libjpeg/jquant1.c int i,j,k, nci, blksize, blkdist, ptr, val; k 314 3rdparty/libjpeg/jquant1.c for (k = 0; k < blksize; k++) k 315 3rdparty/libjpeg/jquant1.c colormap[i][ptr+k] = (JSAMPLE) val; k 338 3rdparty/libjpeg/jquant1.c int i,j,k, nci, blksize, val, pad; k 374 3rdparty/libjpeg/jquant1.c k = largest_input_value(cinfo, i, 0, nci-1); k 376 3rdparty/libjpeg/jquant1.c while (j > k) /* advance val if past boundary */ k 377 3rdparty/libjpeg/jquant1.c k = largest_input_value(cinfo, i, ++val, nci-1); k 400 3rdparty/libjpeg/jquant1.c int j,k; k 413 3rdparty/libjpeg/jquant1.c for (k = 0; k < ODITHER_SIZE; k++) { k 414 3rdparty/libjpeg/jquant1.c num = ((INT32) (ODITHER_CELLS-1 - 2*((int)base_dither_matrix[j][k]))) k 419 3rdparty/libjpeg/jquant1.c odither[j][k] = (int) (num<0 ? -((-num)/den) : num/den); k 503 3rdparty/libpng/pngrtran.c int min_d, k, min_k, d_index; k 508 3rdparty/libpng/pngrtran.c for (k = 1, min_k = 0; k < maximum_colors; k++) k 512 3rdparty/libpng/pngrtran.c d = PNG_COLOR_DIST(palette[d_index], palette[k]); k 517 3rdparty/libpng/pngrtran.c min_k = k; k 637 3rdparty/libpng/pngrtran.c int k; k 639 3rdparty/libpng/pngrtran.c for (k = 0; k < num_palette; k++) k 641 3rdparty/libpng/pngrtran.c if (png_ptr->quantize_index[k] == k 643 3rdparty/libpng/pngrtran.c png_ptr->quantize_index[k] = k 646 3rdparty/libpng/pngrtran.c if ((int)png_ptr->quantize_index[k] == k 648 3rdparty/libpng/pngrtran.c png_ptr->quantize_index[k] = k 84 3rdparty/libtiff/tif_fax3.c int k; /* #rows left that can be 2d encoded */ k 748 3rdparty/libtiff/tif_fax3.c sp->k = sp->maxk-1; k 750 3rdparty/libtiff/tif_fax3.c sp->k = sp->maxk = 0; k 1060 3rdparty/libtiff/tif_fax3.c sp->k--; k 1062 3rdparty/libtiff/tif_fax3.c if (sp->k == 0) { k 1064 3rdparty/libtiff/tif_fax3.c sp->k = sp->maxk-1; k 1449 3rdparty/libtiff/tif_getimage.c uint16 r, g, b, k; k 1455 3rdparty/libtiff/tif_getimage.c k = 255 - pp[3]; k 1456 3rdparty/libtiff/tif_getimage.c r = (k*(255-pp[0]))/255; k 1457 3rdparty/libtiff/tif_getimage.c g = (k*(255-pp[1]))/255; k 1458 3rdparty/libtiff/tif_getimage.c b = (k*(255-pp[2]))/255; k 1475 3rdparty/libtiff/tif_getimage.c uint16 r, g, b, k; k 1481 3rdparty/libtiff/tif_getimage.c k = 255 - pp[3]; k 1482 3rdparty/libtiff/tif_getimage.c r = (k*(255-pp[0]))/255; k 1483 3rdparty/libtiff/tif_getimage.c g = (k*(255-pp[1]))/255; k 1484 3rdparty/libtiff/tif_getimage.c b = (k*(255-pp[2]))/255; k 577 3rdparty/libwebp/dec/tree.c int k; k 578 3rdparty/libwebp/dec/tree.c for (k = 0; k < NUM_MV_PROBAS; ++k) { k 579 3rdparty/libwebp/dec/tree.c if (VP8GetBit(br, MVUpdateProba[i][k])) { k 581 3rdparty/libwebp/dec/tree.c proba->mv_[i][k] = v ? v << 1 : 1; k 576 3rdparty/libwebp/dsp/dec.c int k; k 577 3rdparty/libwebp/dsp/dec.c for (k = 3; k > 0; --k) { k 584 3rdparty/libwebp/dsp/dec.c int k; k 585 3rdparty/libwebp/dsp/dec.c for (k = 3; k > 0; --k) { k 638 3rdparty/libwebp/dsp/dec.c int k; k 639 3rdparty/libwebp/dsp/dec.c for (k = 3; k > 0; --k) { k 647 3rdparty/libwebp/dsp/dec.c int k; k 648 3rdparty/libwebp/dsp/dec.c for (k = 3; k > 0; --k) { k 145 3rdparty/libwebp/dsp/dec_neon.c int k; k 146 3rdparty/libwebp/dsp/dec_neon.c for (k = 3; k > 0; --k) { k 153 3rdparty/libwebp/dsp/dec_neon.c int k; k 154 3rdparty/libwebp/dsp/dec_neon.c for (k = 3; k > 0; --k) { k 624 3rdparty/libwebp/dsp/dec_sse2.c int k; k 625 3rdparty/libwebp/dsp/dec_sse2.c for (k = 3; k > 0; --k) { k 632 3rdparty/libwebp/dsp/dec_sse2.c int k; k 633 3rdparty/libwebp/dsp/dec_sse2.c for (k = 3; k > 0; --k) { k 737 3rdparty/libwebp/dsp/dec_sse2.c int k; k 741 3rdparty/libwebp/dsp/dec_sse2.c for (k = 3; k > 0; --k) { k 765 3rdparty/libwebp/dsp/dec_sse2.c int k; k 770 3rdparty/libwebp/dsp/dec_sse2.c for (k = 3; k > 0; --k) { k 50 3rdparty/libwebp/dsp/enc.c int k; k 56 3rdparty/libwebp/dsp/enc.c for (k = 0; k < 16; ++k) { k 57 3rdparty/libwebp/dsp/enc.c const int v = abs(out[k]) >> 3; // TODO(skal): add rounding? k 66 3rdparty/libwebp/dsp/enc_sse2.c int k; k 95 3rdparty/libwebp/dsp/enc_sse2.c for (k = 0; k < 16; ++k) { k 96 3rdparty/libwebp/dsp/enc_sse2.c histo->distribution[out[k]]++; k 46 3rdparty/libwebp/dsp/upsampling_sse2.c const __m128i tmp0 = _mm_avg_epu8(k, (in)); /* (k + in + 1) / 2 */ \ k 48 3rdparty/libwebp/dsp/upsampling_sse2.c const __m128i tmp2 = _mm_xor_si128(k, (in)); /* (k^in) */ \ k 83 3rdparty/libwebp/dsp/upsampling_sse2.c const __m128i k = _mm_sub_epi8(t4, t3); /* k = (a + b + c + d) / 4 */ \ k 46 3rdparty/libwebp/dsp/yuv.c const int k = ((i - 16) * 76283 + YUV_HALF) >> YUV_FIX; k 47 3rdparty/libwebp/dsp/yuv.c VP8kClip[i - YUV_RANGE_MIN] = clip(k, 255); k 48 3rdparty/libwebp/dsp/yuv.c VP8kClip4Bits[i - YUV_RANGE_MIN] = clip((k + 8) >> 4, 15); k 58 3rdparty/libwebp/dsp/yuv.c const int k = i; k 59 3rdparty/libwebp/dsp/yuv.c VP8kClip[i - YUV_RANGE_MIN] = clip(k, 255); k 60 3rdparty/libwebp/dsp/yuv.c VP8kClip4Bits[i - YUV_RANGE_MIN] = clip((k + 8) >> 4, 15); k 118 3rdparty/libwebp/enc/analysis.c int k; k 120 3rdparty/libwebp/enc/analysis.c for (k = 0; k <= MAX_COEFF_THRESH; ++k) { k 121 3rdparty/libwebp/enc/analysis.c const int value = histo->distribution[k]; k 124 3rdparty/libwebp/enc/analysis.c last_non_zero = k; k 151 3rdparty/libwebp/enc/analysis.c int a, n, k; k 164 3rdparty/libwebp/enc/analysis.c for (n = 1, k = 0; n < 2 * nb; n += 2) { k 165 3rdparty/libwebp/enc/analysis.c centers[k++] = min_a + (n * range_a) / (2 * nb); k 168 3rdparty/libwebp/enc/analysis.c for (k = 0; k < MAX_ITERS_K_MEANS; ++k) { // few iters are enough k 307 3rdparty/libwebp/enc/backward_references.c int k; k 338 3rdparty/libwebp/enc/backward_references.c for (k = 0; k < len; ++k) { k 339 3rdparty/libwebp/enc/backward_references.c VP8LColorCacheInsert(&hashers, argb[i + k]); k 345 3rdparty/libwebp/enc/backward_references.c for (k = 1; k < last; ++k) { k 346 3rdparty/libwebp/enc/backward_references.c HashChainInsert(hash_chain, &argb[i + k], i + k); k 537 3rdparty/libwebp/enc/backward_references.c int k; k 538 3rdparty/libwebp/enc/backward_references.c for (k = 1; k < len; ++k) { k 539 3rdparty/libwebp/enc/backward_references.c const double cost_val = distance_cost + GetLengthCost(cost_model, k); k 540 3rdparty/libwebp/enc/backward_references.c if (cost[i + k] > cost_val) { k 541 3rdparty/libwebp/enc/backward_references.c cost[i + k] = (float)cost_val; k 542 3rdparty/libwebp/enc/backward_references.c dist_array[i + k] = k + 1; k 552 3rdparty/libwebp/enc/backward_references.c for (k = 0; k < len; ++k) { k 553 3rdparty/libwebp/enc/backward_references.c VP8LColorCacheInsert(&hashers, argb[i + k]); k 560 3rdparty/libwebp/enc/backward_references.c for (k = i; k < last; ++k) { k 561 3rdparty/libwebp/enc/backward_references.c HashChainInsert(hash_chain, &argb[k], k); k 611 3rdparty/libwebp/enc/backward_references.c const int k = *cur; k 613 3rdparty/libwebp/enc/backward_references.c *path = k; k 614 3rdparty/libwebp/enc/backward_references.c cur -= k; k 629 3rdparty/libwebp/enc/backward_references.c int k; k 661 3rdparty/libwebp/enc/backward_references.c for (k = 0; k < len; ++k) { k 662 3rdparty/libwebp/enc/backward_references.c VP8LColorCacheInsert(&hashers, argb[i + k]); k 667 3rdparty/libwebp/enc/backward_references.c for (k = 0; k < last; ++k) { k 668 3rdparty/libwebp/enc/backward_references.c HashChainInsert(hash_chain, &argb[i + k], i + k); k 825 3rdparty/libwebp/enc/backward_references.c uint32_t k; k 851 3rdparty/libwebp/enc/backward_references.c for (k = 0; k < PixOrCopyLength(v); ++k) { k 852 3rdparty/libwebp/enc/backward_references.c VP8LColorCacheInsert(&hashers, argb[pixel_index + k]); k 119 3rdparty/libwebp/enc/filter.c int k; k 120 3rdparty/libwebp/enc/filter.c for (k = 3; k > 0; --k) { k 127 3rdparty/libwebp/enc/filter.c int k; k 128 3rdparty/libwebp/enc/filter.c for (k = 3; k > 0; --k) { k 155 3rdparty/libwebp/enc/filter.c int k; k 156 3rdparty/libwebp/enc/filter.c for (k = 3; k > 0; --k) { k 164 3rdparty/libwebp/enc/filter.c int k; k 165 3rdparty/libwebp/enc/filter.c for (k = 3; k > 0; --k) { k 460 3rdparty/libwebp/enc/histogram.c int k; k 461 3rdparty/libwebp/enc/histogram.c for (k = 1; k < out->size; ++k) { k 463 3rdparty/libwebp/enc/histogram.c HistogramDistance(in->histograms[i], out->histograms[k], best_bits); k 466 3rdparty/libwebp/enc/histogram.c best_out = k; k 185 3rdparty/libwebp/enc/vp8l.c int i, k; k 195 3rdparty/libwebp/enc/vp8l.c for (k = 0; k < 5; ++k) { k 196 3rdparty/libwebp/enc/vp8l.c const int num_symbols = (k == 0) ? VP8LHistogramNumCodes(histo) k 197 3rdparty/libwebp/enc/vp8l.c : (k == 4) ? NUM_DISTANCE_CODES k 199 3rdparty/libwebp/enc/vp8l.c codes[k].num_symbols = num_symbols; k 269 3rdparty/libwebp/enc/vp8l.c int k; k 271 3rdparty/libwebp/enc/vp8l.c for (k = 0; k < huffman_code->num_symbols; ++k) { k 272 3rdparty/libwebp/enc/vp8l.c if (huffman_code->code_lengths[k] != 0) { k 277 3rdparty/libwebp/enc/vp8l.c for (k = 0; k < huffman_code->num_symbols; ++k) { k 278 3rdparty/libwebp/enc/vp8l.c huffman_code->code_lengths[k] = 0; k 279 3rdparty/libwebp/enc/vp8l.c huffman_code->codes[k] = 0; k 445 3rdparty/libwebp/enc/vp8l.c int k; k 446 3rdparty/libwebp/enc/vp8l.c for (k = 0; k < 4; ++k) { k 447 3rdparty/libwebp/enc/vp8l.c const int code = PixOrCopyLiteral(v, order[k]); k 448 3rdparty/libwebp/enc/vp8l.c WriteHuffmanCode(bw, codes + k, code); k 60 3rdparty/libwebp/utils/huffman_encode.c int k; k 61 3rdparty/libwebp/utils/huffman_encode.c for (k = 0; k < stride; ++k) { k 62 3rdparty/libwebp/utils/huffman_encode.c good_for_rle[i - k - 1] = 1; k 84 3rdparty/libwebp/utils/huffman_encode.c int k; k 94 3rdparty/libwebp/utils/huffman_encode.c for (k = 0; k < stride; ++k) { k 97 3rdparty/libwebp/utils/huffman_encode.c counts[i - k - 1] = count; k 242 3rdparty/libwebp/utils/huffman_encode.c int k; k 243 3rdparty/libwebp/utils/huffman_encode.c for (k = 0; k < tree_size; ++k) { k 244 3rdparty/libwebp/utils/huffman_encode.c if (tree[k].total_count_ <= count) { k 248 3rdparty/libwebp/utils/huffman_encode.c memmove(tree + (k + 1), tree + k, (tree_size - k) * sizeof(*tree)); k 249 3rdparty/libwebp/utils/huffman_encode.c tree[k].total_count_ = count; k 250 3rdparty/libwebp/utils/huffman_encode.c tree[k].value_ = -1; k 252 3rdparty/libwebp/utils/huffman_encode.c tree[k].pool_index_left_ = tree_pool_size - 1; k 253 3rdparty/libwebp/utils/huffman_encode.c tree[k].pool_index_right_ = tree_pool_size - 2; k 357 3rdparty/libwebp/utils/huffman_encode.c int k = i + 1; k 359 3rdparty/libwebp/utils/huffman_encode.c while (k < depth_size && tree->code_lengths[k] == value) ++k; k 360 3rdparty/libwebp/utils/huffman_encode.c runs = k - i; k 135 3rdparty/openexr/IlmImf/ImfInputFile.cpp for (FrameBuffer::Iterator k = cachedBuffer->begin(); k 136 3rdparty/openexr/IlmImf/ImfInputFile.cpp k != cachedBuffer->end(); k 137 3rdparty/openexr/IlmImf/ImfInputFile.cpp ++k) k 139 3rdparty/openexr/IlmImf/ImfInputFile.cpp Slice &s = k.slice(); k 252 3rdparty/openexr/IlmImf/ImfInputFile.cpp for (FrameBuffer::ConstIterator k = ifd->cachedBuffer->begin(); k 253 3rdparty/openexr/IlmImf/ImfInputFile.cpp k != ifd->cachedBuffer->end(); k 254 3rdparty/openexr/IlmImf/ImfInputFile.cpp ++k) k 256 3rdparty/openexr/IlmImf/ImfInputFile.cpp Slice fromSlice = k.slice(); // slice to write from k 257 3rdparty/openexr/IlmImf/ImfInputFile.cpp Slice toSlice = ifd->tFileBuffer[k.name()]; // slice to write to k 468 3rdparty/openexr/IlmImf/ImfInputFile.cpp for (FrameBuffer::ConstIterator k = frameBuffer.begin(); k 469 3rdparty/openexr/IlmImf/ImfInputFile.cpp k != frameBuffer.end(); k 470 3rdparty/openexr/IlmImf/ImfInputFile.cpp ++k) k 472 3rdparty/openexr/IlmImf/ImfInputFile.cpp Slice s = k.slice(); k 479 3rdparty/openexr/IlmImf/ImfInputFile.cpp (k.name(), k 494 3rdparty/openexr/IlmImf/ImfInputFile.cpp (k.name(), k 509 3rdparty/openexr/IlmImf/ImfInputFile.cpp (k.name(), k 111 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp int k = 0; k 116 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp lut[i] = k++; k 121 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp return k - 1; // maximum value stored in lut[], k 129 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp int k = 0; k 134 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp lut[k++] = i; k 137 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp int n = k - 1; k 139 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp while (k < USHORT_RANGE) k 140 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp lut[k++] = 0; k 328 3rdparty/openexr/IlmImf/ImfPxr24Compressor.cpp for (int k = 0; k < sizeof (pixel); ++k) k 376 3rdparty/openexr/IlmImf/ImfPxr24Compressor.cpp for (int k = 0; k < sizeof (pixel); ++k) k 482 3rdparty/openexr/IlmImf/ImfPxr24Compressor.cpp for (int k = 0; k < sizeof (pixel); ++k) k 530 3rdparty/openexr/IlmImf/ImfPxr24Compressor.cpp for (int k = 0; k < sizeof (pixel); ++k) k 222 3rdparty/openexr/Imath/ImathEuler.h Euler(T i, T j, T k, Order o = Default, InputLayout l = IJKLayout); k 279 3rdparty/openexr/Imath/ImathEuler.h void angleOrder(int &i, int &j, int &k) const; k 286 3rdparty/openexr/Imath/ImathEuler.h void angleMapping(int &i, int &j, int &k) const; k 353 3rdparty/openexr/Imath/ImathEuler.h Euler<T>::angleOrder(int &i, int &j, int &k) const k 357 3rdparty/openexr/Imath/ImathEuler.h k = _parityEven ? (i > 0 ? i-1 : 2) : (i+1)%3; k 362 3rdparty/openexr/Imath/ImathEuler.h Euler<T>::angleMapping(int &i, int &j, int &k) const k 371 3rdparty/openexr/Imath/ImathEuler.h k = m[2]; k 378 3rdparty/openexr/Imath/ImathEuler.h int i,j,k; k 379 3rdparty/openexr/Imath/ImathEuler.h angleMapping(i,j,k); k 382 3rdparty/openexr/Imath/ImathEuler.h (*this)[k] = v.z; k 389 3rdparty/openexr/Imath/ImathEuler.h int i,j,k; k 390 3rdparty/openexr/Imath/ImathEuler.h angleMapping(i,j,k); k 391 3rdparty/openexr/Imath/ImathEuler.h return Vec3<T>((*this)[i],(*this)[j],(*this)[k]); k 472 3rdparty/openexr/Imath/ImathEuler.h int i,j,k; k 473 3rdparty/openexr/Imath/ImathEuler.h angleOrder(i,j,k); k 481 3rdparty/openexr/Imath/ImathEuler.h x = Math<T>::atan2 (M[j][i], M[k][i]); k 503 3rdparty/openexr/Imath/ImathEuler.h T sy = Math<T>::sqrt (N[j][i]*N[j][i] + N[k][i]*N[k][i]); k 505 3rdparty/openexr/Imath/ImathEuler.h z = Math<T>::atan2 (N[j][k], N[j][j]); k 513 3rdparty/openexr/Imath/ImathEuler.h x = Math<T>::atan2 (M[j][k], M[k][k]); k 536 3rdparty/openexr/Imath/ImathEuler.h y = Math<T>::atan2 (-N[i][k], cy); k 554 3rdparty/openexr/Imath/ImathEuler.h int i,j,k; k 555 3rdparty/openexr/Imath/ImathEuler.h angleOrder(i,j,k); k 563 3rdparty/openexr/Imath/ImathEuler.h x = Math<T>::atan2 (M[j][i], M[k][i]); k 582 3rdparty/openexr/Imath/ImathEuler.h T sy = Math<T>::sqrt (N[j][i]*N[j][i] + N[k][i]*N[k][i]); k 584 3rdparty/openexr/Imath/ImathEuler.h z = Math<T>::atan2 (N[j][k], N[j][j]); k 592 3rdparty/openexr/Imath/ImathEuler.h x = Math<T>::atan2 (M[j][k], M[k][k]); k 612 3rdparty/openexr/Imath/ImathEuler.h y = Math<T>::atan2 (-N[i][k], cy); k 630 3rdparty/openexr/Imath/ImathEuler.h int i,j,k; k 631 3rdparty/openexr/Imath/ImathEuler.h angleOrder(i,j,k); k 656 3rdparty/openexr/Imath/ImathEuler.h M[i][i] = cj; M[j][i] = sj*si; M[k][i] = sj*ci; k 657 3rdparty/openexr/Imath/ImathEuler.h M[i][j] = sj*sh; M[j][j] = -cj*ss+cc; M[k][j] = -cj*cs-sc; k 658 3rdparty/openexr/Imath/ImathEuler.h M[i][k] = -sj*ch; M[j][k] = cj*sc+cs; M[k][k] = cj*cc-ss; k 662 3rdparty/openexr/Imath/ImathEuler.h M[i][i] = cj*ch; M[j][i] = sj*sc-cs; M[k][i] = sj*cc+ss; k 663 3rdparty/openexr/Imath/ImathEuler.h M[i][j] = cj*sh; M[j][j] = sj*ss+cc; M[k][j] = sj*cs-sc; k 664 3rdparty/openexr/Imath/ImathEuler.h M[i][k] = -sj; M[j][k] = cj*si; M[k][k] = cj*ci; k 673 3rdparty/openexr/Imath/ImathEuler.h int i,j,k; k 674 3rdparty/openexr/Imath/ImathEuler.h angleOrder(i,j,k); k 699 3rdparty/openexr/Imath/ImathEuler.h M[i][i] = cj; M[j][i] = sj*si; M[k][i] = sj*ci; k 700 3rdparty/openexr/Imath/ImathEuler.h M[i][j] = sj*sh; M[j][j] = -cj*ss+cc; M[k][j] = -cj*cs-sc; k 701 3rdparty/openexr/Imath/ImathEuler.h M[i][k] = -sj*ch; M[j][k] = cj*sc+cs; M[k][k] = cj*cc-ss; k 705 3rdparty/openexr/Imath/ImathEuler.h M[i][i] = cj*ch; M[j][i] = sj*sc-cs; M[k][i] = sj*cc+ss; k 706 3rdparty/openexr/Imath/ImathEuler.h M[i][j] = cj*sh; M[j][j] = sj*ss+cc; M[k][j] = sj*cs-sc; k 707 3rdparty/openexr/Imath/ImathEuler.h M[i][k] = -sj; M[j][k] = cj*si; M[k][k] = cj*ci; k 717 3rdparty/openexr/Imath/ImathEuler.h int i,j,k; k 718 3rdparty/openexr/Imath/ImathEuler.h angleOrder(i,j,k); k 748 3rdparty/openexr/Imath/ImathEuler.h a[k] = sj*(cs - sc); k 755 3rdparty/openexr/Imath/ImathEuler.h a[k] = cj*cs - sj*sc; k 833 3rdparty/openexr/Imath/ImathEuler.h int i,j,k; k 834 3rdparty/openexr/Imath/ImathEuler.h euler.angleOrder(i,j,k); k 836 3rdparty/openexr/Imath/ImathEuler.h if ( euler.initialRepeated() ) k = i; k 842 3rdparty/openexr/Imath/ImathEuler.h << a[i] << a[j] << a[k] << r << ")"; k 872 3rdparty/openexr/Imath/ImathEuler.h int i,j,k; k 874 3rdparty/openexr/Imath/ImathEuler.h e.angleOrder(i,j,k); k 881 3rdparty/openexr/Imath/ImathEuler.h otherXyzRot[k] = M_PI+xyzRot[k]; k 467 3rdparty/openexr/Imath/ImathMatrix.h T i, T j, T k, T l, T m, T n, T o, T p); k 1316 3rdparty/openexr/Imath/ImathMatrix.h for (int k = 0; k < 3; k++) k 1317 3rdparty/openexr/Imath/ImathMatrix.h tmp.x[i][j] += x[i][k] * v.x[k][j]; k 1331 3rdparty/openexr/Imath/ImathMatrix.h for (int k = 0; k < 3; k++) k 1332 3rdparty/openexr/Imath/ImathMatrix.h tmp.x[i][j] += x[i][k] * v.x[k][j]; k 1442 3rdparty/openexr/Imath/ImathMatrix.h int i, j, k; k 1499 3rdparty/openexr/Imath/ImathMatrix.h for (k = 0; k < 3; k++) k 1501 3rdparty/openexr/Imath/ImathMatrix.h t[j][k] -= f * t[i][k]; k 1502 3rdparty/openexr/Imath/ImathMatrix.h s[j][k] -= f * s[i][k]; k 1531 3rdparty/openexr/Imath/ImathMatrix.h for (k = 0; k < 3; k++) k 1533 3rdparty/openexr/Imath/ImathMatrix.h t[j][k] -= f * t[i][k]; k 1534 3rdparty/openexr/Imath/ImathMatrix.h s[j][k] -= f * s[i][k]; k 1942 3rdparty/openexr/Imath/ImathMatrix.h T i, T j, T k, T l, T m, T n, T o, T p) k 1954 3rdparty/openexr/Imath/ImathMatrix.h x[2][2] = k; k 2711 3rdparty/openexr/Imath/ImathMatrix.h int i, j, k; k 2768 3rdparty/openexr/Imath/ImathMatrix.h for (k = 0; k < 4; k++) k 2770 3rdparty/openexr/Imath/ImathMatrix.h t[j][k] -= f * t[i][k]; k 2771 3rdparty/openexr/Imath/ImathMatrix.h s[j][k] -= f * s[i][k]; k 2800 3rdparty/openexr/Imath/ImathMatrix.h for (k = 0; k < 4; k++) k 2802 3rdparty/openexr/Imath/ImathMatrix.h t[j][k] -= f * t[i][k]; k 2803 3rdparty/openexr/Imath/ImathMatrix.h s[j][k] -= f * s[i][k]; k 270 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp template <typename T, int j, int k> k 279 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp const T tau2 = A[i][k]; k 281 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp A[i][k] = s * tau1 + c * tau2; k 289 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp const int k, k 296 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp const T tau2 = A[i][k]; k 298 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp A[i][k] = s * tau1 + c * tau2; k 317 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp template <typename T, int j, int k, int l> k 327 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp const T x = A[j][k]; k 328 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp const T y = A[k][j]; k 329 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp const T z = A[k][k]; k 397 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp A[k][j] = 0; k 398 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp A[j][k] = 0; k 408 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp A[k][k] = d_2; k 409 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp A[k][j] = 0; k 410 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp A[j][k] = 0; k 421 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp const T tau2 = A[k][l]; k 423 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp A[k][l] = s_1 * tau1 + c_1 * tau2; k 434 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp const T tau2 = A[l][k]; k 436 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp A[l][k] = s_2 * tau1 + c_2 * tau2; k 450 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp jacobiRotateRight<T, j, k> (U, c_1, s_1); k 451 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp jacobiRotateRight<T, j, k> (V, c_2, s_2); k 460 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp int k, k 468 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp const T x = A[j][k]; k 469 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp const T y = A[k][j]; k 470 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp const T z = A[k][k]; k 538 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp A[k][j] = 0; k 539 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp A[j][k] = 0; k 549 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp A[k][k] = d_2; k 550 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp A[k][j] = 0; k 551 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp A[j][k] = 0; k 556 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp if (l == j || l == k) k 572 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp const T tau2 = A[k][l]; k 574 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp A[k][l] = s_1 * tau1 + c_1 * tau2; k 580 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp if (l == j || l == k) k 596 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp const T tau2 = A[l][k]; k 598 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp A[l][k] = s_2 * tau1 + c_2 * tau2; k 612 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp jacobiRotateRight (U, j, k, c_1, s_1); k 613 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp jacobiRotateRight (V, j, k, c_2, s_2); k 620 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp swapColumns (Imath::Matrix33<T>& A, int j, int k) k 623 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp std::swap (A[i][j], A[i][k]); k 847 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp for (int k = 0; k < 4; ++k) k 848 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp U[k][j+1] = U[k][j]; k 849 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp for (int k = 0; k < 4; ++k) k 850 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp V[k][j+1] = V[k][j]; k 858 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp for (int k = 0; k < 4; ++k) k 859 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp U[k][j+1] = uCol[k]; k 860 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp for (int k = 0; k < 4; ++k) k 861 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp V[k][j+1] = vCol[k]; k 949 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp template <int j, int k, typename TM> k 961 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp const T nu2 = A[i][k]; k 963 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp A[i][k] += s * (nu1 - tau * nu2); k 967 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp template <int j, int k, int l, typename T> k 977 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp const T y = A[j][k]; k 978 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp const T z = A[k][k]; k 992 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp A[j][k] = 0; k 1004 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp Z[k] += h; k 1006 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp A[k][k] += h; k 1010 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp A[j][k] = 0; k 1015 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp T& offd2 = l < k ? A[l][k] : A[k][l]; k 1022 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp jacobiRotateRight<j, k> (V, s, tau); k 1027 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp template <int j, int k, int l1, int l2, typename T> k 1035 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp const T y = A[j][k]; k 1036 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp const T z = A[k][k]; k 1046 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp A[j][k] = 0; k 1058 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp Z[k] += h; k 1060 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp A[k][k] += h; k 1061 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp A[j][k] = 0; k 1065 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp T& offd2 = l1 < k ? A[l1][k] : A[k][l1]; k 1074 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp T& offd2 = l2 < k ? A[l2][k] : A[k][l2]; k 1081 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp jacobiRotateRight<j, k> (V, s, tau); k 600 3rdparty/openexr/Imath/ImathMatrixAlgo.h Vec3<T> k (mat[2][0], mat[2][1], mat[2][2]); k 604 3rdparty/openexr/Imath/ImathMatrixAlgo.h k.normalize(); k 608 3rdparty/openexr/Imath/ImathMatrixAlgo.h k[0], k[1], k[2], 0, k 647 3rdparty/openexr/Imath/ImathMatrixAlgo.h Vec3<T> k (mat[2][0], mat[2][1], mat[2][2]); k 651 3rdparty/openexr/Imath/ImathMatrixAlgo.h k.normalize(); k 655 3rdparty/openexr/Imath/ImathMatrixAlgo.h k[0], k[1], k[2], 0, k 692 3rdparty/openexr/Imath/ImathMatrixAlgo.h int i, j, k; k 717 3rdparty/openexr/Imath/ImathMatrixAlgo.h k = nxt[j]; k 718 3rdparty/openexr/Imath/ImathMatrixAlgo.h s = Math<T>::sqrt ((mat[i][i] - (mat[j][j] + mat[k][k])) + T(1.0)); k 724 3rdparty/openexr/Imath/ImathMatrixAlgo.h q[3] = (mat[j][k] - mat[k][j]) * s; k 726 3rdparty/openexr/Imath/ImathMatrixAlgo.h q[k] = (mat[i][k] + mat[k][i]) * s; k 88 3rdparty/openexr/Imath/ImathQuat.h Quat (T s, T i, T j, T k); k 247 3rdparty/openexr/Imath/ImathQuat.h Quat<T>::Quat (T s, T i, T j, T k): r (s), v (i, j, k) k 639 3rdparty/openexr/Imath/ImathQuat.h T k; k 641 3rdparty/openexr/Imath/ImathQuat.h k = 1; k 643 3rdparty/openexr/Imath/ImathQuat.h k = theta / sintheta; k 645 3rdparty/openexr/Imath/ImathQuat.h return Quat<T> ((T) 0, v.x * k, v.y * k, v.z * k); k 662 3rdparty/openexr/Imath/ImathQuat.h T k; k 664 3rdparty/openexr/Imath/ImathQuat.h k = 1; k 666 3rdparty/openexr/Imath/ImathQuat.h k = sintheta / theta; k 670 3rdparty/openexr/Imath/ImathQuat.h return Quat<T> (costheta, v.x * k, v.y * k, v.z * k); k 93 3rdparty/zlib/crc32.c int n, k; k 113 3rdparty/zlib/crc32.c for (k = 0; k < 8; k++) k 124 3rdparty/zlib/crc32.c for (k = 1; k < 4; k++) { k 126 3rdparty/zlib/crc32.c crc_table[k][n] = c; k 127 3rdparty/zlib/crc32.c crc_table[k + 4][n] = ZSWAP32(c); k 154 3rdparty/zlib/crc32.c for (k = 1; k < 8; k++) { k 156 3rdparty/zlib/crc32.c write_table(out, crc_table[k]); k 140 3rdparty/zlib/trees.c local void pqdownheap OF((deflate_state *s, ct_data *tree, int k)); k 453 3rdparty/zlib/trees.c local void pqdownheap(s, tree, k) k 456 3rdparty/zlib/trees.c int k; /* node to move down */ k 458 3rdparty/zlib/trees.c int v = s->heap[k]; k 459 3rdparty/zlib/trees.c int j = k << 1; /* left son of k */ k 470 3rdparty/zlib/trees.c s->heap[k] = s->heap[j]; k = j; k 475 3rdparty/zlib/trees.c s->heap[k] = v; k 249 apps/traincascade/old_ml.hpp virtual float find_nearest( const CvMat* samples, int k, CV_OUT CvMat* results=0, k 259 apps/traincascade/old_ml.hpp virtual float find_nearest( const cv::Mat& samples, int k, cv::Mat* results=0, k 262 apps/traincascade/old_ml.hpp CV_WRAP virtual float find_nearest( const cv::Mat& samples, int k, CV_OUT cv::Mat& results, k 271 apps/traincascade/old_ml.hpp virtual float write_results( int k, int k1, int start, int end, k 275 apps/traincascade/old_ml.hpp virtual void find_neighbors_direct( const CvMat* _samples, int k, int start, int end, k 836 apps/traincascade/old_ml.hpp int var_count, int* sums, int k, int* cluster_labels ); k 1477 apps/traincascade/old_ml.hpp int k=-1 ) const; k 1509 apps/traincascade/old_ml.hpp int k=-1 ) const; k 1594 apps/traincascade/old_ml.hpp int k=-1 ) const; k 1613 apps/traincascade/old_ml.hpp virtual void find_gradient( const int k = 0); k 1632 apps/traincascade/old_ml.hpp virtual void change_values(CvDTree* tree, const int k = 0); k 384 apps/traincascade/old_ml_boost.cpp int i, j, k, idx; k 400 apps/traincascade/old_ml_boost.cpp k = responses[i]; k 401 apps/traincascade/old_ml_boost.cpp cjk[j*2 + k] += w; k 812 apps/traincascade/old_ml_boost.cpp for( int k = 0; k < m; k++ ) k 813 apps/traincascade/old_ml_boost.cpp cls_count[k] = 0; k 129 apps/traincascade/old_ml_inner_functions.cpp int i, j, k; k 138 apps/traincascade/old_ml_inner_functions.cpp for( k = 0; k < i; k++ ) k 139 apps/traincascade/old_ml_inner_functions.cpp sum += CV_MAT_ELEM(*S, float, k, i) * CV_MAT_ELEM(*S, float, k, i); k 146 apps/traincascade/old_ml_inner_functions.cpp for( k = 0; k < i; k++ ) k 147 apps/traincascade/old_ml_inner_functions.cpp sum += CV_MAT_ELEM(*S, float, k, i) * CV_MAT_ELEM(*S, float, k, j); k 1036 apps/traincascade/old_ml_inner_functions.cpp int i, k = 0, sample_count; k 1068 apps/traincascade/old_ml_inner_functions.cpp class_ranges[++k] = i+1; k 135 apps/traincascade/old_ml_precomp.hpp int k, l; \ k 140 apps/traincascade/old_ml_precomp.hpp sistep = cistep = k = l = m = n = 0; k 150 apps/traincascade/old_ml_precomp.hpp k = n; \ k 200 apps/traincascade/old_ml_precomp.hpp ICV_MAT2VEC( *(param), cidx, cistep, k ); \ k 201 apps/traincascade/old_ml_precomp.hpp if( k > n ) \ k 2093 apps/traincascade/old_ml_tree.cpp int* csums, int k, int* labels ) k 2098 apps/traincascade/old_ml_tree.cpp cv::AutoBuffer<double> buf(n + k); k 2108 apps/traincascade/old_ml_tree.cpp labels[i] = i < k ? i : r->uniform(0, k); k 2126 apps/traincascade/old_ml_tree.cpp for( i = 0; i < k; i++ ) k 2147 apps/traincascade/old_ml_tree.cpp for( i = 0; i < k; i++ ) k 2164 apps/traincascade/old_ml_tree.cpp for( idx = 0; idx < k; idx++ ) k 2219 apps/traincascade/old_ml_tree.cpp int i, j, k, idx; k 2228 apps/traincascade/old_ml_tree.cpp for( k = 0; k < m; k++ ) k 2229 apps/traincascade/old_ml_tree.cpp cjk[j*m + k] = 0; k 2234 apps/traincascade/old_ml_tree.cpp k = responses[i]; k 2235 apps/traincascade/old_ml_tree.cpp cjk[j*m + k]++; k 2261 apps/traincascade/old_ml_tree.cpp for( k = 0; k < m; k++ ) k 2265 apps/traincascade/old_ml_tree.cpp sum += cjk[j*m + k]; k 2266 apps/traincascade/old_ml_tree.cpp rc[k] = sum; k 2267 apps/traincascade/old_ml_tree.cpp lc[k] = 0; k 2273 apps/traincascade/old_ml_tree.cpp for( k = 0; k < m; k++ ) k 2274 apps/traincascade/old_ml_tree.cpp sum += cjk[j*m + k]*priors[k]; k 2308 apps/traincascade/old_ml_tree.cpp for( k = 0; k < m; k++ ) k 2310 apps/traincascade/old_ml_tree.cpp int t = crow[k]; k 2311 apps/traincascade/old_ml_tree.cpp int lval = lc[k] + t; k 2312 apps/traincascade/old_ml_tree.cpp int rval = rc[k] - t; k 2313 apps/traincascade/old_ml_tree.cpp double p = priors[k], p2 = p*p; k 2316 apps/traincascade/old_ml_tree.cpp lc[k] = lval; rc[k] = rval; k 2323 apps/traincascade/old_ml_tree.cpp for( k = 0; k < m; k++ ) k 2325 apps/traincascade/old_ml_tree.cpp int t = crow[k]; k 2326 apps/traincascade/old_ml_tree.cpp int lval = lc[k] - t; k 2327 apps/traincascade/old_ml_tree.cpp int rval = rc[k] + t; k 2328 apps/traincascade/old_ml_tree.cpp double p = priors[k], p2 = p*p; k 2331 apps/traincascade/old_ml_tree.cpp lc[k] = lval; rc[k] = rval; k 2755 apps/traincascade/old_ml_tree.cpp int i, j, k, n = node->sample_count, cv_n = data->params.cv_folds; k 2786 apps/traincascade/old_ml_tree.cpp for( k = 0; k < m; k++ ) k 2787 apps/traincascade/old_ml_tree.cpp cls_count[k] = 0; k 2797 apps/traincascade/old_ml_tree.cpp for( k = 0; k < m; k++ ) k 2798 apps/traincascade/old_ml_tree.cpp cv_cls_count[j*m + k] = 0; k 2802 apps/traincascade/old_ml_tree.cpp j = cv_labels[i]; k = responses[i]; k 2803 apps/traincascade/old_ml_tree.cpp cv_cls_count[j*m + k]++; k 2807 apps/traincascade/old_ml_tree.cpp for( k = 0; k < m; k++ ) k 2808 apps/traincascade/old_ml_tree.cpp cls_count[k] += cv_cls_count[j*m + k]; k 2815 apps/traincascade/old_ml_tree.cpp for( k = 0; k < m; k++ ) k 2817 apps/traincascade/old_ml_tree.cpp int n_k = cls_count[k]; k 2818 apps/traincascade/old_ml_tree.cpp priors[k] = data->priors->data.db[k]*(n_k ? 1./n_k : 0.); k 2819 apps/traincascade/old_ml_tree.cpp sum += priors[k]; k 2822 apps/traincascade/old_ml_tree.cpp for( k = 0; k < m; k++ ) k 2823 apps/traincascade/old_ml_tree.cpp priors[k] *= sum; k 2826 apps/traincascade/old_ml_tree.cpp for( k = 0; k < m; k++ ) k 2828 apps/traincascade/old_ml_tree.cpp double val = cls_count[k]*priors[k]; k 2833 apps/traincascade/old_ml_tree.cpp max_k = k; k 2847 apps/traincascade/old_ml_tree.cpp for( k = 0; k < m; k++ ) k 2849 apps/traincascade/old_ml_tree.cpp double w = priors[k]; k 2850 apps/traincascade/old_ml_tree.cpp double val_k = cv_cls_count[j*m + k]*w; k 2851 apps/traincascade/old_ml_tree.cpp double val = cls_count[k]*w - val_k; k 2858 apps/traincascade/old_ml_tree.cpp max_k = k; k 238 modules/calib3d/src/calibinit.cpp int k = 0; k 315 modules/calib3d/src/calibinit.cpp for( k = 0; k < 6; k++ ) k 339 modules/calib3d/src/calibinit.cpp MIN(img->cols,img->rows)*(k%2 == 0 ? 0.2 : 0.1): prev_sqr_size*2)|1; k 343 modules/calib3d/src/calibinit.cpp CV_ADAPTIVE_THRESH_MEAN_C, CV_THRESH_BINARY, block_size, (k/2)*5 ); k 384 modules/calib3d/src/calibinit.cpp for (int k=0; k<4; k++) k 388 modules/calib3d/src/calibinit.cpp pt1 = quads[i].corners[k]->pt; k 389 modules/calib3d/src/calibinit.cpp pt2 = quads[i].corners[(k+1)%4]->pt; k 392 modules/calib3d/src/calibinit.cpp if (k>0) k 439 modules/calib3d/src/calibinit.cpp for (int k=0; k<4; k++) k 445 modules/calib3d/src/calibinit.cpp pt1 = quads[i].corners[k]->pt; k 446 modules/calib3d/src/calibinit.cpp pt2 = quads[i].corners[(k+1)%4]->pt; k 449 modules/calib3d/src/calibinit.cpp if (k>0) k 513 modules/calib3d/src/calibinit.cpp for( k = 0; k < pattern_size.width*pattern_size.height; k++ ) k 515 modules/calib3d/src/calibinit.cpp if( out_corners[k].x <= BORDER || out_corners[k].x > img->cols - BORDER || k 516 modules/calib3d/src/calibinit.cpp out_corners[k].y <= BORDER || out_corners[k].y > img->rows - BORDER ) k 520 modules/calib3d/src/calibinit.cpp found = k == pattern_size.width*pattern_size.height; k 585 modules/calib3d/src/calibinit.cpp int i, j, k; k 587 modules/calib3d/src/calibinit.cpp for( k = 0; k < 2; k++ ) k 589 modules/calib3d/src/calibinit.cpp for( i = 0; i < (k == 0 ? pattern_size.height : pattern_size.width); i++ ) k 591 modules/calib3d/src/calibinit.cpp CvPoint2D32f a = k == 0 ? corners[i*pattern_size.width] : corners[i]; k 592 modules/calib3d/src/calibinit.cpp CvPoint2D32f b = k == 0 ? corners[(i+1)*pattern_size.width-1] : k 597 modules/calib3d/src/calibinit.cpp for( j = 1; j < (k == 0 ? pattern_size.width : pattern_size.height) - 1; j++ ) k 599 modules/calib3d/src/calibinit.cpp CvPoint2D32f c = k == 0 ? corners[i*pattern_size.width + j] : k 889 modules/calib3d/src/calibinit.cpp for (int k=0; k<4; k++) k 891 modules/calib3d/src/calibinit.cpp corner = &(*corners)[all_count*4+k]; k 892 modules/calib3d/src/calibinit.cpp pt = quad->corners[k]->pt; k 895 modules/calib3d/src/calibinit.cpp q->corners[k] = corner; k 1035 modules/calib3d/src/calibinit.cpp for(int k = 0; k < 4; k++ ) k 1036 modules/calib3d/src/calibinit.cpp if( q0->neighbors[k] == q ) k 1038 modules/calib3d/src/calibinit.cpp q0->neighbors[k] = 0; k 1100 modules/calib3d/src/calibinit.cpp int i, j, k; k 1179 modules/calib3d/src/calibinit.cpp for( k = 0; k < 4; k++ ) k 1180 modules/calib3d/src/calibinit.cpp if( q0->neighbors[k] == q ) k 1182 modules/calib3d/src/calibinit.cpp q0->neighbors[k] = 0; k 1260 modules/calib3d/src/calibinit.cpp int j, k, kk; k 1300 modules/calib3d/src/calibinit.cpp for( k = 0; k < 4; k++ ) k 1302 modules/calib3d/src/calibinit.cpp if( a->neighbors[k] == b ) k 1304 modules/calib3d/src/calibinit.cpp if( b->neighbors[k] == a ) k 1344 modules/calib3d/src/calibinit.cpp for( k = 0; k < 4; k++ ) k 1346 modules/calib3d/src/calibinit.cpp c = cur->neighbors[k]; k 1375 modules/calib3d/src/calibinit.cpp for( k = 0; k < 4; k++ ) k 1377 modules/calib3d/src/calibinit.cpp c = cur->neighbors[k]; k 1420 modules/calib3d/src/calibinit.cpp for( k = 0; k < 4; k++ ) k 1422 modules/calib3d/src/calibinit.cpp c = cur->neighbors[k]; k 1455 modules/calib3d/src/calibinit.cpp CV_SWAP( width, height, k ); k 1510 modules/calib3d/src/calibinit.cpp int idx, i, k, j; k 1538 modules/calib3d/src/calibinit.cpp for( k = 0; k < quad_count; k++ ) k 1540 modules/calib3d/src/calibinit.cpp if( k == idx ) k 1545 modules/calib3d/src/calibinit.cpp if( quads[k].neighbors[j] ) k 1548 modules/calib3d/src/calibinit.cpp dx = pt.x - quads[k].corners[j]->pt.x; k 1549 modules/calib3d/src/calibinit.cpp dy = pt.y - quads[k].corners[j]->pt.y; k 1554 modules/calib3d/src/calibinit.cpp dist <= quads[k].edge_len*thresh_scale ) k 1558 modules/calib3d/src/calibinit.cpp float ediff = cur_quad->edge_len - quads[k].edge_len; k 1560 modules/calib3d/src/calibinit.cpp ediff > 32*quads[k].edge_len) k 1566 modules/calib3d/src/calibinit.cpp closest_quad = &quads[k]; k 1607 modules/calib3d/src/calibinit.cpp for( k = 0; k < quad_count; k++ ) k 1609 modules/calib3d/src/calibinit.cpp CvCBQuad* q = &quads[k]; k 1610 modules/calib3d/src/calibinit.cpp if( k == idx || q == closest_quad ) k 1626 modules/calib3d/src/calibinit.cpp if( k < quad_count ) k 254 modules/calib3d/src/calibration.cpp int i, k; k 341 modules/calib3d/src/calibration.cpp for( k = 0; k < 9; k++ ) k 342 modules/calib3d/src/calibration.cpp R[k] = c*I[k] + c1*rrt[k] + s*_r_x_[k]; k 359 modules/calib3d/src/calibration.cpp for( k = 0; k < 9; k++ ) k 360 modules/calib3d/src/calibration.cpp J[i*9+k] = a0*I[k] + a1*rrt[k] + a2*drrt[i*9+k] + k 361 modules/calib3d/src/calibration.cpp a3*_r_x_[k] + a4*d_r_x_[i*9+k]; k 545 modules/calib3d/src/calibration.cpp double r[3], R[9], dRdr[27], t[3], a[9], k[12] = {0,0,0,0,0,0,0,0,0,0,0,0}, fx, fy, cx, cy; k 653 modules/calib3d/src/calibration.cpp CV_MAKETYPE(CV_64F,CV_MAT_CN(distCoeffs->type)), k ); k 767 modules/calib3d/src/calibration.cpp cdist = 1 + k[0]*r2 + k[1]*r4 + k[4]*r6; k 768 modules/calib3d/src/calibration.cpp icdist2 = 1./(1 + k[5]*r2 + k[6]*r4 + k[7]*r6); k 769 modules/calib3d/src/calibration.cpp xd = x*cdist*icdist2 + k[2]*a1 + k[3]*a2 + k[8]*r2+k[9]*r4; k 770 modules/calib3d/src/calibration.cpp yd = y*cdist*icdist2 + k[2]*a3 + k[3]*a1 + k[10]*r2+k[11]*r4; k 850 modules/calib3d/src/calibration.cpp double dcdist_dt = k[0]*dr2dt + 2*k[1]*r2*dr2dt + 3*k[4]*r4*dr2dt; k 851 modules/calib3d/src/calibration.cpp double dicdist2_dt = -icdist2*icdist2*(k[5]*dr2dt + 2*k[6]*r2*dr2dt + 3*k[7]*r4*dr2dt); k 854 modules/calib3d/src/calibration.cpp k[2]*da1dt + k[3]*(dr2dt + 2*x*dxdt[j]) + k[8]*dr2dt + 2*r2*k[9]*dr2dt); k 856 modules/calib3d/src/calibration.cpp k[2]*(dr2dt + 2*y*dydt[j]) + k[3]*da1dt + k[10]*dr2dt + 2*r2*k[11]*dr2dt); k 888 modules/calib3d/src/calibration.cpp double dcdist_dr = k[0]*dr2dr + 2*k[1]*r2*dr2dr + 3*k[4]*r4*dr2dr; k 889 modules/calib3d/src/calibration.cpp double dicdist2_dr = -icdist2*icdist2*(k[5]*dr2dr + 2*k[6]*r2*dr2dr + 3*k[7]*r4*dr2dr); k 892 modules/calib3d/src/calibration.cpp k[2]*da1dr + k[3]*(dr2dr + 2*x*dxdr) + k[8]*dr2dr + 2*r2*k[9]*dr2dr); k 894 modules/calib3d/src/calibration.cpp k[2]*(dr2dr + 2*y*dydr) + k[3]*da1dr + k[10]*dr2dr + 2*r2*k[11]*dr2dr); k 1239 modules/calib3d/src/calibration.cpp double A[9], k[12] = {0,0,0,0,0,0,0,0,0,0,0,0}; k 1325 modules/calib3d/src/calibration.cpp _k = cvMat( distCoeffs->rows, distCoeffs->cols, CV_MAKETYPE(CV_64F,CV_MAT_CN(distCoeffs->type)), k); k 1391 modules/calib3d/src/calibration.cpp param[4] = k[0]; param[5] = k[1]; param[6] = k[2]; param[7] = k[3]; k 1392 modules/calib3d/src/calibration.cpp param[8] = k[4]; param[9] = k[5]; param[10] = k[6]; param[11] = k[7]; k 1393 modules/calib3d/src/calibration.cpp param[12] = k[8]; param[13] = k[9]; param[14] = k[10]; param[15] = k[11]; k 1461 modules/calib3d/src/calibration.cpp k[0] = param[4]; k[1] = param[5]; k[2] = param[6]; k[3] = param[7]; k 1462 modules/calib3d/src/calibration.cpp k[4] = param[8]; k[5] = param[9]; k[6] = param[10]; k[7] = param[11]; k 1463 modules/calib3d/src/calibration.cpp k[8] = param[12];k[9] = param[13];k[10] = param[14];k[11] = param[15]; k 1652 modules/calib3d/src/calibration.cpp int i, k, p, ni = 0, ofs, nimages, pointsTotal, maxPoints = 0; k 1682 modules/calib3d/src/calibration.cpp for( k = 0; k < 2; k++ ) k 1684 modules/calib3d/src/calibration.cpp const CvMat* points = k == 0 ? _imagePoints1 : _imagePoints2; k 1685 modules/calib3d/src/calibration.cpp const CvMat* cameraMatrix = k == 0 ? _cameraMatrix1 : _cameraMatrix2; k 1686 modules/calib3d/src/calibration.cpp const CvMat* distCoeffs = k == 0 ? _distCoeffs1 : _distCoeffs2; k 1694 modules/calib3d/src/calibration.cpp K[k] = cvMat(3,3,CV_64F,A[k]); k 1695 modules/calib3d/src/calibration.cpp Dist[k] = cvMat(1,12,CV_64F,dk[k]); k 1697 modules/calib3d/src/calibration.cpp imagePoints[k].reset(cvCreateMat( points->rows, points->cols, CV_64FC(CV_MAT_CN(points->type)))); k 1698 modules/calib3d/src/calibration.cpp cvConvert( points, imagePoints[k] ); k 1699 modules/calib3d/src/calibration.cpp cvReshape( imagePoints[k], imagePoints[k], 2, 1 ); k 1703 modules/calib3d/src/calibration.cpp cvConvert( cameraMatrix, &K[k] ); k 1709 modules/calib3d/src/calibration.cpp CV_MAKETYPE(CV_64F,CV_MAT_CN(distCoeffs->type)), Dist[k].data.db ); k 1715 modules/calib3d/src/calibration.cpp cvCalibrateCamera2( objectPoints, imagePoints[k], k 1716 modules/calib3d/src/calibration.cpp npoints, imageSize, &K[k], &Dist[k], 0, 0, flags ); k 1723 modules/calib3d/src/calibration.cpp for( k = 0; avg_idx[k] >= 0; k++ ) k 1724 modules/calib3d/src/calibration.cpp A[0][avg_idx[k]] = A[1][avg_idx[k]] = (A[0][avg_idx[k]] + A[1][avg_idx[k]])*0.5; k 1729 modules/calib3d/src/calibration.cpp for( k = 0; k < 2; k++ ) k 1730 modules/calib3d/src/calibration.cpp aspectRatio[k] = A[k][0]/A[k][4]; k 1806 modules/calib3d/src/calibration.cpp for( k = 0; k < 2; k++ ) k 1808 modules/calib3d/src/calibration.cpp imgpt_i[k] = cvMat(1, ni, CV_64FC2, imagePoints[k]->data.db + ofs*2); k 1809 modules/calib3d/src/calibration.cpp om[k] = cvMat(3, 1, CV_64F, _om[k]); k 1810 modules/calib3d/src/calibration.cpp R[k] = cvMat(3, 3, CV_64F, r[k]); k 1811 modules/calib3d/src/calibration.cpp T[k] = cvMat(3, 1, CV_64F, t[k]); k 1815 modules/calib3d/src/calibration.cpp cvFindExtrinsicCameraParams2( &objpt_i, &imgpt_i[k], &K[k], &Dist[k], &om[k], &T[k] ); k 1816 modules/calib3d/src/calibration.cpp cvRodrigues2( &om[k], &R[k] ); k 1817 modules/calib3d/src/calibration.cpp if( k == 0 ) k 1848 modules/calib3d/src/calibration.cpp for( k = 0; k < 2; k++ ) k 1850 modules/calib3d/src/calibration.cpp double* iparam = solver.param->data.db + (nimages+1)*6 + k*NINTRINSIC; k 1852 modules/calib3d/src/calibration.cpp dk[k][2] = dk[k][3] = 0; k 1853 modules/calib3d/src/calibration.cpp iparam[0] = A[k][0]; iparam[1] = A[k][4]; iparam[2] = A[k][2]; iparam[3] = A[k][5]; k 1854 modules/calib3d/src/calibration.cpp iparam[4] = dk[k][0]; iparam[5] = dk[k][1]; iparam[6] = dk[k][2]; k 1855 modules/calib3d/src/calibration.cpp iparam[7] = dk[k][3]; iparam[8] = dk[k][4]; iparam[9] = dk[k][5]; k 1856 modules/calib3d/src/calibration.cpp iparam[10] = dk[k][6]; iparam[11] = dk[k][7]; k 1857 modules/calib3d/src/calibration.cpp iparam[12] = dk[k][8]; k 1858 modules/calib3d/src/calibration.cpp iparam[13] = dk[k][9]; k 1859 modules/calib3d/src/calibration.cpp iparam[14] = dk[k][10]; k 1860 modules/calib3d/src/calibration.cpp iparam[15] = dk[k][11]; k 1913 modules/calib3d/src/calibration.cpp for( k = 0; k < 2; k++ ) k 1915 modules/calib3d/src/calibration.cpp A[k][0] = iparam[k*NINTRINSIC+0]; k 1916 modules/calib3d/src/calibration.cpp A[k][4] = iparam[k*NINTRINSIC+1]; k 1917 modules/calib3d/src/calibration.cpp A[k][2] = iparam[k*NINTRINSIC+2]; k 1918 modules/calib3d/src/calibration.cpp A[k][5] = iparam[k*NINTRINSIC+3]; k 1919 modules/calib3d/src/calibration.cpp dk[k][0] = iparam[k*NINTRINSIC+4]; k 1920 modules/calib3d/src/calibration.cpp dk[k][1] = iparam[k*NINTRINSIC+5]; k 1921 modules/calib3d/src/calibration.cpp dk[k][2] = iparam[k*NINTRINSIC+6]; k 1922 modules/calib3d/src/calibration.cpp dk[k][3] = iparam[k*NINTRINSIC+7]; k 1923 modules/calib3d/src/calibration.cpp dk[k][4] = iparam[k*NINTRINSIC+8]; k 1924 modules/calib3d/src/calibration.cpp dk[k][5] = iparam[k*NINTRINSIC+9]; k 1925 modules/calib3d/src/calibration.cpp dk[k][6] = iparam[k*NINTRINSIC+10]; k 1926 modules/calib3d/src/calibration.cpp dk[k][7] = iparam[k*NINTRINSIC+11]; k 1927 modules/calib3d/src/calibration.cpp dk[k][8] = iparam[k*NINTRINSIC+12]; k 1928 modules/calib3d/src/calibration.cpp dk[k][9] = iparam[k*NINTRINSIC+13]; k 1929 modules/calib3d/src/calibration.cpp dk[k][10] = iparam[k*NINTRINSIC+14]; k 1930 modules/calib3d/src/calibration.cpp dk[k][11] = iparam[k*NINTRINSIC+15]; k 1958 modules/calib3d/src/calibration.cpp for( k = 0; k < 2; k++ ) k 1961 modules/calib3d/src/calibration.cpp imgpt_i[k] = cvMat(1, ni, CV_64FC2, imagePoints[k]->data.db + ofs*2); k 1964 modules/calib3d/src/calibration.cpp cvProjectPoints2( &objpt_i, &om[k], &T[k], &K[k], &Dist[k], k 1966 modules/calib3d/src/calibration.cpp (flags & CV_CALIB_FIX_ASPECT_RATIO) ? aspectRatio[k] : 0); k 1968 modules/calib3d/src/calibration.cpp cvProjectPoints2( &objpt_i, &om[k], &T[k], &K[k], &Dist[k], &tmpimagePoints ); k 1969 modules/calib3d/src/calibration.cpp cvSub( &tmpimagePoints, &imgpt_i[k], &tmpimagePoints ); k 1975 modules/calib3d/src/calibration.cpp int iofs = (nimages+1)*6 + k*NINTRINSIC, eofs = (i+1)*6; k 1978 modules/calib3d/src/calibration.cpp if( k == 1 ) k 2026 modules/calib3d/src/calibration.cpp if( k == 1 ) k 2055 modules/calib3d/src/calibration.cpp for( k = 0; k < 2; k++ ) k 2057 modules/calib3d/src/calibration.cpp CvMat* distCoeffs = k == 0 ? _distCoeffs1 : _distCoeffs2; k 2059 modules/calib3d/src/calibration.cpp CV_MAKETYPE(CV_64F,CV_MAT_CN(distCoeffs->type)), Dist[k].data.db ); k 2102 modules/calib3d/src/calibration.cpp int x, y, k; k 2106 modules/calib3d/src/calibration.cpp for( y = k = 0; y < N; y++ ) k 2108 modules/calib3d/src/calibration.cpp pts[k++] = cvPoint2D32f((float)x*imgSize.width/(N-1), k 2117 modules/calib3d/src/calibration.cpp for( y = k = 0; y < N; y++ ) k 2120 modules/calib3d/src/calibration.cpp CvPoint2D32f p = pts[k++]; k 2161 modules/calib3d/src/calibration.cpp int i, k; k 2194 modules/calib3d/src/calibration.cpp for( k = 0; k < 2; k++ ) { k 2195 modules/calib3d/src/calibration.cpp const CvMat* A = k == 0 ? _cameraMatrix1 : _cameraMatrix2; k 2196 modules/calib3d/src/calibration.cpp const CvMat* Dk = k == 0 ? _distCoeffs1 : _distCoeffs2; k 2205 modules/calib3d/src/calibration.cpp for( k = 0; k < 2; k++ ) k 2207 modules/calib3d/src/calibration.cpp const CvMat* A = k == 0 ? _cameraMatrix1 : _cameraMatrix2; k 2208 modules/calib3d/src/calibration.cpp const CvMat* Dk = k == 0 ? _distCoeffs1 : _distCoeffs2; k 2230 modules/calib3d/src/calibration.cpp cvProjectPoints2( &pts_3, k == 0 ? _R1 : _R2, &Z, &A_tmp, 0, &pts ); k 2232 modules/calib3d/src/calibration.cpp cc_new[k].x = (nx-1)/2 - avg.val[0]; k 2233 modules/calib3d/src/calibration.cpp cc_new[k].y = (ny-1)/2 - avg.val[1]; k 2546 modules/calib3d/src/calibration.cpp double k[] = k 2552 modules/calib3d/src/calibration.cpp CvMat K = cvMat(3, 3, CV_64F, k); k 2940 modules/calib3d/src/calibration.cpp int i, k; k 2942 modules/calib3d/src/calibration.cpp for(k = 0; k < 4; k++) k 2943 modules/calib3d/src/calibration.cpp cvmSet(&tmpProjMatr, i, k, cvmGet(projMatr, i, k)); k 234 modules/calib3d/src/circlesgrid.cpp for(size_t k=0; k<corners.size(); k++) k 236 modules/calib3d/src/circlesgrid.cpp Point2f diff = corners[(k + 1) % corners.size()] - corners[k]; k 237 modules/calib3d/src/circlesgrid.cpp tangentVectors[k] = diff * (1.0f / norm(diff)); k 648 modules/calib3d/src/circlesgrid.cpp for (size_t k = 0; k < basisGraphs.size(); k++) k 650 modules/calib3d/src/circlesgrid.cpp if (i != holes.size() - 1 && basisGraphs[k].areVerticesAdjacent(holes[i][j], holes[i + 1][j])) k 652 modules/calib3d/src/circlesgrid.cpp basisGraphs[k].removeEdge(holes[i][j], holes[i + 1][j]); k 655 modules/calib3d/src/circlesgrid.cpp if (j != holes[i].size() - 1 && basisGraphs[k].areVerticesAdjacent(holes[i][j], holes[i][j + 1])) k 657 modules/calib3d/src/circlesgrid.cpp basisGraphs[k].removeEdge(holes[i][j], holes[i][j + 1]); k 1124 modules/calib3d/src/circlesgrid.cpp for (int k = 0; k < (int)samples.size(); k++) k 1126 modules/calib3d/src/circlesgrid.cpp int label = bestLabels.at<int> (k, 0); k 1134 modules/calib3d/src/circlesgrid.cpp clusters[idx].push_back(basis[idx] + parameters.convexHullFactor * (samples[k] - basis[idx])); k 1152 modules/calib3d/src/circlesgrid.cpp for (size_t k = 0; k < hulls.size(); k++) k 1154 modules/calib3d/src/circlesgrid.cpp if (pointPolygonTest(Mat(hulls[k]), vec, false) >= 0) k 1156 modules/calib3d/src/circlesgrid.cpp basisGraphs[k].addEdge(i, j); k 1182 modules/calib3d/src/circlesgrid.cpp for (size_t k = 0; k < keypoints.size(); k++) k 1184 modules/calib3d/src/circlesgrid.cpp if (k == i || k == j) k 1187 modules/calib3d/src/circlesgrid.cpp double dist1 = norm(keypoints[i] - keypoints[k]); k 1188 modules/calib3d/src/circlesgrid.cpp double dist2 = norm(keypoints[j] - keypoints[k]); k 1221 modules/calib3d/src/circlesgrid.cpp for (int k = 0; k < verticesCount; k++) k 1223 modules/calib3d/src/circlesgrid.cpp if (dm.at<int> (i, k) == dist - 1 && dm.at<int> (k, j) == 1) k 1225 modules/calib3d/src/circlesgrid.cpp predecessorMatrix.at<int> (i, j) = k; k 1550 modules/calib3d/src/circlesgrid.cpp for (size_t k = 0; k < segments[j].size(); k++) k 1552 modules/calib3d/src/circlesgrid.cpp if (areSegmentsIntersecting(corner[i], segments[j][k])) k 112 modules/calib3d/src/dls.cpp for (int k = 0; k < 27; ++k) k 115 modules/calib3d/src/dls.cpp cv::Mat V_kA = eigenvec_r.col(k); // 27x1 k 118 modules/calib3d/src/dls.cpp cv::Mat( V_k.t()).copyTo( eigenvec_r.col(k) ); k 123 modules/calib3d/src/dls.cpp if( eigenval_i.at<double>(k,0) >= -epsilon && eigenval_i.at<double>(k,0) <= epsilon ) k 128 modules/calib3d/src/dls.cpp stmp[0] = eigenvec_r.at<double>(9, k); k 129 modules/calib3d/src/dls.cpp stmp[1] = eigenvec_r.at<double>(3, k); k 130 modules/calib3d/src/dls.cpp stmp[2] = eigenvec_r.at<double>(1, k); k 189 modules/calib3d/src/dls.cpp for (int k = 0; k < sols.cols; ++k) k 191 modules/calib3d/src/dls.cpp cv::Mat cam_points = C_est[k] * pp + cv::repeat(t_est[k], 1, pp.cols); k 196 modules/calib3d/src/dls.cpp cv::Mat C_valid = C_est[k], t_valid = t_est[k]; k 197 modules/calib3d/src/dls.cpp double cost_valid = cost[k]; k 359 modules/calib3d/src/dls.h for (int k = m; k <= n1 - 1; k++) { k 360 modules/calib3d/src/dls.h bool notlast = (k != n1 - 1); k 361 modules/calib3d/src/dls.h if (k != m) { k 362 modules/calib3d/src/dls.h p = H[k][k - 1]; k 363 modules/calib3d/src/dls.h q = H[k + 1][k - 1]; k 364 modules/calib3d/src/dls.h r = (notlast ? H[k + 2][k - 1] : 0.0); k 380 modules/calib3d/src/dls.h if (k != m) { k 381 modules/calib3d/src/dls.h H[k][k - 1] = -s * x; k 383 modules/calib3d/src/dls.h H[k][k - 1] = -H[k][k - 1]; k 394 modules/calib3d/src/dls.h for (int j = k; j < nn; j++) { k 395 modules/calib3d/src/dls.h p = H[k][j] + q * H[k + 1][j]; k 397 modules/calib3d/src/dls.h p = p + r * H[k + 2][j]; k 398 modules/calib3d/src/dls.h H[k + 2][j] = H[k + 2][j] - p * z; k 400 modules/calib3d/src/dls.h H[k][j] = H[k][j] - p * x; k 401 modules/calib3d/src/dls.h H[k + 1][j] = H[k + 1][j] - p * y; k 406 modules/calib3d/src/dls.h for (int i = 0; i <= std::min(n1, k + 3); i++) { k 407 modules/calib3d/src/dls.h p = x * H[i][k] + y * H[i][k + 1]; k 409 modules/calib3d/src/dls.h p = p + z * H[i][k + 2]; k 410 modules/calib3d/src/dls.h H[i][k + 2] = H[i][k + 2] - p * r; k 412 modules/calib3d/src/dls.h H[i][k] = H[i][k] - p; k 413 modules/calib3d/src/dls.h H[i][k + 1] = H[i][k + 1] - p * q; k 419 modules/calib3d/src/dls.h p = x * V[i][k] + y * V[i][k + 1]; k 421 modules/calib3d/src/dls.h p = p + z * V[i][k + 2]; k 422 modules/calib3d/src/dls.h V[i][k + 2] = V[i][k + 2] - p * r; k 424 modules/calib3d/src/dls.h V[i][k] = V[i][k] - p; k 425 modules/calib3d/src/dls.h V[i][k + 1] = V[i][k + 1] - p * q; k 584 modules/calib3d/src/dls.h for (int k = low; k <= std::min(j, high); k++) { k 585 modules/calib3d/src/dls.h z = z + V[i][k] * H[k][j]; k 78 modules/calib3d/src/epnp.cpp double k = sqrt(dc[i - 1] / number_of_correspondences); k 80 modules/calib3d/src/epnp.cpp cws[i][j] = cws[0][j] + k * uct[3 * (i - 1) + j]; k 134 modules/calib3d/src/epnp.cpp for(int k = 0; k < 3; k++) k 135 modules/calib3d/src/epnp.cpp ccs[j][k] += betas[i] * v[3 * j + k]; k 514 modules/calib3d/src/epnp.cpp for(int k = 0; k < iterations_number; k++) k 542 modules/calib3d/src/epnp.cpp for(int k = 0; k < nc; k++) k 545 modules/calib3d/src/epnp.cpp for(int i = k + 1; i < nr; i++) k 553 modules/calib3d/src/epnp.cpp A1[k] = A2[k] = 0.0; k 560 modules/calib3d/src/epnp.cpp for(int i = k; i < nr; i++) k 570 modules/calib3d/src/epnp.cpp A1[k] = sigma * *ppAkk; k 571 modules/calib3d/src/epnp.cpp A2[k] = -eta * sigma; k 572 modules/calib3d/src/epnp.cpp for(int j = k + 1; j < nc; j++) k 575 modules/calib3d/src/epnp.cpp for(int i = k; i < nr; i++) k 577 modules/calib3d/src/epnp.cpp sum += *ppAik * ppAik[j - k]; k 580 modules/calib3d/src/epnp.cpp double tau = sum / A1[k]; k 582 modules/calib3d/src/epnp.cpp for(int i = k; i < nr; i++) k 584 modules/calib3d/src/epnp.cpp ppAik[j - k] -= tau * *ppAik; k 100 modules/calib3d/src/fisheye.cpp Vec4d k = _D.depth() == CV_32F ? (Vec4d)*_D.getMat().ptr<Vec4f>(): *_D.getMat().ptr<Vec4d>(); k 136 modules/calib3d/src/fisheye.cpp double theta_d = theta + k[0]*theta3 + k[1]*theta5 + k[2]*theta7 + k[3]*theta9; k 189 modules/calib3d/src/fisheye.cpp double dtheta_ddtheta = 1 + 3*k[0]*theta2 + 5*k[1]*theta4 + 7*k[2]*theta6 + 9*k[3]*theta8; k 273 modules/calib3d/src/fisheye.cpp Vec4d k = D.depth() == CV_32F ? (Vec4d)*D.getMat().ptr<Vec4f>(): *D.getMat().ptr<Vec4d>(); k 293 modules/calib3d/src/fisheye.cpp double theta_d = theta + k[0]*theta3 + k[1]*theta5 + k[2]*theta7 + k[3]*theta9; k 336 modules/calib3d/src/fisheye.cpp Vec4d k = D.depth() == CV_32F ? (Vec4d)*D.getMat().ptr<Vec4f>(): *D.getMat().ptr<Vec4d>(); k 379 modules/calib3d/src/fisheye.cpp theta = theta_d / (1 + k[0] * theta2 + k[1] * theta4 + k[2] * theta6 + k[3] * theta8); k 428 modules/calib3d/src/fisheye.cpp Vec4d k = Vec4d::all(0); k 430 modules/calib3d/src/fisheye.cpp k = D.depth() == CV_32F ? (Vec4d)*D.getMat().ptr<Vec4f>(): *D.getMat().ptr<Vec4d>(); k 467 modules/calib3d/src/fisheye.cpp double theta_d = theta * (1 + k[0]*theta2 + k[1]*theta4 + k[2]*theta6 + k[3]*theta8); k 531 modules/calib3d/src/fisheye.cpp for(int i = 0, k = 0; i < 10; ++i) k 533 modules/calib3d/src/fisheye.cpp pptr[k++] = Vec2d(w/2, 0) - Vec2d(w/8, 0) + Vec2d(w/4/N*i, 0); k 534 modules/calib3d/src/fisheye.cpp pptr[k++] = Vec2d(w/2, h-1) - Vec2d(w/8, h-1) + Vec2d(w/4/N*i, h-1); k 536 modules/calib3d/src/fisheye.cpp pptr[k++] = Vec2d(0, h/2) - Vec2d(0, h/8) + Vec2d(0, h/4/N*i); k 537 modules/calib3d/src/fisheye.cpp pptr[k++] = Vec2d(w-1, h/2) - Vec2d(w-1, h/8) + Vec2d(w-1, h/4/N*i); k 796 modules/calib3d/src/fisheye.cpp if (D.needed()) cv::Mat(finalParam.k).convertTo(D, D.empty() ? CV_64FC1 : D.type()); k 1046 modules/calib3d/src/fisheye.cpp if (D1.needed()) cv::Mat(intrinsicLeft.k).convertTo(D1, D1.empty() ? CV_64FC1 : D1.type()); k 1047 modules/calib3d/src/fisheye.cpp if (D2.needed()) cv::Mat(intrinsicRight.k).convertTo(D2, D2.empty() ? CV_64FC1 : D2.type()); k 1086 modules/calib3d/src/fisheye.cpp f(Vec2d::all(0)), c(Vec2d::all(0)), k(Vec4d::all(0)), alpha(0), isEstimate(9,0) k 1091 modules/calib3d/src/fisheye.cpp f(_f), c(_c), k(_k), alpha(_alpha), isEstimate(9,0) k 1107 modules/calib3d/src/fisheye.cpp tmp.k[0] = this->k[0] + (isEstimate[5] ? ptr[j++] : 0); k 1108 modules/calib3d/src/fisheye.cpp tmp.k[1] = this->k[1] + (isEstimate[6] ? ptr[j++] : 0); k 1109 modules/calib3d/src/fisheye.cpp tmp.k[2] = this->k[2] + (isEstimate[7] ? ptr[j++] : 0); k 1110 modules/calib3d/src/fisheye.cpp tmp.k[3] = this->k[3] + (isEstimate[8] ? ptr[j++] : 0); k 1128 modules/calib3d/src/fisheye.cpp this->k[0] = isEstimate[5] ? ptr[j++] : 0; k 1129 modules/calib3d/src/fisheye.cpp this->k[1] = isEstimate[6] ? ptr[j++] : 0; k 1130 modules/calib3d/src/fisheye.cpp this->k[2] = isEstimate[7] ? ptr[j++] : 0; k 1131 modules/calib3d/src/fisheye.cpp this->k[3] = isEstimate[8] ? ptr[j++] : 0; k 1140 modules/calib3d/src/fisheye.cpp this->k = _k; k 1152 modules/calib3d/src/fisheye.cpp fisheye::projectPoints(objectPoints, imagePoints, _rvec, _tvec, K, param.k, param.alpha, jacobian); k 1309 modules/calib3d/src/fisheye.cpp cv::fisheye::undistortPoints(distorted, undistorted, Matx33d::eye(), param.k); k 1527 modules/calib3d/src/fisheye.cpp for (int k = 0; k < n; ++k) k 1529 modules/calib3d/src/fisheye.cpp int kj = j + k * p; k 1530 modules/calib3d/src/fisheye.cpp dABdA.getMat().at<double>(ij, kj) = B.getMat().at<double>(k, i); k 11 modules/calib3d/src/fisheye.hpp Vec4d k; k 16 modules/calib3d/src/fisheye.hpp IntrinsicParams(Vec2d f, Vec2d c, Vec4d k, double alpha = 0); k 19 modules/calib3d/src/fisheye.hpp void Init(const cv::Vec2d& f, const cv::Vec2d& c, const cv::Vec4d& k = Vec4d(0,0,0,0), const double& alpha = 0); k 52 modules/calib3d/src/fundam.cpp int j, k, i = count-1; k 61 modules/calib3d/src/fundam.cpp for( k = 0; k < j; k++ ) k 63 modules/calib3d/src/fundam.cpp double dx2 = ptr[k].x - ptr[i].x; k 64 modules/calib3d/src/fundam.cpp double dy2 = ptr[k].y - ptr[i].y; k 165 modules/calib3d/src/fundam.cpp int j, k; k 167 modules/calib3d/src/fundam.cpp for( k = j; k < 9; k++ ) k 168 modules/calib3d/src/fundam.cpp LtL[j][k] += Lx[j]*Lx[k] + Ly[j]*Ly[k]; k 332 modules/calib3d/src/fundam.cpp for(int k=0;k<npoints;k++){ k 333 modules/calib3d/src/fundam.cpp tempMask.data[k] = !!tempMask.data[k]; k 453 modules/calib3d/src/fundam.cpp int i, k, n; k 524 modules/calib3d/src/fundam.cpp for( k = 0; k < n; k++, fmatrix += 9 ) k 527 modules/calib3d/src/fundam.cpp double lambda = r[k], mu = 1.; k 528 modules/calib3d/src/fundam.cpp double s = f1[8]*r[k] + f2[8]; k 563 modules/calib3d/src/fundam.cpp int i, j, k, count = _m1.checkVector(2); k 613 modules/calib3d/src/fundam.cpp for( k = 0; k < 9; k++ ) k 614 modules/calib3d/src/fundam.cpp a[j*9+k] += r[j]*r[k]; k 460 modules/calib3d/src/homography_decomp.cpp for (int k = 0; k < nsols; ++k ) { k 461 modules/calib3d/src/homography_decomp.cpp _rotations.getMatRef(k) = Mat(motions[k].R); k 467 modules/calib3d/src/homography_decomp.cpp for (int k = 0; k < nsols; ++k ) { k 468 modules/calib3d/src/homography_decomp.cpp _translations.getMatRef(k) = Mat(motions[k].t); k 474 modules/calib3d/src/homography_decomp.cpp for (int k = 0; k < nsols; ++k ) { k 475 modules/calib3d/src/homography_decomp.cpp _normals.getMatRef(k) = Mat(motions[k].n); k 382 modules/calib3d/src/p3p.cpp for(int k = 0; k <= i - 1; k++) { k 383 modules/calib3d/src/p3p.cpp double g = A[k * 4 + i], h = A[k * 4 + j]; k 384 modules/calib3d/src/p3p.cpp A[k * 4 + i] = g - s * (h + g * tau); k 385 modules/calib3d/src/p3p.cpp A[k * 4 + j] = h + s * (g - h * tau); k 387 modules/calib3d/src/p3p.cpp for(int k = i + 1; k <= j - 1; k++) { k 388 modules/calib3d/src/p3p.cpp double g = A[i * 4 + k], h = A[k * 4 + j]; k 389 modules/calib3d/src/p3p.cpp A[i * 4 + k] = g - s * (h + g * tau); k 390 modules/calib3d/src/p3p.cpp A[k * 4 + j] = h + s * (g - h * tau); k 392 modules/calib3d/src/p3p.cpp for(int k = j + 1; k < 4; k++) { k 393 modules/calib3d/src/p3p.cpp double g = A[i * 4 + k], h = A[j * 4 + k]; k 394 modules/calib3d/src/p3p.cpp A[i * 4 + k] = g - s * (h + g * tau); k 395 modules/calib3d/src/p3p.cpp A[j * 4 + k] = h + s * (g - h * tau); k 397 modules/calib3d/src/p3p.cpp for(int k = 0; k < 4; k++) { k 398 modules/calib3d/src/p3p.cpp double g = U[k * 4 + i], h = U[k * 4 + j]; k 399 modules/calib3d/src/p3p.cpp U[k * 4 + i] = g - s * (h + g * tau); k 400 modules/calib3d/src/p3p.cpp U[k * 4 + j] = h + s * (g - h * tau); k 117 modules/calib3d/src/posit.cpp int i, j, k; k 191 modules/calib3d/src/posit.cpp for( k = 0; k < N; k++ ) k 193 modules/calib3d/src/posit.cpp rotation[3*i+j] /*[i][j]*/ += invMatrix[j * N + k] * imgVectors[i * N + k]; k 280 modules/calib3d/src/posit.cpp int k; k 282 modules/calib3d/src/posit.cpp for( k = 0; k < n; k++ ) k 284 modules/calib3d/src/posit.cpp float a0 = a[k]; k 285 modules/calib3d/src/posit.cpp float a1 = a[n + k]; k 286 modules/calib3d/src/posit.cpp float a2 = a[2 * n + k]; k 314 modules/calib3d/src/posit.cpp for( k = 0; k < n; k++ ) k 316 modules/calib3d/src/posit.cpp float a0 = a[k]; k 317 modules/calib3d/src/posit.cpp float a1 = a[n + k]; k 318 modules/calib3d/src/posit.cpp float a2 = a[2 * n + k]; k 320 modules/calib3d/src/posit.cpp b[k] = (p00 * a0 + p01 * a1 + p02 * a2) * inv_det; k 321 modules/calib3d/src/posit.cpp b[n + k] = (p01 * a0 + p11 * a1 + p12 * a2) * inv_det; k 322 modules/calib3d/src/posit.cpp b[2 * n + k] = (p02 * a0 + p12 * a1 + p22 * a2) * inv_det; k 111 modules/calib3d/src/ptsetreg.cpp int i = 0, j, k, iters = 0; k 142 modules/calib3d/src/ptsetreg.cpp for( k = 0; k < esz1; k++ ) k 143 modules/calib3d/src/ptsetreg.cpp ms1ptr[i*esz1 + k] = m1ptr[idx_i*esz1 + k]; k 144 modules/calib3d/src/ptsetreg.cpp for( k = 0; k < esz2; k++ ) k 145 modules/calib3d/src/ptsetreg.cpp ms2ptr[i*esz2 + k] = m2ptr[idx_i*esz2 + k]; k 426 modules/calib3d/src/ptsetreg.cpp for(int k = 0; k < 3; ++k) k 476 modules/calib3d/src/ptsetreg.cpp int j, k, i = count - 1; k 489 modules/calib3d/src/ptsetreg.cpp for(k = 0; k < j; ++k) k 491 modules/calib3d/src/ptsetreg.cpp Point3f d2 = ptr[k] - ptr[i]; k 217 modules/calib3d/src/quadsubpix.cpp for(int k = 0; k < 4; k++) k 220 modules/calib3d/src/quadsubpix.cpp for(size_t j = 0; j < quads[k]->size(); j++) temp.push_back((*quads[k])[j]); k 221 modules/calib3d/src/quadsubpix.cpp approxPolyDP(Mat(temp), quads_approx[k], 0.5, true); k 223 modules/calib3d/src/quadsubpix.cpp findCorner(quads_approx[k], corners[i], quad_corners[k]); k 224 modules/calib3d/src/quadsubpix.cpp quad_corners[k] += Point2f(0.5f, 0.5f); k 2374 modules/calib3d/src/rho.cpp int i, j, k; k 2382 modules/calib3d/src/rho.cpp for(k=0;k<j;k++){ k 2383 modules/calib3d/src/rho.cpp x -= L[i][k] * L[j][k];/* - Sum_{k=0..j-1} Lik*Ljk */ k 2391 modules/calib3d/src/rho.cpp for(k=0;k<j;k++){ k 2392 modules/calib3d/src/rho.cpp x -= L[j][k] * L[j][k];/* - Sum_{k=0..j-1} Ljk^2 */ k 91 modules/calib3d/src/stereobm.cpp ocl::Kernel k("prefilter_norm", ocl::calib3d::stereobm_oclsrc, cv::format("-D WSZ=%d", winsize)); k 92 modules/calib3d/src/stereobm.cpp if(k.empty()) k 104 modules/calib3d/src/stereobm.cpp k.args(ocl::KernelArg::PtrReadOnly(input), ocl::KernelArg::PtrWriteOnly(output), input.rows, input.cols, k 107 modules/calib3d/src/stereobm.cpp return k.run(2, globalThreads, NULL, false); k 175 modules/calib3d/src/stereobm.cpp ocl::Kernel k("prefilter_xsobel", ocl::calib3d::stereobm_oclsrc); k 176 modules/calib3d/src/stereobm.cpp if(k.empty()) k 185 modules/calib3d/src/stereobm.cpp k.args(ocl::KernelArg::PtrReadOnly(input), ocl::KernelArg::PtrWriteOnly(output), input.rows, input.cols, prefilterCap); k 187 modules/calib3d/src/stereobm.cpp return k.run(2, globalThreads, NULL, false); k 916 modules/calib3d/src/stereobm.cpp ocl::Kernel k("stereoBM", ocl::calib3d::stereobm_oclsrc, opt); k 917 modules/calib3d/src/stereobm.cpp if(k.empty()) k 934 modules/calib3d/src/stereobm.cpp idx = k.set(idx, ocl::KernelArg::PtrReadOnly(left)); k 935 modules/calib3d/src/stereobm.cpp idx = k.set(idx, ocl::KernelArg::PtrReadOnly(right)); k 936 modules/calib3d/src/stereobm.cpp idx = k.set(idx, ocl::KernelArg::WriteOnlyNoSize(disp)); k 937 modules/calib3d/src/stereobm.cpp idx = k.set(idx, rows); k 938 modules/calib3d/src/stereobm.cpp idx = k.set(idx, cols); k 939 modules/calib3d/src/stereobm.cpp idx = k.set(idx, state->textureThreshold); k 940 modules/calib3d/src/stereobm.cpp idx = k.set(idx, state->uniquenessRatio); k 941 modules/calib3d/src/stereobm.cpp return k.run(3, globalThreads, localThreads, false); k 342 modules/calib3d/src/stereosgbm.cpp int k, width = disp1.cols, height = disp1.rows; k 352 modules/calib3d/src/stereosgbm.cpp for( k = 0; k < TAB_SIZE; k++ ) k 353 modules/calib3d/src/stereosgbm.cpp clipTab[k] = (PixType)(std::min(std::max(k - TAB_OFS, -ftzero), ftzero) + ftzero); k 401 modules/calib3d/src/stereosgbm.cpp for( k = 0; k < width1*D; k++ ) k 402 modules/calib3d/src/stereosgbm.cpp Cbuf[k] = (CostType)P2; k 421 modules/calib3d/src/stereosgbm.cpp for( k = 0; k < NLR; k++ ) k 428 modules/calib3d/src/stereosgbm.cpp Lr[k] = pixDiff + costBufSize + LrSize*k + NRD2*LrBorder + 8; k 429 modules/calib3d/src/stereosgbm.cpp memset( Lr[k] - LrBorder*NRD2 - 8, 0, LrSize*sizeof(CostType) ); k 430 modules/calib3d/src/stereosgbm.cpp minLr[k] = pixDiff + costBufSize + LrSize*NLR + minLrSize*k + NR2*LrBorder; k 431 modules/calib3d/src/stereosgbm.cpp memset( minLr[k] - LrBorder*NR2, 0, minLrSize*sizeof(CostType) ); k 445 modules/calib3d/src/stereosgbm.cpp for( k = dy1; k <= dy2; k++ ) k 447 modules/calib3d/src/stereosgbm.cpp CostType* hsumAdd = hsumBuf + (std::min(k, height-1) % hsumBufNRows)*costBufSize; k 449 modules/calib3d/src/stereosgbm.cpp if( k < height ) k 451 modules/calib3d/src/stereosgbm.cpp calcPixelCostBT( img1, img2, k, minD, maxD, pixDiff, tempBuf, clipTab, TAB_OFS, ftzero ); k 514 modules/calib3d/src/stereosgbm.cpp int scale = k == 0 ? SH2 + 1 : 1; k 521 modules/calib3d/src/stereosgbm.cpp for( k = 0; k < width1*D; k++ ) k 522 modules/calib3d/src/stereosgbm.cpp S[k] = 0; k 102 modules/calib3d/src/triangulate.cpp for( int k = 0; k < 4; k++ ) k 104 modules/calib3d/src/triangulate.cpp matrA(j*2+0, k) = x * cvmGet(projMatrs[j],2,k) - cvmGet(projMatrs[j],0,k); k 105 modules/calib3d/src/triangulate.cpp matrA(j*2+1, k) = y * cvmGet(projMatrs[j],2,k) - cvmGet(projMatrs[j],1,k); k 314 modules/calib3d/src/upnp.cpp for(int k = 0; k < 3; ++k) k 315 modules/calib3d/src/upnp.cpp ccs[j][k] += betas[i] * v[3 * j + k]; k 582 modules/calib3d/src/upnp.cpp for(int k = 0; k < iterations_number; k++) k 727 modules/calib3d/src/upnp.cpp for(int k = 0; k < nc; k++) k 730 modules/calib3d/src/upnp.cpp for(int i = k + 1; i < nr; i++) k 738 modules/calib3d/src/upnp.cpp A1[k] = A2[k] = 0.0; k 745 modules/calib3d/src/upnp.cpp for(int i = k; i < nr; i++) k 755 modules/calib3d/src/upnp.cpp A1[k] = sigma * *ppAkk; k 756 modules/calib3d/src/upnp.cpp A2[k] = -eta * sigma; k 757 modules/calib3d/src/upnp.cpp for(int j = k + 1; j < nc; j++) k 760 modules/calib3d/src/upnp.cpp for(int i = k; i < nr; i++) k 762 modules/calib3d/src/upnp.cpp sum += *ppAik * ppAik[j - k]; k 765 modules/calib3d/src/upnp.cpp double tau = sum / A1[k]; k 767 modules/calib3d/src/upnp.cpp for(int i = k; i < nr; i++) k 769 modules/calib3d/src/upnp.cpp ppAik[j - k] -= tau * *ppAik; k 1334 modules/calib3d/test/test_cameracalibration.cpp int x, y, k; k 1343 modules/calib3d/test/test_cameracalibration.cpp for( k = 0; k < N*N; k++ ) k 1344 modules/calib3d/test/test_cameracalibration.cpp if( upts[k].x < -imgsize.width*eps || upts[k].x > imgsize.width*(1+eps) || k 1345 modules/calib3d/test/test_cameracalibration.cpp upts[k].y < -imgsize.height*eps || upts[k].y > imgsize.height*(1+eps) ) k 1348 modules/calib3d/test/test_cameracalibration.cpp test_case_idx, pts[k].x, pts[k].y, upts[k].x, upts[k].y); k 1625 modules/calib3d/test/test_cameracalibration.cpp for( int i = 0, k = 0; i < nframes; i++ ) k 1631 modules/calib3d/test/test_cameracalibration.cpp for( int j = 0; j < npoints; j++, k++ ) k 1634 modules/calib3d/test/test_cameracalibration.cpp Point2f d = rectifPoints1.at<Point2f>(k,0) - rectifPoints2.at<Point2f>(k,0); k 105 modules/calib3d/test/test_chesscorners.cpp for( int k = 0; k < 2; ++k ) k 110 modules/calib3d/test/test_chesscorners.cpp int j1 = k == 0 ? j : count_exp - j - 1; k 80 modules/calib3d/test/test_fisheye.cpp for(int y = 0, k = 0; y < N; ++y) k 84 modules/calib3d/test/test_fisheye.cpp pts[k++] = (point - c) * 0.85 + c; k 147 modules/calib3d/test/test_fisheye.cpp cv::Mat k(4, 1, CV_64F); k 167 modules/calib3d/test/test_fisheye.cpp r.fill(k, cv::RNG::NORMAL, 0, 1); k 168 modules/calib3d/test/test_fisheye.cpp k*= 0.5; k 178 modules/calib3d/test/test_fisheye.cpp cv::fisheye::projectPoints(X, x1, om, T, K, k, alpha, jacobians); k 185 modules/calib3d/test/test_fisheye.cpp cv::fisheye::projectPoints(X, x2, om, T2, K, k, alpha, cv::noArray()); k 194 modules/calib3d/test/test_fisheye.cpp cv::fisheye::projectPoints(X, x2, om2, T, K, k, alpha, cv::noArray()); k 203 modules/calib3d/test/test_fisheye.cpp cv::fisheye::projectPoints(X, x2, om, T, K2, k, alpha, cv::noArray()); k 212 modules/calib3d/test/test_fisheye.cpp cv::fisheye::projectPoints(X, x2, om, T, K2, k, alpha, cv::noArray()); k 219 modules/calib3d/test/test_fisheye.cpp dk *= 1e-9*cv::norm(k); k 220 modules/calib3d/test/test_fisheye.cpp cv::Mat k2 = k + dk; k 231 modules/calib3d/test/test_fisheye.cpp cv::fisheye::projectPoints(X, x2, om, T, K, k, alpha2, cv::noArray()); k 382 modules/calib3d/test/test_fisheye.cpp EXPECT_MAT_NEAR(errors.k, cv::Vec4d(0.00516248605191506, 0.0168181467500934, 0.0213118690274604, 0.00916010877545648), 1e-10); k 961 modules/calib3d/test/test_fundam.cpp int k; k 963 modules/calib3d/test/test_fundam.cpp for( k = 0; k < 2; k++ ) k 965 modules/calib3d/test/test_fundam.cpp const Mat& Rt = k == 0 ? I : test_mat[INPUT][3]; k 966 modules/calib3d/test/test_fundam.cpp const Mat& A = test_mat[INPUT][k == 0 ? 4 : 5]; k 967 modules/calib3d/test/test_fundam.cpp Mat& _2d = test_mat[INPUT][k]; k 1260 modules/calib3d/test/test_fundam.cpp int k; k 1262 modules/calib3d/test/test_fundam.cpp for( k = 0; k < 2; k++ ) k 1264 modules/calib3d/test/test_fundam.cpp const Mat& Rt = k == 0 ? I : test_mat[INPUT][3]; k 1266 modules/calib3d/test/test_fundam.cpp Mat& _2d = test_mat[INPUT][k]; k 96 modules/calib3d/test/test_homography.cpp void print_information_2(int j, int N, int method, const Mat& H, const Mat& H_res, int k, double diff); k 98 modules/calib3d/test/test_homography.cpp void print_information_4(int method, int j, int N, int k, int l, double diff); k 100 modules/calib3d/test/test_homography.cpp void print_information_6(int method, int j, int N, int k, double diff, bool value); k 101 modules/calib3d/test/test_homography.cpp void print_information_7(int method, int j, int N, int k, double diff, bool original_value, bool found_value); k 102 modules/calib3d/test/test_homography.cpp void print_information_8(int method, int j, int N, int k, int l, double diff); k 153 modules/calib3d/test/test_homography.cpp void CV_HomographyTest::print_information_2(int j, int N, int _method, const Mat& H, const Mat& H_res, int k, double diff) k 164 modules/calib3d/test/test_homography.cpp cout << "Norm type using in criteria: "; if (NORM_TYPE[k] == 1) cout << "INF"; else if (NORM_TYPE[k] == 2) cout << "L1"; else cout << "L2"; cout << endl; k 181 modules/calib3d/test/test_homography.cpp void CV_HomographyTest::print_information_4(int _method, int j, int N, int k, int l, double diff) k 189 modules/calib3d/test/test_homography.cpp cout << "Number of point: " << k << endl; k 208 modules/calib3d/test/test_homography.cpp void CV_HomographyTest::print_information_6(int _method, int j, int N, int k, double diff, bool value) k 215 modules/calib3d/test/test_homography.cpp cout << "Number of point: " << k << " " << endl; k 221 modules/calib3d/test/test_homography.cpp void CV_HomographyTest::print_information_7(int _method, int j, int N, int k, double diff, bool original_value, bool found_value) k 228 modules/calib3d/test/test_homography.cpp cout << "Number of point: " << k << " " << endl; k 234 modules/calib3d/test/test_homography.cpp void CV_HomographyTest::print_information_8(int _method, int j, int N, int k, int l, double diff) k 242 modules/calib3d/test/test_homography.cpp cout << "Number of point: " << k << " " << endl; k 331 modules/calib3d/test/test_homography.cpp for (int k = 0; k < COUNT_NORM_TYPES; ++k) k 332 modules/calib3d/test/test_homography.cpp if (!check_matrix_diff(H_64, H_res_64[j], NORM_TYPE[k], diff)) k 334 modules/calib3d/test/test_homography.cpp print_information_2(j, N, method, H_64, H_res_64[j], k, diff); k 362 modules/calib3d/test/test_homography.cpp for (int k = 0; k < COUNT_NORM_TYPES; ++k) k 363 modules/calib3d/test/test_homography.cpp if (!check_matrix_diff(H_64, H_res_64[j], NORM_TYPE[k], diff)) k 365 modules/calib3d/test/test_homography.cpp print_information_2(j, N, method, H_64, H_res_64[j], k, diff); k 436 modules/calib3d/test/test_homography.cpp for (int k = 0; k < N; ++k) k 439 modules/calib3d/test/test_homography.cpp Mat tmp_mat_3d = H_res_32*src_mat_3d.col(k); k 441 modules/calib3d/test/test_homography.cpp dst_res_3d.at<float>(0, k) = tmp_mat_3d.at<float>(0, 0) /= tmp_mat_3d.at<float>(2, 0); k 442 modules/calib3d/test/test_homography.cpp dst_res_3d.at<float>(1, k) = tmp_mat_3d.at<float>(1, 0) /= tmp_mat_3d.at<float>(2, 0); k 443 modules/calib3d/test/test_homography.cpp dst_res_3d.at<float>(2, k) = tmp_mat_3d.at<float>(2, 0) = 1.0f; k 445 modules/calib3d/test/test_homography.cpp float *a = noise_2f.ptr<float>()+2*k; k 446 modules/calib3d/test/test_homography.cpp noise_2d.at<float>(0, k) = a[0]; noise_2d.at<float>(1, k) = a[1]; k 449 modules/calib3d/test/test_homography.cpp if (cv::norm(tmp_mat_3d, dst_mat_3d.col(k), NORM_TYPE[l]) - cv::norm(noise_2d.col(k), NORM_TYPE[l]) > max_2diff) k 451 modules/calib3d/test/test_homography.cpp print_information_4(method, j, N, k, l, cv::norm(tmp_mat_3d, dst_mat_3d.col(k), NORM_TYPE[l]) - cv::norm(noise_2d.col(k), NORM_TYPE[l])); k 510 modules/calib3d/test/test_homography.cpp for (int k = 0; k < N; ++k) k 512 modules/calib3d/test/test_homography.cpp dst_res_3d.at<float>(0, k) /= dst_res_3d.at<float>(2, k); k 513 modules/calib3d/test/test_homography.cpp dst_res_3d.at<float>(1, k) /= dst_res_3d.at<float>(2, k); k 514 modules/calib3d/test/test_homography.cpp dst_res_3d.at<float>(2, k) = 1.0f; k 516 modules/calib3d/test/test_homography.cpp float *p = dst_mat_2f.ptr<float>()+2*k; k 518 modules/calib3d/test/test_homography.cpp dst_mat_3d.at<float>(0, k) = p[0]; k 519 modules/calib3d/test/test_homography.cpp dst_mat_3d.at<float>(1, k) = p[1]; k 521 modules/calib3d/test/test_homography.cpp double diff = cv::norm(dst_res_3d.col(k), dst_mat_3d.col(k), NORM_L2); k 523 modules/calib3d/test/test_homography.cpp if (mask_res[j].at<bool>(k, 0) != (diff <= reproj_threshold)) k 525 modules/calib3d/test/test_homography.cpp print_information_6(method, j, N, k, diff, mask_res[j].at<bool>(k, 0)); k 530 modules/calib3d/test/test_homography.cpp if (mask.at<bool>(k, 0) && !mask_res[j].at<bool>(k, 0)) k 532 modules/calib3d/test/test_homography.cpp print_information_7(method, j, N, k, diff, mask.at<bool>(k, 0), mask_res[j].at<bool>(k, 0)); k 537 modules/calib3d/test/test_homography.cpp if (mask_res[j].at<bool>(k, 0)) k 539 modules/calib3d/test/test_homography.cpp float *a = noise_2f.ptr<float>()+2*k; k 540 modules/calib3d/test/test_homography.cpp dst_mat_3d.at<float>(0, k) -= a[0]; k 541 modules/calib3d/test/test_homography.cpp dst_mat_3d.at<float>(1, k) -= a[1]; k 548 modules/calib3d/test/test_homography.cpp diff = cv::norm(dst_res_3d.col(k), dst_mat_3d.col(k), NORM_TYPE[l]); k 552 modules/calib3d/test/test_homography.cpp print_information_8(method, j, N, k, l, diff - cv::norm(noise_2d, NORM_TYPE[l])); k 266 modules/core/include/opencv2/core/affine.hpp for(int k = 0; k < 9; ++k) k 267 modules/core/include/opencv2/core/affine.hpp R.val[k] = static_cast<float_type>(c*I[k] + c1*rrt[k] + s*_r_x_[k]); k 400 modules/core/include/opencv2/core/affine.hpp for(int k = 0; k < 3; ++k) k 401 modules/core/include/opencv2/core/affine.hpp value += R(j, k) * Lc(k, i); k 778 modules/core/include/opencv2/core/matx.hpp for( int k = 0; k < l; k++ ) k 779 modules/core/include/opencv2/core/matx.hpp s += a(i, k) * b(k, j); k 348 modules/core/include/opencv2/core/ocl.hpp Kernel(const Kernel& k); k 349 modules/core/include/opencv2/core/ocl.hpp Kernel& operator = (const Kernel& k); k 490 modules/core/include/opencv2/core/operations.hpp int k = j, parent; k 493 modules/core/include/opencv2/core/operations.hpp while( (parent = nodes[k][PARENT]) >= 0 ) k 495 modules/core/include/opencv2/core/operations.hpp nodes[k][PARENT] = root; k 496 modules/core/include/opencv2/core/operations.hpp k = parent; k 500 modules/core/include/opencv2/core/operations.hpp k = i; k 501 modules/core/include/opencv2/core/operations.hpp while( (parent = nodes[k][PARENT]) >= 0 ) k 503 modules/core/include/opencv2/core/operations.hpp nodes[k][PARENT] = root; k 504 modules/core/include/opencv2/core/operations.hpp k = parent; k 282 modules/core/misc/java/test/MatTest.java for(int k=0; k<ch; k++) { k 283 modules/core/misc/java/test/MatTest.java buff[i*size*ch + j*ch + k] = 100*i + 10*j + k; k 552 modules/core/src/alloc.cpp for( int k = 0; k < 2; k++ ) k 1466 modules/core/src/arithm.cpp ocl::Kernel k("KF", ocl::core::arithm_oclsrc, opts); k 1467 modules/core/src/arithm.cpp if (k.empty()) k 1492 modules/core/src/arithm.cpp k.args(src1arg, dstarg, scalararg); k 1494 modules/core/src/arithm.cpp k.args(src1arg, maskarg, dstarg, scalararg); k 1502 modules/core/src/arithm.cpp k.args(src1arg, src2arg, dstarg); k 1504 modules/core/src/arithm.cpp k.args(src1arg, src2arg, maskarg, dstarg); k 1508 modules/core/src/arithm.cpp return k.run(2, globalsize, 0, false); k 1861 modules/core/src/arithm.cpp ocl::Kernel k("KF", ocl::core::arithm_oclsrc, opts); k 1862 modules/core/src/arithm.cpp if (k.empty()) k 1886 modules/core/src/arithm.cpp k.args(src1arg, dstarg, scalararg); k 1888 modules/core/src/arithm.cpp k.args(src1arg, dstarg, scalararg, k 1894 modules/core/src/arithm.cpp k.args(src1arg, maskarg, dstarg, scalararg); k 1904 modules/core/src/arithm.cpp k.args(src1arg, src2arg, dstarg); k 1906 modules/core/src/arithm.cpp k.args(src1arg, src2arg, dstarg, k 1909 modules/core/src/arithm.cpp k.args(src1arg, src2arg, dstarg, k 1917 modules/core/src/arithm.cpp k.args(src1arg, src2arg, maskarg, dstarg); k 1921 modules/core/src/arithm.cpp return k.run(2, globalsize, NULL, false); k 4923 modules/core/src/arithm.cpp ocl::Kernel k("KF", ocl::core::arithm_oclsrc, opts); k 4924 modules/core/src/arithm.cpp if (k.empty()) k 4965 modules/core/src/arithm.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(src1, cn, kercn), k 4972 modules/core/src/arithm.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(src1), k 4978 modules/core/src/arithm.cpp return k.run(2, globalsize, NULL, false); k 5522 modules/core/src/arithm.cpp int k = cn % 4 ? cn % 4 : 4; k 5524 modules/core/src/arithm.cpp if( k == 1 ) k 5527 modules/core/src/arithm.cpp else if( k == 2 ) k 5530 modules/core/src/arithm.cpp else if( k == 3 ) k 5537 modules/core/src/arithm.cpp for( ; k < cn; k += 4 ) k 5539 modules/core/src/arithm.cpp for( i = 0, j = k; i < len; i++, j += cn ) k 5638 modules/core/src/arithm.cpp for( int k = 0; k < cn; k++ ) k 5640 modules/core/src/arithm.cpp if( ilbuf[k] > iubuf[k] || ilbuf[k] > maxval || iubuf[k] < minval ) k 5641 modules/core/src/arithm.cpp ilbuf[k] = minval+1, iubuf[k] = minval; k 5749 modules/core/src/arithm.cpp for( int k = 0; k < cn; k++ ) k 5751 modules/core/src/arithm.cpp if( ilbuf[k] > iubuf[k] || ilbuf[k] > maxval || iubuf[k] < minval ) k 5752 modules/core/src/arithm.cpp ilbuf[k] = minval+1, iubuf[k] = minval; k 178 modules/core/src/command_line_parser.cpp std::vector<String> k = impl->split_range_string(keys, '{', '}'); k 181 modules/core/src/command_line_parser.cpp for (size_t i = 0; i < k.size(); i++) k 183 modules/core/src/command_line_parser.cpp std::vector<String> l = impl->split_string(k[i], '|', true); k 273 modules/core/src/command_line_parser.cpp for (size_t k = 0; k < data[i].keys.size(); k++) k 275 modules/core/src/command_line_parser.cpp if (key.compare(data[i].keys[k]) == 0) k 375 modules/core/src/command_line_parser.cpp String k = impl->data[i].keys[j]; k 376 modules/core/src/command_line_parser.cpp if (k.length() > 1) k 384 modules/core/src/command_line_parser.cpp printf("%s", k.c_str()); k 406 modules/core/src/command_line_parser.cpp String k = impl->data[i].keys[0]; k 407 modules/core/src/command_line_parser.cpp k = k.substr(1, k.length() - 1); k 409 modules/core/src/command_line_parser.cpp printf("%s", k.c_str()); k 280 modules/core/src/convert.cpp int k = cn % 4 ? cn % 4 : 4; k 282 modules/core/src/convert.cpp if( k == 1 ) k 296 modules/core/src/convert.cpp else if( k == 2 ) k 331 modules/core/src/convert.cpp else if( k == 3 ) k 404 modules/core/src/convert.cpp for( ; k < cn; k += 4 ) k 406 modules/core/src/convert.cpp T *dst0 = dst[k], *dst1 = dst[k+1], *dst2 = dst[k+2], *dst3 = dst[k+3]; k 407 modules/core/src/convert.cpp for( i = 0, j = k; i < len; i++, j += cn ) k 638 modules/core/src/convert.cpp int k = cn % 4 ? cn % 4 : 4; k 640 modules/core/src/convert.cpp if( k == 1 ) k 646 modules/core/src/convert.cpp else if( k == 2 ) k 678 modules/core/src/convert.cpp else if( k == 3 ) k 744 modules/core/src/convert.cpp for( ; k < cn; k += 4 ) k 746 modules/core/src/convert.cpp const T *src0 = src[k], *src1 = src[k+1], *src2 = src[k+2], *src3 = src[k+3]; k 747 modules/core/src/convert.cpp for( i = 0, j = k; i < len; i++, j += cn ) k 824 modules/core/src/convert.cpp int k, depth = src.depth(), cn = src.channels(); k 841 modules/core/src/convert.cpp for( k = 0; k < cn; k++ ) k 843 modules/core/src/convert.cpp mv[k].create(src.dims, src.size, depth); k 844 modules/core/src/convert.cpp arrays[k+1] = &mv[k]; k 860 modules/core/src/convert.cpp for( k = 0; k < cn; k++ ) k 861 modules/core/src/convert.cpp ptrs[k+1] += bsz*esz1; k 884 modules/core/src/convert.cpp ocl::Kernel k("split", ocl::core::split_merge_oclsrc, k 889 modules/core/src/convert.cpp if (k.empty()) k 900 modules/core/src/convert.cpp int argidx = k.set(0, ocl::KernelArg::ReadOnly(_m.getUMat())); k 902 modules/core/src/convert.cpp argidx = k.set(argidx, ocl::KernelArg::WriteOnlyNoSize(dst[i])); k 903 modules/core/src/convert.cpp k.set(argidx, rowsPerWI); k 906 modules/core/src/convert.cpp return k.run(2, globalsize, NULL, false); k 945 modules/core/src/convert.cpp int k, cn = 0; k 973 modules/core/src/convert.cpp for( k = 0; k < ni; k++ ) k 975 modules/core/src/convert.cpp pairs[(j+k)*2] = j + k; k 976 modules/core/src/convert.cpp pairs[(j+k)*2+1] = j + k; k 990 modules/core/src/convert.cpp for( k = 0; k < cn; k++ ) k 991 modules/core/src/convert.cpp arrays[k+1] = &mv[k]; k 1055 modules/core/src/convert.cpp ocl::Kernel k("merge", ocl::core::split_merge_oclsrc, k 1060 modules/core/src/convert.cpp if (k.empty()) k 1068 modules/core/src/convert.cpp argidx = k.set(argidx, ocl::KernelArg::ReadOnlyNoSize(ksrc[i])); k 1069 modules/core/src/convert.cpp argidx = k.set(argidx, ocl::KernelArg::WriteOnly(dst)); k 1070 modules/core/src/convert.cpp k.set(argidx, rowsPerWI); k 1073 modules/core/src/convert.cpp return k.run(2, globalsize, NULL, false); k 1102 modules/core/src/convert.cpp int i, k; k 1103 modules/core/src/convert.cpp for( k = 0; k < npairs; k++ ) k 1105 modules/core/src/convert.cpp const T* s = src[k]; k 1106 modules/core/src/convert.cpp T* d = dst[k]; k 1107 modules/core/src/convert.cpp int ds = sdelta[k], dd = ddelta[k]; k 1180 modules/core/src/convert.cpp size_t i, j, k, esz1 = dst[0].elemSize1(); k 1229 modules/core/src/convert.cpp for( k = 0; k < npairs; k++ ) k 1231 modules/core/src/convert.cpp srcs[k] = ptrs[tab[k*4]] + tab[k*4+1]; k 1232 modules/core/src/convert.cpp dsts[k] = ptrs[tab[k*4+2]] + tab[k*4+3]; k 1241 modules/core/src/convert.cpp for( k = 0; k < npairs; k++ ) k 1243 modules/core/src/convert.cpp srcs[k] += blocksize*sdelta[k]*esz1; k 1244 modules/core/src/convert.cpp dsts[k] += blocksize*ddelta[k]*esz1; k 1324 modules/core/src/convert.cpp ocl::Kernel k("mixChannels", ocl::core::mixchannels_oclsrc, k 1329 modules/core/src/convert.cpp if (k.empty()) k 1334 modules/core/src/convert.cpp argindex = k.set(argindex, ocl::KernelArg::ReadOnlyNoSize(srcargs[i])); k 1336 modules/core/src/convert.cpp argindex = k.set(argindex, ocl::KernelArg::WriteOnlyNoSize(dstargs[i])); k 1337 modules/core/src/convert.cpp argindex = k.set(argindex, size.height); k 1338 modules/core/src/convert.cpp argindex = k.set(argindex, size.width); k 1339 modules/core/src/convert.cpp k.set(argindex, rowsPerWI); k 1342 modules/core/src/convert.cpp return k.run(2, globalsize, NULL, false); k 5515 modules/core/src/convert.cpp ocl::Kernel k("KF", ocl::core::arithm_oclsrc, build_opt); k 5516 modules/core/src/convert.cpp if (k.empty()) k 5526 modules/core/src/convert.cpp k.args(srcarg, dstarg, (float)alpha, (float)beta); k 5528 modules/core/src/convert.cpp k.args(srcarg, dstarg, alpha, beta); k 5531 modules/core/src/convert.cpp return k.run(2, globalsize, NULL, false); k 5630 modules/core/src/convert.cpp for( int k = 0; k < cn; k++ ) k 5631 modules/core/src/convert.cpp dst[i+k] = lut[src[i+k]*cn+k]; k 5689 modules/core/src/convert.cpp ocl::Kernel k("LUT", ocl::core::lut_oclsrc, k 5692 modules/core/src/convert.cpp if (k.empty()) k 5695 modules/core/src/convert.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(src), ocl::KernelArg::ReadOnlyNoSize(lut), k 5699 modules/core/src/convert.cpp return k.run(2, globalSize, NULL, false); k 6030 modules/core/src/convert.cpp ocl::Kernel k("normalizek", ocl::core::normalize_oclsrc, opts); k 6031 modules/core/src/convert.cpp if (k.empty()) k 6043 modules/core/src/convert.cpp k.args(srcarg, maskarg, dstarg, fscale, fdelta); k 6045 modules/core/src/convert.cpp k.args(srcarg, maskarg, dstarg, fscale); k 6050 modules/core/src/convert.cpp k.args(srcarg, maskarg, dstarg, fdelta); k 6052 modules/core/src/convert.cpp k.args(srcarg, maskarg, dstarg); k 6056 modules/core/src/convert.cpp return k.run(2, globalsize, NULL, false); k 188 modules/core/src/copy.cpp size_t k, esz = *(size_t*)_esz; k 198 modules/core/src/copy.cpp for( k = 0; k < esz; k++ ) k 199 modules/core/src/copy.cpp dst[k] = src[k]; k 595 modules/core/src/copy.cpp for( size_t k = 0; k < esz; k++ ) k 596 modules/core/src/copy.cpp tab[i*esz + k] = (int)((size.width - i - 1)*esz + k); k 700 modules/core/src/copy.cpp ocl::Kernel k(kernelName, ocl::core::flip_oclsrc, k 704 modules/core/src/copy.cpp if (k.empty()) k 715 modules/core/src/copy.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(src), k 723 modules/core/src/copy.cpp return k.run(2, globalsize, (flipType == FLIP_COLS) && !dev.isIntel() ? localsize : NULL, false); k 852 modules/core/src/copy.cpp ocl::Kernel k("repeat", ocl::core::repeat_oclsrc, k 856 modules/core/src/copy.cpp if (k.empty()) k 860 modules/core/src/copy.cpp k.args(ocl::KernelArg::ReadOnly(src, cn, kercn), ocl::KernelArg::WriteOnlyNoSize(dst)); k 863 modules/core/src/copy.cpp return k.run(2, globalsize, NULL, false); k 962 modules/core/src/copy.cpp int i, j, k, elemSize = 1; k 980 modules/core/src/copy.cpp for( k = 0; k < cn; k++ ) k 981 modules/core/src/copy.cpp tab[i*cn + k] = j + k; k 987 modules/core/src/copy.cpp for( k = 0; k < cn; k++ ) k 988 modules/core/src/copy.cpp tab[(i+left)*cn + k] = j + k; k 1105 modules/core/src/copy.cpp ocl::Kernel k("copyMakeBorder", ocl::core::copymakeborder_oclsrc, buildOptions); k 1106 modules/core/src/copy.cpp if (k.empty()) k 1136 modules/core/src/copy.cpp k.args(ocl::KernelArg::ReadOnly(src), ocl::KernelArg::WriteOnly(dst), k 1140 modules/core/src/copy.cpp return k.run(2, globalsize, NULL, false); k 66 modules/core/src/datastructs.cpp int k; \ k 67 modules/core/src/datastructs.cpp for( k = 0; k < elem_size; k++ ) \ k 69 modules/core/src/datastructs.cpp char t0 = (a)[k]; \ k 70 modules/core/src/datastructs.cpp char t1 = (b)[k]; \ k 71 modules/core/src/datastructs.cpp (a)[k] = t1; \ k 72 modules/core/src/datastructs.cpp (b)[k] = t0; \ k 134 modules/core/src/datastructs.cpp int k = 0; k 145 modules/core/src/datastructs.cpp for( block = storage->bottom; block != 0; k++ ) k 2261 modules/core/src/datastructs.cpp int k = (i+j)>>1, code; k 2262 modules/core/src/datastructs.cpp schar* ptr = cvGetSeqElem( seq, k ); k 2267 modules/core/src/datastructs.cpp idx = k; k 2273 modules/core/src/datastructs.cpp j = k; k 2275 modules/core/src/datastructs.cpp i = k+1; k 3252 modules/core/src/datastructs.cpp int i, k; k 3277 modules/core/src/datastructs.cpp for( i = 0, k = 0; i < graph->total; i++ ) k 3284 modules/core/src/datastructs.cpp flag_buffer[k] = dstvtx->flags = vtx->flags; k 3285 modules/core/src/datastructs.cpp vtx->flags = k; k 3286 modules/core/src/datastructs.cpp ptr_buffer[k++] = dstvtx; k 3309 modules/core/src/datastructs.cpp for( i = 0, k = 0; i < graph->edges->total; i++ ) k 3314 modules/core/src/datastructs.cpp vtx->flags = flag_buffer[k++]; k 181 modules/core/src/dxt.cpp int i, j, k; k 268 modules/core/src/dxt.cpp for( k = 0; k < n; k++ ) k 269 modules/core/src/dxt.cpp itab[i+k] = itab[k] + j; k 273 modules/core/src/dxt.cpp for( k = 1; ++digits[k] >= factors[k]; k++ ) k 275 modules/core/src/dxt.cpp digits[k] = 0; k 276 modules/core/src/dxt.cpp j += radix[k+2] - radix[k]; k 289 modules/core/src/dxt.cpp for( k = 0; ++digits[k] >= factors[k]; k++ ) k 291 modules/core/src/dxt.cpp digits[k] = 0; k 292 modules/core/src/dxt.cpp j += radix[k+2] - radix[k]; k 545 modules/core/src/dxt.cpp int i, j, k; k 880 modules/core/src/dxt.cpp for( p = 1, k = nx; p <= factor2; p++, k += nx ) k 882 modules/core/src/dxt.cpp T r0 = v[k].re + v[n-k].re; k 883 modules/core/src/dxt.cpp T i0 = v[k].im - v[n-k].im; k 884 modules/core/src/dxt.cpp T r1 = v[k].re - v[n-k].re; k 885 modules/core/src/dxt.cpp T i1 = v[k].im + v[n-k].im; k 897 modules/core/src/dxt.cpp for( p = 1, k = nx; p <= factor2; p++, k += nx, d += dw ) k 899 modules/core/src/dxt.cpp T r2 = v[k].re*wave[d].re - v[k].im*wave[d].im; k 900 modules/core/src/dxt.cpp T i2 = v[k].re*wave[d].im + v[k].im*wave[d].re; k 902 modules/core/src/dxt.cpp T r1 = v[n-k].re*wave_[-d].re - v[n-k].im*wave_[-d].im; k 903 modules/core/src/dxt.cpp T i1 = v[n-k].re*wave_[-d].im + v[n-k].im*wave_[-d].re; k 918 modules/core/src/dxt.cpp for( p = 1, k = nx; p <= factor2; p++, k += nx ) k 937 modules/core/src/dxt.cpp v[k] = s0; k 938 modules/core/src/dxt.cpp v[n-k] = s1; k 1116 modules/core/src/dxt.cpp int j, k, n2 = (n+1) >> 1; k 1221 modules/core/src/dxt.cpp k = itab[j2]; k 1222 modules/core/src/dxt.cpp dst[k] = t0; k 1223 modules/core/src/dxt.cpp dst[k+1] = t1; k 1224 modules/core/src/dxt.cpp k = itab[n2-j2]; k 1225 modules/core/src/dxt.cpp dst[k] = t2; k 1226 modules/core/src/dxt.cpp dst[k+1]= t3; k 1242 modules/core/src/dxt.cpp k = itab[n2]; k 1243 modules/core/src/dxt.cpp dst[k*2] = t0; k 1244 modules/core/src/dxt.cpp dst[k*2+1] = t1; k 1919 modules/core/src/dxt.cpp ocl::Kernel k(kernel_name.c_str(), ocl::core::fft_oclsrc, options); k 1920 modules/core/src/dxt.cpp if (k.empty()) k 1923 modules/core/src/dxt.cpp k.args(ocl::KernelArg::ReadOnly(src), ocl::KernelArg::WriteOnly(dst), ocl::KernelArg::ReadOnlyNoSize(twiddles), thread_count, num_dfts); k 1924 modules/core/src/dxt.cpp return k.run(2, globalsize, localsize, false); k 2014 modules/core/src/dxt.cpp for (int k=0; k<(n/radix); k++) k 2016 modules/core/src/dxt.cpp ptr[ptr_index++] = (T) cos(k*theta); k 2017 modules/core/src/dxt.cpp ptr[ptr_index++] = (T) sin(k*theta); k 2930 modules/core/src/dxt.cpp ocl::Kernel k("mulAndScaleSpectrums", k 2933 modules/core/src/dxt.cpp if (k.empty()) k 2936 modules/core/src/dxt.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(A), ocl::KernelArg::ReadOnlyNoSize(B), k 2940 modules/core/src/dxt.cpp return k.run(2, globalsize, NULL, false); k 2956 modules/core/src/dxt.cpp int j, k; k 2986 modules/core/src/dxt.cpp for( k = 0; k < (cols % 2 ? 1 : 2); k++ ) k 2988 modules/core/src/dxt.cpp if( k == 1 ) k 3011 modules/core/src/dxt.cpp if( k == 1 ) k 3053 modules/core/src/dxt.cpp for( k = 0; k < (cols % 2 ? 1 : 2); k++ ) k 3055 modules/core/src/dxt.cpp if( k == 1 ) k 3078 modules/core/src/dxt.cpp if( k == 1 ) k 104 modules/core/src/kmeans.cpp int i, j, k, dims = _data.cols, N = _data.rows; k 121 modules/core/src/kmeans.cpp for( k = 1; k < K; k++ ) k 148 modules/core/src/kmeans.cpp centers[k] = bestCenter; k 153 modules/core/src/kmeans.cpp for( k = 0; k < K; k++ ) k 155 modules/core/src/kmeans.cpp const float* src = data + step*centers[k]; k 156 modules/core/src/kmeans.cpp float* dst = _out_centers.ptr<float>(k); k 189 modules/core/src/kmeans.cpp for( int k = 0; k < K; k++ ) k 191 modules/core/src/kmeans.cpp const float* center = centers.ptr<float>(k); k 197 modules/core/src/kmeans.cpp k_best = k; k 263 modules/core/src/kmeans.cpp int a, iter, i, j, k; k 310 modules/core/src/kmeans.cpp for( k = 0; k < K; k++ ) k 311 modules/core/src/kmeans.cpp generateRandomCenter(_box, centers.ptr<float>(k), rng); k 324 modules/core/src/kmeans.cpp for( k = 0; k < K; k++ ) k 325 modules/core/src/kmeans.cpp counters[k] = 0; k 330 modules/core/src/kmeans.cpp k = labels[i]; k 331 modules/core/src/kmeans.cpp float* center = centers.ptr<float>(k); k 351 modules/core/src/kmeans.cpp counters[k]++; k 357 modules/core/src/kmeans.cpp for( k = 0; k < K; k++ ) k 359 modules/core/src/kmeans.cpp if( counters[k] != 0 ) k 375 modules/core/src/kmeans.cpp float* new_center = centers.ptr<float>(k); k 397 modules/core/src/kmeans.cpp counters[k]++; k 398 modules/core/src/kmeans.cpp labels[farthest_i] = k; k 408 modules/core/src/kmeans.cpp for( k = 0; k < K; k++ ) k 410 modules/core/src/kmeans.cpp float* center = centers.ptr<float>(k); k 411 modules/core/src/kmeans.cpp CV_Assert( counters[k] != 0 ); k 413 modules/core/src/kmeans.cpp float scale = 1.f/counters[k]; k 420 modules/core/src/kmeans.cpp const float* old_center = old_centers.ptr<float>(k); k 95 modules/core/src/lapack.cpp int i, j, k, m; k 115 modules/core/src/lapack.cpp for( k = 0; k < n; k++ ) k 117 modules/core/src/lapack.cpp W[k] = A[(astep + 1)*k]; k 118 modules/core/src/lapack.cpp if( k < n - 1 ) k 120 modules/core/src/lapack.cpp for( m = k+1, mv = std::abs(A[astep*k + m]), i = k+2; i < n; i++ ) k 122 modules/core/src/lapack.cpp _Tp val = std::abs(A[astep*k+i]); k 126 modules/core/src/lapack.cpp indR[k] = m; k 128 modules/core/src/lapack.cpp if( k > 0 ) k 130 modules/core/src/lapack.cpp for( m = 0, mv = std::abs(A[k]), i = 1; i < k; i++ ) k 132 modules/core/src/lapack.cpp _Tp val = std::abs(A[astep*i+k]); k 136 modules/core/src/lapack.cpp indC[k] = m; k 143 modules/core/src/lapack.cpp for( k = 0, mv = std::abs(A[indR[0]]), i = 1; i < n-1; i++ ) k 147 modules/core/src/lapack.cpp mv = val, k = i; k 149 modules/core/src/lapack.cpp int l = indR[k]; k 154 modules/core/src/lapack.cpp mv = val, k = indC[i], l = i; k 157 modules/core/src/lapack.cpp _Tp p = A[astep*k + l]; k 160 modules/core/src/lapack.cpp _Tp y = (_Tp)((W[l] - W[k])*0.5); k 167 modules/core/src/lapack.cpp A[astep*k + l] = 0; k 169 modules/core/src/lapack.cpp W[k] -= t; k 178 modules/core/src/lapack.cpp for( i = 0; i < k; i++ ) k 179 modules/core/src/lapack.cpp rotate(A[astep*i+k], A[astep*i+l]); k 180 modules/core/src/lapack.cpp for( i = k+1; i < l; i++ ) k 181 modules/core/src/lapack.cpp rotate(A[astep*k+i], A[astep*i+l]); k 183 modules/core/src/lapack.cpp rotate(A[astep*k+i], A[astep*l+i]); k 188 modules/core/src/lapack.cpp rotate(V[vstep*k+i], V[vstep*l+i]); k 194 modules/core/src/lapack.cpp int idx = j == 0 ? k : l; k 219 modules/core/src/lapack.cpp for( k = 0; k < n-1; k++ ) k 221 modules/core/src/lapack.cpp m = k; k 222 modules/core/src/lapack.cpp for( i = k+1; i < n; i++ ) k 227 modules/core/src/lapack.cpp if( k != m ) k 229 modules/core/src/lapack.cpp std::swap(W[m], W[k]); k 232 modules/core/src/lapack.cpp std::swap(V[vstep*m + i], V[vstep*k + i]); k 262 modules/core/src/lapack.cpp int k = 0; k 264 modules/core/src/lapack.cpp for( ; k <= n - 8; k += 8 ) k 266 modules/core/src/lapack.cpp __m128 a0 = _mm_load_ps(a + k), a1 = _mm_load_ps(a + k + 4); k 267 modules/core/src/lapack.cpp __m128 b0 = _mm_load_ps(b + k), b1 = _mm_load_ps(b + k + 4); k 276 modules/core/src/lapack.cpp return k; k 284 modules/core/src/lapack.cpp int k = 0; k 286 modules/core/src/lapack.cpp for( ; k <= n - 4; k += 4 ) k 288 modules/core/src/lapack.cpp __m128 a0 = _mm_load_ps(a + k); k 289 modules/core/src/lapack.cpp __m128 b0 = _mm_load_ps(b + k); k 292 modules/core/src/lapack.cpp _mm_store_ps(a + k, t0); k 293 modules/core/src/lapack.cpp _mm_store_ps(b + k, t1); k 295 modules/core/src/lapack.cpp return k; k 304 modules/core/src/lapack.cpp int k = 0; k 307 modules/core/src/lapack.cpp for( ; k <= n - 4; k += 4 ) k 309 modules/core/src/lapack.cpp __m128 a0 = _mm_load_ps(a + k); k 310 modules/core/src/lapack.cpp __m128 b0 = _mm_load_ps(b + k); k 313 modules/core/src/lapack.cpp _mm_store_ps(a + k, t0); k 314 modules/core/src/lapack.cpp _mm_store_ps(b + k, t1); k 323 modules/core/src/lapack.cpp return k; k 331 modules/core/src/lapack.cpp int k = 0; k 333 modules/core/src/lapack.cpp for( ; k <= n - 4; k += 4 ) k 335 modules/core/src/lapack.cpp __m128d a0 = _mm_load_pd(a + k), a1 = _mm_load_pd(a + k + 2); k 336 modules/core/src/lapack.cpp __m128d b0 = _mm_load_pd(b + k), b1 = _mm_load_pd(b + k + 2); k 345 modules/core/src/lapack.cpp return k; k 351 modules/core/src/lapack.cpp int k = 0; k 353 modules/core/src/lapack.cpp for( ; k <= n - 2; k += 2 ) k 355 modules/core/src/lapack.cpp __m128d a0 = _mm_load_pd(a + k); k 356 modules/core/src/lapack.cpp __m128d b0 = _mm_load_pd(b + k); k 359 modules/core/src/lapack.cpp _mm_store_pd(a + k, t0); k 360 modules/core/src/lapack.cpp _mm_store_pd(b + k, t1); k 362 modules/core/src/lapack.cpp return k; k 369 modules/core/src/lapack.cpp int k = 0; k 372 modules/core/src/lapack.cpp for( ; k <= n - 2; k += 2 ) k 374 modules/core/src/lapack.cpp __m128d a0 = _mm_load_pd(a + k); k 375 modules/core/src/lapack.cpp __m128d b0 = _mm_load_pd(b + k); k 378 modules/core/src/lapack.cpp _mm_store_pd(a + k, t0); k 379 modules/core/src/lapack.cpp _mm_store_pd(b + k, t1); k 388 modules/core/src/lapack.cpp return k; k 399 modules/core/src/lapack.cpp int i, j, k, iter, max_iter = std::max(m, 30); k 407 modules/core/src/lapack.cpp for( k = 0, sd = 0; k < m; k++ ) k 409 modules/core/src/lapack.cpp _Tp t = At[i*astep + k]; k 416 modules/core/src/lapack.cpp for( k = 0; k < n; k++ ) k 417 modules/core/src/lapack.cpp Vt[i*vstep + k] = 0; k 432 modules/core/src/lapack.cpp for( k = 0; k < m; k++ ) k 433 modules/core/src/lapack.cpp p += (double)Ai[k]*Aj[k]; k 453 modules/core/src/lapack.cpp for( k = 0; k < m; k++ ) k 455 modules/core/src/lapack.cpp _Tp t0 = c*Ai[k] + s*Aj[k]; k 456 modules/core/src/lapack.cpp _Tp t1 = -s*Ai[k] + c*Aj[k]; k 457 modules/core/src/lapack.cpp Ai[k] = t0; Aj[k] = t1; k 468 modules/core/src/lapack.cpp k = vblas.givens(Vi, Vj, n, c, s); k 470 modules/core/src/lapack.cpp for( ; k < n; k++ ) k 472 modules/core/src/lapack.cpp _Tp t0 = c*Vi[k] + s*Vj[k]; k 473 modules/core/src/lapack.cpp _Tp t1 = -s*Vi[k] + c*Vj[k]; k 474 modules/core/src/lapack.cpp Vi[k] = t0; Vj[k] = t1; k 484 modules/core/src/lapack.cpp for( k = 0, sd = 0; k < m; k++ ) k 486 modules/core/src/lapack.cpp _Tp t = At[i*astep + k]; k 495 modules/core/src/lapack.cpp for( k = i+1; k < n; k++ ) k 497 modules/core/src/lapack.cpp if( W[j] < W[k] ) k 498 modules/core/src/lapack.cpp j = k; k 505 modules/core/src/lapack.cpp for( k = 0; k < m; k++ ) k 506 modules/core/src/lapack.cpp std::swap(At[i*astep + k], At[j*astep + k]); k 508 modules/core/src/lapack.cpp for( k = 0; k < n; k++ ) k 509 modules/core/src/lapack.cpp std::swap(Vt[i*vstep + k], Vt[j*vstep + k]); k 531 modules/core/src/lapack.cpp for( k = 0; k < m; k++ ) k 534 modules/core/src/lapack.cpp At[i*astep + k] = val; k 541 modules/core/src/lapack.cpp for( k = 0; k < m; k++ ) k 542 modules/core/src/lapack.cpp sd += At[i*astep + k]*At[j*astep + k]; k 544 modules/core/src/lapack.cpp for( k = 0; k < m; k++ ) k 546 modules/core/src/lapack.cpp _Tp t = (_Tp)(At[i*astep + k] - sd*At[j*astep + k]); k 547 modules/core/src/lapack.cpp At[i*astep + k] = t; k 551 modules/core/src/lapack.cpp for( k = 0; k < m; k++ ) k 552 modules/core/src/lapack.cpp At[i*astep + k] *= asum; k 556 modules/core/src/lapack.cpp for( k = 0; k < m; k++ ) k 558 modules/core/src/lapack.cpp _Tp t = At[i*astep + k]; k 565 modules/core/src/lapack.cpp for( k = 0; k < m; k++ ) k 566 modules/core/src/lapack.cpp At[i*astep + k] *= s; k 521 modules/core/src/lda.cpp for (int k = m; k <= n1 - 1; k++) { k 522 modules/core/src/lda.cpp bool notlast = (k != n1 - 1); k 523 modules/core/src/lda.cpp if (k != m) { k 524 modules/core/src/lda.cpp p = H[k][k - 1]; k 525 modules/core/src/lda.cpp q = H[k + 1][k - 1]; k 526 modules/core/src/lda.cpp r = (notlast ? H[k + 2][k - 1] : 0.0); k 542 modules/core/src/lda.cpp if (k != m) { k 543 modules/core/src/lda.cpp H[k][k - 1] = -s * x; k 545 modules/core/src/lda.cpp H[k][k - 1] = -H[k][k - 1]; k 556 modules/core/src/lda.cpp for (int j = k; j < nn; j++) { k 557 modules/core/src/lda.cpp p = H[k][j] + q * H[k + 1][j]; k 559 modules/core/src/lda.cpp p = p + r * H[k + 2][j]; k 560 modules/core/src/lda.cpp H[k + 2][j] = H[k + 2][j] - p * z; k 562 modules/core/src/lda.cpp H[k][j] = H[k][j] - p * x; k 563 modules/core/src/lda.cpp H[k + 1][j] = H[k + 1][j] - p * y; k 568 modules/core/src/lda.cpp for (int i = 0; i <= std::min(n1, k + 3); i++) { k 569 modules/core/src/lda.cpp p = x * H[i][k] + y * H[i][k + 1]; k 571 modules/core/src/lda.cpp p = p + z * H[i][k + 2]; k 572 modules/core/src/lda.cpp H[i][k + 2] = H[i][k + 2] - p * r; k 574 modules/core/src/lda.cpp H[i][k] = H[i][k] - p; k 575 modules/core/src/lda.cpp H[i][k + 1] = H[i][k + 1] - p * q; k 581 modules/core/src/lda.cpp p = x * V[i][k] + y * V[i][k + 1]; k 583 modules/core/src/lda.cpp p = p + z * V[i][k + 2]; k 584 modules/core/src/lda.cpp V[i][k + 2] = V[i][k + 2] - p * r; k 586 modules/core/src/lda.cpp V[i][k] = V[i][k] - p; k 587 modules/core/src/lda.cpp V[i][k + 1] = V[i][k + 1] - p * q; k 746 modules/core/src/lda.cpp for (int k = low; k <= std::min(j, high); k++) { k 747 modules/core/src/lda.cpp z = z + V[i][k] * H[k][j]; k 161 modules/core/src/lpsolver.cpp int k=0; k 167 modules/core/src/lpsolver.cpp k=i; k 172 modules/core/src/lpsolver.cpp if(b(k,b.cols-1)>=0){ k 190 modules/core/src/lpsolver.cpp pivot(c,b,v,N,B,k,0,indexToRow); k 76 modules/core/src/mathfuncs.cpp ocl::Kernel k("KF", ocl::core::arithm_oclsrc, k 80 modules/core/src/mathfuncs.cpp if (k.empty()) k 92 modules/core/src/mathfuncs.cpp k.args(src1arg, dstarg); k 94 modules/core/src/mathfuncs.cpp k.args(src1arg, src2arg, dstarg); k 97 modules/core/src/mathfuncs.cpp return k.run(2, globalsize, 0, false); k 222 modules/core/src/mathfuncs.cpp int j, k, total = (int)(it.size*cn), blockSize = total; k 248 modules/core/src/mathfuncs.cpp k = 0; k 253 modules/core/src/mathfuncs.cpp for ( ; k <= len - 4; k += 4) k 255 modules/core/src/mathfuncs.cpp __m128 v_dst0 = _mm_movelh_ps(_mm_cvtpd_ps(_mm_loadu_pd(x + k)), k 256 modules/core/src/mathfuncs.cpp _mm_cvtpd_ps(_mm_loadu_pd(x + k + 2))); k 257 modules/core/src/mathfuncs.cpp __m128 v_dst1 = _mm_movelh_ps(_mm_cvtpd_ps(_mm_loadu_pd(y + k)), k 258 modules/core/src/mathfuncs.cpp _mm_cvtpd_ps(_mm_loadu_pd(y + k + 2))); k 260 modules/core/src/mathfuncs.cpp _mm_storeu_ps(buf[0] + k, v_dst0); k 261 modules/core/src/mathfuncs.cpp _mm_storeu_ps(buf[1] + k, v_dst1); k 266 modules/core/src/mathfuncs.cpp for( ; k < len; k++ ) k 268 modules/core/src/mathfuncs.cpp buf[0][k] = (float)x[k]; k 269 modules/core/src/mathfuncs.cpp buf[1][k] = (float)y[k]; k 273 modules/core/src/mathfuncs.cpp k = 0; k 278 modules/core/src/mathfuncs.cpp for ( ; k <= len - 4; k += 4) k 280 modules/core/src/mathfuncs.cpp __m128 v_src = _mm_loadu_ps(buf[0] + k); k 281 modules/core/src/mathfuncs.cpp _mm_storeu_pd(angle + k, _mm_cvtps_pd(v_src)); k 282 modules/core/src/mathfuncs.cpp _mm_storeu_pd(angle + k + 2, _mm_cvtps_pd(_mm_castsi128_ps(_mm_srli_si128(_mm_castps_si128(v_src), 8)))); k 287 modules/core/src/mathfuncs.cpp for( ; k < len; k++ ) k 288 modules/core/src/mathfuncs.cpp angle[k] = buf[0][k]; k 312 modules/core/src/mathfuncs.cpp ocl::Kernel k("KF", ocl::core::arithm_oclsrc, k 317 modules/core/src/mathfuncs.cpp if (k.empty()) k 328 modules/core/src/mathfuncs.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(src1), k 334 modules/core/src/mathfuncs.cpp return k.run(2, globalsize, NULL, false); k 357 modules/core/src/mathfuncs.cpp int j, k, total = (int)(it.size*cn), blockSize = std::min(total, ((BLOCK_SIZE+cn-1)/cn)*cn); k 385 modules/core/src/mathfuncs.cpp k = 0; k 390 modules/core/src/mathfuncs.cpp for ( ; k <= len - 4; k += 4) k 392 modules/core/src/mathfuncs.cpp __m128 v_dst0 = _mm_movelh_ps(_mm_cvtpd_ps(_mm_loadu_pd(x + k)), k 393 modules/core/src/mathfuncs.cpp _mm_cvtpd_ps(_mm_loadu_pd(x + k + 2))); k 394 modules/core/src/mathfuncs.cpp __m128 v_dst1 = _mm_movelh_ps(_mm_cvtpd_ps(_mm_loadu_pd(y + k)), k 395 modules/core/src/mathfuncs.cpp _mm_cvtpd_ps(_mm_loadu_pd(y + k + 2))); k 397 modules/core/src/mathfuncs.cpp _mm_storeu_ps(buf[0] + k, v_dst0); k 398 modules/core/src/mathfuncs.cpp _mm_storeu_ps(buf[1] + k, v_dst1); k 403 modules/core/src/mathfuncs.cpp for( ; k < len; k++ ) k 405 modules/core/src/mathfuncs.cpp buf[0][k] = (float)x[k]; k 406 modules/core/src/mathfuncs.cpp buf[1][k] = (float)y[k]; k 410 modules/core/src/mathfuncs.cpp k = 0; k 415 modules/core/src/mathfuncs.cpp for ( ; k <= len - 4; k += 4) k 417 modules/core/src/mathfuncs.cpp __m128 v_src = _mm_loadu_ps(buf[0] + k); k 418 modules/core/src/mathfuncs.cpp _mm_storeu_pd(angle + k, _mm_cvtps_pd(v_src)); k 419 modules/core/src/mathfuncs.cpp _mm_storeu_pd(angle + k + 2, _mm_cvtps_pd(_mm_castsi128_ps(_mm_srli_si128(_mm_castps_si128(v_src), 8)))); k 424 modules/core/src/mathfuncs.cpp for( ; k < len; k++ ) k 425 modules/core/src/mathfuncs.cpp angle[k] = buf[0][k]; k 596 modules/core/src/mathfuncs.cpp ocl::Kernel k("KF", ocl::core::arithm_oclsrc, k 601 modules/core/src/mathfuncs.cpp if (k.empty()) k 612 modules/core/src/mathfuncs.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(mag), ocl::KernelArg::ReadOnlyNoSize(angle), k 616 modules/core/src/mathfuncs.cpp return k.run(2, globalsize, NULL, false); k 664 modules/core/src/mathfuncs.cpp int j, k, total = (int)(it.size*cn), blockSize = std::min(total, ((BLOCK_SIZE+cn-1)/cn)*cn); k 687 modules/core/src/mathfuncs.cpp k = 0; k 690 modules/core/src/mathfuncs.cpp for( ; k <= len - 4; k += 4 ) k 692 modules/core/src/mathfuncs.cpp float32x4_t v_m = vld1q_f32(mag + k); k 693 modules/core/src/mathfuncs.cpp vst1q_f32(x + k, vmulq_f32(vld1q_f32(x + k), v_m)); k 694 modules/core/src/mathfuncs.cpp vst1q_f32(y + k, vmulq_f32(vld1q_f32(y + k), v_m)); k 699 modules/core/src/mathfuncs.cpp for( ; k <= len - 4; k += 4 ) k 701 modules/core/src/mathfuncs.cpp __m128 v_m = _mm_loadu_ps(mag + k); k 702 modules/core/src/mathfuncs.cpp _mm_storeu_ps(x + k, _mm_mul_ps(_mm_loadu_ps(x + k), v_m)); k 703 modules/core/src/mathfuncs.cpp _mm_storeu_ps(y + k, _mm_mul_ps(_mm_loadu_ps(y + k), v_m)); k 708 modules/core/src/mathfuncs.cpp for( ; k < len; k++ ) k 710 modules/core/src/mathfuncs.cpp float m = mag[k]; k 711 modules/core/src/mathfuncs.cpp x[k] *= m; y[k] *= m; k 720 modules/core/src/mathfuncs.cpp for( k = 0; k < len; k++ ) k 721 modules/core/src/mathfuncs.cpp buf[0][k] = (float)angle[k]; k 725 modules/core/src/mathfuncs.cpp for( k = 0; k < len; k++ ) k 727 modules/core/src/mathfuncs.cpp double m = mag[k]; k 728 modules/core/src/mathfuncs.cpp x[k] = buf[0][k]*m; y[k] = buf[1][k]*m; k 1326 modules/core/src/mathfuncs.cpp ocl::Kernel k("KF", ocl::core::arithm_oclsrc, k 1330 modules/core/src/mathfuncs.cpp if (k.empty()) k 1341 modules/core/src/mathfuncs.cpp k.args(srcarg, dstarg); k 1343 modules/core/src/mathfuncs.cpp k.args(srcarg, dstarg, ipower); k 1347 modules/core/src/mathfuncs.cpp k.args(srcarg, dstarg, (float)power); k 1349 modules/core/src/mathfuncs.cpp k.args(srcarg, dstarg, power); k 1353 modules/core/src/mathfuncs.cpp return k.run(2, globalsize, NULL, false); k 1419 modules/core/src/mathfuncs.cpp int j, k, blockSize = std::min(len, ((BLOCK_SIZE + cn-1)/cn)*cn); k 1472 modules/core/src/mathfuncs.cpp for( k = 0; k < bsz; k++ ) k 1473 modules/core/src/mathfuncs.cpp y[k] = (float)(y[k]*power); k 1475 modules/core/src/mathfuncs.cpp for( k = 0; k < bsz; k++ ) k 1477 modules/core/src/mathfuncs.cpp if( x0[k] <= 0 ) k 1479 modules/core/src/mathfuncs.cpp if( x0[k] == 0.f ) k 1482 modules/core/src/mathfuncs.cpp y[k] = inf32.f; k 1485 modules/core/src/mathfuncs.cpp y[k] = nan32.f; k 1499 modules/core/src/mathfuncs.cpp for( k = 0; k < bsz; k++ ) k 1500 modules/core/src/mathfuncs.cpp y[k] *= power; k 1503 modules/core/src/mathfuncs.cpp for( k = 0; k < bsz; k++ ) k 1505 modules/core/src/mathfuncs.cpp if( x0[k] <= 0 ) k 1507 modules/core/src/mathfuncs.cpp if( x0[k] == 0. ) k 1510 modules/core/src/mathfuncs.cpp y[k] = inf64.f; k 1513 modules/core/src/mathfuncs.cpp y[k] = nan64.f; k 1725 modules/core/src/mathfuncs.cpp ocl::Kernel k("KF", ocl::core::arithm_oclsrc, k 1728 modules/core/src/mathfuncs.cpp if (k.empty()) k 1734 modules/core/src/mathfuncs.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(a), k 1738 modules/core/src/mathfuncs.cpp return k.run(2, globalsize, NULL, false); k 138 modules/core/src/matmul.cpp int i, j, k, n = a_size.width, m = d_size.width, drows = d_size.height; k 178 modules/core/src/matmul.cpp for( k = 0; k < drows; k++ ) k 179 modules/core/src/matmul.cpp a_buf[k] = a_data[a_step*k]; k 232 modules/core/src/matmul.cpp for( k = 0; k < n; k++ ) k 233 modules/core/src/matmul.cpp a_buf[k] = a_data[a_step1*k]; k 241 modules/core/src/matmul.cpp k = 0; k 243 modules/core/src/matmul.cpp for( ; k <= n - 4; k += 4 ) k 245 modules/core/src/matmul.cpp s0 += WT(a_data[k])*WT(b_data[k]); k 246 modules/core/src/matmul.cpp s1 += WT(a_data[k+1])*WT(b_data[k+1]); k 247 modules/core/src/matmul.cpp s2 += WT(a_data[k+2])*WT(b_data[k+2]); k 248 modules/core/src/matmul.cpp s3 += WT(a_data[k+3])*WT(b_data[k+3]); k 251 modules/core/src/matmul.cpp for( ; k < n; k++ ) k 252 modules/core/src/matmul.cpp s0 += WT(a_data[k])*WT(b_data[k]); k 272 modules/core/src/matmul.cpp for( k = 0; k < n; k++ ) k 273 modules/core/src/matmul.cpp a_buf[k] = a_data[a_step1*k]; k 282 modules/core/src/matmul.cpp for( k = 0; k < n; k++, b += b_step ) k 284 modules/core/src/matmul.cpp WT a(a_data[k]); k 312 modules/core/src/matmul.cpp for( k = 0; k < n; k++, b += b_step ) k 313 modules/core/src/matmul.cpp s0 += WT(a_data[k]) * WT(b[0]); k 336 modules/core/src/matmul.cpp for( k = 0; k < n; k++ ) k 337 modules/core/src/matmul.cpp a_buf[k] = _a_data[a_step1*k]; k 344 modules/core/src/matmul.cpp for( k = 0; k < n; k++, b_data += b_step ) k 346 modules/core/src/matmul.cpp WT al(a_data[k]); k 385 modules/core/src/matmul.cpp int i, j, k, n = a_size.width, m = d_size.width; k 416 modules/core/src/matmul.cpp for( k = 0; k < n; k++ ) k 417 modules/core/src/matmul.cpp a_buf[k] = a_data[a_step1*k]; k 424 modules/core/src/matmul.cpp for( k = 0; k <= n - 2; k += 2 ) k 426 modules/core/src/matmul.cpp s0 += WT(a_data[k])*WT(b_data[k]); k 427 modules/core/src/matmul.cpp s1 += WT(a_data[k+1])*WT(b_data[k+1]); k 430 modules/core/src/matmul.cpp for( ; k < n; k++ ) k 431 modules/core/src/matmul.cpp s0 += WT(a_data[k])*WT(b_data[k]); k 445 modules/core/src/matmul.cpp for( k = 0; k < n; k++ ) k 446 modules/core/src/matmul.cpp a_buf[k] = a_data[a_step1*k]; k 463 modules/core/src/matmul.cpp for( k = 0; k < n; k++, b += b_step ) k 465 modules/core/src/matmul.cpp WT a(a_data[k]); k 479 modules/core/src/matmul.cpp for( k = 0; k < n; k++, b += b_step ) k 480 modules/core/src/matmul.cpp s0 += WT(a_data[k]) * WT(b[0]); k 847 modules/core/src/matmul.cpp ocl::Kernel k("gemm", cv::ocl::core::gemm_oclsrc, opts); k 848 modules/core/src/matmul.cpp if (k.empty()) k 852 modules/core/src/matmul.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(A), k 857 modules/core/src/matmul.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(A), k 864 modules/core/src/matmul.cpp return k.run(2, globalsize, block_size!=1 ? localsize : NULL, false); k 1326 modules/core/src/matmul.cpp int j, k, di = 0, dj = 0, dk = 0; k 1404 modules/core/src/matmul.cpp for( k = 0; k < len; k += dk ) k 1406 modules/core/src/matmul.cpp const uchar* _a = A.ptr() + i*a_step0 + k*a_step1; k 1408 modules/core/src/matmul.cpp const uchar* _b = B.ptr() + k*b_step0 + j*b_step1; k 1413 modules/core/src/matmul.cpp if( k + dk >= len || 8*(k + dk) + dk > 8*len ) k 1414 modules/core/src/matmul.cpp dk = len - k; k 1520 modules/core/src/matmul.cpp int j, k; k 1524 modules/core/src/matmul.cpp for( k = 0; k < scn; k++ ) k 1525 modules/core/src/matmul.cpp s += _m[k]*src[k]; k 2085 modules/core/src/matmul.cpp int j, k; k 2086 modules/core/src/matmul.cpp for( k = 0; k < scn; k++ ) k 2087 modules/core/src/matmul.cpp w += _m[k]*src[k]; k 2094 modules/core/src/matmul.cpp for( k = 0; k < scn; k++ ) k 2095 modules/core/src/matmul.cpp s += _m[k]*src[k]; k 2283 modules/core/src/matmul.cpp ocl::Kernel k("KF", ocl::core::arithm_oclsrc, k 2293 modules/core/src/matmul.cpp if (k.empty()) k 2303 modules/core/src/matmul.cpp k.args(src1arg, src2arg, dstarg, (float)alpha); k 2305 modules/core/src/matmul.cpp k.args(src1arg, src2arg, dstarg, alpha); k 2308 modules/core/src/matmul.cpp return k.run(2, globalsize, NULL, false); k 2584 modules/core/src/matmul.cpp int i, j, k; k 2620 modules/core/src/matmul.cpp for( k = 0; k < size.height; k++ ) k 2621 modules/core/src/matmul.cpp col_buf[k] = src[k*srcstep+i]; k 2628 modules/core/src/matmul.cpp for( k = 0; k < size.height; k++, tsrc += srcstep ) k 2630 modules/core/src/matmul.cpp double a = col_buf[k]; k 2648 modules/core/src/matmul.cpp for( k = 0; k < size.height; k++, tsrc += srcstep ) k 2649 modules/core/src/matmul.cpp s0 += (double)col_buf[k] * tsrc[0]; k 2658 modules/core/src/matmul.cpp for( k = 0; k < size.height; k++ ) k 2659 modules/core/src/matmul.cpp col_buf[k] = src[k*srcstep+i] - delta[k*deltastep+i]; k 2661 modules/core/src/matmul.cpp for( k = 0; k < size.height; k++ ) k 2662 modules/core/src/matmul.cpp col_buf[k] = src[k*srcstep+i] - delta_buf[k*deltastep]; k 2670 modules/core/src/matmul.cpp for( k = 0; k < size.height; k++, tsrc+=srcstep, d+=deltastep ) k 2672 modules/core/src/matmul.cpp double a = col_buf[k]; k 2691 modules/core/src/matmul.cpp for( k = 0; k < size.height; k++, tsrc+=srcstep, d+=deltastep ) k 2692 modules/core/src/matmul.cpp s0 += (double)col_buf[k] * (tsrc[0] - d[0]); k 2703 modules/core/src/matmul.cpp int i, j, k; k 2722 modules/core/src/matmul.cpp for( k = 0; k <= size.width - 4; k += 4 ) k 2723 modules/core/src/matmul.cpp s += (double)tsrc1[k]*tsrc2[k] + (double)tsrc1[k+1]*tsrc2[k+1] + k 2724 modules/core/src/matmul.cpp (double)tsrc1[k+2]*tsrc2[k+2] + (double)tsrc1[k+3]*tsrc2[k+3]; k 2725 modules/core/src/matmul.cpp for( ; k < size.width; k++ ) k 2726 modules/core/src/matmul.cpp s += (double)tsrc1[k] * tsrc2[k]; k 2742 modules/core/src/matmul.cpp for( k = 0; k < size.width; k++ ) k 2743 modules/core/src/matmul.cpp row_buf[k] = tsrc1[k] - tdelta1[0]; k 2745 modules/core/src/matmul.cpp for( k = 0; k < size.width; k++ ) k 2746 modules/core/src/matmul.cpp row_buf[k] = tsrc1[k] - tdelta1[k]; k 2759 modules/core/src/matmul.cpp for( k = 0; k <= size.width-4; k += 4, tdelta2 += delta_shift ) k 2760 modules/core/src/matmul.cpp s += (double)row_buf[k]*(tsrc2[k] - tdelta2[0]) + k 2761 modules/core/src/matmul.cpp (double)row_buf[k+1]*(tsrc2[k+1] - tdelta2[1]) + k 2762 modules/core/src/matmul.cpp (double)row_buf[k+2]*(tsrc2[k+2] - tdelta2[2]) + k 2763 modules/core/src/matmul.cpp (double)row_buf[k+3]*(tsrc2[k+3] - tdelta2[3]); k 2764 modules/core/src/matmul.cpp for( ; k < size.width; k++, tdelta2++ ) k 2765 modules/core/src/matmul.cpp s += (double)row_buf[k]*(tsrc2[k] - tdelta2[0]); k 1117 modules/core/src/matrix.cpp int k = kind(); k 1120 modules/core/src/matrix.cpp if( k == MAT ) k 1128 modules/core/src/matrix.cpp if( k == UMAT ) k 1136 modules/core/src/matrix.cpp if( k == EXPR ) k 1142 modules/core/src/matrix.cpp if( k == MATX ) k 1148 modules/core/src/matrix.cpp if( k == STD_VECTOR ) k 1157 modules/core/src/matrix.cpp if( k == STD_BOOL_VECTOR ) k 1172 modules/core/src/matrix.cpp if( k == NONE ) k 1175 modules/core/src/matrix.cpp if( k == STD_VECTOR_VECTOR ) k 1185 modules/core/src/matrix.cpp if( k == STD_VECTOR_MAT ) k 1193 modules/core/src/matrix.cpp if( k == STD_VECTOR_UMAT ) k 1201 modules/core/src/matrix.cpp if( k == OPENGL_BUFFER ) k 1208 modules/core/src/matrix.cpp if( k == CUDA_GPU_MAT ) k 1215 modules/core/src/matrix.cpp if( k == CUDA_HOST_MEM ) k 1230 modules/core/src/matrix.cpp int k = kind(); k 1233 modules/core/src/matrix.cpp if( k == UMAT ) k 1241 modules/core/src/matrix.cpp if( k == STD_VECTOR_UMAT ) k 1249 modules/core/src/matrix.cpp if( k == MAT ) k 1262 modules/core/src/matrix.cpp int k = kind(); k 1265 modules/core/src/matrix.cpp if( k == MAT ) k 1277 modules/core/src/matrix.cpp if( k == EXPR ) k 1288 modules/core/src/matrix.cpp if( k == MATX ) k 1298 modules/core/src/matrix.cpp if( k == STD_VECTOR ) k 1311 modules/core/src/matrix.cpp if( k == NONE ) k 1317 modules/core/src/matrix.cpp if( k == STD_VECTOR_VECTOR ) k 1332 modules/core/src/matrix.cpp if( k == STD_VECTOR_MAT ) k 1343 modules/core/src/matrix.cpp if( k == STD_VECTOR_UMAT ) k 1359 modules/core/src/matrix.cpp int k = kind(); k 1362 modules/core/src/matrix.cpp if( k == NONE ) k 1368 modules/core/src/matrix.cpp if( k == STD_VECTOR_MAT ) k 1379 modules/core/src/matrix.cpp if( k == STD_VECTOR_UMAT ) k 1390 modules/core/src/matrix.cpp if( k == UMAT ) k 1397 modules/core/src/matrix.cpp if( k == MAT ) k 1410 modules/core/src/matrix.cpp int k = kind(); k 1412 modules/core/src/matrix.cpp if (k == CUDA_GPU_MAT) k 1418 modules/core/src/matrix.cpp if (k == CUDA_HOST_MEM) k 1424 modules/core/src/matrix.cpp if (k == OPENGL_BUFFER) k 1430 modules/core/src/matrix.cpp if (k == NONE) k 1439 modules/core/src/matrix.cpp int k = kind(); k 1441 modules/core/src/matrix.cpp CV_Assert(k == OPENGL_BUFFER); k 1464 modules/core/src/matrix.cpp int k = kind(); k 1466 modules/core/src/matrix.cpp if( k == MAT ) k 1472 modules/core/src/matrix.cpp if( k == EXPR ) k 1478 modules/core/src/matrix.cpp if( k == UMAT ) k 1484 modules/core/src/matrix.cpp if( k == MATX ) k 1490 modules/core/src/matrix.cpp if( k == STD_VECTOR ) k 1499 modules/core/src/matrix.cpp if( k == STD_BOOL_VECTOR ) k 1506 modules/core/src/matrix.cpp if( k == NONE ) k 1509 modules/core/src/matrix.cpp if( k == STD_VECTOR_VECTOR ) k 1521 modules/core/src/matrix.cpp if( k == STD_VECTOR_MAT ) k 1531 modules/core/src/matrix.cpp if( k == STD_VECTOR_UMAT ) k 1541 modules/core/src/matrix.cpp if( k == OPENGL_BUFFER ) k 1548 modules/core/src/matrix.cpp if( k == CUDA_GPU_MAT ) k 1555 modules/core/src/matrix.cpp if( k == CUDA_HOST_MEM ) k 1568 modules/core/src/matrix.cpp int j, d=0, k = kind(); k 1570 modules/core/src/matrix.cpp if( k == NONE ) k 1572 modules/core/src/matrix.cpp else if( k == MAT ) k 1581 modules/core/src/matrix.cpp else if( k == UMAT ) k 1590 modules/core/src/matrix.cpp else if( k == STD_VECTOR_MAT && i >= 0 ) k 1600 modules/core/src/matrix.cpp else if( k == STD_VECTOR_UMAT && i >= 0 ) k 1660 modules/core/src/matrix.cpp int k = kind(); k 1662 modules/core/src/matrix.cpp if( k == MAT ) k 1668 modules/core/src/matrix.cpp if( k == EXPR ) k 1674 modules/core/src/matrix.cpp if( k == UMAT ) k 1680 modules/core/src/matrix.cpp if( k == MATX ) k 1686 modules/core/src/matrix.cpp if( k == STD_VECTOR || k == STD_BOOL_VECTOR ) k 1692 modules/core/src/matrix.cpp if( k == NONE ) k 1695 modules/core/src/matrix.cpp if( k == STD_VECTOR_VECTOR ) k 1704 modules/core/src/matrix.cpp if( k == STD_VECTOR_MAT ) k 1714 modules/core/src/matrix.cpp if( k == STD_VECTOR_UMAT ) k 1724 modules/core/src/matrix.cpp if( k == OPENGL_BUFFER ) k 1730 modules/core/src/matrix.cpp if( k == CUDA_GPU_MAT ) k 1736 modules/core/src/matrix.cpp if( k == CUDA_HOST_MEM ) k 1748 modules/core/src/matrix.cpp int k = kind(); k 1750 modules/core/src/matrix.cpp if( k == MAT ) k 1756 modules/core/src/matrix.cpp if( k == UMAT ) k 1762 modules/core/src/matrix.cpp if( k == STD_VECTOR_MAT ) k 1772 modules/core/src/matrix.cpp if( k == STD_VECTOR_UMAT ) k 1787 modules/core/src/matrix.cpp int k = kind(); k 1789 modules/core/src/matrix.cpp if( k == MAT ) k 1792 modules/core/src/matrix.cpp if( k == UMAT ) k 1795 modules/core/src/matrix.cpp if( k == EXPR ) k 1798 modules/core/src/matrix.cpp if( k == MATX || k == STD_VECTOR || k == STD_VECTOR_VECTOR || k == STD_BOOL_VECTOR ) k 1801 modules/core/src/matrix.cpp if( k == NONE ) k 1804 modules/core/src/matrix.cpp if( k == STD_VECTOR_UMAT ) k 1816 modules/core/src/matrix.cpp if( k == STD_VECTOR_MAT ) k 1828 modules/core/src/matrix.cpp if( k == OPENGL_BUFFER ) k 1831 modules/core/src/matrix.cpp if( k == CUDA_GPU_MAT ) k 1834 modules/core/src/matrix.cpp if( k == CUDA_HOST_MEM ) k 1853 modules/core/src/matrix.cpp int k = kind(); k 1855 modules/core/src/matrix.cpp if( k == MAT ) k 1858 modules/core/src/matrix.cpp if( k == UMAT ) k 1861 modules/core/src/matrix.cpp if( k == EXPR ) k 1864 modules/core/src/matrix.cpp if( k == MATX ) k 1867 modules/core/src/matrix.cpp if( k == STD_VECTOR ) k 1873 modules/core/src/matrix.cpp if( k == STD_BOOL_VECTOR ) k 1879 modules/core/src/matrix.cpp if( k == NONE ) k 1882 modules/core/src/matrix.cpp if( k == STD_VECTOR_VECTOR ) k 1888 modules/core/src/matrix.cpp if( k == STD_VECTOR_MAT ) k 1894 modules/core/src/matrix.cpp if( k == STD_VECTOR_UMAT ) k 1900 modules/core/src/matrix.cpp if( k == OPENGL_BUFFER ) k 1903 modules/core/src/matrix.cpp if( k == CUDA_GPU_MAT ) k 1906 modules/core/src/matrix.cpp if( k == CUDA_HOST_MEM ) k 1915 modules/core/src/matrix.cpp int k = kind(); k 1917 modules/core/src/matrix.cpp if( k == MAT ) k 1920 modules/core/src/matrix.cpp if( k == UMAT ) k 1923 modules/core/src/matrix.cpp if( k == EXPR || k == MATX || k == STD_VECTOR || k 1924 modules/core/src/matrix.cpp k == NONE || k == STD_VECTOR_VECTOR || k == STD_BOOL_VECTOR ) k 1927 modules/core/src/matrix.cpp if( k == STD_VECTOR_MAT ) k 1934 modules/core/src/matrix.cpp if( k == STD_VECTOR_UMAT ) k 1947 modules/core/src/matrix.cpp int k = kind(); k 1949 modules/core/src/matrix.cpp if( k == MAT ) k 1952 modules/core/src/matrix.cpp if( k == UMAT ) k 1955 modules/core/src/matrix.cpp if( k == EXPR || k == MATX || k == STD_VECTOR || k 1956 modules/core/src/matrix.cpp k == NONE || k == STD_VECTOR_VECTOR || k == STD_BOOL_VECTOR ) k 1959 modules/core/src/matrix.cpp if( k == STD_VECTOR_MAT ) k 1966 modules/core/src/matrix.cpp if( k == STD_VECTOR_UMAT ) k 1979 modules/core/src/matrix.cpp int k = kind(); k 1981 modules/core/src/matrix.cpp if( k == MAT ) k 1988 modules/core/src/matrix.cpp if( k == UMAT ) k 1994 modules/core/src/matrix.cpp if( k == EXPR || k == MATX || k == STD_VECTOR || k 1995 modules/core/src/matrix.cpp k == NONE || k == STD_VECTOR_VECTOR || k == STD_BOOL_VECTOR ) k 1998 modules/core/src/matrix.cpp if( k == STD_VECTOR_MAT ) k 2008 modules/core/src/matrix.cpp if( k == STD_VECTOR_UMAT ) k 2015 modules/core/src/matrix.cpp if( k == CUDA_GPU_MAT ) k 2028 modules/core/src/matrix.cpp int k = kind(); k 2030 modules/core/src/matrix.cpp if( k == MAT ) k 2036 modules/core/src/matrix.cpp if( k == UMAT ) k 2042 modules/core/src/matrix.cpp if( k == EXPR || k == MATX || k == STD_VECTOR || k 2043 modules/core/src/matrix.cpp k == NONE || k == STD_VECTOR_VECTOR || k == STD_BOOL_VECTOR ) k 2046 modules/core/src/matrix.cpp if( k == STD_VECTOR_MAT ) k 2055 modules/core/src/matrix.cpp if( k == STD_VECTOR_UMAT ) k 2062 modules/core/src/matrix.cpp if( k == CUDA_GPU_MAT ) k 2074 modules/core/src/matrix.cpp int k = kind(); k 2076 modules/core/src/matrix.cpp if( k == NONE ) k 2078 modules/core/src/matrix.cpp else if( k == MAT || k == MATX || k == STD_VECTOR || k == STD_BOOL_VECTOR ) k 2083 modules/core/src/matrix.cpp else if( k == EXPR ) k 2091 modules/core/src/matrix.cpp else if( k == UMAT ) k 2099 modules/core/src/matrix.cpp int k = kind(); k 2101 modules/core/src/matrix.cpp if( k == NONE ) k 2103 modules/core/src/matrix.cpp else if( k == MAT || k == MATX || k == STD_VECTOR || k == STD_BOOL_VECTOR ) k 2108 modules/core/src/matrix.cpp else if( k == UMAT ) k 2126 modules/core/src/matrix.cpp int k = kind(); k 2127 modules/core/src/matrix.cpp if( k == MAT && i < 0 && !allowTransposed && fixedDepthMask == 0 ) k 2134 modules/core/src/matrix.cpp if( k == UMAT && i < 0 && !allowTransposed && fixedDepthMask == 0 ) k 2141 modules/core/src/matrix.cpp if( k == CUDA_GPU_MAT && i < 0 && !allowTransposed && fixedDepthMask == 0 ) k 2148 modules/core/src/matrix.cpp if( k == OPENGL_BUFFER && i < 0 && !allowTransposed && fixedDepthMask == 0 ) k 2155 modules/core/src/matrix.cpp if( k == CUDA_HOST_MEM && i < 0 && !allowTransposed && fixedDepthMask == 0 ) k 2168 modules/core/src/matrix.cpp int k = kind(); k 2169 modules/core/src/matrix.cpp if( k == MAT && i < 0 && !allowTransposed && fixedDepthMask == 0 ) k 2176 modules/core/src/matrix.cpp if( k == UMAT && i < 0 && !allowTransposed && fixedDepthMask == 0 ) k 2183 modules/core/src/matrix.cpp if( k == CUDA_GPU_MAT && i < 0 && !allowTransposed && fixedDepthMask == 0 ) k 2190 modules/core/src/matrix.cpp if( k == OPENGL_BUFFER && i < 0 && !allowTransposed && fixedDepthMask == 0 ) k 2197 modules/core/src/matrix.cpp if( k == CUDA_HOST_MEM && i < 0 && !allowTransposed && fixedDepthMask == 0 ) k 2211 modules/core/src/matrix.cpp int k = kind(); k 2214 modules/core/src/matrix.cpp if( k == MAT ) k 2248 modules/core/src/matrix.cpp if( k == UMAT ) k 2282 modules/core/src/matrix.cpp if( k == MATX ) k 2292 modules/core/src/matrix.cpp if( k == STD_VECTOR || k == STD_VECTOR_VECTOR ) k 2298 modules/core/src/matrix.cpp if( k == STD_VECTOR_VECTOR ) k 2374 modules/core/src/matrix.cpp if( k == NONE ) k 2380 modules/core/src/matrix.cpp if( k == STD_VECTOR_MAT ) k 2439 modules/core/src/matrix.cpp if( k == STD_VECTOR_UMAT ) k 2511 modules/core/src/matrix.cpp int k = kind(); k 2513 modules/core/src/matrix.cpp if( k == MAT ) k 2519 modules/core/src/matrix.cpp if( k == UMAT ) k 2525 modules/core/src/matrix.cpp if( k == CUDA_GPU_MAT ) k 2531 modules/core/src/matrix.cpp if( k == CUDA_HOST_MEM ) k 2537 modules/core/src/matrix.cpp if( k == OPENGL_BUFFER ) k 2543 modules/core/src/matrix.cpp if( k == NONE ) k 2546 modules/core/src/matrix.cpp if( k == STD_VECTOR ) k 2552 modules/core/src/matrix.cpp if( k == STD_VECTOR_VECTOR ) k 2558 modules/core/src/matrix.cpp if( k == STD_VECTOR_MAT ) k 2564 modules/core/src/matrix.cpp if( k == STD_VECTOR_UMAT ) k 2575 modules/core/src/matrix.cpp int k = kind(); k 2577 modules/core/src/matrix.cpp if( k == MAT ) k 2594 modules/core/src/matrix.cpp int k = kind(); k 2597 modules/core/src/matrix.cpp CV_Assert( k == MAT ); k 2602 modules/core/src/matrix.cpp CV_Assert( k == STD_VECTOR_MAT ); k 2611 modules/core/src/matrix.cpp int k = kind(); k 2614 modules/core/src/matrix.cpp CV_Assert( k == UMAT ); k 2619 modules/core/src/matrix.cpp CV_Assert( k == STD_VECTOR_UMAT ); k 2628 modules/core/src/matrix.cpp int k = kind(); k 2629 modules/core/src/matrix.cpp CV_Assert( k == CUDA_GPU_MAT ); k 2635 modules/core/src/matrix.cpp int k = kind(); k 2636 modules/core/src/matrix.cpp CV_Assert( k == OPENGL_BUFFER ); k 2642 modules/core/src/matrix.cpp int k = kind(); k 2643 modules/core/src/matrix.cpp CV_Assert( k == CUDA_HOST_MEM ); k 2649 modules/core/src/matrix.cpp int k = kind(); k 2651 modules/core/src/matrix.cpp if( k == NONE ) k 2653 modules/core/src/matrix.cpp else if( k == MAT || k == MATX || k == STD_VECTOR ) k 2658 modules/core/src/matrix.cpp else if( k == UMAT ) k 2660 modules/core/src/matrix.cpp else if( k == CUDA_GPU_MAT ) k 2673 modules/core/src/matrix.cpp int k = kind(); k 2674 modules/core/src/matrix.cpp if (k == UMAT) k 2678 modules/core/src/matrix.cpp else if (k == MAT) k 2682 modules/core/src/matrix.cpp else if (k == MATX) k 2695 modules/core/src/matrix.cpp int k = kind(); k 2696 modules/core/src/matrix.cpp if (k == UMAT) k 2700 modules/core/src/matrix.cpp else if (k == MAT) k 2704 modules/core/src/matrix.cpp else if (k == MATX) k 2825 modules/core/src/matrix.cpp ocl::Kernel k("setIdentity", ocl::core::set_identity_oclsrc, k 2831 modules/core/src/matrix.cpp if (k.empty()) k 2835 modules/core/src/matrix.cpp k.args(ocl::KernelArg::WriteOnly(m, cn, kercn), k 2839 modules/core/src/matrix.cpp return k.run(2, globalsize, NULL, false); k 3064 modules/core/src/matrix.cpp ocl::Kernel k(kernelName.c_str(), ocl::core::transpose_oclsrc, k 3068 modules/core/src/matrix.cpp if (k.empty()) k 3072 modules/core/src/matrix.cpp k.args(ocl::KernelArg::ReadWriteNoSize(dst), dst.rows); k 3074 modules/core/src/matrix.cpp k.args(ocl::KernelArg::ReadOnly(src), k 3086 modules/core/src/matrix.cpp return k.run(2, globalsize, localsize, false); k 3315 modules/core/src/matrix.cpp int i, k, cn = srcmat.channels(); k 3324 modules/core/src/matrix.cpp for( k = 0; k < cn; k++ ) k 3325 modules/core/src/matrix.cpp dst[k] = src[k]; k 3328 modules/core/src/matrix.cpp for( k = 0; k < cn; k++ ) k 3330 modules/core/src/matrix.cpp WT a0 = src[k], a1 = src[k+cn]; k 3333 modules/core/src/matrix.cpp a0 = op(a0, (WT)src[i+k]); k 3334 modules/core/src/matrix.cpp a1 = op(a1, (WT)src[i+k+cn]); k 3335 modules/core/src/matrix.cpp a0 = op(a0, (WT)src[i+k+cn*2]); k 3336 modules/core/src/matrix.cpp a1 = op(a1, (WT)src[i+k+cn*3]); k 3341 modules/core/src/matrix.cpp a0 = op(a0, (WT)src[i+k]); k 3344 modules/core/src/matrix.cpp dst[k] = (ST)a0; k 3571 modules/core/src/matrix.cpp ocl::Kernel k("reduce_horz_opt", ocl::core::reduce2_oclsrc, build_opt); k 3572 modules/core/src/matrix.cpp if (k.empty()) k 3580 modules/core/src/matrix.cpp k.args(ocl::KernelArg::ReadOnly(src), k 3583 modules/core/src/matrix.cpp k.args(ocl::KernelArg::ReadOnly(src), k 3588 modules/core/src/matrix.cpp return k.run(2, globalSize, localSize, false); k 3603 modules/core/src/matrix.cpp ocl::Kernel k("reduce", ocl::core::reduce2_oclsrc, build_opt); k 3604 modules/core/src/matrix.cpp if (k.empty()) k 3616 modules/core/src/matrix.cpp k.args(srcarg, temparg, 1.0f / (dim == 0 ? src.rows : src.cols)); k 3618 modules/core/src/matrix.cpp k.args(srcarg, temparg); k 3621 modules/core/src/matrix.cpp return k.run(1, &globalsize, NULL, false); k 2584 modules/core/src/ocl.cpp HashKey k(src.hash(), crc64((const uchar*)prefix.c_str(), prefix.size())); k 2585 modules/core/src/ocl.cpp phash_t::iterator it = phash.find(k); k 2591 modules/core/src/ocl.cpp phash.insert(std::pair<HashKey,Program>(k, prog)); k 2605 modules/core/src/ocl.cpp bool operator < (const HashKey& k) const { return a < k.a || (a == k.a && b < k.b); } k 2606 modules/core/src/ocl.cpp bool operator == (const HashKey& k) const { return a == k.a && b == k.b; } k 2607 modules/core/src/ocl.cpp bool operator != (const HashKey& k) const { return a != k.a || b != k.b; } k 3184 modules/core/src/ocl.cpp Kernel::Kernel(const Kernel& k) k 3186 modules/core/src/ocl.cpp p = k.p; k 3191 modules/core/src/ocl.cpp Kernel& Kernel::operator = (const Kernel& k) k 3193 modules/core/src/ocl.cpp Impl* newp = (Impl*)k.p; k 5369 modules/core/src/ocl.cpp static std::string kerToStr(const Mat & k) k 5371 modules/core/src/ocl.cpp int width = k.cols - 1, depth = k.depth(); k 5372 modules/core/src/ocl.cpp const T * const data = k.ptr<T>(); k 629 modules/core/src/persistence.cpp int k = 0, attempts = 1; k 646 modules/core/src/persistence.cpp for( k = 0; k < attempts; k++ ) k 654 modules/core/src/persistence.cpp map_node = (CvFileNode*)cvGetSeqElem( fs->roots, k ); k 683 modules/core/src/persistence.cpp if( k == attempts - 1 && create_missing ) k 704 modules/core/src/persistence.cpp int k = 0, attempts = 1; k 726 modules/core/src/persistence.cpp for( k = 0; k < attempts; k++ ) k 733 modules/core/src/persistence.cpp map_node = (CvFileNode*)cvGetSeqElem( fs->roots, k ); k 3000 modules/core/src/persistence.cpp int i = 0, k = 0, len = dt ? (int)strlen(dt) : 0; k 3009 modules/core/src/persistence.cpp for( ; k < len; k++ ) k 3011 modules/core/src/persistence.cpp char c = dt[k]; k 3016 modules/core/src/persistence.cpp if( cv_isdigit(dt[k+1]) ) k 3019 modules/core/src/persistence.cpp count = (int)strtol( dt+k, &endptr, 10 ); k 3020 modules/core/src/persistence.cpp k = (int)(endptr - dt) - 1; k 3098 modules/core/src/persistence.cpp int fmt_pairs[CV_FS_MAX_FMT_PAIRS*2], k, fmt_pair_count; k 3122 modules/core/src/persistence.cpp for( k = 0; k < fmt_pair_count; k++ ) k 3124 modules/core/src/persistence.cpp int i, count = fmt_pairs[k*2]; k 3125 modules/core/src/persistence.cpp int elem_type = fmt_pairs[k*2+1]; k 3224 modules/core/src/persistence.cpp int fmt_pairs[CV_FS_MAX_FMT_PAIRS*2], k = 0, fmt_pair_count; k 3239 modules/core/src/persistence.cpp for( k = 0; k < fmt_pair_count; k++ ) k 3241 modules/core/src/persistence.cpp int elem_type = fmt_pairs[k*2+1]; k 3245 modules/core/src/persistence.cpp count = fmt_pairs[k*2]; k 3359 modules/core/src/persistence.cpp if( i != count - 1 || k != fmt_pair_count - 1 ) k 3750 modules/core/src/persistence.cpp int k = 0; k 3755 modules/core/src/persistence.cpp for( ; idx[k] == prev_idx[k]; k++ ) k 3756 modules/core/src/persistence.cpp assert( k < dims ); k 3757 modules/core/src/persistence.cpp if( k < dims - 1 ) k 3758 modules/core/src/persistence.cpp fs->write_int( fs, 0, k - dims + 1 ); k 3760 modules/core/src/persistence.cpp for( ; k < dims; k++ ) k 3761 modules/core/src/persistence.cpp fs->write_int( fs, 0, idx[k] ); k 3819 modules/core/src/persistence.cpp int k; k 3822 modules/core/src/persistence.cpp k = elem->data.i; k 3823 modules/core/src/persistence.cpp if( i > 0 && k >= 0 ) k 3824 modules/core/src/persistence.cpp idx[dims-1] = k; k 3828 modules/core/src/persistence.cpp k = dims + k - 1; k 3830 modules/core/src/persistence.cpp idx[0] = k, k = 1; k 3831 modules/core/src/persistence.cpp for( ; k < dims; k++ ) k 3838 modules/core/src/persistence.cpp idx[k] = elem->data.i; k 4432 modules/core/src/persistence.cpp int i, k, vtx_count, edge_count; k 4444 modules/core/src/persistence.cpp for( i = 0, k = 0; i < graph->total; i++ ) k 4449 modules/core/src/persistence.cpp flag_buf[k] = vtx->flags; k 4450 modules/core/src/persistence.cpp vtx->flags = k++; k 4481 modules/core/src/persistence.cpp for( k = 0; k < 2; k++ ) k 4483 modules/core/src/persistence.cpp const char* dt = k == 0 ? vtx_dt : edge_dt; k 4486 modules/core/src/persistence.cpp CvSet* data = k == 0 ? (CvSet*)graph : graph->edges; k 4495 modules/core/src/persistence.cpp if( k == 1 ) k 4503 modules/core/src/persistence.cpp cvStartWriteStruct( fs, k == 0 ? "vertices" : "edges", k 4510 modules/core/src/persistence.cpp if( k == 0 ) // vertices k 4575 modules/core/src/persistence.cpp int i, k; k 4685 modules/core/src/persistence.cpp for( k = 0; k < 2; k++ ) k 4687 modules/core/src/persistence.cpp const char* dt = k == 0 ? vtx_dt : edge_dt; k 4688 modules/core/src/persistence.cpp int elem_size = k == 0 ? vtx_size : edge_size; k 4689 modules/core/src/persistence.cpp int src_elem_size = k == 0 ? src_vtx_size : src_edge_size; k 4690 modules/core/src/persistence.cpp int items_per_elem = k == 0 ? vtx_items_per_elem : edge_items_per_elem; k 4691 modules/core/src/persistence.cpp int elem_count = k == 0 ? vtx_count : edge_count; k 4696 modules/core/src/persistence.cpp cvStartReadRawData( fs, k == 0 ? vtx_node : edge_node, &reader ); k 4708 modules/core/src/persistence.cpp if( k == 0 ) k 5050 modules/core/src/persistence.cpp int i, k; k 5051 modules/core/src/persistence.cpp for( k = 0; k < (*fs)->roots->total; k++ ) k 5056 modules/core/src/persistence.cpp node = (CvFileNode*)cvGetSeqElem( (*fs)->roots, k ); k 412 modules/core/src/rand.cpp int i, j, k; k 424 modules/core/src/rand.cpp for( k = 0; k < cn; k++ ) k 425 modules/core/src/rand.cpp dst[k] = saturate_cast<T>(src[k]*stddev[k] + mean[k]); k 435 modules/core/src/rand.cpp for( k = 0; k < cn; k++ ) k 436 modules/core/src/rand.cpp s += src[k]*stddev[j*cn + k]; k 487 modules/core/src/rand.cpp int j, k, fast_int_mode = 0, smallFlag = 1; k 680 modules/core/src/rand.cpp for( k = 0; k < cn; k++ ) k 681 modules/core/src/rand.cpp p[j + k] = ds[k]; k 687 modules/core/src/rand.cpp for( k = 0; k < cn; k++ ) k 688 modules/core/src/rand.cpp p[j + k] = ip[k]; k 695 modules/core/src/rand.cpp for( k = 0; k < cn; k++ ) k 696 modules/core/src/rand.cpp p[j + k] = fp[k]; k 702 modules/core/src/rand.cpp for( k = 0; k < cn; k++ ) k 703 modules/core/src/rand.cpp p[j + k] = dp[k]; k 346 modules/core/src/stat.cpp int i = vop(src0, mask, dst, len, cn), k = cn % 4; k 349 modules/core/src/stat.cpp if( k == 1 ) k 361 modules/core/src/stat.cpp else if( k == 2 ) k 372 modules/core/src/stat.cpp else if( k == 3 ) k 386 modules/core/src/stat.cpp for( ; k < cn; k += 4 ) k 388 modules/core/src/stat.cpp src = src0 + i*cn + k; k 389 modules/core/src/stat.cpp ST s0 = dst[k], s1 = dst[k+1], s2 = dst[k+2], s3 = dst[k+3]; k 395 modules/core/src/stat.cpp dst[k] = s0; k 396 modules/core/src/stat.cpp dst[k+1] = s1; k 397 modules/core/src/stat.cpp dst[k+2] = s2; k 398 modules/core/src/stat.cpp dst[k+3] = s3; k 435 modules/core/src/stat.cpp int k = 0; k 437 modules/core/src/stat.cpp for( ; k <= cn - 4; k += 4 ) k 440 modules/core/src/stat.cpp s0 = dst[k] + src[k]; k 441 modules/core/src/stat.cpp s1 = dst[k+1] + src[k+1]; k 442 modules/core/src/stat.cpp dst[k] = s0; dst[k+1] = s1; k 443 modules/core/src/stat.cpp s0 = dst[k+2] + src[k+2]; k 444 modules/core/src/stat.cpp s1 = dst[k+3] + src[k+3]; k 445 modules/core/src/stat.cpp dst[k+2] = s0; dst[k+3] = s1; k 448 modules/core/src/stat.cpp for( ; k < cn; k++ ) k 449 modules/core/src/stat.cpp dst[k] += src[k]; k 535 modules/core/src/stat.cpp int blockSizej = std::min(blockSizei - j, blockSize1), k = 0; k 538 modules/core/src/stat.cpp for( ; k <= blockSizej - 16; k += 16 ) k 539 modules/core/src/stat.cpp v_pz = vaddq_u8(v_pz, vandq_u8(vceqq_u8(vld1q_u8(src0 + k), v_zero), v_1)); k 590 modules/core/src/stat.cpp int blockSizej = std::min(blockSizei - j, blockSize1), k = 0; k 593 modules/core/src/stat.cpp for( ; k <= blockSizej - 8; k += 8 ) k 594 modules/core/src/stat.cpp v_pz = vaddq_u16(v_pz, vandq_u16(vceqq_u16(vld1q_u16(src + k), v_zero), v_1)); k 642 modules/core/src/stat.cpp int blockSizej = std::min(blockSizei - j, blockSize1), k = 0; k 645 modules/core/src/stat.cpp for( ; k <= blockSizej - 8; k += 8 ) k 646 modules/core/src/stat.cpp v_pz = vaddq_u16(v_pz, vandq_u16(vcombine_u16(vmovn_u32(vceqq_s32(vld1q_s32(src + k), v_zero)), k 647 modules/core/src/stat.cpp vmovn_u32(vceqq_s32(vld1q_s32(src + k + 4), v_zero))), v_1)); k 696 modules/core/src/stat.cpp int blockSizej = std::min(blockSizei - j, blockSize1), k = 0; k 699 modules/core/src/stat.cpp for( ; k <= blockSizej - 8; k += 8 ) k 700 modules/core/src/stat.cpp v_pz = vaddq_u16(v_pz, vandq_u16(vcombine_u16(vmovn_u32(vceqq_f32(vld1q_f32(src + k), v_zero)), k 701 modules/core/src/stat.cpp vmovn_u32(vceqq_f32(vld1q_f32(src + k + 4), v_zero))), v_1)); k 878 modules/core/src/stat.cpp int i = vop(src0, mask, sum, sqsum, len, cn), k = cn % 4; k 881 modules/core/src/stat.cpp if( k == 1 ) k 893 modules/core/src/stat.cpp else if( k == 2 ) k 906 modules/core/src/stat.cpp else if( k == 3 ) k 921 modules/core/src/stat.cpp for( ; k < cn; k += 4 ) k 923 modules/core/src/stat.cpp src = src0 + k; k 924 modules/core/src/stat.cpp ST s0 = sum[k], s1 = sum[k+1], s2 = sum[k+2], s3 = sum[k+3]; k 925 modules/core/src/stat.cpp SQT sq0 = sqsum[k], sq1 = sqsum[k+1], sq2 = sqsum[k+2], sq3 = sqsum[k+3]; k 936 modules/core/src/stat.cpp sum[k] = s0; sum[k+1] = s1; k 937 modules/core/src/stat.cpp sum[k+2] = s2; sum[k+3] = s3; k 938 modules/core/src/stat.cpp sqsum[k] = sq0; sqsum[k+1] = sq1; k 939 modules/core/src/stat.cpp sqsum[k+2] = sq2; sqsum[k+3] = sq3; k 981 modules/core/src/stat.cpp for( int k = 0; k < cn; k++ ) k 983 modules/core/src/stat.cpp T v = src[k]; k 984 modules/core/src/stat.cpp ST s = sum[k] + v; k 985 modules/core/src/stat.cpp SQT sq = sqsum[k] + (SQT)v*v; k 986 modules/core/src/stat.cpp sum[k] = s; sqsum[k] = sq; k 1095 modules/core/src/stat.cpp ocl::Kernel k("reduce", ocl::core::reduce_oclsrc, opts); k 1096 modules/core/src/stat.cpp if (k.empty()) k 1110 modules/core/src/stat.cpp k.args(srcarg, src.cols, (int)src.total(), ngroups, dbarg, maskarg, src2arg); k 1112 modules/core/src/stat.cpp k.args(srcarg, src.cols, (int)src.total(), ngroups, dbarg, maskarg); k 1117 modules/core/src/stat.cpp k.args(srcarg, src.cols, (int)src.total(), ngroups, dbarg, src2arg); k 1119 modules/core/src/stat.cpp k.args(srcarg, src.cols, (int)src.total(), ngroups, dbarg); k 1123 modules/core/src/stat.cpp if (k.run(1, &globalsize, &wgs, false)) k 1153 modules/core/src/stat.cpp int k, cn = src.channels(), depth = src.depth(); k 1223 modules/core/src/stat.cpp for( k = 0; k < cn; k++ ) k 1224 modules/core/src/stat.cpp buf[k] = 0; k 1237 modules/core/src/stat.cpp for( k = 0; k < cn; k++ ) k 1239 modules/core/src/stat.cpp s[k] += buf[k]; k 1240 modules/core/src/stat.cpp buf[k] = 0; k 1270 modules/core/src/stat.cpp ocl::Kernel k("reduce", ocl::core::reduce_oclsrc, k 1277 modules/core/src/stat.cpp if (k.empty()) k 1281 modules/core/src/stat.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(src), src.cols, (int)src.total(), k 1285 modules/core/src/stat.cpp if (k.run(1, &globalsize, &wgs, true)) k 1359 modules/core/src/stat.cpp int k, cn = src.channels(), depth = src.depth(); k 1471 modules/core/src/stat.cpp for( k = 0; k < cn; k++ ) k 1472 modules/core/src/stat.cpp buf[k] = 0; k 1486 modules/core/src/stat.cpp for( k = 0; k < cn; k++ ) k 1488 modules/core/src/stat.cpp s[k] += buf[k]; k 1489 modules/core/src/stat.cpp buf[k] = 0; k 1552 modules/core/src/stat.cpp ocl::Kernel k("meanStdDev", ocl::core::meanstddev_oclsrc, opts); k 1553 modules/core/src/stat.cpp if (k.empty()) k 1565 modules/core/src/stat.cpp k.args(srcarg, src.cols, (int)src.total(), groups, dbarg, maskarg); k 1567 modules/core/src/stat.cpp k.args(srcarg, src.cols, (int)src.total(), groups, dbarg); k 1570 modules/core/src/stat.cpp if (!k.run(1, &globalsize, &wgs, false)) k 1587 modules/core/src/stat.cpp int k, j, cn = _src.channels(); k 1608 modules/core/src/stat.cpp for( k = 0; k < cn; k++ ) k 1609 modules/core/src/stat.cpp dptr[k] = sptr[k]; k 1610 modules/core/src/stat.cpp for( ; k < dcn; k++ ) k 1611 modules/core/src/stat.cpp dptr[k] = 0; k 1629 modules/core/src/stat.cpp int k, cn = src.channels(), depth = src.depth(); k 1759 modules/core/src/stat.cpp for( k = 0; k < cn; k++ ) k 1760 modules/core/src/stat.cpp s[k] = sq[k] = 0; k 1769 modules/core/src/stat.cpp for( k = 0; k < cn; k++ ) k 1770 modules/core/src/stat.cpp sbuf[k] = sqbuf[k] = 0; k 1784 modules/core/src/stat.cpp for( k = 0; k < cn; k++ ) k 1786 modules/core/src/stat.cpp s[k] += sbuf[k]; k 1787 modules/core/src/stat.cpp sbuf[k] = 0; k 1791 modules/core/src/stat.cpp for( k = 0; k < cn; k++ ) k 1793 modules/core/src/stat.cpp sq[k] += sqbuf[k]; k 1794 modules/core/src/stat.cpp sqbuf[k] = 0; k 1806 modules/core/src/stat.cpp for( k = 0; k < cn; k++ ) k 1808 modules/core/src/stat.cpp s[k] *= scale; k 1809 modules/core/src/stat.cpp sq[k] = std::sqrt(std::max(sq[k]*scale - s[k]*s[k], 0.)); k 1826 modules/core/src/stat.cpp for( k = 0; k < cn; k++ ) k 1827 modules/core/src/stat.cpp dptr[k] = sptr[k]; k 1828 modules/core/src/stat.cpp for( ; k < dcn; k++ ) k 1829 modules/core/src/stat.cpp dptr[k] = 0; k 2120 modules/core/src/stat.cpp ocl::Kernel k("minmaxloc", ocl::core::minmaxloc_oclsrc, opts); k 2121 modules/core/src/stat.cpp if (k.empty()) k 2139 modules/core/src/stat.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(src), src.cols, (int)src.total(), k 2142 modules/core/src/stat.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(src), src.cols, (int)src.total(), k 2149 modules/core/src/stat.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(src), src.cols, (int)src.total(), k 2152 modules/core/src/stat.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(src), src.cols, (int)src.total(), k 2157 modules/core/src/stat.cpp if (!k.run(1, &globalsize, &wgs, true)) k 2367 modules/core/src/stat.cpp for( int k = 0; k < cn; k++ ) k 2368 modules/core/src/stat.cpp result = std::max(result, ST(cv_abs(src[k]))); k 2388 modules/core/src/stat.cpp for( int k = 0; k < cn; k++ ) k 2389 modules/core/src/stat.cpp result += cv_abs(src[k]); k 2409 modules/core/src/stat.cpp for( int k = 0; k < cn; k++ ) k 2411 modules/core/src/stat.cpp T v = src[k]; k 2433 modules/core/src/stat.cpp for( int k = 0; k < cn; k++ ) k 2434 modules/core/src/stat.cpp result = std::max(result, (ST)std::abs(src1[k] - src2[k])); k 2454 modules/core/src/stat.cpp for( int k = 0; k < cn; k++ ) k 2455 modules/core/src/stat.cpp result += std::abs(src1[k] - src2[k]); k 2475 modules/core/src/stat.cpp for( int k = 0; k < cn; k++ ) k 2477 modules/core/src/stat.cpp ST v = src1[k] - src2[k]; k 3615 modules/core/src/stat.cpp int j, k; k 3622 modules/core/src/stat.cpp for( k = K-2; k >= 0 && distptr[k] > d; k-- ) k 3624 modules/core/src/stat.cpp nidxptr[k+1] = nidxptr[k]; k 3625 modules/core/src/stat.cpp distptr[k+1] = distptr[k]; k 3627 modules/core/src/stat.cpp nidxptr[k+1] = j + update; k 3628 modules/core/src/stat.cpp distptr[k+1] = d; k 1093 modules/core/src/system.cpp TLSDataContainer* k = tlsContainers_[key]; k 1094 modules/core/src/system.cpp if (!k) k 1098 modules/core/src/system.cpp k->deleteDataInstance(data); k 1102 modules/core/src/system.cpp CV_DbgAssert(k == NULL); // Debug this! k 689 modules/core/src/umatrix.cpp ocl::Kernel k("copyToMask", ocl::core::copyset_oclsrc, opts); k 690 modules/core/src/umatrix.cpp if (!k.empty()) k 692 modules/core/src/umatrix.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(*this), k 698 modules/core/src/umatrix.cpp if (k.run(2, globalsize, NULL, false)) k 735 modules/core/src/umatrix.cpp ocl::Kernel k("convertTo", ocl::core::convert_oclsrc, k 741 modules/core/src/umatrix.cpp if (!k.empty()) k 752 modules/core/src/umatrix.cpp k.args(srcarg, dstarg, alphaf, betaf, rowsPerWI); k 754 modules/core/src/umatrix.cpp k.args(srcarg, dstarg, alpha, beta, rowsPerWI); k 757 modules/core/src/umatrix.cpp if (k.run(2, globalsize, NULL, false)) k 876 modules/core/src/umatrix.cpp ocl::Kernel k("reduce", ocl::core::reduce_oclsrc, k 885 modules/core/src/umatrix.cpp if (k.empty()) k 894 modules/core/src/umatrix.cpp k.args(src1arg, src1.cols, (int)src1.total(), dbsize, dbarg, src2arg); k 897 modules/core/src/umatrix.cpp if (k.run(1, &globalsize, &wgs, false)) k 844 modules/core/test/ocl/test_arithm.cpp for (int k = 0, size = sizeof(pows) / sizeof(double); k < size; ++k) k 846 modules/core/test/ocl/test_arithm.cpp SCOPED_TRACE(pows[k]); k 850 modules/core/test/ocl/test_arithm.cpp OCL_OFF(cv::pow(src1_roi, pows[k], dst1_roi)); k 851 modules/core/test/ocl/test_arithm.cpp OCL_ON(cv::pow(usrc1_roi, pows[k], udst1_roi)); k 773 modules/core/test/test_arithm.cpp int i, j, k, esz = (int)src.elemSize(), width = src.cols*esz; k 784 modules/core/test/test_arithm.cpp for( k = 0; k < esz; k++ ) k 785 modules/core/test/test_arithm.cpp dptr[j + k] = sptr[width - j - esz + k]; k 796 modules/core/test/test_arithm.cpp int i, k, esz = (int)dst.elemSize(), width = dst.cols*esz; k 803 modules/core/test/test_arithm.cpp for( k = 0; k < esz; k++ ) k 804 modules/core/test/test_arithm.cpp dptr[i*esz + k] = ((uchar*)buf)[k]; k 1444 modules/core/test/test_arithm.cpp int k, dims = rng.uniform(1, MAX_DIM+1), p = 1; k 1450 modules/core/test/test_arithm.cpp for( k = 0; k < dims; k++ ) k 1452 modules/core/test/test_arithm.cpp sizes[k] = rng.uniform(1, 30); k 1453 modules/core/test/test_arithm.cpp p *= sizes[k]; k 189 modules/core/test/test_countnonzero.cpp for (int k = 1; k <= 3; ++k) k 198 modules/core/test/test_countnonzero.cpp switch (k) k 65 modules/core/test/test_ds.cpp int i, k, len = seq->count, elem_size = seq->elem_size; k 72 modules/core/test/test_ds.cpp for( k = 0; k < elem_size; k++ ) k 73 modules/core/test/test_ds.cpp CV_SWAP( a[k], b[k], t ); k 551 modules/core/test/test_ds.cpp int k = cvtest::randInt( rng ) % cur_count; k 552 modules/core/test/test_ds.cpp struct_idx = index[k]; k 581 modules/core/test/test_ds.cpp for( ; k < cur_count-1; k++ ) k 582 modules/core/test/test_ds.cpp index[k] = index[k+1]; k 1069 modules/core/test/test_ds.cpp int i, k; k 1133 modules/core/test/test_ds.cpp for( k = 0; k < (sseq->count > 0 ? 10 : 0); k++ ) k 1138 modules/core/test/test_ds.cpp elem2 = cvSeqSearch( seq, elem0, k % 2 ? icvCmpSeqElems : 0, 0, &idx, seq ); k 1174 modules/core/test/test_ds.cpp for( k = 0; k < (sseq->count > 0 ? 10 : 0); k++ ) k 1445 modules/core/test/test_ds.cpp int i, k; k 1589 modules/core/test/test_ds.cpp for( i = 0, k = 0; i < 10; i++ ) k 1595 modules/core/test/test_ds.cpp v_idx[k] = j; k 1596 modules/core/test/test_ds.cpp if( k == 0 ) k 1597 modules/core/test/test_ds.cpp k++; k 1601 modules/core/test/test_ds.cpp k++; k 1607 modules/core/test/test_ds.cpp if( k < 2 ) k 1685 modules/core/test/test_ds.cpp for( i = 0, k = 0; i < 10; i++ ) k 1691 modules/core/test/test_ds.cpp v_idx[k] = j; k 1692 modules/core/test/test_ds.cpp if( k == 0 ) k 1693 modules/core/test/test_ds.cpp k++; k 1699 modules/core/test/test_ds.cpp k++; k 1706 modules/core/test/test_ds.cpp if( k < 2 ) k 1796 modules/core/test/test_ds.cpp int i, k; k 1818 modules/core/test/test_ds.cpp for( k = 0; k < 2; k++ ) k 1822 modules/core/test/test_ds.cpp int delta = k == 0 ? sizeof(CvGraphVtx) : sizeof(CvGraphEdge); k 1828 modules/core/test/test_ds.cpp pure_elem_size[k] = pe; k 1829 modules/core/test/test_ds.cpp elem_size[k] = e; k 1895 modules/core/test/test_ds.cpp int k = cvtest::randInt(rng) % vtx_count; k 1897 modules/core/test/test_ds.cpp if( j != k ) k 1898 modules/core/test/test_ds.cpp cvGraphAddEdge( graph, j, k ); k 37 modules/core/test/test_dxt.cpp int i, j, k, n = _dst.cols + _dst.rows - 1; k 63 modules/core/test/test_dxt.cpp k = 0; k 68 modules/core/test/test_dxt.cpp sum.re += src->re*w[k].re - src->im*w[k].im; k 69 modules/core/test/test_dxt.cpp sum.im += src->re*w[k].im + src->im*w[k].re; k 70 modules/core/test/test_dxt.cpp k += delta; k 71 modules/core/test/test_dxt.cpp k -= (k >= n ? n : 0); k 85 modules/core/test/test_dxt.cpp k = 0; k 90 modules/core/test/test_dxt.cpp sum.re += src->re*w[k].re - src->im*w[k].im; k 91 modules/core/test/test_dxt.cpp sum.im += src->re*w[k].im + src->im*w[k].re; k 92 modules/core/test/test_dxt.cpp k += delta; k 93 modules/core/test/test_dxt.cpp k -= (k >= n ? n : 0); k 139 modules/core/test/test_dxt.cpp int i, k; k 144 modules/core/test/test_dxt.cpp for( k = 0; k < n; k++ ) k 145 modules/core/test/test_dxt.cpp wave.at<double>(0, k) = scale; k 148 modules/core/test/test_dxt.cpp for( k = 0; k < n; k++ ) k 149 modules/core/test/test_dxt.cpp wave.at<double>(i, k) = scale*cos( angle*i*(2*k + 1) ); k 401 modules/core/test/test_eigen.cpp for (int k = j; k < src.cols; ++k) k 402 modules/core/test/test_eigen.cpp if (type == CV_32FC1) src.at<float>(k, j) = src.at<float>(j, k) = cv::randu<float>(); k 403 modules/core/test/test_eigen.cpp else src.at<double>(k, j) = src.at<double>(j, k) = cv::randu<double>(); k 561 modules/core/test/test_mat.cpp for( int k = 0; k < dims; k++ ) k 563 modules/core/test/test_mat.cpp sprintf(ptr, "%4d ", idx[k]); k 573 modules/core/test/test_mat.cpp for( int k = 0; k < dims; k++ ) k 576 modules/core/test/test_mat.cpp sscanf(ptr, "%d%n", idx + k, &n); k 746 modules/core/test/test_mat.cpp int i, k, size[MAX_DIM]={0}, idx[MAX_DIM]={0}; k 754 modules/core/test/test_mat.cpp for( k = 0; k < dims; k++ ) k 756 modules/core/test/test_mat.cpp size[k] = ((unsigned)rng % MAX_DIM_SZ) + 1; k 757 modules/core/test/test_mat.cpp p *= size[k]; k 791 modules/core/test/test_mat.cpp for( k = 0; k < dims; k++ ) k 792 modules/core/test/test_mat.cpp idx[k] = (unsigned)rng % size[k]; k 857 modules/core/test/test_mat.cpp for( k = 0; k < dims; k++ ) k 858 modules/core/test/test_mat.cpp idx[k] = (unsigned)rng % size[k]; k 884 modules/core/test/test_mat.cpp for( k = 0; k < dims; k++ ) k 885 modules/core/test/test_mat.cpp idx[k] = (unsigned)rng % size[k]; k 1311 modules/core/test/test_math.cpp int k, total = mat.rows*mat.cols, type = mat.type(); k 1315 modules/core/test/test_math.cpp for( k = 0; k < zero_total; k++ ) k 1395 modules/core/test/test_math.cpp int i, j, k, N = a->rows, N1 = a->cols, Nm = MIN(N, N1), step = a->step/sizeof(double); k 1408 modules/core/test/test_math.cpp k = i; k 1416 modules/core/test/test_math.cpp k = j; k 1420 modules/core/test/test_math.cpp if( k != i ) k 1423 modules/core/test/test_math.cpp CV_SWAP( a0[i*step + j], a0[k*step + j], t ); k 1426 modules/core/test/test_math.cpp CV_SWAP( b0[i*b_step + j], b0[k*b_step + j], t ); k 1445 modules/core/test/test_math.cpp for( k = i+1; k < N1; k++ ) k 1446 modules/core/test/test_math.cpp a2[k] -= t*a1[k]; k 1448 modules/core/test/test_math.cpp for( k = 0; k < M; k++ ) k 1449 modules/core/test/test_math.cpp b2[k] -= t*b1[k]; k 1466 modules/core/test/test_math.cpp for( k = i+1; k < N1; k++ ) k 1467 modules/core/test/test_math.cpp t -= a1[k]*x0[k*x_step + j]; k 2253 modules/core/test/test_math.cpp for (int j = 0, k = 1 << n, jj, kk; j < k; ++j) k 2851 modules/core/test/test_math.cpp for( int k = 0; k < std::abs(ipower); k++ ) k 1172 modules/core/test/test_operations.cpp int k, dims = rng.uniform(1, MAX_DIM+1), p = 1; k 1173 modules/core/test/test_operations.cpp for( k = 0; k < dims; k++ ) k 1175 modules/core/test/test_operations.cpp sizes[k] = rng.uniform(1, 30); k 1176 modules/core/test/test_operations.cpp p *= sizes[k]; k 1186 modules/core/test/test_operations.cpp for( k = 0; it != it_end; ++it, ++k ) k 1188 modules/core/test/test_operations.cpp CV_Assert( k == 0 ); k 1194 modules/core/test/test_operations.cpp for( k = 0; k < dims; k++ ) k 1195 modules/core/test/test_operations.cpp idx[k] = rng.uniform(0, sizes[k]); k 1220 modules/core/test/test_operations.cpp for( k = 0; it != it_end; ++it, ++k ) k 1222 modules/core/test/test_operations.cpp CV_Assert( k == nz0 && sum == sum0 ); k 1230 modules/core/test/test_operations.cpp for( k = 0; it != it_end; ++it, ++k ) k 1232 modules/core/test/test_operations.cpp CV_Assert( k == 0 ); k 110 modules/core/test/test_rand.cpp int i, k, SZ = N/cn; k 165 modules/core/test/test_rand.cpp for( k = 0; k <= maxk; k++ ) k 172 modules/core/test/test_rand.cpp Mat aslice = arr[k].colRange(sz, sz + dsz); k 266 modules/core/test/test_rand.cpp for( i = k = c = 0; i <= SZ*cn - SDIM; i++, k++, c++ ) k 277 modules/core/test/test_rand.cpp if( k == SDIM-1 ) k 281 modules/core/test/test_rand.cpp k = -1; k 228 modules/cudafeatures2d/include/opencv2/cudafeatures2d.hpp int k, k 236 modules/cudafeatures2d/include/opencv2/cudafeatures2d.hpp int k, k 259 modules/cudafeatures2d/include/opencv2/cudafeatures2d.hpp int k, k 267 modules/cudafeatures2d/include/opencv2/cudafeatures2d.hpp int k, k 216 modules/cudafeatures2d/perf/perf_features2d.cpp const int k = GET_PARAM(1); k 235 modules/cudafeatures2d/perf/perf_features2d.cpp TEST_CYCLE() d_matcher->knnMatchAsync(d_query, d_train, d_matches, k); k 251 modules/cudafeatures2d/perf/perf_features2d.cpp TEST_CYCLE() matcher.knnMatch(query, train, matchesTbl, k); k 81 modules/cudafeatures2d/src/brute_force_matcher.cpp template <typename T> void matchL1_gpu(const PtrStepSzb& query, const PtrStepSzb& train, int k, const PtrStepSzb& mask, k 84 modules/cudafeatures2d/src/brute_force_matcher.cpp template <typename T> void matchL2_gpu(const PtrStepSzb& query, const PtrStepSzb& train, int k, const PtrStepSzb& mask, k 87 modules/cudafeatures2d/src/brute_force_matcher.cpp template <typename T> void matchHamming_gpu(const PtrStepSzb& query, const PtrStepSzb& train, int k, const PtrStepSzb& mask, k 233 modules/cudafeatures2d/src/brute_force_matcher.cpp int k, k 239 modules/cudafeatures2d/src/brute_force_matcher.cpp int k, k 245 modules/cudafeatures2d/src/brute_force_matcher.cpp int k, k 251 modules/cudafeatures2d/src/brute_force_matcher.cpp int k, k 503 modules/cudafeatures2d/src/brute_force_matcher.cpp int k, k 508 modules/cudafeatures2d/src/brute_force_matcher.cpp knnMatchAsync(_queryDescriptors, _trainDescriptors, d_matches, k, _mask); k 514 modules/cudafeatures2d/src/brute_force_matcher.cpp int k, k 518 modules/cudafeatures2d/src/brute_force_matcher.cpp if (k == 2) k 521 modules/cudafeatures2d/src/brute_force_matcher.cpp knnMatchAsync(_queryDescriptors, d_matches, k, masks); k 538 modules/cudafeatures2d/src/brute_force_matcher.cpp temp.reserve(2 * k); k 542 modules/cudafeatures2d/src/brute_force_matcher.cpp matches[i].reserve(k); k 546 modules/cudafeatures2d/src/brute_force_matcher.cpp knnMatch(query, trainDescCollection_[imgIdx], curMatches, k, masks.empty() ? GpuMat() : masks[imgIdx]); k 560 modules/cudafeatures2d/src/brute_force_matcher.cpp const size_t count = std::min(static_cast<size_t>(k), temp.size()); k 575 modules/cudafeatures2d/src/brute_force_matcher.cpp int k, k 595 modules/cudafeatures2d/src/brute_force_matcher.cpp typedef void (*caller_t)(const PtrStepSzb& query, const PtrStepSzb& train, int k, const PtrStepSzb& mask, k 630 modules/cudafeatures2d/src/brute_force_matcher.cpp if (k == 2) k 640 modules/cudafeatures2d/src/brute_force_matcher.cpp _matches.create(2 * nQuery, k, CV_32SC1); k 643 modules/cudafeatures2d/src/brute_force_matcher.cpp trainIdx = GpuMat(nQuery, k, CV_32SC1, matches.ptr(0), matches.step); k 644 modules/cudafeatures2d/src/brute_force_matcher.cpp distance = GpuMat(nQuery, k, CV_32FC1, matches.ptr(nQuery), matches.step); k 652 modules/cudafeatures2d/src/brute_force_matcher.cpp func(query, train, k, mask, trainIdx, distance, allDist, StreamAccessor::getStream(stream)); k 657 modules/cudafeatures2d/src/brute_force_matcher.cpp int k, k 663 modules/cudafeatures2d/src/brute_force_matcher.cpp if (k != 2) k 749 modules/cudafeatures2d/src/brute_force_matcher.cpp int nQuery = -1, k = -1; k 758 modules/cudafeatures2d/src/brute_force_matcher.cpp k = 2; k 775 modules/cudafeatures2d/src/brute_force_matcher.cpp k = gpu_matches.cols; k 788 modules/cudafeatures2d/src/brute_force_matcher.cpp curMatches.reserve(k); k 790 modules/cudafeatures2d/src/brute_force_matcher.cpp for (int i = 0; i < k; ++i) k 443 modules/cudafeatures2d/src/orb.cpp for (int k = 0; k < tupleSize; k++) k 451 modules/cudafeatures2d/src/orb.cpp for (k1 = 0; k1 < k; k1++) k 455 modules/cudafeatures2d/src/orb.cpp if (k1 == k) k 457 modules/cudafeatures2d/src/orb.cpp pattern_x_ptr[tupleSize * i + k] = pt.x; k 458 modules/cudafeatures2d/src/orb.cpp pattern_y_ptr[tupleSize * i + k] = pt.y; k 396 modules/cudafeatures2d/test/test_features2d.cpp for (int k = 0; k < knn; k++) k 398 modules/cudafeatures2d/test/test_features2d.cpp cv::DMatch match = matches[i][k]; k 399 modules/cudafeatures2d/test/test_features2d.cpp if ((match.queryIdx != (int)i) || (match.trainIdx != (int)i * countFactor + k) || (match.imgIdx != 0)) k 436 modules/cudafeatures2d/test/test_features2d.cpp for (int k = 0; k < knn; k++) k 438 modules/cudafeatures2d/test/test_features2d.cpp cv::DMatch match = matches[i][k]; k 439 modules/cudafeatures2d/test/test_features2d.cpp if ((match.queryIdx != (int)i) || (match.trainIdx != (int)i * countFactor + k) || (match.imgIdx != 0)) k 489 modules/cudafeatures2d/test/test_features2d.cpp for (int k = 0; k < knn; k++) k 491 modules/cudafeatures2d/test/test_features2d.cpp cv::DMatch match = matches[i][k]; k 495 modules/cudafeatures2d/test/test_features2d.cpp if ((match.queryIdx != (int)i) || (match.trainIdx != (int)i * countFactor + k + shift) || (match.imgIdx != 0) ) k 500 modules/cudafeatures2d/test/test_features2d.cpp if ((match.queryIdx != (int)i) || (match.trainIdx != ((int)i - queryDescCount / 2) * countFactor + k + shift) || (match.imgIdx != 1) ) k 552 modules/cudafeatures2d/test/test_features2d.cpp for (int k = 0; k < knn; k++) k 554 modules/cudafeatures2d/test/test_features2d.cpp cv::DMatch match = matches[i][k]; k 558 modules/cudafeatures2d/test/test_features2d.cpp if ((match.queryIdx != (int)i) || (match.trainIdx != (int)i * countFactor + k + shift) || (match.imgIdx != 0) ) k 563 modules/cudafeatures2d/test/test_features2d.cpp if ((match.queryIdx != (int)i) || (match.trainIdx != ((int)i - queryDescCount / 2) * countFactor + k + shift) || (match.imgIdx != 1) ) k 681 modules/cudafeatures2d/test/test_features2d.cpp for (int k = 0; k < needMatchCount; k++) k 683 modules/cudafeatures2d/test/test_features2d.cpp cv::DMatch match = matches[i][k]; k 687 modules/cudafeatures2d/test/test_features2d.cpp if ((match.queryIdx != (int)i) || (match.trainIdx != (int)i * countFactor + k + shift) || (match.imgIdx != 0) ) k 692 modules/cudafeatures2d/test/test_features2d.cpp if ((match.queryIdx != (int)i) || (match.trainIdx != ((int)i - queryDescCount / 2) * countFactor + k + shift) || (match.imgIdx != 1) ) k 137 modules/cudafilters/src/cuda/column_filter.hpp for (int k = 0; k < KSIZE; ++k) k 138 modules/cudafilters/src/cuda/column_filter.hpp sum = sum + smem[threadIdx.y + HALO_SIZE * BLOCK_DIM_Y + j * BLOCK_DIM_Y - anchor + k][threadIdx.x] * c_kernel[k]; k 137 modules/cudafilters/src/cuda/row_filter.hpp for (int k = 0; k < KSIZE; ++k) k 138 modules/cudafilters/src/cuda/row_filter.hpp sum = sum + smem[threadIdx.y][threadIdx.x + HALO_SIZE * BLOCK_DIM_X + j * BLOCK_DIM_X - anchor + k] * c_kernel[k]; k 534 modules/cudaimgproc/include/opencv2/cudaimgproc.hpp CV_EXPORTS Ptr<CornernessCriteria> createHarrisCorner(int srcType, int blockSize, int ksize, double k, int borderType = BORDER_REFLECT101); k 72 modules/cudaimgproc/perf/perf_corners.cpp const double k = 0.5; k 79 modules/cudaimgproc/perf/perf_corners.cpp cv::Ptr<cv::cuda::CornernessCriteria> harris = cv::cuda::createHarrisCorner(img.type(), blockSize, apertureSize, k, borderMode); k 89 modules/cudaimgproc/perf/perf_corners.cpp TEST_CYCLE() cv::cornerHarris(img, dst, blockSize, apertureSize, k, borderMode); k 59 modules/cudaimgproc/src/corners.cpp void cornerHarris_gpu(int block_size, float k, PtrStepSzf Dx, PtrStepSzf Dy, PtrStepSzf dst, int border_type, cudaStream_t stream); k 125 modules/cudaimgproc/src/corners.cpp Harris(int srcType, int blockSize, int ksize, double k, int borderType) : k 126 modules/cudaimgproc/src/corners.cpp CornerBase(srcType, blockSize, ksize, borderType), k_(static_cast<float>(k)) k 179 modules/cudaimgproc/src/corners.cpp Ptr<cuda::CornernessCriteria> cv::cuda::createHarrisCorner(int srcType, int blockSize, int ksize, double k, int borderType) k 181 modules/cudaimgproc/src/corners.cpp return makePtr<Harris>(srcType, blockSize, ksize, k, borderType); k 83 modules/cudaimgproc/test/test_corners.cpp double k = randomDouble(0.1, 0.9); k 85 modules/cudaimgproc/test/test_corners.cpp cv::Ptr<cv::cuda::CornernessCriteria> harris = cv::cuda::createHarrisCorner(src.type(), blockSize, apertureSize, k, borderType); k 91 modules/cudaimgproc/test/test_corners.cpp cv::cornerHarris(src, dst_gold, blockSize, apertureSize, k, borderType); k 60 modules/cudalegacy/src/cuda/fgd.hpp __device__ float& PV_C(int i, int j, int k); k 61 modules/cudalegacy/src/cuda/fgd.hpp __device__ float& PVB_C(int i, int j, int k); k 62 modules/cudalegacy/src/cuda/fgd.hpp template <typename T> __device__ T& V_C(int i, int j, int k); k 64 modules/cudalegacy/src/cuda/fgd.hpp __device__ float& PV_CC(int i, int j, int k); k 65 modules/cudalegacy/src/cuda/fgd.hpp __device__ float& PVB_CC(int i, int j, int k); k 66 modules/cudalegacy/src/cuda/fgd.hpp template <typename T> __device__ T& V1_CC(int i, int j, int k); k 67 modules/cudalegacy/src/cuda/fgd.hpp template <typename T> __device__ T& V2_CC(int i, int j, int k); k 127 modules/cudalegacy/src/cuda/fgd.hpp __device__ __forceinline__ float& BGPixelStat::PV_C(int i, int j, int k) k 129 modules/cudalegacy/src/cuda/fgd.hpp return *((float*)(ctable_Pv_data_ + ((k * rows_) + i) * ctable_Pv_step_) + j); k 132 modules/cudalegacy/src/cuda/fgd.hpp __device__ __forceinline__ float& BGPixelStat::PVB_C(int i, int j, int k) k 134 modules/cudalegacy/src/cuda/fgd.hpp return *((float*)(ctable_Pvb_data_ + ((k * rows_) + i) * ctable_Pvb_step_) + j); k 137 modules/cudalegacy/src/cuda/fgd.hpp template <typename T> __device__ __forceinline__ T& BGPixelStat::V_C(int i, int j, int k) k 139 modules/cudalegacy/src/cuda/fgd.hpp return *((T*)(ctable_v_data_ + ((k * rows_) + i) * ctable_v_step_) + j); k 142 modules/cudalegacy/src/cuda/fgd.hpp __device__ __forceinline__ float& BGPixelStat::PV_CC(int i, int j, int k) k 144 modules/cudalegacy/src/cuda/fgd.hpp return *((float*)(cctable_Pv_data_ + ((k * rows_) + i) * cctable_Pv_step_) + j); k 147 modules/cudalegacy/src/cuda/fgd.hpp __device__ __forceinline__ float& BGPixelStat::PVB_CC(int i, int j, int k) k 149 modules/cudalegacy/src/cuda/fgd.hpp return *((float*)(cctable_Pvb_data_ + ((k * rows_) + i) * cctable_Pvb_step_) + j); k 152 modules/cudalegacy/src/cuda/fgd.hpp template <typename T> __device__ __forceinline__ T& BGPixelStat::V1_CC(int i, int j, int k) k 154 modules/cudalegacy/src/cuda/fgd.hpp return *((T*)(cctable_v1_data_ + ((k * rows_) + i) * cctable_v1_step_) + j); k 157 modules/cudalegacy/src/cuda/fgd.hpp template <typename T> __device__ __forceinline__ T& BGPixelStat::V2_CC(int i, int j, int k) k 159 modules/cudalegacy/src/cuda/fgd.hpp return *((T*)(cctable_v2_data_ + ((k * rows_) + i) * cctable_v2_step_) + j); k 264 modules/cudaobjdetect/src/hog.cpp for (size_t k = 0; k < block_hist_size; ++k) k 265 modules/cudaobjdetect/src/hog.cpp dst[k] = src[k]; k 215 modules/cudaobjdetect/test/test_objdetect.cpp for (int k = 0; k < block_hist_size; ++k) k 216 modules/cudaobjdetect/test/test_objdetect.cpp ASSERT_EQ(l[(y * blocks_per_win_x + x) * block_hist_size + k], k 217 modules/cudaobjdetect/test/test_objdetect.cpp r[(x * blocks_per_win_y + y) * block_hist_size + k]); k 341 modules/cudaoptflow/src/farneback.cpp for (int k = numLevelsCropped; k >= 0; k--) k 346 modules/cudaoptflow/src/farneback.cpp for (int i = 0; i < k; i++) k 358 modules/cudaoptflow/src/farneback.cpp width = pyramid0_[k].cols; k 359 modules/cudaoptflow/src/farneback.cpp height = pyramid0_[k].rows; k 362 modules/cudaoptflow/src/farneback.cpp if (k > 0) k 406 modules/cudaoptflow/src/farneback.cpp device::optflow_farneback::polynomialExpansionGpu(pyramid0_[k], polyN_, R[0], StreamAccessor::getStream(streams[0])); k 407 modules/cudaoptflow/src/farneback.cpp device::optflow_farneback::polynomialExpansionGpu(pyramid1_[k], polyN_, R[1], StreamAccessor::getStream(streams[1])); k 201 modules/cudastereo/src/stereocsbp.cpp for(int k = 0; k < 2; ++k) // in/out k 204 modules/cudastereo/src/stereocsbp.cpp GpuMat sub2 = sub1.rowRange((k+0)*sub1.rows/2, (k+1)*sub1.rows/2); k 206 modules/cudastereo/src/stereocsbp.cpp GpuMat *buf_ptrs[] = { &u[k], &d[k], &l[k], &r[k], &disp_selected_pyr[k] }; k 223 modules/cudev/include/opencv2/cudev/grid/detail/integral.hpp for (int k = 0; k < 16; ++k) k 224 modules/cudev/include/opencv2/cudev/grid/detail/integral.hpp result[k] += n; k 269 modules/cudev/include/opencv2/cudev/grid/detail/integral.hpp for (int k = 0; k < 16; ++k) k 270 modules/cudev/include/opencv2/cudev/grid/detail/integral.hpp result[k] += blockSum; k 450 modules/cudev/include/opencv2/cudev/grid/detail/integral.hpp const int k = threadIdx.x / 8 + threadIdx.y * 4; k 452 modules/cudev/include/opencv2/cudev/grid/detail/integral.hpp T partial_sum = sums[k][j]; k 462 modules/cudev/include/opencv2/cudev/grid/detail/integral.hpp sums[k][j] = partial_sum; k 468 modules/features2d/include/opencv2/features2d.hpp int blockSize=3, bool useHarrisDetector=false, double k=0.04 ); k 484 modules/features2d/include/opencv2/features2d.hpp CV_WRAP virtual void setK(double k) = 0; k 823 modules/features2d/include/opencv2/features2d.hpp CV_OUT std::vector<std::vector<DMatch> >& matches, int k, k 869 modules/features2d/include/opencv2/features2d.hpp CV_WRAP void knnMatch( InputArray queryDescriptors, CV_OUT std::vector<std::vector<DMatch> >& matches, int k, k 942 modules/features2d/include/opencv2/features2d.hpp virtual void knnMatchImpl( InputArray queryDescriptors, std::vector<std::vector<DMatch> >& matches, int k, k 987 modules/features2d/include/opencv2/features2d.hpp virtual void knnMatchImpl( InputArray queryDescriptors, std::vector<std::vector<DMatch> >& matches, int k, k 1027 modules/features2d/include/opencv2/features2d.hpp virtual void knnMatchImpl( InputArray queryDescriptors, std::vector<std::vector<DMatch> >& matches, int k, k 207 modules/features2d/misc/java/src/cpp/features2d_manual.hpp CV_OUT std::vector<std::vector<DMatch> >& matches, int k, k 209 modules/features2d/misc/java/src/cpp/features2d_manual.hpp { return wrapped->knnMatch(queryDescriptors, trainDescriptors, matches, k, mask, compactResult); } k 220 modules/features2d/misc/java/src/cpp/features2d_manual.hpp CV_WRAP void knnMatch( const Mat& queryDescriptors, CV_OUT std::vector<std::vector<DMatch> >& matches, int k, k 222 modules/features2d/misc/java/src/cpp/features2d_manual.hpp { return wrapped->knnMatch(queryDescriptors, matches, k, masks, compactResult); } k 169 modules/features2d/misc/java/test/BruteForceDescriptorMatcherTest.java final int k = 3; k 173 modules/features2d/misc/java/test/BruteForceDescriptorMatcherTest.java matcher.knnMatch(query, train, matches, k); k 186 modules/features2d/misc/java/test/BruteForceDescriptorMatcherTest.java assertTrue(Math.min(k, train.rows()) >= vdm.total()); k 87 modules/features2d/src/agast_score.cpp int k = 0; k 88 modules/features2d/src/agast_score.cpp for( ; k < 16; k++ ) k 89 modules/features2d/src/agast_score.cpp pixel[k] = offsets[k][0] + offsets[k][1] * rowStride; k 334 modules/features2d/src/blobdetector.cpp size_t k = centers[j].size() - 1; k 335 modules/features2d/src/blobdetector.cpp while( k > 0 && centers[j][k].radius < centers[j][k-1].radius ) k 337 modules/features2d/src/blobdetector.cpp centers[j][k] = centers[j][k-1]; k 338 modules/features2d/src/blobdetector.cpp k--; k 340 modules/features2d/src/blobdetector.cpp centers[j][k] = curCenters[i]; k 653 modules/features2d/src/brisk.cpp for (size_t k = 0; k < ksize; k++) k 656 modules/features2d/src/brisk.cpp scale = std::max((int) (scales_ / lb_scalerange * (std::log(keypoints[k].size / (basicSize06)) / log2) + 0.5), 0); k 660 modules/features2d/src/brisk.cpp kscales[k] = scale; k 664 modules/features2d/src/brisk.cpp if (RoiPredicate((float)border, (float)border, (float)border_x, (float)border_y, keypoints[k])) k 666 modules/features2d/src/brisk.cpp keypoints.erase(beginning + k); k 667 modules/features2d/src/brisk.cpp kscales.erase(beginningkscales + k); k 668 modules/features2d/src/brisk.cpp if (k == 0) k 674 modules/features2d/src/brisk.cpp k--; k 702 modules/features2d/src/brisk.cpp for (size_t k = 0; k < ksize; k++) k 704 modules/features2d/src/brisk.cpp cv::KeyPoint& kp = keypoints[k]; k 705 modules/features2d/src/brisk.cpp const int& scale = kscales[k]; k 64 modules/features2d/src/fast.cpp int i, j, k, pixel[25]; k 135 modules/features2d/src/fast.cpp for( k = 0; k < N; k++ ) k 137 modules/features2d/src/fast.cpp __m128i x = _mm_xor_si128(_mm_loadu_si128((const __m128i*)(ptr + pixel[k])), delta); k 151 modules/features2d/src/fast.cpp for( k = 0; m > 0 && k < 16; k++, m >>= 1 ) k 154 modules/features2d/src/fast.cpp cornerpos[ncorners++] = j+k; k 156 modules/features2d/src/fast.cpp curr[j+k] = (uchar)cornerScore<patternSize>(ptr+k, pixel, threshold); k 186 modules/features2d/src/fast.cpp for( k = 0; k < N; k++ ) k 188 modules/features2d/src/fast.cpp int x = ptr[pixel[k]]; k 208 modules/features2d/src/fast.cpp for( k = 0; k < N; k++ ) k 210 modules/features2d/src/fast.cpp int x = ptr[pixel[k]]; k 238 modules/features2d/src/fast.cpp for( k = 0; k < ncorners; k++ ) k 240 modules/features2d/src/fast.cpp j = cornerpos[k]; k 76 modules/features2d/src/fast_score.cpp int k = 0; k 77 modules/features2d/src/fast_score.cpp for( ; k < patternSize; k++ ) k 78 modules/features2d/src/fast_score.cpp pixel[k] = offsets[k][0] + offsets[k][1] * rowStride; k 79 modules/features2d/src/fast_score.cpp for( ; k < 25; k++ ) k 80 modules/features2d/src/fast_score.cpp pixel[k] = pixel[k - patternSize]; k 93 modules/features2d/src/fast_score.cpp for( int k = 0; k < N; k++ ) k 95 modules/features2d/src/fast_score.cpp int x = ptr[pixel[k]]; k 123 modules/features2d/src/fast_score.cpp int k, v = ptr[0]; k 125 modules/features2d/src/fast_score.cpp for( k = 0; k < N; k++ ) k 126 modules/features2d/src/fast_score.cpp d[k] = (short)(v - ptr[pixel[k]]); k 130 modules/features2d/src/fast_score.cpp for( k = 0; k < 16; k += 8 ) k 132 modules/features2d/src/fast_score.cpp __m128i v0 = _mm_loadu_si128((__m128i*)(d+k+1)); k 133 modules/features2d/src/fast_score.cpp __m128i v1 = _mm_loadu_si128((__m128i*)(d+k+2)); k 136 modules/features2d/src/fast_score.cpp v0 = _mm_loadu_si128((__m128i*)(d+k+3)); k 139 modules/features2d/src/fast_score.cpp v0 = _mm_loadu_si128((__m128i*)(d+k+4)); k 142 modules/features2d/src/fast_score.cpp v0 = _mm_loadu_si128((__m128i*)(d+k+5)); k 145 modules/features2d/src/fast_score.cpp v0 = _mm_loadu_si128((__m128i*)(d+k+6)); k 148 modules/features2d/src/fast_score.cpp v0 = _mm_loadu_si128((__m128i*)(d+k+7)); k 151 modules/features2d/src/fast_score.cpp v0 = _mm_loadu_si128((__m128i*)(d+k+8)); k 154 modules/features2d/src/fast_score.cpp v0 = _mm_loadu_si128((__m128i*)(d+k)); k 157 modules/features2d/src/fast_score.cpp v0 = _mm_loadu_si128((__m128i*)(d+k+9)); k 168 modules/features2d/src/fast_score.cpp for( k = 0; k < 16; k += 2 ) k 170 modules/features2d/src/fast_score.cpp int a = std::min((int)d[k+1], (int)d[k+2]); k 171 modules/features2d/src/fast_score.cpp a = std::min(a, (int)d[k+3]); k 174 modules/features2d/src/fast_score.cpp a = std::min(a, (int)d[k+4]); k 175 modules/features2d/src/fast_score.cpp a = std::min(a, (int)d[k+5]); k 176 modules/features2d/src/fast_score.cpp a = std::min(a, (int)d[k+6]); k 177 modules/features2d/src/fast_score.cpp a = std::min(a, (int)d[k+7]); k 178 modules/features2d/src/fast_score.cpp a = std::min(a, (int)d[k+8]); k 179 modules/features2d/src/fast_score.cpp a0 = std::max(a0, std::min(a, (int)d[k])); k 180 modules/features2d/src/fast_score.cpp a0 = std::max(a0, std::min(a, (int)d[k+9])); k 184 modules/features2d/src/fast_score.cpp for( k = 0; k < 16; k += 2 ) k 186 modules/features2d/src/fast_score.cpp int b = std::max((int)d[k+1], (int)d[k+2]); k 187 modules/features2d/src/fast_score.cpp b = std::max(b, (int)d[k+3]); k 188 modules/features2d/src/fast_score.cpp b = std::max(b, (int)d[k+4]); k 189 modules/features2d/src/fast_score.cpp b = std::max(b, (int)d[k+5]); k 192 modules/features2d/src/fast_score.cpp b = std::max(b, (int)d[k+6]); k 193 modules/features2d/src/fast_score.cpp b = std::max(b, (int)d[k+7]); k 194 modules/features2d/src/fast_score.cpp b = std::max(b, (int)d[k+8]); k 196 modules/features2d/src/fast_score.cpp b0 = std::min(b0, std::max(b, (int)d[k])); k 197 modules/features2d/src/fast_score.cpp b0 = std::min(b0, std::max(b, (int)d[k+9])); k 213 modules/features2d/src/fast_score.cpp int k, v = ptr[0]; k 215 modules/features2d/src/fast_score.cpp for( k = 0; k < N; k++ ) k 216 modules/features2d/src/fast_score.cpp d[k] = (short)(v - ptr[pixel[k]]); k 218 modules/features2d/src/fast_score.cpp for( k = 0; k < 4; k++ ) k 219 modules/features2d/src/fast_score.cpp d[N+k] = d[k]; k 224 modules/features2d/src/fast_score.cpp for( k = 0; k < 16; k += 8 ) k 226 modules/features2d/src/fast_score.cpp __m128i v0 = _mm_loadu_si128((__m128i*)(d+k+1)); k 227 modules/features2d/src/fast_score.cpp __m128i v1 = _mm_loadu_si128((__m128i*)(d+k+2)); k 230 modules/features2d/src/fast_score.cpp v0 = _mm_loadu_si128((__m128i*)(d+k+3)); k 233 modules/features2d/src/fast_score.cpp v0 = _mm_loadu_si128((__m128i*)(d+k+4)); k 236 modules/features2d/src/fast_score.cpp v0 = _mm_loadu_si128((__m128i*)(d+k+5)); k 239 modules/features2d/src/fast_score.cpp v0 = _mm_loadu_si128((__m128i*)(d+k+6)); k 242 modules/features2d/src/fast_score.cpp v0 = _mm_loadu_si128((__m128i*)(d+k)); k 245 modules/features2d/src/fast_score.cpp v0 = _mm_loadu_si128((__m128i*)(d+k+7)); k 256 modules/features2d/src/fast_score.cpp for( k = 0; k < 12; k += 2 ) k 258 modules/features2d/src/fast_score.cpp int a = std::min((int)d[k+1], (int)d[k+2]); k 261 modules/features2d/src/fast_score.cpp a = std::min(a, (int)d[k+3]); k 262 modules/features2d/src/fast_score.cpp a = std::min(a, (int)d[k+4]); k 263 modules/features2d/src/fast_score.cpp a = std::min(a, (int)d[k+5]); k 264 modules/features2d/src/fast_score.cpp a = std::min(a, (int)d[k+6]); k 265 modules/features2d/src/fast_score.cpp a0 = std::max(a0, std::min(a, (int)d[k])); k 266 modules/features2d/src/fast_score.cpp a0 = std::max(a0, std::min(a, (int)d[k+7])); k 270 modules/features2d/src/fast_score.cpp for( k = 0; k < 12; k += 2 ) k 272 modules/features2d/src/fast_score.cpp int b = std::max((int)d[k+1], (int)d[k+2]); k 273 modules/features2d/src/fast_score.cpp b = std::max(b, (int)d[k+3]); k 274 modules/features2d/src/fast_score.cpp b = std::max(b, (int)d[k+4]); k 277 modules/features2d/src/fast_score.cpp b = std::max(b, (int)d[k+5]); k 278 modules/features2d/src/fast_score.cpp b = std::max(b, (int)d[k+6]); k 280 modules/features2d/src/fast_score.cpp b0 = std::min(b0, std::max(b, (int)d[k])); k 281 modules/features2d/src/fast_score.cpp b0 = std::min(b0, std::max(b, (int)d[k+7])); k 297 modules/features2d/src/fast_score.cpp int k, v = ptr[0]; k 299 modules/features2d/src/fast_score.cpp for( k = 0; k < N; k++ ) k 300 modules/features2d/src/fast_score.cpp d[k] = (short)(v - ptr[pixel[k]]); k 326 modules/features2d/src/fast_score.cpp for( k = 0; k < 8; k += 2 ) k 328 modules/features2d/src/fast_score.cpp int a = std::min((int)d[k+1], (int)d[k+2]); k 331 modules/features2d/src/fast_score.cpp a = std::min(a, (int)d[k+3]); k 332 modules/features2d/src/fast_score.cpp a = std::min(a, (int)d[k+4]); k 333 modules/features2d/src/fast_score.cpp a0 = std::max(a0, std::min(a, (int)d[k])); k 334 modules/features2d/src/fast_score.cpp a0 = std::max(a0, std::min(a, (int)d[k+5])); k 338 modules/features2d/src/fast_score.cpp for( k = 0; k < 8; k += 2 ) k 340 modules/features2d/src/fast_score.cpp int b = std::max((int)d[k+1], (int)d[k+2]); k 341 modules/features2d/src/fast_score.cpp b = std::max(b, (int)d[k+3]); k 344 modules/features2d/src/fast_score.cpp b = std::max(b, (int)d[k+4]); k 346 modules/features2d/src/fast_score.cpp b0 = std::min(b0, std::max(b, (int)d[k])); k 347 modules/features2d/src/fast_score.cpp b0 = std::min(b0, std::max(b, (int)d[k+5])); k 73 modules/features2d/src/gftt.cpp void setK(double k_) { k = k_; } k 74 modules/features2d/src/gftt.cpp double getK() const { return k; } k 89 modules/features2d/src/gftt.cpp blockSize, useHarrisDetector, k ); k 98 modules/features2d/src/gftt.cpp blockSize, useHarrisDetector, k ); k 114 modules/features2d/src/gftt.cpp double k; k 821 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int k = 0; k < ang_size; ++k) { k 823 modules/features2d/src/kaze/AKAZEFeatures.cpp const float & ang = Ang[k]; k 827 modules/features2d/src/kaze/AKAZEFeatures.cpp sumX += resX[k]; k 828 modules/features2d/src/kaze/AKAZEFeatures.cpp sumY += resY[k]; k 832 modules/features2d/src/kaze/AKAZEFeatures.cpp sumX += resX[k]; k 833 modules/features2d/src/kaze/AKAZEFeatures.cpp sumY += resY[k]; k 906 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int k = i; k < i + 9; k++) { k 908 modules/features2d/src/kaze/AKAZEFeatures.cpp sample_y = k*scale + yf; k 1032 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int k = i; k < i + 9; ++k) { k 1035 modules/features2d/src/kaze/AKAZEFeatures.cpp sample_y = yf + (l*scale*co + k*scale*si); k 1036 modules/features2d/src/kaze/AKAZEFeatures.cpp sample_x = xf + (-l*scale*si + k*scale*co); k 1137 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int k = i; k < i + sample_step; k++) { k 1142 modules/features2d/src/kaze/AKAZEFeatures.cpp sample_x = xf + k*scale; k 1198 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int k = i; k < i + sample_step; k++) { k 1203 modules/features2d/src/kaze/AKAZEFeatures.cpp sample_x = xf + k*scale; k 1260 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int k = i; k < i + sample_step; k++) { k 1265 modules/features2d/src/kaze/AKAZEFeatures.cpp sample_x = xf + k*scale; k 1328 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int k = i; k < i + sample_step; k++) { k 1330 modules/features2d/src/kaze/AKAZEFeatures.cpp float sample_y = yf + (l*co * scale + k*si*scale); k 1331 modules/features2d/src/kaze/AKAZEFeatures.cpp float sample_x = xf + (-l*si * scale + k*co*scale); k 1467 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int k = coords[1]; k < coords[1] + sample_step; k++) { k 1471 modules/features2d/src/kaze/AKAZEFeatures.cpp sample_y = yf + (l*scale*co + k*scale*si); k 1472 modules/features2d/src/kaze/AKAZEFeatures.cpp sample_x = xf + (-l*scale*si + k*scale*co); k 1555 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int k = coords[1]; k < coords[1] + sample_step; k++) { k 1560 modules/features2d/src/kaze/AKAZEFeatures.cpp sample_x = xf + k*scale; k 1641 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int k = j + 1; k < gsz; k++, c++) { k 1645 modules/features2d/src/kaze/AKAZEFeatures.cpp fullM(c, 3) = psz*(k % gdiv) - pattern_size; k 1646 modules/features2d/src/kaze/AKAZEFeatures.cpp fullM(c, 4) = psz*(k / gdiv) - pattern_size; k 1663 modules/features2d/src/kaze/AKAZEFeatures.cpp int k = rand() % (fullM.rows - i); k 1666 modules/features2d/src/kaze/AKAZEFeatures.cpp k = i; k 1672 modules/features2d/src/kaze/AKAZEFeatures.cpp if (samples(j, 0) == fullcopy(k, 0) && samples(j, 1) == fullcopy(k, 1) && samples(j, 2) == fullcopy(k, 2)) { k 1682 modules/features2d/src/kaze/AKAZEFeatures.cpp samples(count, 0) = fullcopy(k, 0); k 1683 modules/features2d/src/kaze/AKAZEFeatures.cpp samples(count, 1) = fullcopy(k, 1); k 1684 modules/features2d/src/kaze/AKAZEFeatures.cpp samples(count, 2) = fullcopy(k, 2); k 1693 modules/features2d/src/kaze/AKAZEFeatures.cpp if (samples(j, 0) == fullcopy(k, 0) && samples(j, 1) == fullcopy(k, 3) && samples(j, 2) == fullcopy(k, 4)) { k 1703 modules/features2d/src/kaze/AKAZEFeatures.cpp samples(count, 0) = fullcopy(k, 0); k 1704 modules/features2d/src/kaze/AKAZEFeatures.cpp samples(count, 1) = fullcopy(k, 3); k 1705 modules/features2d/src/kaze/AKAZEFeatures.cpp samples(count, 2) = fullcopy(k, 4); k 1712 modules/features2d/src/kaze/AKAZEFeatures.cpp Mat tmp = fullcopy.row(k); k 620 modules/features2d/src/kaze/KAZEFeatures.cpp for (size_t k = 0; k < Ang.size(); ++k) { k 622 modules/features2d/src/kaze/KAZEFeatures.cpp const float & ang = Ang[k]; k 626 modules/features2d/src/kaze/KAZEFeatures.cpp sumX += resX[k]; k 627 modules/features2d/src/kaze/KAZEFeatures.cpp sumY += resY[k]; k 631 modules/features2d/src/kaze/KAZEFeatures.cpp sumX += resX[k]; k 632 modules/features2d/src/kaze/KAZEFeatures.cpp sumY += resY[k]; k 705 modules/features2d/src/kaze/KAZEFeatures.cpp for (int k = i; k < i + 9; k++) { k 708 modules/features2d/src/kaze/KAZEFeatures.cpp sample_y = k*scale + yf; k 837 modules/features2d/src/kaze/KAZEFeatures.cpp for (int k = i; k < i + 9; ++k) { k 841 modules/features2d/src/kaze/KAZEFeatures.cpp sample_y = yf + (l*scale*co + k*scale*si); k 842 modules/features2d/src/kaze/KAZEFeatures.cpp sample_x = xf + (-l*scale*si + k*scale*co); k 967 modules/features2d/src/kaze/KAZEFeatures.cpp for (int k = i; k < i + 9; k++) { k 970 modules/features2d/src/kaze/KAZEFeatures.cpp sample_y = k*scale + yf; k 1122 modules/features2d/src/kaze/KAZEFeatures.cpp for (int k = i; k < i + 9; ++k) { k 1126 modules/features2d/src/kaze/KAZEFeatures.cpp sample_y = yf + (l*scale*co + k*scale*si); k 1127 modules/features2d/src/kaze/KAZEFeatures.cpp sample_x = xf + (-l*scale*si + k*scale*co); k 116 modules/features2d/src/kaze/fed.cpp for (int k = 0; k < n; ++k) { k 117 modules/features2d/src/kaze/fed.cpp float h = cosf((float)CV_PI * (2.0f * (float)k + 1.0f) * c); k 120 modules/features2d/src/kaze/fed.cpp tauh[k] = d / (h * h); k 123 modules/features2d/src/kaze/fed.cpp tau[k] = d / (h * h); k 143 modules/features2d/src/kaze/fed.cpp for (int k = 0, l = 0; l < n; ++k, ++l) { k 145 modules/features2d/src/kaze/fed.cpp while ((index = ((k+1)*kappa) % prime - 1) >= n) { k 146 modules/features2d/src/kaze/fed.cpp k++; k 94 modules/features2d/src/kaze/nldiffusion_functions.cpp void pm_g1(const cv::Mat& Lx, const cv::Mat& Ly, cv::Mat& dst, float k) { k 97 modules/features2d/src/kaze/nldiffusion_functions.cpp float inv_k = 1.0f / (k*k); k 121 modules/features2d/src/kaze/nldiffusion_functions.cpp void pm_g2(const cv::Mat &Lx, const cv::Mat& Ly, cv::Mat& dst, float k) { k 125 modules/features2d/src/kaze/nldiffusion_functions.cpp float k2inv = 1.0f / (k * k); k 147 modules/features2d/src/kaze/nldiffusion_functions.cpp void weickert_diffusivity(const cv::Mat& Lx, const cv::Mat& Ly, cv::Mat& dst, float k) { k 150 modules/features2d/src/kaze/nldiffusion_functions.cpp float inv_k = 1.0f / (k*k); k 180 modules/features2d/src/kaze/nldiffusion_functions.cpp void charbonnier_diffusivity(const cv::Mat& Lx, const cv::Mat& Ly, cv::Mat& dst, float k) { k 183 modules/features2d/src/kaze/nldiffusion_functions.cpp float inv_k = 1.0f / (k*k); k 213 modules/features2d/src/kaze/nldiffusion_functions.cpp int nbin = 0, nelements = 0, nthreshold = 0, k = 0; k 271 modules/features2d/src/kaze/nldiffusion_functions.cpp for (k = 0; nelements < nthreshold && k < nbins; k++) { k 272 modules/features2d/src/kaze/nldiffusion_functions.cpp nelements = nelements + hist[k]; k 279 modules/features2d/src/kaze/nldiffusion_functions.cpp kperc = hmax*((float)(k) / (float)nbins); k 327 modules/features2d/src/kaze/nldiffusion_functions.cpp for (int k = 0; k < 2; k++) { k 328 modules/features2d/src/kaze/nldiffusion_functions.cpp Mat* kernel = k == 0 ? &kx : &ky; k 329 modules/features2d/src/kaze/nldiffusion_functions.cpp int order = k == 0 ? dx : dy; k 24 modules/features2d/src/kaze/nldiffusion_functions.h void pm_g1(const cv::Mat& Lx, const cv::Mat& Ly, cv::Mat& dst, float k); k 25 modules/features2d/src/kaze/nldiffusion_functions.h void pm_g2(const cv::Mat& Lx, const cv::Mat& Ly, cv::Mat& dst, float k); k 26 modules/features2d/src/kaze/nldiffusion_functions.h void weickert_diffusivity(const cv::Mat& Lx, const cv::Mat& Ly, cv::Mat& dst, float k); k 27 modules/features2d/src/kaze/nldiffusion_functions.h void charbonnier_diffusivity(const cv::Mat& Lx, const cv::Mat& Ly, cv::Mat& dst, float k); k 96 modules/features2d/src/matchers.cpp ocl::Kernel k("BruteForceMatch_Match", ocl::features2d::brute_force_match_oclsrc, opts); k 97 modules/features2d/src/matchers.cpp if(k.empty()) k 104 modules/features2d/src/matchers.cpp idx = k.set(idx, ocl::KernelArg::PtrReadOnly(uquery)); k 105 modules/features2d/src/matchers.cpp idx = k.set(idx, ocl::KernelArg::PtrReadOnly(utrain)); k 106 modules/features2d/src/matchers.cpp idx = k.set(idx, ocl::KernelArg::PtrWriteOnly(trainIdx)); k 107 modules/features2d/src/matchers.cpp idx = k.set(idx, ocl::KernelArg::PtrWriteOnly(distance)); k 108 modules/features2d/src/matchers.cpp idx = k.set(idx, uquery.rows); k 109 modules/features2d/src/matchers.cpp idx = k.set(idx, uquery.cols); k 110 modules/features2d/src/matchers.cpp idx = k.set(idx, utrain.rows); k 111 modules/features2d/src/matchers.cpp idx = k.set(idx, utrain.cols); k 112 modules/features2d/src/matchers.cpp idx = k.set(idx, (int)(uquery.step / sizeof(float))); k 114 modules/features2d/src/matchers.cpp return k.run(2, globalSize, localSize, false); k 196 modules/features2d/src/matchers.cpp ocl::Kernel k("BruteForceMatch_knnMatch", ocl::features2d::brute_force_match_oclsrc, opts); k 197 modules/features2d/src/matchers.cpp if(k.empty()) k 204 modules/features2d/src/matchers.cpp idx = k.set(idx, ocl::KernelArg::PtrReadOnly(uquery)); k 205 modules/features2d/src/matchers.cpp idx = k.set(idx, ocl::KernelArg::PtrReadOnly(utrain)); k 206 modules/features2d/src/matchers.cpp idx = k.set(idx, ocl::KernelArg::PtrWriteOnly(trainIdx)); k 207 modules/features2d/src/matchers.cpp idx = k.set(idx, ocl::KernelArg::PtrWriteOnly(distance)); k 208 modules/features2d/src/matchers.cpp idx = k.set(idx, uquery.rows); k 209 modules/features2d/src/matchers.cpp idx = k.set(idx, uquery.cols); k 210 modules/features2d/src/matchers.cpp idx = k.set(idx, utrain.rows); k 211 modules/features2d/src/matchers.cpp idx = k.set(idx, utrain.cols); k 212 modules/features2d/src/matchers.cpp idx = k.set(idx, (int)(uquery.step / sizeof(float))); k 214 modules/features2d/src/matchers.cpp return k.run(2, globalSize, localSize, false); k 228 modules/features2d/src/matchers.cpp const int k = trainIdx.type() == CV_32SC2 ? 2 : trainIdx.cols; k 240 modules/features2d/src/matchers.cpp curMatches.reserve(k); k 242 modules/features2d/src/matchers.cpp for (int i = 0; i < k; ++i, ++trainIdx_ptr, ++distance_ptr) k 305 modules/features2d/src/matchers.cpp ocl::Kernel k("BruteForceMatch_RadiusMatch", ocl::features2d::brute_force_match_oclsrc, opts); k 306 modules/features2d/src/matchers.cpp if (k.empty()) k 313 modules/features2d/src/matchers.cpp idx = k.set(idx, ocl::KernelArg::PtrReadOnly(uquery)); k 314 modules/features2d/src/matchers.cpp idx = k.set(idx, ocl::KernelArg::PtrReadOnly(utrain)); k 315 modules/features2d/src/matchers.cpp idx = k.set(idx, maxDistance); k 316 modules/features2d/src/matchers.cpp idx = k.set(idx, ocl::KernelArg::PtrWriteOnly(trainIdx)); k 317 modules/features2d/src/matchers.cpp idx = k.set(idx, ocl::KernelArg::PtrWriteOnly(distance)); k 318 modules/features2d/src/matchers.cpp idx = k.set(idx, ocl::KernelArg::PtrWriteOnly(nMatches)); k 319 modules/features2d/src/matchers.cpp idx = k.set(idx, uquery.rows); k 320 modules/features2d/src/matchers.cpp idx = k.set(idx, uquery.cols); k 321 modules/features2d/src/matchers.cpp idx = k.set(idx, utrain.rows); k 322 modules/features2d/src/matchers.cpp idx = k.set(idx, utrain.cols); k 323 modules/features2d/src/matchers.cpp idx = k.set(idx, trainIdx.cols); k 324 modules/features2d/src/matchers.cpp idx = k.set(idx, (int)(uquery.step / sizeof(float))); k 325 modules/features2d/src/matchers.cpp idx = k.set(idx, (int)(trainIdx.step / sizeof(int))); k 327 modules/features2d/src/matchers.cpp return k.run(2, globalSize, localSize, false); k 706 modules/features2d/src/matchers.cpp static bool ocl_knnMatch(InputArray query, InputArray _train, std::vector< std::vector<DMatch> > &matches, int k, int dstType, bool compactResult) k 709 modules/features2d/src/matchers.cpp if (k != 2) k 841 modules/features2d/src/matchers.cpp for( int k = 0; k < nidx.cols; k++ ) k 843 modules/features2d/src/matchers.cpp if( nidxptr[k] < 0 ) k 845 modules/features2d/src/matchers.cpp mq.push_back( DMatch(qIdx, nidxptr[k] & (IMGIDX_ONE - 1), k 846 modules/features2d/src/matchers.cpp nidxptr[k] >> IMGIDX_SHIFT, distptr[k]) ); k 950 modules/features2d/src/matchers.cpp for( int k = 0; k < distf.cols; k++ ) k 952 modules/features2d/src/matchers.cpp if( distptr[k] <= maxDistance ) k 953 modules/features2d/src/matchers.cpp mq.push_back( DMatch(qIdx, k, iIdx, distptr[k]) ); k 917 modules/features2d/src/mser.cpp double k = (double)i/(double)params.maxEvolution*(TABLE_SIZE-1); k 918 modules/features2d/src/mser.cpp int ti = cvFloor(k); k 919 modules/features2d/src/mser.cpp double reminder = k-ti; k 159 modules/features2d/src/orb.cpp for( int k = 0; k < blockSize*blockSize; k++ ) k 161 modules/features2d/src/orb.cpp const uchar* ptr = ptr0 + ofs[k]; k 304 modules/features2d/src/orb.cpp int t0, t1, t2, t3, u, v, k, val; k 310 modules/features2d/src/orb.cpp k = t0 > t2 ? u : v; k 311 modules/features2d/src/orb.cpp val = k; k 318 modules/features2d/src/orb.cpp k = t0 > t2 ? u : v; k 319 modules/features2d/src/orb.cpp val |= k << 2; k 326 modules/features2d/src/orb.cpp k = t0 > t2 ? u : v; k 327 modules/features2d/src/orb.cpp val |= k << 4; k 334 modules/features2d/src/orb.cpp k = t0 > t2 ? u : v; k 335 modules/features2d/src/orb.cpp val |= k << 6; k 350 modules/features2d/src/orb.cpp int i, k, k1; k 355 modules/features2d/src/orb.cpp for( k = 0; k < tupleSize; k++ ) k 361 modules/features2d/src/orb.cpp for( k1 = 0; k1 < k; k1++ ) k 364 modules/features2d/src/orb.cpp if( k1 == k ) k 366 modules/features2d/src/orb.cpp pattern[tupleSize*i + k] = pt; k 161 modules/features2d/test/ocl/test_brute_force_matcher.cpp for (int k = 0; k < knn; k++) k 163 modules/features2d/test/ocl/test_brute_force_matcher.cpp cv::DMatch match = matches[i][k]; k 164 modules/features2d/test/ocl/test_brute_force_matcher.cpp if ((match.queryIdx != (int)i) || (match.trainIdx != (int)i * countFactor + k) || (match.imgIdx != 0)) k 330 modules/features2d/test/test_matchers_algorithmic.cpp for( int k = 0; k < knn; k++ ) k 332 modules/features2d/test/test_matchers_algorithmic.cpp DMatch& match = matches[i][k]; k 333 modules/features2d/test/test_matchers_algorithmic.cpp if( (match.queryIdx != (int)i) || (match.trainIdx != (int)i*countFactor+k) || (match.imgIdx != 0) ) k 382 modules/features2d/test/test_matchers_algorithmic.cpp for( int k = 0; k < knn; k++ ) k 384 modules/features2d/test/test_matchers_algorithmic.cpp DMatch& match = matches[i][k]; k 388 modules/features2d/test/test_matchers_algorithmic.cpp if( (match.queryIdx != (int)i) || (match.trainIdx != (int)i*countFactor + k + shift) || k 394 modules/features2d/test/test_matchers_algorithmic.cpp if( (match.queryIdx != (int)i) || (match.trainIdx != ((int)i-queryDescCount/2)*countFactor + k + shift) || k 486 modules/features2d/test/test_matchers_algorithmic.cpp for( int k = 0; k < needMatchCount; k++ ) k 488 modules/features2d/test/test_matchers_algorithmic.cpp DMatch& match = matches[i][k]; k 492 modules/features2d/test/test_matchers_algorithmic.cpp if( (match.queryIdx != (int)i) || (match.trainIdx != (int)i*countFactor + k + shift) || k 498 modules/features2d/test/test_matchers_algorithmic.cpp if( (match.queryIdx != (int)i) || (match.trainIdx != ((int)i-queryDescCount/2)*countFactor + k + shift) || k 108 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h void chooseCentersRandom(int k, int* dsindices, int indices_length, int* centers, int& centers_length) k 113 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h for (index=0; index<k; ++index) { k 149 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h void chooseCentersGonzales(int k, int* dsindices, int indices_length, int* centers, int& centers_length) k 159 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h for (index=1; index<k; ++index) { k 200 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h void chooseCentersKMeanspp(int k, int* dsindices, int indices_length, int* centers, int& centers_length) k 225 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h for (centerCount = 1; centerCount < k; centerCount++) { k 286 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h void GroupWiseCenterChooser(int k, int* dsindices, int indices_length, int* centers, int& centers_length) k 306 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h for (centerCount = 1; centerCount < k; centerCount++) { k 52 modules/flann/include/opencv2/flann/index_testing.h for (int k=0; k<n; ++k) { k 53 modules/flann/include/opencv2/flann/index_testing.h if (neighbors[i]==groundTruth[k]) { k 317 modules/flann/include/opencv2/flann/kdtree_index.h for (size_t k=0; k<veclen_; ++k) { k 318 modules/flann/include/opencv2/flann/kdtree_index.h mean_[k] += v[k]; k 321 modules/flann/include/opencv2/flann/kdtree_index.h for (size_t k=0; k<veclen_; ++k) { k 322 modules/flann/include/opencv2/flann/kdtree_index.h mean_[k] /= cnt; k 328 modules/flann/include/opencv2/flann/kdtree_index.h for (size_t k=0; k<veclen_; ++k) { k 329 modules/flann/include/opencv2/flann/kdtree_index.h DistanceType dist = v[k] - mean_[k]; k 330 modules/flann/include/opencv2/flann/kdtree_index.h var_[k] += dist * dist; k 321 modules/flann/include/opencv2/flann/kdtree_single_index.h for (size_t k=1; k<dataset_.rows; ++k) { k 323 modules/flann/include/opencv2/flann/kdtree_single_index.h if (dataset_[k][i]<bbox[i].low) bbox[i].low = (DistanceType)dataset_[k][i]; k 324 modules/flann/include/opencv2/flann/kdtree_single_index.h if (dataset_[k][i]>bbox[i].high) bbox[i].high = (DistanceType)dataset_[k][i]; k 354 modules/flann/include/opencv2/flann/kdtree_single_index.h for (int k=left+1; k<right; ++k) { k 356 modules/flann/include/opencv2/flann/kdtree_single_index.h if (bbox[i].low>dataset_[vind_[k]][i]) bbox[i].low=(DistanceType)dataset_[vind_[k]][i]; k 357 modules/flann/include/opencv2/flann/kdtree_single_index.h if (bbox[i].high<dataset_[vind_[k]][i]) bbox[i].high=(DistanceType)dataset_[vind_[k]][i]; k 422 modules/flann/include/opencv2/flann/kdtree_single_index.h size_t k = cutfeat; k 424 modules/flann/include/opencv2/flann/kdtree_single_index.h if (i==k) continue; k 107 modules/flann/include/opencv2/flann/kmeans_index.h void chooseCentersRandom(int k, int* indices, int indices_length, int* centers, int& centers_length) k 112 modules/flann/include/opencv2/flann/kmeans_index.h for (index=0; index<k; ++index) { k 148 modules/flann/include/opencv2/flann/kmeans_index.h void chooseCentersGonzales(int k, int* indices, int indices_length, int* centers, int& centers_length) k 158 modules/flann/include/opencv2/flann/kmeans_index.h for (index=1; index<k; ++index) { k 199 modules/flann/include/opencv2/flann/kmeans_index.h void chooseCentersKMeanspp(int k, int* indices, int indices_length, int* centers, int& centers_length) k 222 modules/flann/include/opencv2/flann/kmeans_index.h for (centerCount = 1; centerCount < k; centerCount++) { k 653 modules/flann/include/opencv2/flann/kmeans_index.h for (int k=0; k<branching_; ++k) { k 654 modules/flann/include/opencv2/flann/kmeans_index.h free_centers(node->childs[k]); k 743 modules/flann/include/opencv2/flann/kmeans_index.h for (size_t k=0; k<veclen_; ++k) { k 744 modules/flann/include/opencv2/flann/kmeans_index.h dcenters[i][k] = double(vec[k]); k 790 modules/flann/include/opencv2/flann/kmeans_index.h for (size_t k=0; k<veclen_; ++k) { k 791 modules/flann/include/opencv2/flann/kmeans_index.h center[k] += vec[k]; k 796 modules/flann/include/opencv2/flann/kmeans_index.h for (size_t k=0; k<veclen_; ++k) { k 797 modules/flann/include/opencv2/flann/kmeans_index.h dcenters[i][k] /= cnt; k 815 modules/flann/include/opencv2/flann/kmeans_index.h for (int k=0; k<indices_length; ++k) { k 816 modules/flann/include/opencv2/flann/kmeans_index.h if (belongs_to[k]==j) { k 818 modules/flann/include/opencv2/flann/kmeans_index.h if ( distance_(dataset_[indices[k]], dcenters[j], veclen_) == radiuses[j] ) { k 819 modules/flann/include/opencv2/flann/kmeans_index.h belongs_to[k] = i; k 837 modules/flann/include/opencv2/flann/kmeans_index.h for (size_t k=0; k<veclen_; ++k) { k 838 modules/flann/include/opencv2/flann/kmeans_index.h centers[i][k] = (DistanceType)dcenters[i][k]; k 1021 modules/flann/include/opencv2/flann/kmeans_index.h for (int k=i; k>j; --k) { k 1022 modules/flann/include/opencv2/flann/kmeans_index.h domain_distances[k] = domain_distances[k-1]; k 1023 modules/flann/include/opencv2/flann/kmeans_index.h sort_indices[k] = sort_indices[k-1]; k 1245 modules/hal/src/mathfuncs.cpp #define LOGPOLY(x,k) ((x)+=shift[k], xq = (x)*(x),\ k 54 modules/hal/src/matrix.cpp int i, j, k, p = 1; k 60 modules/hal/src/matrix.cpp k = i; k 63 modules/hal/src/matrix.cpp if( std::abs(A[j*astep + i]) > std::abs(A[k*astep + i]) ) k 64 modules/hal/src/matrix.cpp k = j; k 66 modules/hal/src/matrix.cpp if( std::abs(A[k*astep + i]) < eps ) k 69 modules/hal/src/matrix.cpp if( k != i ) k 72 modules/hal/src/matrix.cpp std::swap(A[i*astep + j], A[k*astep + j]); k 75 modules/hal/src/matrix.cpp std::swap(b[i*bstep + j], b[k*bstep + j]); k 85 modules/hal/src/matrix.cpp for( k = i+1; k < m; k++ ) k 86 modules/hal/src/matrix.cpp A[j*astep + k] += alpha*A[i*astep + k]; k 89 modules/hal/src/matrix.cpp for( k = 0; k < n; k++ ) k 90 modules/hal/src/matrix.cpp b[j*bstep + k] += alpha*b[i*bstep + k]; k 102 modules/hal/src/matrix.cpp for( k = i+1; k < m; k++ ) k 103 modules/hal/src/matrix.cpp s -= A[i*astep + k]*b[k*bstep + j]; k 128 modules/hal/src/matrix.cpp int i, j, k; k 138 modules/hal/src/matrix.cpp for( k = 0; k < j; k++ ) k 139 modules/hal/src/matrix.cpp s -= L[i*astep + k]*L[j*astep + k]; k 143 modules/hal/src/matrix.cpp for( k = 0; k < j; k++ ) k 145 modules/hal/src/matrix.cpp double t = L[i*astep + k]; k 177 modules/hal/src/matrix.cpp for( k = 0; k < i; k++ ) k 178 modules/hal/src/matrix.cpp s -= L[i*astep + k]*b[k*bstep + j]; k 188 modules/hal/src/matrix.cpp for( k = m-1; k > i; k-- ) k 189 modules/hal/src/matrix.cpp s -= L[k*astep + i]*b[k*bstep + j]; k 329 modules/imgcodecs/src/utils.cpp int c = cmyk[0], m = cmyk[1], y = cmyk[2], k = cmyk[3]; k 330 modules/imgcodecs/src/utils.cpp c = k - ((255 - c)*k>>8); k 331 modules/imgcodecs/src/utils.cpp m = k - ((255 - m)*k>>8); k 332 modules/imgcodecs/src/utils.cpp y = k - ((255 - y)*k>>8); k 349 modules/imgcodecs/src/utils.cpp int c = cmyk[0], m = cmyk[1], y = cmyk[2], k = cmyk[3]; k 350 modules/imgcodecs/src/utils.cpp c = k - ((255 - c)*k>>8); k 351 modules/imgcodecs/src/utils.cpp m = k - ((255 - m)*k>>8); k 352 modules/imgcodecs/src/utils.cpp y = k - ((255 - y)*k>>8); k 179 modules/imgcodecs/test/test_grfmt.cpp for (int k = 1; k <= 5; ++k) k 191 modules/imgcodecs/test/test_grfmt.cpp Mat img(img_r * k, img_c * k, CV_MAKETYPE(CV_8U, num_channels), Scalar::all(0)); k 192 modules/imgcodecs/test/test_grfmt.cpp circle(img, Point2i((img_c * k) / 2, (img_r * k) / 2), std::min((img_r * k), (img_c * k)) / 4 , Scalar::all(255)); k 221 modules/imgcodecs/test/test_grfmt.cpp Mat img(img_r * k, img_c * k, CV_MAKETYPE(CV_8U, num_channels), Scalar::all(0)); k 222 modules/imgcodecs/test/test_grfmt.cpp circle(img, Point2i((img_c * k) / 2, (img_r * k) / 2), std::min((img_r * k), (img_c * k)) / 4 , Scalar::all(255)); k 252 modules/imgcodecs/test/test_grfmt.cpp Mat img(img_r * k, img_c * k, CV_MAKETYPE(CV_16U, num_channels), Scalar::all(0)); k 253 modules/imgcodecs/test/test_grfmt.cpp circle(img, Point2i((img_c * k) / 2, (img_r * k) / 2), std::min((img_r * k), (img_c * k)) / 4 , Scalar::all(255)); k 1496 modules/imgproc/include/opencv2/imgproc.hpp int ksize, double k, k 1644 modules/imgproc/include/opencv2/imgproc.hpp bool useHarrisDetector = false, double k = 0.04 ); k 918 modules/imgproc/include/opencv2/imgproc/imgproc_c.h double k CV_DEFAULT(0.04) ); k 938 modules/imgproc/include/opencv2/imgproc/imgproc_c.h double k CV_DEFAULT(0.04) ); k 511 modules/imgproc/misc/java/test/ImgprocTest.java double k = 0.1; k 512 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.cornerHarris(gray128, dst, blockSize, ksize, k); k 523 modules/imgproc/misc/java/test/ImgprocTest.java double k = 0.1; k 524 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.cornerHarris(gray255, dst, blockSize, ksize, k, Core.BORDER_REFLECT); k 27 modules/imgproc/perf/perf_corners.cpp double k = get<3>(GetParam()); k 35 modules/imgproc/perf/perf_corners.cpp TEST_CYCLE() cornerHarris(src, dst, blockSize, apertureSize, k, borderType); k 524 modules/imgproc/src/accum.cpp for( int k = 0; k < cn; k++ ) k 525 modules/imgproc/src/accum.cpp dst[k] += src[k]; k 582 modules/imgproc/src/accum.cpp for( int k = 0; k < cn; k++ ) k 583 modules/imgproc/src/accum.cpp dst[k] += (AT)src[k]*src[k]; k 640 modules/imgproc/src/accum.cpp for( int k = 0; k < cn; k++ ) k 641 modules/imgproc/src/accum.cpp dst[k] += (AT)src1[k]*src2[k]; k 699 modules/imgproc/src/accum.cpp for( int k = 0; k < cn; k++ ) k 700 modules/imgproc/src/accum.cpp dst[k] = src[k]*a + dst[k]*b; k 808 modules/imgproc/src/accum.cpp ocl::Kernel k("accumulate", ocl::imgproc::accumulate_oclsrc, k 814 modules/imgproc/src/accum.cpp if (k.empty()) k 824 modules/imgproc/src/accum.cpp int argidx = k.set(0, srcarg); k 826 modules/imgproc/src/accum.cpp argidx = k.set(argidx, src2arg); k 827 modules/imgproc/src/accum.cpp argidx = k.set(argidx, dstarg); k 831 modules/imgproc/src/accum.cpp argidx = k.set(argidx, (float)alpha); k 833 modules/imgproc/src/accum.cpp argidx = k.set(argidx, alpha); k 836 modules/imgproc/src/accum.cpp k.set(argidx, maskarg); k 839 modules/imgproc/src/accum.cpp return k.run(2, globalsize, NULL, false); k 50 modules/imgproc/src/approx.cpp int k; /* support region */ k 138 modules/imgproc/src/approx.cpp int k, l = 0, d_num = 0; k 144 modules/imgproc/src/approx.cpp for( k = 1;; k++ ) k 150 modules/imgproc/src/approx.cpp assert( k <= len ); k 153 modules/imgproc/src/approx.cpp i1 = i - k; k 155 modules/imgproc/src/approx.cpp i2 = i + k; k 168 modules/imgproc/src/approx.cpp if( k > 1 && (l >= lk || ((d_num > 0 && d.i <= 0) || (d_num < 0 && d.i >= 0)))) k 175 modules/imgproc/src/approx.cpp current->k = --k; k 181 modules/imgproc/src/approx.cpp for( j = k, s = 0; j > 0; j-- ) k 208 modules/imgproc/src/approx.cpp if( j < k && sk.i <= s ) k 226 modules/imgproc/src/approx.cpp int k2 = current->k >> 1; k 265 modules/imgproc/src/approx.cpp if( current->k == 1 ) k 340 modules/imgproc/src/approx.cpp if( s1 > s2 || (s1 == s2 && prev_current->k <= current->k) ) k 101 modules/imgproc/src/blend.cpp ocl::Kernel k("blendLinear", ocl::imgproc::blend_linear_oclsrc, k 104 modules/imgproc/src/blend.cpp if (k.empty()) k 110 modules/imgproc/src/blend.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(src1), ocl::KernelArg::ReadOnlyNoSize(src2), k 115 modules/imgproc/src/blend.cpp return k.run(2, globalsize, NULL, false); k 431 modules/imgproc/src/canny.cpp for(int k = 1; k < cn; ++k) k 432 modules/imgproc/src/canny.cpp if(_norm[jn + k] > _norm[maxIdx]) maxIdx = jn + k; k 835 modules/imgproc/src/canny.cpp for(int k = 1; k < cn; ++k) k 836 modules/imgproc/src/canny.cpp if(_norm[jn + k] > _norm[maxIdx]) maxIdx = jn + k; k 66 modules/imgproc/src/clahe.cpp cv::ocl::Kernel k("calcLut", cv::ocl::imgproc::clahe_oclsrc, opts); k 67 modules/imgproc/src/clahe.cpp if(k.empty()) k 82 modules/imgproc/src/clahe.cpp idx = k.set(idx, cv::ocl::KernelArg::ReadOnlyNoSize(src)); k 83 modules/imgproc/src/clahe.cpp idx = k.set(idx, cv::ocl::KernelArg::WriteOnlyNoSize(dst)); k 84 modules/imgproc/src/clahe.cpp idx = k.set(idx, tile_size); k 85 modules/imgproc/src/clahe.cpp idx = k.set(idx, tilesX); k 86 modules/imgproc/src/clahe.cpp idx = k.set(idx, clipLimit); k 87 modules/imgproc/src/clahe.cpp k.set(idx, lutScale); k 89 modules/imgproc/src/clahe.cpp return k.run(2, globalThreads, localThreads, false); k 96 modules/imgproc/src/clahe.cpp cv::ocl::Kernel k("transform", cv::ocl::imgproc::clahe_oclsrc); k 97 modules/imgproc/src/clahe.cpp if(k.empty()) k 113 modules/imgproc/src/clahe.cpp idx = k.set(idx, cv::ocl::KernelArg::ReadOnlyNoSize(src)); k 114 modules/imgproc/src/clahe.cpp idx = k.set(idx, cv::ocl::KernelArg::WriteOnlyNoSize(dst)); k 115 modules/imgproc/src/clahe.cpp idx = k.set(idx, cv::ocl::KernelArg::ReadOnlyNoSize(lut)); k 116 modules/imgproc/src/clahe.cpp idx = k.set(idx, src.cols); k 117 modules/imgproc/src/clahe.cpp idx = k.set(idx, src.rows); k 118 modules/imgproc/src/clahe.cpp idx = k.set(idx, tile_size); k 119 modules/imgproc/src/clahe.cpp idx = k.set(idx, tilesX); k 120 modules/imgproc/src/clahe.cpp k.set(idx, tilesY); k 122 modules/imgproc/src/clahe.cpp return k.run(2, globalThreads, localThreads, false); k 157 modules/imgproc/src/clahe.cpp for (int k = range.start; k < range.end; ++k, tileLut += lut_step) k 159 modules/imgproc/src/clahe.cpp const int ty = k / tilesX_; k 160 modules/imgproc/src/clahe.cpp const int tx = k % tilesX_; k 6455 modules/imgproc/src/color.cpp for( int j = 0, k = 0; j < w * cn; j += 2 * cn, k++ ) k 6469 modules/imgproc/src/color.cpp y[2*k + 0] = saturate_cast<uchar>(y00 >> ITUR_BT_601_SHIFT); k 6470 modules/imgproc/src/color.cpp y[2*k + 1] = saturate_cast<uchar>(y01 >> ITUR_BT_601_SHIFT); k 6471 modules/imgproc/src/color.cpp y[2*k + dst_->step + 0] = saturate_cast<uchar>(y10 >> ITUR_BT_601_SHIFT); k 6472 modules/imgproc/src/color.cpp y[2*k + dst_->step + 1] = saturate_cast<uchar>(y11 >> ITUR_BT_601_SHIFT); k 6478 modules/imgproc/src/color.cpp u[k] = saturate_cast<uchar>(u00 >> ITUR_BT_601_SHIFT); k 6479 modules/imgproc/src/color.cpp v[k] = saturate_cast<uchar>(v00 >> ITUR_BT_601_SHIFT); k 6685 modules/imgproc/src/color.cpp ocl::Kernel k; k 6706 modules/imgproc/src/color.cpp k.create("RGB", ocl::imgproc::cvtcolor_oclsrc, k 6720 modules/imgproc/src/color.cpp k.create("RGB5x52RGB", ocl::imgproc::cvtcolor_oclsrc, k 6733 modules/imgproc/src/color.cpp k.create("RGB2RGB5x5", ocl::imgproc::cvtcolor_oclsrc, k 6742 modules/imgproc/src/color.cpp k.create("BGR5x52Gray", ocl::imgproc::cvtcolor_oclsrc, k 6751 modules/imgproc/src/color.cpp k.create("Gray2BGR5x5", ocl::imgproc::cvtcolor_oclsrc, k 6761 modules/imgproc/src/color.cpp k.create("RGB2Gray", ocl::imgproc::cvtcolor_oclsrc, k 6772 modules/imgproc/src/color.cpp k.create("Gray2RGB", ocl::imgproc::cvtcolor_oclsrc, k 6782 modules/imgproc/src/color.cpp k.create("RGB2YUV", ocl::imgproc::cvtcolor_oclsrc, k 6792 modules/imgproc/src/color.cpp k.create("YUV2RGB", ocl::imgproc::cvtcolor_oclsrc, k 6810 modules/imgproc/src/color.cpp k.create("YUV2RGB_NVx", ocl::imgproc::cvtcolor_oclsrc, k 6828 modules/imgproc/src/color.cpp k.create("YUV2RGB_YV12_IYUV", ocl::imgproc::cvtcolor_oclsrc, k 6871 modules/imgproc/src/color.cpp k.create("RGB2YUV_YV12_IYUV", ocl::imgproc::cvtcolor_oclsrc, k 6873 modules/imgproc/src/color.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(src), ocl::KernelArg::WriteOnly(dst)); k 6874 modules/imgproc/src/color.cpp return k.run(2, globalsize, NULL, false); k 6894 modules/imgproc/src/color.cpp k.create("YUV2RGB_422", ocl::imgproc::cvtcolor_oclsrc, k 6905 modules/imgproc/src/color.cpp k.create("RGB2YCrCb", ocl::imgproc::cvtcolor_oclsrc, k 6916 modules/imgproc/src/color.cpp k.create("YCrCb2RGB", ocl::imgproc::cvtcolor_oclsrc, k 6962 modules/imgproc/src/color.cpp k.create("RGB2XYZ", ocl::imgproc::cvtcolor_oclsrc, k 6964 modules/imgproc/src/color.cpp if (k.empty()) k 6966 modules/imgproc/src/color.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(src), ocl::KernelArg::WriteOnly(dst), ocl::KernelArg::PtrReadOnly(c)); k 6967 modules/imgproc/src/color.cpp return k.run(2, globalsize, 0, false); k 7013 modules/imgproc/src/color.cpp k.create("XYZ2RGB", ocl::imgproc::cvtcolor_oclsrc, k 7015 modules/imgproc/src/color.cpp if (k.empty()) k 7017 modules/imgproc/src/color.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(src), ocl::KernelArg::WriteOnly(dst), ocl::KernelArg::PtrReadOnly(c)); k 7018 modules/imgproc/src/color.cpp return k.run(2, globalsize, 0, false); k 7069 modules/imgproc/src/color.cpp k.create("RGB2HSV", ocl::imgproc::cvtcolor_oclsrc, k 7072 modules/imgproc/src/color.cpp if (k.empty()) k 7075 modules/imgproc/src/color.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(src), ocl::KernelArg::WriteOnly(dst), k 7079 modules/imgproc/src/color.cpp return k.run(2, globalsize, NULL, false); k 7082 modules/imgproc/src/color.cpp k.create(kernelName.c_str(), ocl::imgproc::cvtcolor_oclsrc, k 7101 modules/imgproc/src/color.cpp k.create(kernelName.c_str(), ocl::imgproc::cvtcolor_oclsrc, k 7111 modules/imgproc/src/color.cpp k.create(code == COLOR_RGBA2mRGBA ? "RGBA2mRGBA" : "mRGBA2RGBA", ocl::imgproc::cvtcolor_oclsrc, k 7126 modules/imgproc/src/color.cpp k.create(format("BGR2%s", lab ? "Lab" : "Luv").c_str(), k 7130 modules/imgproc/src/color.cpp if (k.empty()) k 7177 modules/imgproc/src/color.cpp k.args(srcarg, dstarg, k 7220 modules/imgproc/src/color.cpp k.args(srcarg, dstarg, ocl::KernelArg::PtrReadOnly(usRGBGammaTab), k 7223 modules/imgproc/src/color.cpp k.args(srcarg, dstarg, ucoeffsarg, _1_3, _a); k 7229 modules/imgproc/src/color.cpp k.args(srcarg, dstarg, ocl::KernelArg::PtrReadOnly(usRGBGammaTab), k 7232 modules/imgproc/src/color.cpp k.args(srcarg, dstarg, LabCbrtTabarg, ucoeffsarg, un, vn); k 7236 modules/imgproc/src/color.cpp return k.run(dims, globalsize, NULL, false); k 7250 modules/imgproc/src/color.cpp k.create(format("%s2BGR", lab ? "Lab" : "Luv").c_str(), k 7254 modules/imgproc/src/color.cpp if (k.empty()) k 7294 modules/imgproc/src/color.cpp k.args(srcarg, dstarg, ocl::KernelArg::PtrReadOnly(usRGBInvGammaTab), k 7297 modules/imgproc/src/color.cpp k.args(srcarg, dstarg, coeffsarg, lThresh, fThresh); k 7302 modules/imgproc/src/color.cpp k.args(srcarg, dstarg, ocl::KernelArg::PtrReadOnly(usRGBInvGammaTab), k 7305 modules/imgproc/src/color.cpp k.args(srcarg, dstarg, coeffsarg, un, vn); k 7308 modules/imgproc/src/color.cpp return k.run(dims, globalsize, NULL, false); k 7314 modules/imgproc/src/color.cpp if( !k.empty() ) k 7318 modules/imgproc/src/color.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(src), ocl::KernelArg::WriteOnly(dst)); k 7319 modules/imgproc/src/color.cpp ok = k.run(dims, globalsize, NULL, false); k 171 modules/imgproc/src/connectedcomponents.cpp LabelT k = 1; k 176 modules/imgproc/src/connectedcomponents.cpp P[i] = k; k = k + 1; k 179 modules/imgproc/src/connectedcomponents.cpp return k; k 297 modules/imgproc/src/contours.cpp for( int k = 0; k < esz; k++ ) k 298 modules/imgproc/src/contours.cpp img[k] = img[(size.width - 1)*esz + k] = (schar)0; k 1304 modules/imgproc/src/contours.cpp int i, j, k, n; k 1438 modules/imgproc/src/contours.cpp for( k = 0, n = 0; k < upper_total/2 && n < lower_total/2; ) k 1453 modules/imgproc/src/contours.cpp k++; k 1487 modules/imgproc/src/contours.cpp k++; k 1505 modules/imgproc/src/contours.cpp k++; k 1523 modules/imgproc/src/contours.cpp k++; k 1549 modules/imgproc/src/contours.cpp for( ; k < upper_total/2; k++ ) k 1568 modules/imgproc/src/contours.cpp for( k = 0; k < upper_total/2; k++ ) k 1579 modules/imgproc/src/contours.cpp for( k = 0; k < 2; k++ ) k 1581 modules/imgproc/src/contours.cpp CvSeq* contours = k == 0 ? external_contours : internal_contours; k 1612 modules/imgproc/src/contours.cpp if( k != 0 ) k 119 modules/imgproc/src/corner.cpp static void calcHarris( const Mat& _cov, Mat& _dst, double k ) k 142 modules/imgproc/src/corner.cpp __m128 k4 = _mm_set1_ps((float)k); k 164 modules/imgproc/src/corner.cpp float32x4_t v_k = vdupq_n_f32((float)k); k 181 modules/imgproc/src/corner.cpp dst[j] = (float)(a*c - b*b - k*(a + c)*(a + c)); k 268 modules/imgproc/src/corner.cpp int aperture_size, int op_type, double k=0., k 272 modules/imgproc/src/corner.cpp if (tegra::useTegra() && tegra::cornerEigenValsVecs(src, eigenv, block_size, aperture_size, op_type, k, borderType)) k 371 modules/imgproc/src/corner.cpp calcHarris( cov, eigenv, k ); k 407 modules/imgproc/src/corner.cpp ocl::Kernel k(format("sobel%d", aperture_size).c_str(), ocl::imgproc::covardata_oclsrc, k 411 modules/imgproc/src/corner.cpp if (k.empty()) k 414 modules/imgproc/src/corner.cpp k.args(ocl::KernelArg::PtrReadOnly(src), (int)src.step, src_offset_x, src_offset_y, k 418 modules/imgproc/src/corner.cpp return k.run(2, globalsize, localsize, false); k 438 modules/imgproc/src/corner.cpp int aperture_size, double k, int borderType, int op_type) k 477 modules/imgproc/src/corner.cpp ocl::KernelArg::WriteOnly(dst), (float)k); k 510 modules/imgproc/src/corner.cpp ocl::Kernel k("preCornerDetect", ocl::imgproc::precornerdetect_oclsrc); k 511 modules/imgproc/src/corner.cpp if (k.empty()) k 514 modules/imgproc/src/corner.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(Dx), ocl::KernelArg::ReadOnlyNoSize(Dy), k 519 modules/imgproc/src/corner.cpp return k.run(2, globalsize, NULL, false); k 597 modules/imgproc/src/corner.cpp void cv::cornerHarris( InputArray _src, OutputArray _dst, int blockSize, int ksize, double k, int borderType ) k 600 modules/imgproc/src/corner.cpp ocl_cornerMinEigenValVecs(_src, _dst, blockSize, ksize, k, borderType, HARRIS)) k 637 modules/imgproc/src/corner.cpp filterType, masksize, blockSize, (Ipp32f)k, (Ipp32f)scale, borderTypeIpp, 0, buffer); k 640 modules/imgproc/src/corner.cpp filterType, masksize, blockSize, (Ipp32f)k, (Ipp32f)scale, borderTypeIpp, 0, buffer); k 654 modules/imgproc/src/corner.cpp cornerEigenValsVecs( src, dst, blockSize, ksize, HARRIS, k, borderType ); k 762 modules/imgproc/src/corner.cpp int block_size, int aperture_size, double k ) k 767 modules/imgproc/src/corner.cpp cv::cornerHarris( src, dst, block_size, aperture_size, k, cv::BORDER_REPLICATE ); k 49 modules/imgproc/src/cornersubpix.cpp int i, j, k; k 109 modules/imgproc/src/cornersubpix.cpp for( i = 0, k = 0; i < win_h; i++, subpix += win_w + 2 ) k 113 modules/imgproc/src/cornersubpix.cpp for( j = 0; j < win_w; j++, k++ ) k 115 modules/imgproc/src/cornersubpix.cpp double m = mask[k]; k 70 modules/imgproc/src/deriv.cpp for( int k = 0; k < 2; k++ ) k 72 modules/imgproc/src/deriv.cpp Mat* kernel = k == 0 ? &kx : &ky; k 73 modules/imgproc/src/deriv.cpp int order = k == 0 ? dx : dy; k 110 modules/imgproc/src/deriv.cpp for( int k = 0; k < 2; k++ ) k 112 modules/imgproc/src/deriv.cpp Mat* kernel = k == 0 ? &kx : &ky; k 113 modules/imgproc/src/deriv.cpp int order = k == 0 ? dx : dy; k 114 modules/imgproc/src/deriv.cpp int ksize = k == 0 ? ksizeX : ksizeY; k 739 modules/imgproc/src/deriv.cpp ocl::Kernel k("laplacian", ocl::imgproc::laplacian5_oclsrc, opts); k 740 modules/imgproc/src/deriv.cpp if (k.empty()) k 751 modules/imgproc/src/deriv.cpp k.args(ocl::KernelArg::PtrReadOnly(src), (int)src_step, src_offset_x, src_offset_y, k 755 modules/imgproc/src/deriv.cpp return k.run(2, gt2, lt2, false); k 765 modules/imgproc/src/deriv.cpp ocl::Kernel k("sumConvert", ocl::imgproc::laplacian5_oclsrc, k 776 modules/imgproc/src/deriv.cpp if (k.empty()) k 790 modules/imgproc/src/deriv.cpp k.args(d2xarg, d2yarg, dstarg, (float)scale, (float)delta); k 792 modules/imgproc/src/deriv.cpp k.args(d2xarg, d2yarg, dstarg, iscale, idelta); k 795 modules/imgproc/src/deriv.cpp return k.run(2, globalsize, NULL, false); k 513 modules/imgproc/src/distransform.cpp int p, q, k; k 520 modules/imgproc/src/distransform.cpp for( q = 1, k = 0; q < n; q++ ) k 525 modules/imgproc/src/distransform.cpp for(;;k--) k 527 modules/imgproc/src/distransform.cpp p = v[k]; k 529 modules/imgproc/src/distransform.cpp if( s > z[k] ) k 531 modules/imgproc/src/distransform.cpp k++; k 532 modules/imgproc/src/distransform.cpp v[k] = q; k 533 modules/imgproc/src/distransform.cpp z[k] = s; k 534 modules/imgproc/src/distransform.cpp z[k+1] = inf; k 540 modules/imgproc/src/distransform.cpp for( q = 0, k = 0; q < n; q++ ) k 542 modules/imgproc/src/distransform.cpp while( z[k+1] < q ) k 543 modules/imgproc/src/distransform.cpp k++; k 544 modules/imgproc/src/distransform.cpp p = v[k]; k 832 modules/imgproc/src/distransform.cpp int k = 1; k 840 modules/imgproc/src/distransform.cpp labelptr[j] = k++; k 102 modules/imgproc/src/featureselect.cpp ocl::Kernel k("maxEigenVal", ocl::imgproc::gftt_oclsrc, k 105 modules/imgproc/src/featureselect.cpp if (k.empty()) k 117 modules/imgproc/src/featureselect.cpp k.args(eigarg, eig.cols, (int)eig.total(), dbarg, maskarg); k 119 modules/imgproc/src/featureselect.cpp k.args(eigarg, eig.cols, (int)eig.total(), dbarg); k 122 modules/imgproc/src/featureselect.cpp if (!k.run(1, &globalsize, &wgs, false)) k 139 modules/imgproc/src/featureselect.cpp ocl::Kernel k("findCorners", ocl::imgproc::gftt_oclsrc, k 141 modules/imgproc/src/featureselect.cpp if (k.empty()) k 149 modules/imgproc/src/featureselect.cpp k.args(eigarg, cornersarg, eig.rows - 2, eig.cols - 2, thresholdarg, k 154 modules/imgproc/src/featureselect.cpp k.args(eigarg, ocl::KernelArg::ReadOnlyNoSize(mask), k 160 modules/imgproc/src/featureselect.cpp if (!k.run(2, globalsize, NULL, false)) k 512 modules/imgproc/src/filter.cpp int k, ksize = kernel.rows + kernel.cols - 1; k 513 modules/imgproc/src/filter.cpp for( k = 0; k < ksize; k++ ) k 515 modules/imgproc/src/filter.cpp int v = kernel.ptr<int>()[k]; k 529 modules/imgproc/src/filter.cpp int i = 0, k, _ksize = kernel.rows + kernel.cols - 1; k 542 modules/imgproc/src/filter.cpp for( k = 0; k < _ksize; k++, src += cn ) k 544 modules/imgproc/src/filter.cpp f = _mm_cvtsi32_si128(_kx[k]); k 573 modules/imgproc/src/filter.cpp for( k = 0; k < _ksize; k++, src += cn ) k 575 modules/imgproc/src/filter.cpp f = _mm_cvtsi32_si128(_kx[k]); k 604 modules/imgproc/src/filter.cpp int k, ksize = kernel.rows + kernel.cols - 1; k 605 modules/imgproc/src/filter.cpp for( k = 0; k < ksize; k++ ) k 607 modules/imgproc/src/filter.cpp int v = kernel.ptr<int>()[k]; k 621 modules/imgproc/src/filter.cpp int i = 0, j, k, _ksize = kernel.rows + kernel.cols - 1; k 902 modules/imgproc/src/filter.cpp for( k = j = 0; k < _ksize; k++, j += cn ) k 904 modules/imgproc/src/filter.cpp f = _mm_cvtsi32_si128(kx[k]); k 944 modules/imgproc/src/filter.cpp int i = 0, k; k 968 modules/imgproc/src/filter.cpp for( k = 1; k <= ksize2; k++ ) k 970 modules/imgproc/src/filter.cpp S = (const __m128i*)(src[k] + i); k 971 modules/imgproc/src/filter.cpp S2 = (const __m128i*)(src[-k] + i); k 972 modules/imgproc/src/filter.cpp f = _mm_load_ss(ky+k); k 998 modules/imgproc/src/filter.cpp for( k = 1; k <= ksize2; k++ ) k 1000 modules/imgproc/src/filter.cpp S = (const __m128i*)(src[k] + i); k 1001 modules/imgproc/src/filter.cpp S2 = (const __m128i*)(src[-k] + i); k 1002 modules/imgproc/src/filter.cpp f = _mm_load_ss(ky+k); k 1021 modules/imgproc/src/filter.cpp for( k = 1; k <= ksize2; k++ ) k 1023 modules/imgproc/src/filter.cpp S = (const __m128i*)(src[k] + i); k 1024 modules/imgproc/src/filter.cpp S2 = (const __m128i*)(src[-k] + i); k 1025 modules/imgproc/src/filter.cpp f = _mm_load_ss(ky+k); k 1048 modules/imgproc/src/filter.cpp for( k = 1; k <= ksize2; k++ ) k 1050 modules/imgproc/src/filter.cpp S = (const __m128i*)(src[k] + i); k 1051 modules/imgproc/src/filter.cpp S2 = (const __m128i*)(src[-k] + i); k 1052 modules/imgproc/src/filter.cpp f = _mm_load_ss(ky+k); k 1222 modules/imgproc/src/filter.cpp int i = 0, k, _ksize = kernel.rows + kernel.cols - 1; k 1231 modules/imgproc/src/filter.cpp for( k = 0; k < _ksize; k++, src += cn ) k 1233 modules/imgproc/src/filter.cpp f = _mm_load_ss(_kx+k); k 1274 modules/imgproc/src/filter.cpp int i = 0, k; k 1299 modules/imgproc/src/filter.cpp for( k = 1; k <= ksize2; k++ ) k 1301 modules/imgproc/src/filter.cpp S = src[k] + i; k 1302 modules/imgproc/src/filter.cpp S2 = src[-k] + i; k 1303 modules/imgproc/src/filter.cpp f = _mm_load_ss(ky+k); k 1331 modules/imgproc/src/filter.cpp for( k = 1; k <= ksize2; k++ ) k 1333 modules/imgproc/src/filter.cpp f = _mm_load_ss(ky+k); k 1335 modules/imgproc/src/filter.cpp S = src[k] + i; k 1336 modules/imgproc/src/filter.cpp S2 = src[-k] + i; k 1337 modules/imgproc/src/filter.cpp x0 = _mm_add_ps(_mm_load_ps(src[k]+i), _mm_load_ps(src[-k] + i)); k 1353 modules/imgproc/src/filter.cpp for( k = 1; k <= ksize2; k++ ) k 1355 modules/imgproc/src/filter.cpp S = src[k] + i; k 1356 modules/imgproc/src/filter.cpp S2 = src[-k] + i; k 1357 modules/imgproc/src/filter.cpp f = _mm_load_ss(ky+k); k 1382 modules/imgproc/src/filter.cpp for( k = 1; k <= ksize2; k++ ) k 1384 modules/imgproc/src/filter.cpp f = _mm_load_ss(ky+k); k 1386 modules/imgproc/src/filter.cpp x0 = _mm_sub_ps(_mm_load_ps(src[k]+i), _mm_load_ps(src[-k] + i)); k 1441 modules/imgproc/src/filter.cpp int i = 0, k; k 1448 modules/imgproc/src/filter.cpp for( k = 0; k < _ksize; k++, src += cn ) k 1450 modules/imgproc/src/filter.cpp f = _mm_load_ss(_kx+k); k 1718 modules/imgproc/src/filter.cpp int i = 0, k; k 1743 modules/imgproc/src/filter.cpp for( k = 1; k <= ksize2; k++ ) k 1745 modules/imgproc/src/filter.cpp S = src[k] + i; k 1746 modules/imgproc/src/filter.cpp S2 = src[-k] + i; k 1747 modules/imgproc/src/filter.cpp f = _mm_load_ss(ky+k); k 1772 modules/imgproc/src/filter.cpp for( k = 1; k <= ksize2; k++ ) k 1774 modules/imgproc/src/filter.cpp f = _mm_load_ss(ky+k); k 1776 modules/imgproc/src/filter.cpp S = src[k] + i; k 1777 modules/imgproc/src/filter.cpp S2 = src[-k] + i; k 1778 modules/imgproc/src/filter.cpp x0 = _mm_add_ps(_mm_load_ps(src[k]+i), _mm_load_ps(src[-k] + i)); k 1793 modules/imgproc/src/filter.cpp for( k = 1; k <= ksize2; k++ ) k 1795 modules/imgproc/src/filter.cpp S = src[k] + i; k 1796 modules/imgproc/src/filter.cpp S2 = src[-k] + i; k 1797 modules/imgproc/src/filter.cpp f = _mm_load_ss(ky+k); k 1819 modules/imgproc/src/filter.cpp for( k = 1; k <= ksize2; k++ ) k 1821 modules/imgproc/src/filter.cpp f = _mm_load_ss(ky+k); k 1823 modules/imgproc/src/filter.cpp x0 = _mm_sub_ps(_mm_load_ps(src[k]+i), _mm_load_ps(src[-k] + i)); k 1991 modules/imgproc/src/filter.cpp int i = 0, k, nz = _nz; k 1999 modules/imgproc/src/filter.cpp for( k = 0; k < nz; k++ ) k 2001 modules/imgproc/src/filter.cpp __m128 f = _mm_load_ss(kf+k), t0, t1; k 2004 modules/imgproc/src/filter.cpp x0 = _mm_loadu_si128((const __m128i*)(src[k] + i)); k 2030 modules/imgproc/src/filter.cpp for( k = 0; k < nz; k++ ) k 2032 modules/imgproc/src/filter.cpp __m128 f = _mm_load_ss(kf+k), t0; k 2035 modules/imgproc/src/filter.cpp x0 = _mm_cvtsi32_si128(*(const int*)(src[k] + i)); k 2075 modules/imgproc/src/filter.cpp int i = 0, k, nz = _nz; k 2083 modules/imgproc/src/filter.cpp for( k = 0; k < nz; k++ ) k 2085 modules/imgproc/src/filter.cpp __m128 f = _mm_load_ss(kf+k), t0, t1; k 2088 modules/imgproc/src/filter.cpp x0 = _mm_loadu_si128((const __m128i*)(src[k] + i)); k 2114 modules/imgproc/src/filter.cpp for( k = 0; k < nz; k++ ) k 2116 modules/imgproc/src/filter.cpp __m128 f = _mm_load_ss(kf+k), t0; k 2119 modules/imgproc/src/filter.cpp x0 = _mm_cvtsi32_si128(*(const int*)(src[k] + i)); k 2157 modules/imgproc/src/filter.cpp int i = 0, k, nz = _nz; k 2164 modules/imgproc/src/filter.cpp for( k = 0; k < nz; k++ ) k 2166 modules/imgproc/src/filter.cpp __m128 f = _mm_load_ss(kf+k), t0, t1; k 2168 modules/imgproc/src/filter.cpp const float* S = src[k] + i; k 2191 modules/imgproc/src/filter.cpp for( k = 0; k < nz; k++ ) k 2193 modules/imgproc/src/filter.cpp __m128 f = _mm_load_ss(kf+k), t0; k 2195 modules/imgproc/src/filter.cpp t0 = _mm_loadu_ps(src[k] + i); k 2220 modules/imgproc/src/filter.cpp int k, ksize = kernel.rows + kernel.cols - 1; k 2221 modules/imgproc/src/filter.cpp for( k = 0; k < ksize; k++ ) k 2223 modules/imgproc/src/filter.cpp int v = kernel.ptr<int>()[k]; k 2282 modules/imgproc/src/filter.cpp int16x4_t k = vqmovn_s32(k32); k 2297 modules/imgproc/src/filter.cpp y2 = vmull_lane_s16(vget_low_s16(y0), k, 0); k 2298 modules/imgproc/src/filter.cpp y2 = vmlal_lane_s16(y2, vget_low_s16(y1), k, 1); k 2299 modules/imgproc/src/filter.cpp y3 = vmull_lane_s16(vget_high_s16(y0), k, 0); k 2300 modules/imgproc/src/filter.cpp y3 = vmlal_lane_s16(y3, vget_high_s16(y1), k, 1); k 2318 modules/imgproc/src/filter.cpp int16x4_t k = vqmovn_s32(k32); k 2333 modules/imgproc/src/filter.cpp accl = vmull_lane_s16(vget_low_s16(y0), k, 0); k 2334 modules/imgproc/src/filter.cpp accl = vmlal_lane_s16(accl, vget_low_s16(y1), k, 1); k 2335 modules/imgproc/src/filter.cpp acch = vmull_lane_s16(vget_high_s16(y0), k, 0); k 2336 modules/imgproc/src/filter.cpp acch = vmlal_lane_s16(acch, vget_high_s16(y1), k, 1); k 2342 modules/imgproc/src/filter.cpp accl = vmlal_lane_s16(accl, vget_low_s16(y2), k, 2); k 2343 modules/imgproc/src/filter.cpp acch = vmlal_lane_s16(acch, vget_high_s16(y2), k, 2); k 2378 modules/imgproc/src/filter.cpp int16x4_t k = vqmovn_s32(k32); k 2392 modules/imgproc/src/filter.cpp y1 = vmull_lane_s16(vget_low_s16(y0), k, 1); k 2393 modules/imgproc/src/filter.cpp y2 = vmull_lane_s16(vget_high_s16(y0), k, 1); k 2406 modules/imgproc/src/filter.cpp int16x4_t k = vqmovn_s32(k32); k 2420 modules/imgproc/src/filter.cpp accl = vmull_lane_s16(vget_low_s16(y0), k, 1); k 2421 modules/imgproc/src/filter.cpp acch = vmull_lane_s16(vget_high_s16(y0), k, 1); k 2430 modules/imgproc/src/filter.cpp accl = vmlal_lane_s16(accl, vget_low_s16(y1), k, 2); k 2431 modules/imgproc/src/filter.cpp acch = vmlal_lane_s16(acch, vget_high_s16(y1), k, 2); k 2467 modules/imgproc/src/filter.cpp int i = 0, k; k 2509 modules/imgproc/src/filter.cpp for( k = 2; k <= ksize2; k++ ) k 2511 modules/imgproc/src/filter.cpp S = src[k] + i; k 2512 modules/imgproc/src/filter.cpp S2 = src[-k] + i; k 2520 modules/imgproc/src/filter.cpp accl = vmlaq_n_f32(accl, vaddq_f32(f3l, f4l), ky[k]); k 2521 modules/imgproc/src/filter.cpp acch = vmlaq_n_f32(acch, vaddq_f32(f3h, f4h), ky[k]); k 2561 modules/imgproc/src/filter.cpp for( k = 2; k <= ksize2; k++ ) k 2563 modules/imgproc/src/filter.cpp S = src[k] + i; k 2564 modules/imgproc/src/filter.cpp S2 = src[-k] + i; k 2572 modules/imgproc/src/filter.cpp accl = vmlaq_n_f32(accl, vsubq_f32(f3l, f4l), ky[k]); k 2573 modules/imgproc/src/filter.cpp acch = vmlaq_n_f32(acch, vsubq_f32(f3h, f4h), ky[k]); k 2799 modules/imgproc/src/filter.cpp int i = 0, k; k 2842 modules/imgproc/src/filter.cpp for( k = 2; k <= ksize2; k++ ) k 2844 modules/imgproc/src/filter.cpp S = src[k] + i; k 2845 modules/imgproc/src/filter.cpp S2 = src[-k] + i; k 2853 modules/imgproc/src/filter.cpp accl = vmlaq_n_f32(accl, vaddq_f32(x3l, x4l), ky[k]); k 2854 modules/imgproc/src/filter.cpp acch = vmlaq_n_f32(acch, vaddq_f32(x3h, x4h), ky[k]); k 2892 modules/imgproc/src/filter.cpp for( k = 2; k <= ksize2; k++ ) k 2894 modules/imgproc/src/filter.cpp S = src[k] + i; k 2895 modules/imgproc/src/filter.cpp S2 = src[-k] + i; k 2903 modules/imgproc/src/filter.cpp accl = vmlaq_n_f32(accl, vsubq_f32(x3l, x4l), ky[k]); k 2904 modules/imgproc/src/filter.cpp acch = vmlaq_n_f32(acch, vsubq_f32(x3h, x4h), ky[k]); k 3010 modules/imgproc/src/filter.cpp float32x2_t k; k 3011 modules/imgproc/src/filter.cpp k = vdup_n_f32(0); k 3012 modules/imgproc/src/filter.cpp k = vld1_lane_f32(kx + 1, k, 0); k 3013 modules/imgproc/src/filter.cpp k = vld1_lane_f32(kx + 2, k, 1); k 3024 modules/imgproc/src/filter.cpp y0 = vmulq_lane_f32(vsubq_f32(x1, x0), k, 0); k 3025 modules/imgproc/src/filter.cpp y0 = vmlaq_lane_f32(y0, vsubq_f32(x3, x2), k, 1); k 3090 modules/imgproc/src/filter.cpp int i, k; k 3101 modules/imgproc/src/filter.cpp for( k = 1; k < _ksize; k++ ) k 3104 modules/imgproc/src/filter.cpp f = kx[k]; k 3117 modules/imgproc/src/filter.cpp for( k = 1; k < _ksize; k++ ) k 3120 modules/imgproc/src/filter.cpp s0 += kx[k]*S[0]; k 3148 modules/imgproc/src/filter.cpp int i = this->vecOp(src, dst, width, cn), j, k; k 3209 modules/imgproc/src/filter.cpp for( k = 1, j = cn; k <= ksize2; k++, j += cn ) k 3210 modules/imgproc/src/filter.cpp s0 += kx[k]*(S[j] + S[-j]); k 3248 modules/imgproc/src/filter.cpp for( k = 1, j = cn; k <= ksize2; k++, j += cn ) k 3249 modules/imgproc/src/filter.cpp s0 += kx[k]*(S[j] - S[-j]); k 3286 modules/imgproc/src/filter.cpp int i, k; k 3301 modules/imgproc/src/filter.cpp for( k = 1; k < _ksize; k++ ) k 3303 modules/imgproc/src/filter.cpp S = (const ST*)src[k] + i; f = ky[k]; k 3315 modules/imgproc/src/filter.cpp for( k = 1; k < _ksize; k++ ) k 3316 modules/imgproc/src/filter.cpp s0 += ky[k]*((const ST*)src[k])[i]; k 3348 modules/imgproc/src/filter.cpp int i, k; k 3368 modules/imgproc/src/filter.cpp for( k = 1; k <= ksize2; k++ ) k 3370 modules/imgproc/src/filter.cpp S = (const ST*)src[k] + i; k 3371 modules/imgproc/src/filter.cpp S2 = (const ST*)src[-k] + i; k 3372 modules/imgproc/src/filter.cpp f = ky[k]; k 3386 modules/imgproc/src/filter.cpp for( k = 1; k <= ksize2; k++ ) k 3387 modules/imgproc/src/filter.cpp s0 += ky[k]*(((const ST*)src[k])[i] + ((const ST*)src[-k])[i]); k 3405 modules/imgproc/src/filter.cpp for( k = 1; k <= ksize2; k++ ) k 3407 modules/imgproc/src/filter.cpp S = (const ST*)src[k] + i; k 3408 modules/imgproc/src/filter.cpp S2 = (const ST*)src[-k] + i; k 3409 modules/imgproc/src/filter.cpp f = ky[k]; k 3423 modules/imgproc/src/filter.cpp for( k = 1; k <= ksize2; k++ ) k 3424 modules/imgproc/src/filter.cpp s0 += ky[k]*(((const ST*)src[k])[i] - ((const ST*)src[-k])[i]); k 3850 modules/imgproc/src/filter.cpp int i, j, k, nz = countNonZero(kernel), ktype = kernel.type(); k 3858 modules/imgproc/src/filter.cpp for( i = k = 0; i < kernel.rows; i++ ) k 3868 modules/imgproc/src/filter.cpp coords[k] = Point(j,i); k 3869 modules/imgproc/src/filter.cpp _coeffs[k++] = val; k 3876 modules/imgproc/src/filter.cpp coords[k] = Point(j,i); k 3877 modules/imgproc/src/filter.cpp ((int*)_coeffs)[k++] = val; k 3884 modules/imgproc/src/filter.cpp coords[k] = Point(j,i); k 3885 modules/imgproc/src/filter.cpp ((float*)_coeffs)[k++] = val; k 3892 modules/imgproc/src/filter.cpp coords[k] = Point(j,i); k 3893 modules/imgproc/src/filter.cpp ((double*)_coeffs)[k++] = val; k 3925 modules/imgproc/src/filter.cpp int i, k, nz = (int)coords.size(); k 3933 modules/imgproc/src/filter.cpp for( k = 0; k < nz; k++ ) k 3934 modules/imgproc/src/filter.cpp kp[k] = (const ST*)src[pt[k].y] + pt[k].x*cn; k 3942 modules/imgproc/src/filter.cpp for( k = 0; k < nz; k++ ) k 3944 modules/imgproc/src/filter.cpp const ST* sptr = kp[k] + i; k 3945 modules/imgproc/src/filter.cpp KT f = kf[k]; k 3959 modules/imgproc/src/filter.cpp for( k = 0; k < nz; k++ ) k 3960 modules/imgproc/src/filter.cpp s0 += kf[k]*kp[k][i]; k 4038 modules/imgproc/src/filter.cpp ocl::Kernel k; k 4113 modules/imgproc/src/filter.cpp if (!k.create("filter2DSmall", cv::ocl::imgproc::filter2DSmall_oclsrc, build_options)) k 4162 modules/imgproc/src/filter.cpp if (!k.create("filter2D", cv::ocl::imgproc::filter2D_oclsrc, opts)) k 4165 modules/imgproc/src/filter.cpp size_t kernelWorkGroupSize = k.workGroupSize(); k 4182 modules/imgproc/src/filter.cpp k.args(ocl::KernelArg::PtrReadOnly(src), (int)src.step, srcOffsetX, srcOffsetY, k 4185 modules/imgproc/src/filter.cpp return k.run(2, globalsize, localsize, false); k 4242 modules/imgproc/src/filter.cpp ocl::Kernel k(kernelName.c_str(), cv::ocl::imgproc::filterSepRow_oclsrc, k 4244 modules/imgproc/src/filter.cpp if (k.empty()) k 4248 modules/imgproc/src/filter.cpp k.args(ocl::KernelArg::PtrReadOnly(src), (int)(src.step / src.elemSize()), srcOffset.x, k 4253 modules/imgproc/src/filter.cpp k.args(ocl::KernelArg::PtrReadOnly(src), (int)src.step, srcOffset.x, k 4257 modules/imgproc/src/filter.cpp return k.run(2, globalsize, localsize, false); k 4292 modules/imgproc/src/filter.cpp ocl::Kernel k("col_filter", cv::ocl::imgproc::filterSepCol_oclsrc, k 4294 modules/imgproc/src/filter.cpp if (k.empty()) k 4297 modules/imgproc/src/filter.cpp k.args(ocl::KernelArg::ReadOnly(buf), ocl::KernelArg::WriteOnly(dst), k 4300 modules/imgproc/src/filter.cpp return k.run(2, globalsize, localsize, false); k 4343 modules/imgproc/src/filter.cpp ocl::Kernel k("sep_filter", ocl::imgproc::filterSep_singlePass_oclsrc, opts); k 4344 modules/imgproc/src/filter.cpp if (k.empty()) k 4356 modules/imgproc/src/filter.cpp k.args(ocl::KernelArg::PtrReadOnly(src), (int)src_step, src_offset_x, src_offset_y, k 4360 modules/imgproc/src/filter.cpp return k.run(2, gt2, lt2, false); k 160 modules/imgproc/src/floodfill.cpp int k, YC, PL, PR, dir; k 180 modules/imgproc/src/floodfill.cpp for( k = 0; k < 3; k++ ) k 182 modules/imgproc/src/floodfill.cpp dir = data[k][0]; k 188 modules/imgproc/src/floodfill.cpp int left = data[k][1]; k 189 modules/imgproc/src/floodfill.cpp int right = data[k][2]; k 236 modules/imgproc/src/floodfill.cpp for( int k = 0; k < 3; k++ ) k 237 modules/imgproc/src/floodfill.cpp lo[k] = _lo[k], interval[k] = _lo[k] + _up[k]; k 330 modules/imgproc/src/floodfill.cpp int k, YC, PL, PR, dir; k 352 modules/imgproc/src/floodfill.cpp for( k = 0; k < 3; k++ ) k 354 modules/imgproc/src/floodfill.cpp dir = data[k][0]; k 358 modules/imgproc/src/floodfill.cpp int left = data[k][1]; k 359 modules/imgproc/src/floodfill.cpp int right = data[k][2]; k 519 modules/imgproc/src/floodfill.cpp size_t k = 0; k 520 modules/imgproc/src/floodfill.cpp for(; k < elem_size; k++) k 521 modules/imgproc/src/floodfill.cpp if (seed_ptr[k] != nv_buf.b[k]) k 524 modules/imgproc/src/floodfill.cpp if( k != elem_size ) k 246 modules/imgproc/src/gcgraph.hpp for( int k = 1; k >= 0; k-- ) k 248 modules/imgproc/src/gcgraph.hpp for( v = vtxPtr+edgePtr[e0^k].dst;; v = vtxPtr+edgePtr[ei].dst ) k 252 modules/imgproc/src/gcgraph.hpp weight = edgePtr[ei^k].weight; k 267 modules/imgproc/src/gcgraph.hpp for( int k = 1; k >= 0; k-- ) k 269 modules/imgproc/src/gcgraph.hpp for( v = vtxPtr+edgePtr[e0^k].dst;; v = vtxPtr+edgePtr[ei].dst ) k 273 modules/imgproc/src/gcgraph.hpp edgePtr[ei^(k^1)].weight += minWeight; k 274 modules/imgproc/src/gcgraph.hpp if( (edgePtr[ei^k].weight -= minWeight) == 0 ) k 281 modules/imgproc/src/gcgraph.hpp v->weight = v->weight + minWeight*(1-k*2); k 783 modules/imgproc/src/generalized_hough.cpp for (size_t k = 0; k < imageRow.size(); ++k) k 785 modules/imgproc/src/generalized_hough.cpp Feature imF = imageRow[k]; k 834 modules/imgproc/src/generalized_hough.cpp for (size_t k = 0; k < imageRow.size(); ++k) k 836 modules/imgproc/src/generalized_hough.cpp Feature imF = imageRow[k]; k 897 modules/imgproc/src/generalized_hough.cpp for (size_t k = 0; k < imageRow.size(); ++k) k 899 modules/imgproc/src/generalized_hough.cpp Feature imF = imageRow[k]; k 527 modules/imgproc/src/geometry.cpp for( int k = 1; k <= 2; k++ ) k 529 modules/imgproc/src/geometry.cpp Mat& p = k == 1 ? p1 : p2; k 530 modules/imgproc/src/geometry.cpp int len = k == 1 ? n : m; k 531 modules/imgproc/src/geometry.cpp Point2f* dst = k == 1 ? fp1 : fp2; k 136 modules/imgproc/src/grabcut.cpp int k = 0; k 144 modules/imgproc/src/grabcut.cpp k = ci; k 148 modules/imgproc/src/grabcut.cpp return k; k 202 modules/imgproc/src/histogram.cpp for(size_t k = 0; k < n; k++ ) k 203 modules/imgproc/src/histogram.cpp CV_Assert( ranges[i][k] < ranges[i][k+1] ); k 503 modules/imgproc/src/hough.cpp int i = point.y, j = point.x, k, x0, y0, dx0, dy0, xflag; k 552 modules/imgproc/src/hough.cpp for( k = 0; k < 2; k++ ) k 556 modules/imgproc/src/hough.cpp if( k > 0 ) k 589 modules/imgproc/src/hough.cpp line_end[k].y = i1; k 590 modules/imgproc/src/hough.cpp line_end[k].x = j1; k 600 modules/imgproc/src/hough.cpp for( k = 0; k < 2; k++ ) k 604 modules/imgproc/src/hough.cpp if( k > 0 ) k 646 modules/imgproc/src/hough.cpp if( i1 == line_end[k].y && j1 == line_end[k].x ) k 1013 modules/imgproc/src/hough.cpp int x, y, i, j, k, center_count, nz_count; k 1160 modules/imgproc/src/hough.cpp for( j = k = 0; j < nz_count; j++ ) k 1169 modules/imgproc/src/hough.cpp ddata[k] = _r2; k 1170 modules/imgproc/src/hough.cpp sort_buf[k] = k; k 1171 modules/imgproc/src/hough.cpp k++; k 1175 modules/imgproc/src/hough.cpp int nz_count1 = k, start_idx = nz_count1 - 1; k 405 modules/imgproc/src/imgwarp.cpp for( int k = 0; k < pix_size4; k++ ) k 406 modules/imgproc/src/imgwarp.cpp _tD[k] = _tS[k]; k 1405 modules/imgproc/src/imgwarp.cpp int dx, k; k 1411 modules/imgproc/src/imgwarp.cpp for( k = 0; k <= count - 2; k++ ) k 1413 modules/imgproc/src/imgwarp.cpp const T *S0 = src[k], *S1 = src[k+1]; k 1414 modules/imgproc/src/imgwarp.cpp WT *D0 = dst[k], *D1 = dst[k+1]; k 1431 modules/imgproc/src/imgwarp.cpp for( ; k < count; k++ ) k 1433 modules/imgproc/src/imgwarp.cpp const T *S = src[k]; k 1434 modules/imgproc/src/imgwarp.cpp WT *D = dst[k]; k 1520 modules/imgproc/src/imgwarp.cpp for( int k = 0; k < count; k++ ) k 1522 modules/imgproc/src/imgwarp.cpp const T *S = src[k]; k 1523 modules/imgproc/src/imgwarp.cpp WT *D = dst[k]; k 1593 modules/imgproc/src/imgwarp.cpp for( int k = 0; k < count; k++ ) k 1595 modules/imgproc/src/imgwarp.cpp const T *S = src[k]; k 1596 modules/imgproc/src/imgwarp.cpp WT *D = dst[k]; k 1647 modules/imgproc/src/imgwarp.cpp int k, x = vecOp((const uchar**)src, (uchar*)dst, (const uchar*)beta, width); k 1655 modules/imgproc/src/imgwarp.cpp for( k = 1; k < 8; k++ ) k 1657 modules/imgproc/src/imgwarp.cpp b = beta[k]; S = src[k]; k 1718 modules/imgproc/src/imgwarp.cpp for(int k = 0; k < ksize; k++ ) k 1720 modules/imgproc/src/imgwarp.cpp prev_sy[k] = -1; k 1721 modules/imgproc/src/imgwarp.cpp rows[k] = (WT*)_buffer + bufstep*k; k 1730 modules/imgproc/src/imgwarp.cpp for(int k = 0; k < ksize; k++ ) k 1732 modules/imgproc/src/imgwarp.cpp int sy = clip(sy0 - ksize2 + 1 + k, 0, ssize.height); k 1733 modules/imgproc/src/imgwarp.cpp for( k1 = std::max(k1, k); k1 < ksize; k1++ ) k 1737 modules/imgproc/src/imgwarp.cpp if( k1 > k ) k 1738 modules/imgproc/src/imgwarp.cpp memcpy( rows[k], rows[k1], bufstep*sizeof(rows[0][0]) ); k 1743 modules/imgproc/src/imgwarp.cpp k0 = std::min(k0, k); // remember the first row that needs to be computed k 1744 modules/imgproc/src/imgwarp.cpp srows[k] = src.template ptr<T>(sy); k 1745 modules/imgproc/src/imgwarp.cpp prev_sy[k] = sy; k 2428 modules/imgproc/src/imgwarp.cpp int dy, dx, k = 0; k 2450 modules/imgproc/src/imgwarp.cpp k = 0; k 2452 modules/imgproc/src/imgwarp.cpp for( ; k <= area - 4; k += 4 ) k 2453 modules/imgproc/src/imgwarp.cpp sum += S[ofs[k]] + S[ofs[k+1]] + S[ofs[k+2]] + S[ofs[k+3]]; k 2455 modules/imgproc/src/imgwarp.cpp for( ; k < area; k++ ) k 2456 modules/imgproc/src/imgwarp.cpp sum += S[ofs[k]]; k 2538 modules/imgproc/src/imgwarp.cpp int j_start = tabofs[range.start], j_end = tabofs[range.end], j, k, dx, prev_dy = ytab[j_start].di; k 2555 modules/imgproc/src/imgwarp.cpp for( k = 0; k < xtab_size; k++ ) k 2557 modules/imgproc/src/imgwarp.cpp int dxn = xtab[k].di; k 2558 modules/imgproc/src/imgwarp.cpp WT alpha = xtab[k].alpha; k 2559 modules/imgproc/src/imgwarp.cpp buf[dxn] += S[xtab[k].si]*alpha; k 2562 modules/imgproc/src/imgwarp.cpp for( k = 0; k < xtab_size; k++ ) k 2564 modules/imgproc/src/imgwarp.cpp int sxn = xtab[k].si; k 2565 modules/imgproc/src/imgwarp.cpp int dxn = xtab[k].di; k 2566 modules/imgproc/src/imgwarp.cpp WT alpha = xtab[k].alpha; k 2572 modules/imgproc/src/imgwarp.cpp for( k = 0; k < xtab_size; k++ ) k 2574 modules/imgproc/src/imgwarp.cpp int sxn = xtab[k].si; k 2575 modules/imgproc/src/imgwarp.cpp int dxn = xtab[k].di; k 2576 modules/imgproc/src/imgwarp.cpp WT alpha = xtab[k].alpha; k 2584 modules/imgproc/src/imgwarp.cpp for( k = 0; k < xtab_size; k++ ) k 2586 modules/imgproc/src/imgwarp.cpp int sxn = xtab[k].si; k 2587 modules/imgproc/src/imgwarp.cpp int dxn = xtab[k].di; k 2588 modules/imgproc/src/imgwarp.cpp WT alpha = xtab[k].alpha; k 2599 modules/imgproc/src/imgwarp.cpp for( k = 0; k < xtab_size; k++ ) k 2601 modules/imgproc/src/imgwarp.cpp int sxn = xtab[k].si; k 2602 modules/imgproc/src/imgwarp.cpp int dxn = xtab[k].di; k 2603 modules/imgproc/src/imgwarp.cpp WT alpha = xtab[k].alpha; k 2674 modules/imgproc/src/imgwarp.cpp int k = 0; k 2688 modules/imgproc/src/imgwarp.cpp assert( k < ssize*2 ); k 2689 modules/imgproc/src/imgwarp.cpp tab[k].di = dx * cn; k 2690 modules/imgproc/src/imgwarp.cpp tab[k].si = (sx1 - 1) * cn; k 2691 modules/imgproc/src/imgwarp.cpp tab[k++].alpha = (float)((sx1 - fsx1) / cellWidth); k 2696 modules/imgproc/src/imgwarp.cpp assert( k < ssize*2 ); k 2697 modules/imgproc/src/imgwarp.cpp tab[k].di = dx * cn; k 2698 modules/imgproc/src/imgwarp.cpp tab[k].si = sx * cn; k 2699 modules/imgproc/src/imgwarp.cpp tab[k++].alpha = float(1.0 / cellWidth); k 2704 modules/imgproc/src/imgwarp.cpp assert( k < ssize*2 ); k 2705 modules/imgproc/src/imgwarp.cpp tab[k].di = dx * cn; k 2706 modules/imgproc/src/imgwarp.cpp tab[k].si = sx2 * cn; k 2707 modules/imgproc/src/imgwarp.cpp tab[k++].alpha = (float)(std::min(std::min(fsx2 - sx2, 1.), cellWidth) / cellWidth); k 2710 modules/imgproc/src/imgwarp.cpp return k; k 2845 modules/imgproc/src/imgwarp.cpp int k = 0, dx = 0; k 2848 modules/imgproc/src/imgwarp.cpp ofs_tab[dx] = k; k 2861 modules/imgproc/src/imgwarp.cpp map_tab[k] = sx1 - 1; k 2862 modules/imgproc/src/imgwarp.cpp alpha_tab[k++] = (float)((sx1 - fsx1) / cellWidth); k 2867 modules/imgproc/src/imgwarp.cpp map_tab[k] = sx; k 2868 modules/imgproc/src/imgwarp.cpp alpha_tab[k++] = float(1.0 / cellWidth); k 2873 modules/imgproc/src/imgwarp.cpp map_tab[k] = sx2; k 2874 modules/imgproc/src/imgwarp.cpp alpha_tab[k++] = (float)(std::min(std::min(fsx2 - sx2, 1.), cellWidth) / cellWidth); k 2877 modules/imgproc/src/imgwarp.cpp ofs_tab[dx] = k; k 2906 modules/imgproc/src/imgwarp.cpp ocl::Kernel k; k 2926 modules/imgproc/src/imgwarp.cpp k.create("resizeSampler", ocl::imgproc::resize_oclsrc, compileOpts); k 2928 modules/imgproc/src/imgwarp.cpp if (k.empty()) k 2935 modules/imgproc/src/imgwarp.cpp k.args(srcImage, ocl::KernelArg::WriteOnly(dst), k 2985 modules/imgproc/src/imgwarp.cpp k.create("resizeLN", ocl::imgproc::resize_oclsrc, k 2993 modules/imgproc/src/imgwarp.cpp if (k.empty()) k 2996 modules/imgproc/src/imgwarp.cpp k.args(ocl::KernelArg::ReadOnly(src), ocl::KernelArg::WriteOnly(dst), k 3002 modules/imgproc/src/imgwarp.cpp k.create("resizeLN", ocl::imgproc::resize_oclsrc, k 3010 modules/imgproc/src/imgwarp.cpp if (k.empty()) k 3013 modules/imgproc/src/imgwarp.cpp k.args(ocl::KernelArg::ReadOnly(src), ocl::KernelArg::WriteOnly(dst), k 3019 modules/imgproc/src/imgwarp.cpp k.create("resizeNN", ocl::imgproc::resize_oclsrc, k 3022 modules/imgproc/src/imgwarp.cpp if (k.empty()) k 3025 modules/imgproc/src/imgwarp.cpp k.args(ocl::KernelArg::ReadOnly(src), ocl::KernelArg::WriteOnly(dst), k 3050 modules/imgproc/src/imgwarp.cpp k.create("resizeAREA_FAST", ocl::imgproc::resize_oclsrc, buildOption); k 3051 modules/imgproc/src/imgwarp.cpp if (k.empty()) k 3057 modules/imgproc/src/imgwarp.cpp k.create("resizeAREA", ocl::imgproc::resize_oclsrc, buildOption); k 3058 modules/imgproc/src/imgwarp.cpp if (k.empty()) k 3082 modules/imgproc/src/imgwarp.cpp k.args(srcarg, dstarg); k 3084 modules/imgproc/src/imgwarp.cpp k.args(srcarg, dstarg, inv_fxf, inv_fyf, ocl::KernelArg::PtrReadOnly(tabofsOcl), k 3087 modules/imgproc/src/imgwarp.cpp return k.run(2, globalsize, NULL, false); k 3090 modules/imgproc/src/imgwarp.cpp return k.run(2, globalsize, 0, false); k 3236 modules/imgproc/src/imgwarp.cpp int k, sx, sy, dx, dy; k 3308 modules/imgproc/src/imgwarp.cpp for( sy = 0, k = 0; sy < iscale_y; sy++ ) k 3310 modules/imgproc/src/imgwarp.cpp ofs[k++] = (int)(sy*srcstep + sx*cn); k 3316 modules/imgproc/src/imgwarp.cpp for( k = 0; k < cn; k++ ) k 3317 modules/imgproc/src/imgwarp.cpp xofs[j + k] = sx + k; k 3335 modules/imgproc/src/imgwarp.cpp for( k = 0, dy = 0; k < ytab_size; k++ ) k 3337 modules/imgproc/src/imgwarp.cpp if( k == 0 || ytab[k].di != ytab[k-1].di ) k 3339 modules/imgproc/src/imgwarp.cpp assert( ytab[k].di == dy ); k 3340 modules/imgproc/src/imgwarp.cpp tabofs[dy++] = k; k 3406 modules/imgproc/src/imgwarp.cpp for( k = 0, sx *= cn; k < cn; k++ ) k 3407 modules/imgproc/src/imgwarp.cpp xofs[dx*cn + k] = sx + k; k 3420 modules/imgproc/src/imgwarp.cpp for( k = 0; k < ksize; k++ ) k 3421 modules/imgproc/src/imgwarp.cpp ialpha[dx*cn*ksize + k] = saturate_cast<short>(cbuf[k]*INTER_RESIZE_COEF_SCALE); k 3422 modules/imgproc/src/imgwarp.cpp for( ; k < cn*ksize; k++ ) k 3423 modules/imgproc/src/imgwarp.cpp ialpha[dx*cn*ksize + k] = ialpha[dx*cn*ksize + k - ksize]; k 3427 modules/imgproc/src/imgwarp.cpp for( k = 0; k < ksize; k++ ) k 3428 modules/imgproc/src/imgwarp.cpp alpha[dx*cn*ksize + k] = cbuf[k]; k 3429 modules/imgproc/src/imgwarp.cpp for( ; k < cn*ksize; k++ ) k 3430 modules/imgproc/src/imgwarp.cpp alpha[dx*cn*ksize + k] = alpha[dx*cn*ksize + k - ksize]; k 3462 modules/imgproc/src/imgwarp.cpp for( k = 0; k < ksize; k++ ) k 3463 modules/imgproc/src/imgwarp.cpp ibeta[dy*ksize + k] = saturate_cast<short>(cbuf[k]*INTER_RESIZE_COEF_SCALE); k 3467 modules/imgproc/src/imgwarp.cpp for( k = 0; k < ksize; k++ ) k 3468 modules/imgproc/src/imgwarp.cpp beta[dy*ksize + k] = cbuf[k]; k 3541 modules/imgproc/src/imgwarp.cpp int sx = XY[dx*2], sy = XY[dx*2+1], k; k 3558 modules/imgproc/src/imgwarp.cpp for( k = 0; k < cn; k++ ) k 3559 modules/imgproc/src/imgwarp.cpp D[k] = S[k]; k 3578 modules/imgproc/src/imgwarp.cpp for( k = 0; k < cn; k++ ) k 3579 modules/imgproc/src/imgwarp.cpp D[k] = S[k]; k 3808 modules/imgproc/src/imgwarp.cpp int k, cn = _src.channels(); k 3817 modules/imgproc/src/imgwarp.cpp for( k = 0; k < cn; k++ ) k 3818 modules/imgproc/src/imgwarp.cpp cval[k] = saturate_cast<T>(_borderValue[k & 3]); k 3904 modules/imgproc/src/imgwarp.cpp for( k = 0; k < cn; k++ ) k 3906 modules/imgproc/src/imgwarp.cpp WT t0 = S[k]*w[0] + S[k+cn]*w[1] + S[sstep+k]*w[2] + S[sstep+k+cn]*w[3]; k 3907 modules/imgproc/src/imgwarp.cpp D[k] = castOp(t0); k 3968 modules/imgproc/src/imgwarp.cpp for( k = 0; k < cn; k++ ) k 3969 modules/imgproc/src/imgwarp.cpp D[k] = cval[k]; k 4002 modules/imgproc/src/imgwarp.cpp for( k = 0; k < cn; k++ ) k 4003 modules/imgproc/src/imgwarp.cpp D[k] = castOp(WT(v0[k]*w[0] + v1[k]*w[1] + v2[k]*w[2] + v3[k]*w[3])); k 4050 modules/imgproc/src/imgwarp.cpp int i, k; k 4054 modules/imgproc/src/imgwarp.cpp for( k = 0; k < cn; k++ ) k 4064 modules/imgproc/src/imgwarp.cpp D[k] = castOp(sum); k 4079 modules/imgproc/src/imgwarp.cpp for( k = 0; k < cn; k++ ) k 4080 modules/imgproc/src/imgwarp.cpp D[k] = cval[k]; k 4090 modules/imgproc/src/imgwarp.cpp for( k = 0; k < cn; k++, S0++, w -= 16 ) k 4092 modules/imgproc/src/imgwarp.cpp WT cv = cval[k], sum = cv*ONE; k 4108 modules/imgproc/src/imgwarp.cpp D[k] = castOp(sum); k 4156 modules/imgproc/src/imgwarp.cpp int i, k; k 4159 modules/imgproc/src/imgwarp.cpp for( k = 0; k < cn; k++ ) k 4167 modules/imgproc/src/imgwarp.cpp D[k] = castOp(sum); k 4182 modules/imgproc/src/imgwarp.cpp for( k = 0; k < cn; k++ ) k 4183 modules/imgproc/src/imgwarp.cpp D[k] = cval[k]; k 4193 modules/imgproc/src/imgwarp.cpp for( k = 0; k < cn; k++, S0++, w -= 64 ) k 4195 modules/imgproc/src/imgwarp.cpp WT cv = cval[k], sum = cv*ONE; k 4219 modules/imgproc/src/imgwarp.cpp D[k] = castOp(sum); k 4552 modules/imgproc/src/imgwarp.cpp ocl::Kernel k(kernelName.c_str(), ocl::imgproc::remap_oclsrc, buildOptions); k 4560 modules/imgproc/src/imgwarp.cpp k.args(srcarg, dstarg, map1arg, scalararg); k 4562 modules/imgproc/src/imgwarp.cpp k.args(srcarg, dstarg, map1arg, ocl::KernelArg::ReadOnlyNoSize(map2), scalararg); k 4565 modules/imgproc/src/imgwarp.cpp return k.run(2, globalThreads, NULL, false); k 5491 modules/imgproc/src/imgwarp.cpp ocl::Kernel k; k 5514 modules/imgproc/src/imgwarp.cpp k.create(kernelName, program, opts); k 5515 modules/imgproc/src/imgwarp.cpp if (k.empty()) k 5550 modules/imgproc/src/imgwarp.cpp k.args(ocl::KernelArg::ReadOnly(src), ocl::KernelArg::WriteOnly(dst), ocl::KernelArg::PtrReadOnly(M0), k 5554 modules/imgproc/src/imgwarp.cpp return k.run(2, globalThreads, NULL, false); k 6284 modules/imgproc/src/imgwarp.cpp int k = i*12+6; k 6285 modules/imgproc/src/imgwarp.cpp a[j] = a[k+3] = src[i].x; k 6286 modules/imgproc/src/imgwarp.cpp a[j+1] = a[k+4] = src[i].y; k 6287 modules/imgproc/src/imgwarp.cpp a[j+2] = a[k+5] = 1; k 6289 modules/imgproc/src/imgwarp.cpp a[k] = a[k+1] = a[k+2] = 0; k 321 modules/imgproc/src/linefit.cpp int i, j, k; k 365 modules/imgproc/src/linefit.cpp for( k = 0; k < 20; k++ ) k 461 modules/imgproc/src/linefit.cpp int i, j, k; k 500 modules/imgproc/src/linefit.cpp for( k = 0; k < 20; k++ ) k 380 modules/imgproc/src/lsd.cpp double nfa(const int& n, const int& k, const double& p) const; k 1098 modules/imgproc/src/lsd.cpp double LineSegmentDetectorImpl::nfa(const int& n, const int& k, const double& p) const k 1101 modules/imgproc/src/lsd.cpp if(n == 0 || k == 0) { return -LOG_NT; } k 1102 modules/imgproc/src/lsd.cpp if(n == k) { return -LOG_NT - double(n) * log10(p); } k 1106 modules/imgproc/src/lsd.cpp double log1term = (double(n) + 1) - log_gamma(double(k) + 1) k 1107 modules/imgproc/src/lsd.cpp - log_gamma(double(n-k) + 1) k 1108 modules/imgproc/src/lsd.cpp + double(k) * log(p) + double(n-k) * log(1.0 - p); k 1113 modules/imgproc/src/lsd.cpp if(k > n * p) return -log1term / M_LN10 - LOG_NT; k 1120 modules/imgproc/src/lsd.cpp for(int i = k + 1; i <= n; ++i) k 487 modules/imgproc/src/moments.cpp ocl::Kernel k = ocl::Kernel("moments", ocl::imgproc::moments_oclsrc, k 492 modules/imgproc/src/moments.cpp if( k.empty() ) k 503 modules/imgproc/src/moments.cpp bool ok = k.args(ocl::KernelArg::ReadOnly(src), k 684 modules/imgproc/src/moments.cpp for( int k = 0; k < 10; k++ ) k 685 modules/imgproc/src/moments.cpp mom[k] *= s; k 108 modules/imgproc/src/morph.cpp int i, k, _ksize = ksize*cn; k 115 modules/imgproc/src/morph.cpp for( k = cn; k < _ksize; k += cn ) k 117 modules/imgproc/src/morph.cpp __m128i x = _mm_loadu_si128((const __m128i*)(src + i + k)); k 126 modules/imgproc/src/morph.cpp for( k = cn; k < _ksize; k += cn ) k 128 modules/imgproc/src/morph.cpp __m128i x = _mm_cvtsi32_si128(*(const int*)(src + i + k)); k 149 modules/imgproc/src/morph.cpp int i, k, _ksize = ksize*cn; k 156 modules/imgproc/src/morph.cpp for( k = cn; k < _ksize; k += cn ) k 158 modules/imgproc/src/morph.cpp __m128 x = _mm_loadu_ps((const float*)src + i + k); k 181 modules/imgproc/src/morph.cpp int i = 0, k, _ksize = ksize; k 197 modules/imgproc/src/morph.cpp for( k = 2; k < _ksize; k++ ) k 199 modules/imgproc/src/morph.cpp sptr = src[k] + i; k 212 modules/imgproc/src/morph.cpp sptr = src[k] + i; k 223 modules/imgproc/src/morph.cpp for( k = 2; k < _ksize; k++ ) k 225 modules/imgproc/src/morph.cpp x0 = _mm_loadl_epi64((const __m128i*)(src[k] + i)); k 231 modules/imgproc/src/morph.cpp x0 = _mm_loadl_epi64((const __m128i*)(src[k] + i)); k 245 modules/imgproc/src/morph.cpp for( k = 1; k < _ksize; k++ ) k 247 modules/imgproc/src/morph.cpp sptr = src[k] + i; k 261 modules/imgproc/src/morph.cpp for( k = 1; k < _ksize; k++ ) k 263 modules/imgproc/src/morph.cpp x0 = _mm_loadl_epi64((const __m128i*)(src[k] + i)); k 285 modules/imgproc/src/morph.cpp int i = 0, k, _ksize = ksize; k 306 modules/imgproc/src/morph.cpp for( k = 2; k < _ksize; k++ ) k 308 modules/imgproc/src/morph.cpp sptr = src[k] + i; k 329 modules/imgproc/src/morph.cpp sptr = src[k] + i; k 344 modules/imgproc/src/morph.cpp for( k = 2; k < _ksize; k++ ) k 346 modules/imgproc/src/morph.cpp x0 = _mm_load_ps(src[k] + i); k 352 modules/imgproc/src/morph.cpp x0 = _mm_load_ps(src[k] + i); k 368 modules/imgproc/src/morph.cpp for( k = 1; k < _ksize; k++ ) k 370 modules/imgproc/src/morph.cpp sptr = src[k] + i; k 389 modules/imgproc/src/morph.cpp for( k = 1; k < _ksize; k++ ) k 391 modules/imgproc/src/morph.cpp x0 = _mm_load_ps(src[k] + i); k 414 modules/imgproc/src/morph.cpp int i, k; k 425 modules/imgproc/src/morph.cpp for( k = 1; k < nz; k++ ) k 427 modules/imgproc/src/morph.cpp sptr = src[k] + i; k 441 modules/imgproc/src/morph.cpp for( k = 1; k < nz; k++ ) k 443 modules/imgproc/src/morph.cpp x0 = _mm_loadl_epi64((const __m128i*)(src[k] + i)); k 463 modules/imgproc/src/morph.cpp int i, k; k 475 modules/imgproc/src/morph.cpp for( k = 1; k < nz; k++ ) k 477 modules/imgproc/src/morph.cpp sptr = src[k] + i; k 497 modules/imgproc/src/morph.cpp for( k = 1; k < nz; k++ ) k 499 modules/imgproc/src/morph.cpp x0 = _mm_loadu_ps(src[k] + i); k 509 modules/imgproc/src/morph.cpp for( k = 1; k < nz; k++ ) k 511 modules/imgproc/src/morph.cpp x0 = _mm_load_ss(src[k] + i); k 646 modules/imgproc/src/morph.cpp int i, j, k, _ksize = ksize*cn; k 661 modules/imgproc/src/morph.cpp for( k = 0; k < cn; k++, S++, D++ ) k 700 modules/imgproc/src/morph.cpp int i, k, _ksize = ksize; k 717 modules/imgproc/src/morph.cpp for( k = 2; k < _ksize; k++ ) k 719 modules/imgproc/src/morph.cpp sptr = src[k] + i; k 730 modules/imgproc/src/morph.cpp sptr = src[k] + i; k 741 modules/imgproc/src/morph.cpp for( k = 2; k < _ksize; k++ ) k 742 modules/imgproc/src/morph.cpp s0 = op(s0, src[k][i]); k 745 modules/imgproc/src/morph.cpp D[i+dststep] = op(s0, src[k][i]); k 758 modules/imgproc/src/morph.cpp for( k = 1; k < _ksize; k++ ) k 760 modules/imgproc/src/morph.cpp sptr = src[k] + i; k 772 modules/imgproc/src/morph.cpp for( k = 1; k < _ksize; k++ ) k 773 modules/imgproc/src/morph.cpp s0 = op(s0, src[k][i]); k 803 modules/imgproc/src/morph.cpp int i, k, nz = (int)coords.size(); k 811 modules/imgproc/src/morph.cpp for( k = 0; k < nz; k++ ) k 812 modules/imgproc/src/morph.cpp kp[k] = (const T*)src[pt[k].y] + pt[k].x*cn; k 821 modules/imgproc/src/morph.cpp for( k = 1; k < nz; k++ ) k 823 modules/imgproc/src/morph.cpp sptr = kp[k] + i; k 835 modules/imgproc/src/morph.cpp for( k = 1; k < nz; k++ ) k 836 modules/imgproc/src/morph.cpp s0 = op(s0, kp[k][i]); k 46 modules/imgproc/src/phasecorr.cpp int j, k; k 77 modules/imgproc/src/phasecorr.cpp for( k = 0; k < (cols % 2 ? 1 : 2); k++ ) k 79 modules/imgproc/src/phasecorr.cpp if( k == 1 ) k 91 modules/imgproc/src/phasecorr.cpp if( k == 1 ) k 121 modules/imgproc/src/phasecorr.cpp for( k = 0; k < (cols % 2 ? 1 : 2); k++ ) k 123 modules/imgproc/src/phasecorr.cpp if( k == 1 ) k 135 modules/imgproc/src/phasecorr.cpp if( k == 1 ) k 162 modules/imgproc/src/phasecorr.cpp int j, k; k 193 modules/imgproc/src/phasecorr.cpp for( k = 0; k < (cols % 2 ? 1 : 2); k++ ) k 195 modules/imgproc/src/phasecorr.cpp if( k == 1 ) k 231 modules/imgproc/src/phasecorr.cpp if( k == 1 ) k 278 modules/imgproc/src/phasecorr.cpp for( k = 0; k < (cols % 2 ? 1 : 2); k++ ) k 280 modules/imgproc/src/phasecorr.cpp if( k == 1 ) k 315 modules/imgproc/src/phasecorr.cpp if( k == 1 ) k 872 modules/imgproc/src/pyramids.cpp int k, x, sy0 = -PD_SZ/2, sy = sy0, width0 = std::min((ssize.width-PD_SZ/2-1)/2 + 1, dsize.width); k 878 modules/imgproc/src/pyramids.cpp for( k = 0; k < cn; k++ ) k 880 modules/imgproc/src/pyramids.cpp tabL[x*cn + k] = sx0 + k; k 881 modules/imgproc/src/pyramids.cpp tabR[x*cn + k] = sx1 + k; k 963 modules/imgproc/src/pyramids.cpp for( k = 0; k < PD_SZ; k++ ) k 964 modules/imgproc/src/pyramids.cpp rows[k] = buf + ((y*2 - PD_SZ/2 + k - sy0) % PD_SZ)*bufstep; k 995 modules/imgproc/src/pyramids.cpp int k, x, sy0 = -PU_SZ/2, sy = sy0; k 1047 modules/imgproc/src/pyramids.cpp for( k = 0; k < PU_SZ; k++ ) k 1048 modules/imgproc/src/pyramids.cpp rows[k] = buf + ((y - PU_SZ/2 + k - sy0) % PU_SZ)*bufstep; k 1104 modules/imgproc/src/pyramids.cpp ocl::Kernel k("pyrDown", ocl::imgproc::pyr_down_oclsrc, buildOptions); k 1105 modules/imgproc/src/pyramids.cpp if (k.empty()) k 1108 modules/imgproc/src/pyramids.cpp k.args(ocl::KernelArg::ReadOnly(src), ocl::KernelArg::WriteOnly(dst)); k 1112 modules/imgproc/src/pyramids.cpp return k.run(2, globalThreads, localThreads, false); k 1149 modules/imgproc/src/pyramids.cpp ocl::Kernel k; k 1152 modules/imgproc/src/pyramids.cpp k.create("pyrUp_unrolled", ocl::imgproc::pyr_up_oclsrc, buildOptions); k 1156 modules/imgproc/src/pyramids.cpp k.create("pyrUp", ocl::imgproc::pyr_up_oclsrc, buildOptions); k 1158 modules/imgproc/src/pyramids.cpp if (k.empty()) k 1161 modules/imgproc/src/pyramids.cpp k.args(ocl::KernelArg::ReadOnly(src), ocl::KernelArg::WriteOnly(dst)); k 1162 modules/imgproc/src/pyramids.cpp return k.run(2, globalThreads, localThreads, false); k 97 modules/imgproc/src/rotcalipers.cpp int i, k; k 180 modules/imgproc/src/rotcalipers.cpp for( k = 0; k < n; k++ ) k 275 modules/imgproc/src/samplers.cpp int x, y, k; k 323 modules/imgproc/src/samplers.cpp for( k = 0; k < cn; k++ ) k 324 modules/imgproc/src/samplers.cpp dst[x*cn+k] = ptr[k]*w00 + ptr[k+cn]*w01 + k 325 modules/imgproc/src/samplers.cpp ptr[src_step+k]*w10 + ptr[src_step+k+cn]*w11; k 347 modules/imgproc/src/samplers.cpp for( k = 0; k < cn; k++ ) k 348 modules/imgproc/src/samplers.cpp dst[x*cn + k] = ptr0[k]*w00 + ptr0[k+cn]*w01 + ptr1[k]*w10 + ptr1[k+cn]*w11; k 354 modules/imgproc/src/samplers.cpp for( k = 0; k < cn; k++ ) k 355 modules/imgproc/src/samplers.cpp dst[x*cn + k] = ptr0[k]*b1 + ptr1[k]*b; k 478 modules/imgproc/src/samplers.cpp for( size_t k = 0; k < pixsize; k++ ) k 479 modules/imgproc/src/samplers.cpp *buffer++ = li.ptr[k]; k 100 modules/imgproc/src/shapedescr.cpp int i, j, k = 1, mi = 0; k 125 modules/imgproc/src/shapedescr.cpp k = 2; k 128 modules/imgproc/src/shapedescr.cpp for( j = 0; j < k; j++ ) k 131 modules/imgproc/src/shapedescr.cpp if( j == k ) k 132 modules/imgproc/src/shapedescr.cpp idxs[k++] = i; k 144 modules/imgproc/src/shapedescr.cpp k = 2; //rand()%2+2; k 170 modules/imgproc/src/shapedescr.cpp k = 3; k 191 modules/imgproc/src/shapedescr.cpp return k; k 202 modules/imgproc/src/shapedescr.cpp int i, j, k, count = points.checkVector(2); k 235 modules/imgproc/src/shapedescr.cpp for( k = 0; k < max_iters; k++ ) k 240 modules/imgproc/src/shapedescr.cpp if( k == 0 ) k 608 modules/imgproc/src/shapedescr.cpp int xmin = size.width, ymin = -1, xmax = -1, ymax = -1, i, j, k; k 649 modules/imgproc/src/shapedescr.cpp k = size.width - 1; k 650 modules/imgproc/src/shapedescr.cpp for( ; k > k_min && (k&3) != 3; k-- ) k 651 modules/imgproc/src/shapedescr.cpp if( ptr[k] ) k 653 modules/imgproc/src/shapedescr.cpp if( k > k_min && (k&3) == 3 ) k 655 modules/imgproc/src/shapedescr.cpp for( ; k > k_min+3; k -= 4 ) k 656 modules/imgproc/src/shapedescr.cpp if( *((int*)(ptr+k-3)) ) k 659 modules/imgproc/src/shapedescr.cpp for( ; k > k_min; k-- ) k 660 modules/imgproc/src/shapedescr.cpp if( ptr[k] ) k 662 modules/imgproc/src/shapedescr.cpp xmax = k; k 669 modules/imgproc/src/shapedescr.cpp for( ; j <= k - 3; j += 4 ) k 672 modules/imgproc/src/shapedescr.cpp for( ; j <= k; j++ ) k 86 modules/imgproc/src/smooth.cpp int i = 0, k, ksz_cn = ksize*cn; k 89 modules/imgproc/src/smooth.cpp for( k = 0; k < cn; k++, S++, D++ ) k 1438 modules/imgproc/src/smooth.cpp int i = 0, k, ksz_cn = ksize*cn; k 1441 modules/imgproc/src/smooth.cpp for( k = 0; k < cn; k++, S++, D++ ) k 1850 modules/imgproc/src/smooth.cpp int i, j, k, c, n = std::min(_dst.cols - x, STRIPE_SIZE) + r*2; k 1888 modules/imgproc/src/smooth.cpp for( k = 0; k < 16; ++k ) k 1889 modules/imgproc/src/smooth.cpp histogram_muladd( 2*r+1, &h_fine[16*n*(16*c+k)], &H[c].fine[k][0] ); k 1905 modules/imgproc/src/smooth.cpp for ( k = 0; k < 16 ; ++k ) k 1907 modules/imgproc/src/smooth.cpp sum += H[c].coarse[k]; k 1910 modules/imgproc/src/smooth.cpp sum -= H[c].coarse[k]; k 1914 modules/imgproc/src/smooth.cpp assert( k < 16 ); k 1917 modules/imgproc/src/smooth.cpp if ( luc[c][k] <= j-r ) k 1919 modules/imgproc/src/smooth.cpp memset( &H[c].fine[k], 0, 16 * sizeof(HT) ); k 1920 modules/imgproc/src/smooth.cpp for ( luc[c][k] = cv::HT(j-r); luc[c][k] < MIN(j+r+1,n); ++luc[c][k] ) k 1921 modules/imgproc/src/smooth.cpp histogram_add_simd( &h_fine[16*(n*(16*c+k)+luc[c][k])], H[c].fine[k] ); k 1923 modules/imgproc/src/smooth.cpp if ( luc[c][k] < j+r+1 ) k 1925 modules/imgproc/src/smooth.cpp histogram_muladd( j+r+1 - n, &h_fine[16*(n*(16*c+k)+(n-1))], &H[c].fine[k][0] ); k 1926 modules/imgproc/src/smooth.cpp luc[c][k] = (HT)(j+r+1); k 1931 modules/imgproc/src/smooth.cpp for ( ; luc[c][k] < j+r+1; ++luc[c][k] ) k 1933 modules/imgproc/src/smooth.cpp histogram_sub_simd( &h_fine[16*(n*(16*c+k)+MAX(luc[c][k]-2*r-1,0))], H[c].fine[k] ); k 1934 modules/imgproc/src/smooth.cpp histogram_add_simd( &h_fine[16*(n*(16*c+k)+MIN(luc[c][k],n-1))], H[c].fine[k] ); k 1941 modules/imgproc/src/smooth.cpp segment = H[c].fine[k]; k 1947 modules/imgproc/src/smooth.cpp dst[dstep*i+cn*j+c] = (uchar)(16*k + b); k 1968 modules/imgproc/src/smooth.cpp for ( k = 0; k < 16 ; ++k ) k 1970 modules/imgproc/src/smooth.cpp sum += H[c].coarse[k]; k 1973 modules/imgproc/src/smooth.cpp sum -= H[c].coarse[k]; k 1977 modules/imgproc/src/smooth.cpp assert( k < 16 ); k 1980 modules/imgproc/src/smooth.cpp if ( luc[c][k] <= j-r ) k 1982 modules/imgproc/src/smooth.cpp memset( &H[c].fine[k], 0, 16 * sizeof(HT) ); k 1983 modules/imgproc/src/smooth.cpp for ( luc[c][k] = cv::HT(j-r); luc[c][k] < MIN(j+r+1,n); ++luc[c][k] ) k 1984 modules/imgproc/src/smooth.cpp histogram_add( &h_fine[16*(n*(16*c+k)+luc[c][k])], H[c].fine[k] ); k 1986 modules/imgproc/src/smooth.cpp if ( luc[c][k] < j+r+1 ) k 1988 modules/imgproc/src/smooth.cpp histogram_muladd( j+r+1 - n, &h_fine[16*(n*(16*c+k)+(n-1))], &H[c].fine[k][0] ); k 1989 modules/imgproc/src/smooth.cpp luc[c][k] = (HT)(j+r+1); k 1994 modules/imgproc/src/smooth.cpp for ( ; luc[c][k] < j+r+1; ++luc[c][k] ) k 1996 modules/imgproc/src/smooth.cpp histogram_sub( &h_fine[16*(n*(16*c+k)+MAX(luc[c][k]-2*r-1,0))], H[c].fine[k] ); k 1997 modules/imgproc/src/smooth.cpp histogram_add( &h_fine[16*(n*(16*c+k)+MIN(luc[c][k],n-1))], H[c].fine[k] ); k 2004 modules/imgproc/src/smooth.cpp segment = H[c].fine[k]; k 2010 modules/imgproc/src/smooth.cpp dst[dstep*i+cn*j+c] = (uchar)(16*k + b); k 2053 modules/imgproc/src/smooth.cpp int k, c; k 2074 modules/imgproc/src/smooth.cpp for( k = 0; k < m*cn; k += cn ) k 2075 modules/imgproc/src/smooth.cpp UPDATE_ACC01( src_bottom[k+c], c, ++ ); k 2079 modules/imgproc/src/smooth.cpp for( k = 0; k < m*cn; k += cn ) k 2080 modules/imgproc/src/smooth.cpp UPDATE_ACC01( src_bottom[k+c], c, += m/2+1 ); k 2095 modules/imgproc/src/smooth.cpp for( k = 0; ; k++ ) k 2097 modules/imgproc/src/smooth.cpp int t = s + zone0[c][k]; k 2102 modules/imgproc/src/smooth.cpp for( k *= N; ;k++ ) k 2104 modules/imgproc/src/smooth.cpp s += zone1[c][k]; k 2108 modules/imgproc/src/smooth.cpp dst_cur[c] = (uchar)k; k 2116 modules/imgproc/src/smooth.cpp for( k = 0; k < m; k++ ) k 2118 modules/imgproc/src/smooth.cpp int p = src_top[k]; k 2119 modules/imgproc/src/smooth.cpp int q = src_bottom[k]; k 2128 modules/imgproc/src/smooth.cpp for( k = 0; k < m*3; k += 3 ) k 2130 modules/imgproc/src/smooth.cpp UPDATE_ACC01( src_top[k], 0, -- ); k 2131 modules/imgproc/src/smooth.cpp UPDATE_ACC01( src_top[k+1], 1, -- ); k 2132 modules/imgproc/src/smooth.cpp UPDATE_ACC01( src_top[k+2], 2, -- ); k 2134 modules/imgproc/src/smooth.cpp UPDATE_ACC01( src_bottom[k], 0, ++ ); k 2135 modules/imgproc/src/smooth.cpp UPDATE_ACC01( src_bottom[k+1], 1, ++ ); k 2136 modules/imgproc/src/smooth.cpp UPDATE_ACC01( src_bottom[k+2], 2, ++ ); k 2142 modules/imgproc/src/smooth.cpp for( k = 0; k < m*4; k += 4 ) k 2144 modules/imgproc/src/smooth.cpp UPDATE_ACC01( src_top[k], 0, -- ); k 2145 modules/imgproc/src/smooth.cpp UPDATE_ACC01( src_top[k+1], 1, -- ); k 2146 modules/imgproc/src/smooth.cpp UPDATE_ACC01( src_top[k+2], 2, -- ); k 2147 modules/imgproc/src/smooth.cpp UPDATE_ACC01( src_top[k+3], 3, -- ); k 2149 modules/imgproc/src/smooth.cpp UPDATE_ACC01( src_bottom[k], 0, ++ ); k 2150 modules/imgproc/src/smooth.cpp UPDATE_ACC01( src_bottom[k+1], 1, ++ ); k 2151 modules/imgproc/src/smooth.cpp UPDATE_ACC01( src_bottom[k+2], 2, ++ ); k 2152 modules/imgproc/src/smooth.cpp UPDATE_ACC01( src_bottom[k+3], 3, ++ ); k 2381 modules/imgproc/src/smooth.cpp int i, j, k, cn = _src.channels(); k 2500 modules/imgproc/src/smooth.cpp for( k = 0; k < 5; k++ ) k 2502 modules/imgproc/src/smooth.cpp const T* rowk = row[k]; k 2503 modules/imgproc/src/smooth.cpp p[k*5] = rowk[j0]; p[k*5+1] = rowk[j1]; k 2504 modules/imgproc/src/smooth.cpp p[k*5+2] = rowk[j]; p[k*5+3] = rowk[j3]; k 2505 modules/imgproc/src/smooth.cpp p[k*5+4] = rowk[j4]; k 2540 modules/imgproc/src/smooth.cpp for( k = 0; k < 5; k++ ) k 2542 modules/imgproc/src/smooth.cpp const T* rowk = row[k]; k 2543 modules/imgproc/src/smooth.cpp p[k*5] = vop.load(rowk+j-cn*2); p[k*5+1] = vop.load(rowk+j-cn); k 2544 modules/imgproc/src/smooth.cpp p[k*5+2] = vop.load(rowk+j); p[k*5+3] = vop.load(rowk+j+cn); k 2545 modules/imgproc/src/smooth.cpp p[k*5+4] = vop.load(rowk+j+cn*2); k 2606 modules/imgproc/src/smooth.cpp ocl::Kernel k(kname.c_str(), ocl::imgproc::medianFilter_oclsrc, kdefs.c_str() ); k 2608 modules/imgproc/src/smooth.cpp if (k.empty()) k 2615 modules/imgproc/src/smooth.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(src), ocl::KernelArg::WriteOnly(dst)); k 2628 modules/imgproc/src/smooth.cpp return k.run(2, globalsize, localsize, false); k 2768 modules/imgproc/src/smooth.cpp int i, j, cn = dest->channels(), k; k 2788 modules/imgproc/src/smooth.cpp k = 0; k 2795 modules/imgproc/src/smooth.cpp for( ; k <= maxk - 4; k += 4 ) k 2797 modules/imgproc/src/smooth.cpp __m128 _valF = _mm_set_ps(sptr[j + space_ofs[k+3]], sptr[j + space_ofs[k+2]], k 2798 modules/imgproc/src/smooth.cpp sptr[j + space_ofs[k+1]], sptr[j + space_ofs[k]]); k 2805 modules/imgproc/src/smooth.cpp __m128 _sw = _mm_loadu_ps(space_weight+k); k 2818 modules/imgproc/src/smooth.cpp for( ; k < maxk; k++ ) k 2820 modules/imgproc/src/smooth.cpp int val = sptr[j + space_ofs[k]]; k 2821 modules/imgproc/src/smooth.cpp float w = space_weight[k]*color_weight[std::abs(val - val0)]; k 2836 modules/imgproc/src/smooth.cpp k = 0; k 2846 modules/imgproc/src/smooth.cpp for( ; k <= maxk - 4; k += 4 ) k 2848 modules/imgproc/src/smooth.cpp const int* const sptr_k0 = reinterpret_cast<const int*>(sptr + j + space_ofs[k]); k 2849 modules/imgproc/src/smooth.cpp const int* const sptr_k1 = reinterpret_cast<const int*>(sptr + j + space_ofs[k+1]); k 2850 modules/imgproc/src/smooth.cpp const int* const sptr_k2 = reinterpret_cast<const int*>(sptr + j + space_ofs[k+2]); k 2851 modules/imgproc/src/smooth.cpp const int* const sptr_k3 = reinterpret_cast<const int*>(sptr + j + space_ofs[k+3]); k 2869 modules/imgproc/src/smooth.cpp __m128 _sw = _mm_loadu_ps(space_weight+k); k 2890 modules/imgproc/src/smooth.cpp for( ; k < maxk; k++ ) k 2892 modules/imgproc/src/smooth.cpp const uchar* sptr_k = sptr + j + space_ofs[k]; k 2894 modules/imgproc/src/smooth.cpp float w = space_weight[k]*color_weight[std::abs(b - b0) + k 3030 modules/imgproc/src/smooth.cpp ocl::Kernel k(kernelName.c_str(), ocl::imgproc::bilateral_oclsrc, k 3038 modules/imgproc/src/smooth.cpp if (k.empty()) k 3048 modules/imgproc/src/smooth.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(temp), ocl::KernelArg::WriteOnly(dst), k 3053 modules/imgproc/src/smooth.cpp return k.run(2, globalsize, NULL, false); k 3150 modules/imgproc/src/smooth.cpp int i, j, k; k 3170 modules/imgproc/src/smooth.cpp k = 0; k 3179 modules/imgproc/src/smooth.cpp for( ; k <= maxk - 4 ; k += 4 ) k 3181 modules/imgproc/src/smooth.cpp __m128 _sw = _mm_loadu_ps(space_weight + k); k 3182 modules/imgproc/src/smooth.cpp __m128 _val = _mm_set_ps(sptr[j + space_ofs[k+3]], sptr[j + space_ofs[k+2]], k 3183 modules/imgproc/src/smooth.cpp sptr[j + space_ofs[k+1]], sptr[j + space_ofs[k]]); k 3209 modules/imgproc/src/smooth.cpp for( ; k < maxk; k++ ) k 3211 modules/imgproc/src/smooth.cpp float val = sptr[j + space_ofs[k]]; k 3215 modules/imgproc/src/smooth.cpp float w = space_weight[k]*(expLUT[idx] + alpha*(expLUT[idx+1] - expLUT[idx])); k 3229 modules/imgproc/src/smooth.cpp k = 0; k 3240 modules/imgproc/src/smooth.cpp for( ; k <= maxk-4; k += 4 ) k 3242 modules/imgproc/src/smooth.cpp __m128 _sw = _mm_loadu_ps(space_weight + k); k 3244 modules/imgproc/src/smooth.cpp const float* const sptr_k0 = sptr + j + space_ofs[k]; k 3245 modules/imgproc/src/smooth.cpp const float* const sptr_k1 = sptr + j + space_ofs[k+1]; k 3246 modules/imgproc/src/smooth.cpp const float* const sptr_k2 = sptr + j + space_ofs[k+2]; k 3247 modules/imgproc/src/smooth.cpp const float* const sptr_k3 = sptr + j + space_ofs[k+3]; k 3288 modules/imgproc/src/smooth.cpp for(; k < maxk; k++ ) k 3290 modules/imgproc/src/smooth.cpp const float* sptr_k = sptr + j + space_ofs[k]; k 3296 modules/imgproc/src/smooth.cpp float w = space_weight[k]*(expLUT[idx] + alpha*(expLUT[idx+1] - expLUT[idx])); k 768 modules/imgproc/src/subdivision2d.cpp int k = idx.empty() ? (int)i : idx[i]; k 770 modules/imgproc/src/subdivision2d.cpp if( vtx[k].isfree() || vtx[k].isvirtual() ) k 772 modules/imgproc/src/subdivision2d.cpp int edge = rotateEdge(vtx[k].firstEdge, 1), t = edge; k 784 modules/imgproc/src/subdivision2d.cpp facetCenters.push_back(vtx[k].pt); k 152 modules/imgproc/src/sumpixels.cpp int x, y, k; k 187 modules/imgproc/src/sumpixels.cpp for( k = 0; k < cn; k++, src++, sum++ ) k 203 modules/imgproc/src/sumpixels.cpp for( k = 0; k < cn; k++, src++, sum++, sqsum++ ) k 226 modules/imgproc/src/sumpixels.cpp for( k = 0; k < cn; k++, src++, sum++, tilted++, buf++ ) k 261 modules/imgproc/src/sumpixels.cpp for( k = 0; k < cn; k++, src++, sum++, tilted++, buf++ ) k 66 modules/imgproc/src/templmatch.cpp ocl::Kernel k("extractFirstChannel", ocl::imgproc::match_template_oclsrc, format("-D FIRST_CHANNEL -D T1=%s -D cn=%d -D PIX_PER_WI_Y=%d", k 68 modules/imgproc/src/templmatch.cpp if (k.empty()) k 76 modules/imgproc/src/templmatch.cpp return k.args(ocl::KernelArg::ReadOnlyNoSize(image), ocl::KernelArg::WriteOnly(result)).run( 2, globalsize, NULL, false); k 91 modules/imgproc/src/templmatch.cpp ocl::Kernel k("calcSum", ocl::imgproc::match_template_oclsrc, k 96 modules/imgproc/src/templmatch.cpp if (k.empty()) k 105 modules/imgproc/src/templmatch.cpp k.args(srcarg, src.cols, (int)src.total(), resarg); k 108 modules/imgproc/src/templmatch.cpp return k.run(1, &globalsize, &wgs, false); k 276 modules/imgproc/src/templmatch.cpp ocl::Kernel k("matchTemplate_Naive_CCORR", ocl::imgproc::match_template_oclsrc, k 279 modules/imgproc/src/templmatch.cpp if (k.empty()) k 286 modules/imgproc/src/templmatch.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(image), ocl::KernelArg::ReadOnly(templ), k 290 modules/imgproc/src/templmatch.cpp return k.run(2, globalsize, NULL, false); k 322 modules/imgproc/src/templmatch.cpp ocl::Kernel k("matchTemplate_CCORR_NORMED", ocl::imgproc::match_template_oclsrc, k 324 modules/imgproc/src/templmatch.cpp if (k.empty()) k 338 modules/imgproc/src/templmatch.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(image_sqsums), ocl::KernelArg::ReadWrite(result), k 342 modules/imgproc/src/templmatch.cpp return k.run(2, globalsize, NULL, false); k 353 modules/imgproc/src/templmatch.cpp ocl::Kernel k("matchTemplate_Naive_SQDIFF", ocl::imgproc::match_template_oclsrc, k 356 modules/imgproc/src/templmatch.cpp if (k.empty()) k 363 modules/imgproc/src/templmatch.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(image), ocl::KernelArg::ReadOnly(templ), k 367 modules/imgproc/src/templmatch.cpp return k.run(2, globalsize, NULL, false); k 380 modules/imgproc/src/templmatch.cpp ocl::Kernel k("matchTemplate_Prepared_SQDIFF", ocl::imgproc::match_template_oclsrc, k 382 modules/imgproc/src/templmatch.cpp if (k.empty()) k 396 modules/imgproc/src/templmatch.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(image_sqsums), ocl::KernelArg::ReadWrite(result), k 401 modules/imgproc/src/templmatch.cpp return k.run(2, globalsize, NULL, false); k 411 modules/imgproc/src/templmatch.cpp ocl::Kernel k("matchTemplate_SQDIFF_NORMED", ocl::imgproc::match_template_oclsrc, k 413 modules/imgproc/src/templmatch.cpp if (k.empty()) k 427 modules/imgproc/src/templmatch.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(image_sqsums), ocl::KernelArg::ReadWrite(result), k 432 modules/imgproc/src/templmatch.cpp return k.run(2, globalsize, NULL, false); k 446 modules/imgproc/src/templmatch.cpp ocl::Kernel k("matchTemplate_Prepared_CCOEFF", ocl::imgproc::match_template_oclsrc, k 448 modules/imgproc/src/templmatch.cpp if (k.empty()) k 459 modules/imgproc/src/templmatch.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(image_sums), ocl::KernelArg::ReadWrite(result), templ.rows, templ.cols, templ_sum); k 466 modules/imgproc/src/templmatch.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(image_sums), ocl::KernelArg::ReadWrite(result), templ.rows, templ.cols, templ_sum); } k 469 modules/imgproc/src/templmatch.cpp return k.run(2, globalsize, NULL, false); k 481 modules/imgproc/src/templmatch.cpp ocl::Kernel k("matchTemplate_CCOEFF_NORMED", ocl::imgproc::match_template_oclsrc, k 483 modules/imgproc/src/templmatch.cpp if (k.empty()) k 509 modules/imgproc/src/templmatch.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(image_sums), ocl::KernelArg::ReadOnlyNoSize(image_sqsums), k 532 modules/imgproc/src/templmatch.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(image_sums), ocl::KernelArg::ReadOnlyNoSize(image_sqsums), k 537 modules/imgproc/src/templmatch.cpp return k.run(2, globalsize, NULL, false); k 688 modules/imgproc/src/templmatch.cpp int i, k, bufSize = 0; k 702 modules/imgproc/src/templmatch.cpp for( k = 0; k < tcn; k++ ) k 704 modules/imgproc/src/templmatch.cpp int yofs = k*dftsize.height; k 712 modules/imgproc/src/templmatch.cpp int pairs[] = {k, 0}; k 761 modules/imgproc/src/templmatch.cpp for( k = 0; k < cn; k++ ) k 769 modules/imgproc/src/templmatch.cpp int pairs[] = {k, 0}; k 781 modules/imgproc/src/templmatch.cpp Mat dftTempl1(dftTempl, Rect(0, tcn > 1 ? k*dftsize.height : 0, k 796 modules/imgproc/src/templmatch.cpp int pairs[] = {0, k}; k 801 modules/imgproc/src/templmatch.cpp if( k == 0 ) k 1029 modules/imgproc/src/templmatch.cpp int i, j, k; k 1044 modules/imgproc/src/templmatch.cpp for( k = 0; k < cn; k++ ) k 1046 modules/imgproc/src/templmatch.cpp t = p0[idx+k] - p1[idx+k] - p2[idx+k] + p3[idx+k]; k 1048 modules/imgproc/src/templmatch.cpp num -= t*templMean[k]; k 1056 modules/imgproc/src/templmatch.cpp for( k = 0; k < cn; k++ ) k 1058 modules/imgproc/src/templmatch.cpp t = q0[idx2+k] - q1[idx2+k] - q2[idx2+k] + q3[idx2+k]; k 1155 modules/imgproc/src/thresh.cpp ocl::Kernel k("threshold", ocl::imgproc::threshold_oclsrc, k 1159 modules/imgproc/src/thresh.cpp if (k.empty()) k 1172 modules/imgproc/src/thresh.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(src), ocl::KernelArg::WriteOnly(dst, cn, kercn), k 1179 modules/imgproc/src/thresh.cpp return k.run(2, globalsize, NULL, false); k 269 modules/imgproc/src/undistort.cpp double A[3][3], RR[3][3], k[12]={0,0,0,0,0,0,0,0,0,0,0}, fx, fy, ifx, ify, cx, cy; k 302 modules/imgproc/src/undistort.cpp CV_MAKETYPE(CV_64F,CV_MAT_CN(_distCoeffs->type)), k); k 364 modules/imgproc/src/undistort.cpp double icdist = (1 + ((k[7]*r2 + k[6])*r2 + k[5])*r2)/(1 + ((k[4]*r2 + k[1])*r2 + k[0])*r2); k 365 modules/imgproc/src/undistort.cpp double deltaX = 2*k[2]*x*y + k[3]*(r2 + 2*x*x)+ k[8]*r2+k[9]*r2*r2; k 366 modules/imgproc/src/undistort.cpp double deltaY = k[2]*(r2 + 2*y*y) + 2*k[3]*x*y+ k[10]*r2+k[11]*r2*r2; k 427 modules/imgproc/src/undistort.cpp double k = (u - alpha)*iv; k 434 modules/imgproc/src/undistort.cpp *J = Vec4d(kx*x + k, kx*y, ky*x, ky*y + k); k 435 modules/imgproc/src/undistort.cpp return Point2f((float)(x*k), (float)(y*k)); k 441 modules/imgproc/src/undistort.cpp double x1 = std::max(std::min(x*k*iR, 1.), -1.); k 442 modules/imgproc/src/undistort.cpp double y1 = std::max(std::min(y*k*iR, 1.), -1.); k 448 modules/imgproc/src/undistort.cpp *J = Vec4d(fx1*(kx*x + k), fx1*ky*x, fy1*kx*y, fy1*(ky*y + k)); k 503 modules/imgproc/src/undistort.cpp double k[12] = {0,0,0,0,0,0,0,0,0,0,0}, M[9]={0,0,0,0,0,0,0,0,0}; k 504 modules/imgproc/src/undistort.cpp Mat distCoeffs(distCoeffs0.rows, distCoeffs0.cols, CV_MAKETYPE(CV_64F,distCoeffs0.channels()), k); k 541 modules/imgproc/src/undistort.cpp double k1 = k[0], k2 = k[1], k3 = k[2], p1 = k[3], p2 = k[4], k4 = k[5], k5 = k[6], k6 = k[7], s1 = k[8], s2 = k[9], s3 = k[10], s4 = k[11]; k 253 modules/imgproc/test/ocl/test_imgproc.cpp double k = randomDouble(0.01, 0.9); k 255 modules/imgproc/test/ocl/test_imgproc.cpp OCL_OFF(cv::cornerHarris(src_roi, dst_roi, blockSize, apertureSize, k, borderType)); k 256 modules/imgproc/test/ocl/test_imgproc.cpp OCL_ON(cv::cornerHarris(usrc_roi, udst_roi, blockSize, apertureSize, k, borderType)); k 101 modules/imgproc/test/test_bilateral_filter.cpp int i, j, k, maxk, radius; k 192 modules/imgproc/test/test_bilateral_filter.cpp for( k = 0; k < maxk; k++ ) k 194 modules/imgproc/test/test_bilateral_filter.cpp float val = sptr[j + space_ofs[k]]; k 198 modules/imgproc/test/test_bilateral_filter.cpp float w = space_weight[k]*(expLUT[idx] + alpha*(expLUT[idx+1] - expLUT[idx])); k 212 modules/imgproc/test/test_bilateral_filter.cpp for( k = 0; k < maxk; k++ ) k 214 modules/imgproc/test/test_bilateral_filter.cpp const float* sptr_k = sptr + j + space_ofs[k]; k 220 modules/imgproc/test/test_bilateral_filter.cpp float w = space_weight[k]*(expLUT[idx] + alpha*(expLUT[idx+1] - expLUT[idx])); k 100 modules/imgproc/test/test_boundingrect.cpp for (int k = 0; k < N; ++k) k 392 modules/imgproc/test/test_color.cpp int i, j, k; k 405 modules/imgproc/test/test_color.cpp for( k = 0; k < elem_size1; k++ ) k 406 modules/imgproc/test/test_color.cpp ptr[j + k] = 0; k 1096 modules/imgproc/test/test_color.cpp for (int k = 0; k < 2; ++k) k 1098 modules/imgproc/test/test_color.cpp if (FXZ[k] <= thresh) k 1099 modules/imgproc/test/test_color.cpp FXZ[k] = (FXZ[k] - 16.0f / 116.0f) / 7.787f; k 1101 modules/imgproc/test/test_color.cpp FXZ[k] = FXZ[k] * FXZ[k] * FXZ[k]; k 276 modules/imgproc/test/test_convhull.cpp int i, k, n, total, point_type; k 281 modules/imgproc/test/test_convhull.cpp for( k = 0; k < 4; k++ ) k 283 modules/imgproc/test/test_convhull.cpp a[k] = high.val[k] - low.val[k]; k 284 modules/imgproc/test/test_convhull.cpp b[k] = low.val[k]; k 325 modules/imgproc/test/test_convhull.cpp for( k = 0; k < n; k++ ) k 326 modules/imgproc/test/test_convhull.cpp pi[k] = cvRound(cvtest::randReal(rng)*a[k] + b[k]); k 328 modules/imgproc/test/test_convhull.cpp for( k = 0; k < n; k++ ) k 329 modules/imgproc/test/test_convhull.cpp pf[k] = (float)(cvtest::randReal(rng)*a[k] + b[k]); k 1450 modules/imgproc/test/test_convhull.cpp int i, k, n, total, point_type; k 1456 modules/imgproc/test/test_convhull.cpp for( k = 0; k < n; k++ ) k 1458 modules/imgproc/test/test_convhull.cpp line0[k+n] = (float)((low.val[k] + high.val[k])*0.5); k 1459 modules/imgproc/test/test_convhull.cpp line0[k] = (float)(high.val[k] - low.val[k]); k 1461 modules/imgproc/test/test_convhull.cpp line0[k] = -line0[k]; k 1462 modules/imgproc/test/test_convhull.cpp s += (double)line0[k]*line0[k]; k 1466 modules/imgproc/test/test_convhull.cpp for( k = 0; k < n; k++ ) k 1467 modules/imgproc/test/test_convhull.cpp line0[k] = (float)(line0[k]*s); k 1506 modules/imgproc/test/test_convhull.cpp for( k = 0; k < n; k++ ) k 1508 modules/imgproc/test/test_convhull.cpp p[k] = (float)((cvtest::randReal(rng)-0.5)*max_noise*2 + t*line0[k] + line0[k+n]); k 1511 modules/imgproc/test/test_convhull.cpp pi[k] = cvRound(p[k]); k 1513 modules/imgproc/test/test_convhull.cpp pf[k] = p[k]; k 1554 modules/imgproc/test/test_convhull.cpp int k, max_k = 0; k 1557 modules/imgproc/test/test_convhull.cpp for( k = 0; k < dims*2; k++ ) k 1559 modules/imgproc/test/test_convhull.cpp if( cvIsNaN(line[k]) || cvIsInf(line[k]) ) k 1562 modules/imgproc/test/test_convhull.cpp k, line[k] ); k 1573 modules/imgproc/test/test_convhull.cpp for( k = 0; k < dims; k++ ) k 1574 modules/imgproc/test/test_convhull.cpp line0[k] = -line0[k]; k 1576 modules/imgproc/test/test_convhull.cpp for( k = 0; k < dims; k++ ) k 1577 modules/imgproc/test/test_convhull.cpp line[k] = -line[k]; k 1579 modules/imgproc/test/test_convhull.cpp for( k = 0; k < dims; k++ ) k 1581 modules/imgproc/test/test_convhull.cpp double dt = line[k] - line0[k]; k 1600 modules/imgproc/test/test_convhull.cpp for( k = 0; k < dims; k++ ) k 1602 modules/imgproc/test/test_convhull.cpp double p = line0[k+dims] + t*line0[k] - line[k+dims]; k 156 modules/imgproc/test/test_distancetransform.cpp int i, j, k; k 240 modules/imgproc/test/test_distancetransform.cpp for( k = 0; k < count; k++ ) k 242 modules/imgproc/test/test_distancetransform.cpp float t = tmp[j+ofs[k]] + delta[k]; k 261 modules/imgproc/test/test_distancetransform.cpp for( k = 0; k < count; k++ ) k 263 modules/imgproc/test/test_distancetransform.cpp float t = tmp[j-ofs[k]] + delta[k]; k 908 modules/imgproc/test/test_filter.cpp int i, j, k, l, m2 = m*m, n; k 920 modules/imgproc/test/test_filter.cpp for( k = 0; k < m; k++ ) k 922 modules/imgproc/test/test_filter.cpp const uchar* src1 = src.ptr<uchar>(i+k); k 929 modules/imgproc/test/test_filter.cpp for( k = n-1; k > 0; k-- ) k 932 modules/imgproc/test/test_filter.cpp for( j = 0; j < k; j++ ) k 950 modules/imgproc/test/test_filter.cpp for( k = 0; k < m; k++, src1 += step ) k 952 modules/imgproc/test/test_filter.cpp col_buf[k] = src1[0]; k 953 modules/imgproc/test/test_filter.cpp for( l = k-1; l >= 0; l-- ) k 964 modules/imgproc/test/test_filter.cpp for( k = 0, l = 0; k < n; ) k 966 modules/imgproc/test/test_filter.cpp if( buf0[k].col == del_col ) k 967 modules/imgproc/test/test_filter.cpp k++; k 968 modules/imgproc/test/test_filter.cpp else if( buf0[k].val < col_buf[l] ) k 969 modules/imgproc/test/test_filter.cpp *buf1++ = buf0[k++]; k 1137 modules/imgproc/test/test_filter.cpp for( size_t k = 0; k < elem_size; k++ ) k 1138 modules/imgproc/test/test_filter.cpp dst_row[j+k] = src_row[j*2+k]; k 1185 modules/imgproc/test/test_filter.cpp for( size_t k = 0; k < elem_size; k++ ) k 1187 modules/imgproc/test/test_filter.cpp dst_row[j*2+k] = src_row[j+k]; k 1188 modules/imgproc/test/test_filter.cpp dst_row[j*2+k+elem_size] = 0; k 853 modules/imgproc/test/test_histograms.cpp int i, k; k 868 modules/imgproc/test/test_histograms.cpp for( k = 0; k < cdims; k++ ) k 869 modules/imgproc/test/test_histograms.cpp indices->data.i[i*cdims + k] = idx[k]; k 980 modules/imgproc/test/test_histograms.cpp int k; k 986 modules/imgproc/test/test_histograms.cpp for( k = 0; k < MAX_METHOD; k++ ) k 987 modules/imgproc/test/test_histograms.cpp result[k] = cv::compareHist(h0, h1, k); k 990 modules/imgproc/test/test_histograms.cpp for( k = 0; k < MAX_METHOD; k++ ) k 991 modules/imgproc/test/test_histograms.cpp result[k] = cvCompareHist( hist[0], hist[1], k ); k 1216 modules/imgproc/test/test_histograms.cpp int x, y, k, cdims; k 1234 modules/imgproc/test/test_histograms.cpp for( k = 0; k < cdims; k++ ) k 1236 modules/imgproc/test/test_histograms.cpp cvGetMat( _images[k], &images[k] ); k 1237 modules/imgproc/test/test_histograms.cpp nch[k] = _images[k]->nChannels; k 1248 modules/imgproc/test/test_histograms.cpp for( k = 0; k < cdims; k++ ) k 1249 modules/imgproc/test/test_histograms.cpp plane[k].ptr = &CV_MAT_ELEM(images[k], uchar, y, 0 ) + channels[k]; k 1251 modules/imgproc/test/test_histograms.cpp for( k = 0; k < cdims; k++ ) k 1252 modules/imgproc/test/test_histograms.cpp plane[k].fl = &CV_MAT_ELEM(images[k], float, y, 0 ) + channels[k]; k 1262 modules/imgproc/test/test_histograms.cpp for( k = 0; k < cdims; k++ ) k 1263 modules/imgproc/test/test_histograms.cpp val[k] = plane[k].ptr[x*nch[k]]; k 1265 modules/imgproc/test/test_histograms.cpp for( k = 0; k < cdims; k++ ) k 1266 modules/imgproc/test/test_histograms.cpp val[k] = plane[k].fl[x*nch[k]]; k 1272 modules/imgproc/test/test_histograms.cpp for( k = 0; k < cdims; k++ ) k 1274 modules/imgproc/test/test_histograms.cpp double v = val[k], lo = hist->thresh[k][0], hi = hist->thresh[k][1]; k 1275 modules/imgproc/test/test_histograms.cpp idx[k] = cvFloor((v - lo)*dims[k]/(hi - lo)); k 1276 modules/imgproc/test/test_histograms.cpp if( idx[k] < 0 || idx[k] >= dims[k] ) k 1282 modules/imgproc/test/test_histograms.cpp for( k = 0; k < cdims; k++ ) k 1284 modules/imgproc/test/test_histograms.cpp float v = val[k]; k 1285 modules/imgproc/test/test_histograms.cpp float* t = hist->thresh2[k]; k 1286 modules/imgproc/test/test_histograms.cpp int j, n = dims[k]; k 1293 modules/imgproc/test/test_histograms.cpp idx[k] = j-1; k 1297 modules/imgproc/test/test_histograms.cpp if( k < cdims ) k 1449 modules/imgproc/test/test_histograms.cpp int x, y, k, cdims; k 1464 modules/imgproc/test/test_histograms.cpp for( k = 0; k < cdims; k++ ) k 1465 modules/imgproc/test/test_histograms.cpp nch[k] = images[k]->nChannels; k 1470 modules/imgproc/test/test_histograms.cpp for( k = 0; k < cdims; k++ ) k 1471 modules/imgproc/test/test_histograms.cpp plane[k].ptr = &CV_IMAGE_ELEM(images[k], uchar, y, 0 ) + channels[k]; k 1473 modules/imgproc/test/test_histograms.cpp for( k = 0; k < cdims; k++ ) k 1474 modules/imgproc/test/test_histograms.cpp plane[k].fl = &CV_IMAGE_ELEM(images[k], float, y, 0 ) + channels[k]; k 1483 modules/imgproc/test/test_histograms.cpp for( k = 0; k < cdims; k++ ) k 1484 modules/imgproc/test/test_histograms.cpp val[k] = plane[k].ptr[x*nch[k]]; k 1486 modules/imgproc/test/test_histograms.cpp for( k = 0; k < cdims; k++ ) k 1487 modules/imgproc/test/test_histograms.cpp val[k] = plane[k].fl[x*nch[k]]; k 1492 modules/imgproc/test/test_histograms.cpp for( k = 0; k < cdims; k++ ) k 1494 modules/imgproc/test/test_histograms.cpp double v = val[k], lo = hist->thresh[k][0], hi = hist->thresh[k][1]; k 1495 modules/imgproc/test/test_histograms.cpp idx[k] = cvFloor((v - lo)*dims[k]/(hi - lo)); k 1496 modules/imgproc/test/test_histograms.cpp if( idx[k] < 0 || idx[k] >= dims[k] ) k 1502 modules/imgproc/test/test_histograms.cpp for( k = 0; k < cdims; k++ ) k 1504 modules/imgproc/test/test_histograms.cpp float v = val[k]; k 1505 modules/imgproc/test/test_histograms.cpp float* t = hist->thresh2[k]; k 1506 modules/imgproc/test/test_histograms.cpp int j, n = dims[k]; k 1513 modules/imgproc/test/test_histograms.cpp idx[k] = j-1; k 1517 modules/imgproc/test/test_histograms.cpp if( k == cdims ) k 278 modules/imgproc/test/test_imgwarp.cpp int i, j, k; k 329 modules/imgproc/test/test_imgwarp.cpp for( k = 0; k < elem_size; k++ ) k 330 modules/imgproc/test/test_imgwarp.cpp dptr[k] = sptr[k]; k 344 modules/imgproc/test/test_imgwarp.cpp int x, y, k; k 403 modules/imgproc/test/test_imgwarp.cpp for( k = 0; k < cn; k++ ) k 405 modules/imgproc/test/test_imgwarp.cpp float v00 = sptr[k]; k 406 modules/imgproc/test/test_imgwarp.cpp float v01 = sptr[cn + k]; k 407 modules/imgproc/test/test_imgwarp.cpp float v10 = sptr[step + k]; k 408 modules/imgproc/test/test_imgwarp.cpp float v11 = sptr[step + cn + k]; k 413 modules/imgproc/test/test_imgwarp.cpp dptr[k] = (uchar)cvRound(v00); k 420 modules/imgproc/test/test_imgwarp.cpp for( k = 0; k < cn; k++ ) k 422 modules/imgproc/test/test_imgwarp.cpp float v00 = sptr[k]; k 423 modules/imgproc/test/test_imgwarp.cpp float v01 = sptr[cn + k]; k 424 modules/imgproc/test/test_imgwarp.cpp float v10 = sptr[step + k]; k 425 modules/imgproc/test/test_imgwarp.cpp float v11 = sptr[step + cn + k]; k 430 modules/imgproc/test/test_imgwarp.cpp ((ushort*)dptr)[k] = (ushort)cvRound(v00); k 437 modules/imgproc/test/test_imgwarp.cpp for( k = 0; k < cn; k++ ) k 439 modules/imgproc/test/test_imgwarp.cpp float v00 = sptr[k]; k 440 modules/imgproc/test/test_imgwarp.cpp float v01 = sptr[cn + k]; k 441 modules/imgproc/test/test_imgwarp.cpp float v10 = sptr[step + k]; k 442 modules/imgproc/test/test_imgwarp.cpp float v11 = sptr[step + cn + k]; k 447 modules/imgproc/test/test_imgwarp.cpp ((float*)dptr)[k] = (float)v00; k 756 modules/imgproc/test/test_imgwarp.cpp double a[9] = {0,0,0,0,0,0,0,0,1}, k[4]; k 758 modules/imgproc/test/test_imgwarp.cpp Mat _k( 4, 1, CV_64F, k ); k 769 modules/imgproc/test/test_imgwarp.cpp k[0] = cvtest::randReal(rng)*0.06 - 0.03; k 770 modules/imgproc/test/test_imgwarp.cpp k[1] = cvtest::randReal(rng)*0.06 - 0.03; k 771 modules/imgproc/test/test_imgwarp.cpp if( k[0]*k[1] > 0 ) k 772 modules/imgproc/test/test_imgwarp.cpp k[1] = -k[1]; k 773 modules/imgproc/test/test_imgwarp.cpp k[2] = cvtest::randReal(rng)*0.004 - 0.002; k 774 modules/imgproc/test/test_imgwarp.cpp k[3] = cvtest::randReal(rng)*0.004 - 0.002; k 860 modules/imgproc/test/test_imgwarp.cpp CvMat a = test_mat[INPUT][1], k = test_mat[INPUT][2]; k 861 modules/imgproc/test/test_imgwarp.cpp cvUndistort2( test_array[INPUT][0], test_array[INPUT_OUTPUT][0], &a, &k); k 890 modules/imgproc/test/test_imgwarp.cpp double k[4], a[9] = {0,0,0,0,0,0,0,0,1}; k 899 modules/imgproc/test/test_imgwarp.cpp Mat _k(_k0.rows,_k0.cols, CV_MAKETYPE(CV_64F,_k0.channels()),k); k 909 modules/imgproc/test/test_imgwarp.cpp k[0] = cvtest::randReal(rng)*0.06 - 0.03; k 910 modules/imgproc/test/test_imgwarp.cpp k[1] = cvtest::randReal(rng)*0.06 - 0.03; k 911 modules/imgproc/test/test_imgwarp.cpp if( k[0]*k[1] > 0 ) k 912 modules/imgproc/test/test_imgwarp.cpp k[1] = -k[1]; k 915 modules/imgproc/test/test_imgwarp.cpp k[2] = cvtest::randReal(rng)*0.004 - 0.002; k 916 modules/imgproc/test/test_imgwarp.cpp k[3] = cvtest::randReal(rng)*0.004 - 0.002; k 919 modules/imgproc/test/test_imgwarp.cpp k[2] = k[3] = 0; k 1028 modules/imgproc/test/test_imgwarp.cpp CvMat a = test_mat[INPUT][0], k = test_mat[INPUT][1]; k 1031 modules/imgproc/test/test_imgwarp.cpp cvInitUndistortMap( &a, &k, test_array[OUTPUT][0], test_array[OUTPUT][1] ); k 1033 modules/imgproc/test/test_imgwarp.cpp cvInitUndistortMap( &a, &k, test_array[OUTPUT][0], 0 ); k 1048 modules/imgproc/test/test_imgwarp.cpp double k[4], a[9] = {0,0,0,0,0,0,0,0,1}; k 1052 modules/imgproc/test/test_imgwarp.cpp Mat _k(_k0.rows,_k0.cols, CV_MAKETYPE(CV_64F,_k0.channels()),k); k 1062 modules/imgproc/test/test_imgwarp.cpp k[0] = cvtest::randReal(rng)*0.06 - 0.03; k 1063 modules/imgproc/test/test_imgwarp.cpp k[1] = cvtest::randReal(rng)*0.06 - 0.03; k 1064 modules/imgproc/test/test_imgwarp.cpp if( k[0]*k[1] > 0 ) k 1065 modules/imgproc/test/test_imgwarp.cpp k[1] = -k[1]; k 1066 modules/imgproc/test/test_imgwarp.cpp k[2] = cvtest::randReal(rng)*0.004 - 0.002; k 1067 modules/imgproc/test/test_imgwarp.cpp k[3] = cvtest::randReal(rng)*0.004 - 0.002; k 1127 modules/imgproc/test/test_imgwarp.cpp for( int k = 0; k < cn; k++, s++ ) k 1131 modules/imgproc/test/test_imgwarp.cpp d[k] = t0 + sy*(t1 - t0); k 545 modules/imgproc/test/test_imgwarp_strict.cpp for (int k = 0; k < ksize; ++k) k 547 modules/imgproc/test/test_imgwarp_strict.cpp memcpy(_extended_src_row.ptr() + k * elemsize, srow, elemsize); k 548 modules/imgproc/test/test_imgwarp_strict.cpp memcpy(_extended_src_row.ptr() + (ksize + k) * elemsize + _src.step, srow + _src.step - elemsize, elemsize); k 565 modules/imgproc/test/test_imgwarp_strict.cpp for (int k = 0; k < ksize; ++k) k 566 modules/imgproc/test/test_imgwarp_strict.cpp xyD[r] += w[k] * xyS[k * cn + r]; k 935 modules/imgproc/test/test_imgwarp_strict.cpp for (int k = 0; k < ksize; k++) k 937 modules/imgproc/test/test_imgwarp_strict.cpp ar_x[k] = borderInterpolate(isx + k, ssize.width, borderType) * cn; k 938 modules/imgproc/test/test_imgwarp_strict.cpp ar_y[k] = borderInterpolate(isy + k, ssize.height, borderType); k 150 modules/imgproc/test/test_templmatch.cpp int i, j, k, l; k 206 modules/imgproc/test/test_templmatch.cpp for( k = 0; k < height; k++, a += a_step, b += b_step ) k 216 modules/imgproc/test/test_templmatch.cpp for( k = 0; k < height; k++, a += a_step, b += b_step ) k 238 modules/imgproc/test/test_templmatch.cpp for( k = 0; k < height; k++, a += a_step, b += b_step ) k 248 modules/imgproc/test/test_templmatch.cpp for( k = 0; k < height; k++, a += a_step, b += b_step ) k 451 modules/ml/include/opencv2/ml.hpp CV_WRAP virtual float findNearest( InputArray samples, int k, k 174 modules/ml/src/ann_mlp.cpp int i, j, k, l_count = layer_count(); k 187 modules/ml/src/ann_mlp.cpp for( k = 0; k <= n1; k++ ) k 190 modules/ml/src/ann_mlp.cpp w[k*n2 + j] = val; k 197 modules/ml/src/ann_mlp.cpp for( k = 0; k <= n1; k++ ) k 198 modules/ml/src/ann_mlp.cpp w[k*n2 + j] *= s; k 719 modules/ml/src/ann_mlp.cpp int i, j, k; k 782 modules/ml/src/ann_mlp.cpp k = rng.uniform(0, count); k 783 modules/ml/src/ann_mlp.cpp std::swap(_idx[j], _idx[k]); k 820 modules/ml/src/ann_mlp.cpp for( k = 0; k < ovcount; k++ ) k 822 modules/ml/src/ann_mlp.cpp double t = (otype == CV_32F ? (double)udata_f[k] : udata_d[k])*w[k*2] + w[k*2+1] - x[l_count-1][k]; k 823 modules/ml/src/ann_mlp.cpp gdata[k] = t*sweight; k 881 modules/ml/src/ann_mlp.cpp int i, j, k, l_count = ann->layer_count(); k 962 modules/ml/src/ann_mlp.cpp for( k = 0; k < dcount; k++ ) k 964 modules/ml/src/ann_mlp.cpp const double* src = grad1.ptr<double>(k); k 1053 modules/ml/src/ann_mlp.cpp for( int k = 0; k <= n1; k++ ) k 1056 modules/ml/src/ann_mlp.cpp double* wk = weights[i].ptr<double>(k); k 1057 modules/ml/src/ann_mlp.cpp double* dwk = dw[i].ptr<double>(k); k 1058 modules/ml/src/ann_mlp.cpp double* dEdwk = dEdw[i].ptr<double>(k); k 1059 modules/ml/src/ann_mlp.cpp schar* prevEk = prev_dEdw_sign[i].ptr<schar>(k); k 392 modules/ml/src/boost.cpp int k, ntrees = (int)roots.size(); k 397 modules/ml/src/boost.cpp for( k = 0; k < ntrees; k++ ) k 400 modules/ml/src/boost.cpp writeTree(fs, roots[k]); k 82 modules/ml/src/data.cpp int k = idx.at<int>(i); k 83 modules/ml/src/data.cpp CV_Assert( 0 <= k && k < m ); k 85 modules/ml/src/data.cpp subvec.at<int>(i) = vec.at<int>(k); k 88 modules/ml/src/data.cpp subvec.at<int>(i, j) = vec.at<int>(k, j); k 93 modules/ml/src/data.cpp int k = idx.at<int>(i); k 94 modules/ml/src/data.cpp CV_Assert( 0 <= k && k < m ); k 96 modules/ml/src/data.cpp subvec.at<float>(i) = vec.at<float>(k); k 99 modules/ml/src/data.cpp subvec.at<float>(i, j) = vec.at<float>(k, j); k 104 modules/ml/src/data.cpp int k = idx.at<int>(i); k 105 modules/ml/src/data.cpp CV_Assert( 0 <= k && k < m ); k 107 modules/ml/src/data.cpp subvec.at<double>(i) = vec.at<double>(k); k 110 modules/ml/src/data.cpp subvec.at<double>(i, j) = vec.at<double>(k, j); k 485 modules/ml/src/data.cpp int k = i - previdx; k 487 modules/ml/src/data.cpp counters->at(clslabel-1) = k; k 683 modules/ml/src/data.cpp for( int k = 0; k < 2; k++ ) k 685 modules/ml/src/data.cpp const char* ptr = strstr(str, k == 0 ? "ord" : "cat"); k 686 modules/ml/src/data.cpp int tp = k == 0 ? VAR_ORDERED : VAR_CATEGORICAL; k 245 modules/ml/src/gbt.cpp int k = 0; k 246 modules/ml/src/gbt.cpp while ((int(orig_response->data.fl[i]) - class_labels->data.i[k]) && (k<j)) k 247 modules/ml/src/gbt.cpp k++; k 248 modules/ml/src/gbt.cpp if (k == j) k 250 modules/ml/src/gbt.cpp class_labels->data.i[k] = int(orig_response->data.fl[i]); k 353 modules/ml/src/gbt.cpp for ( int k=0; k < class_count; ++k ) k 355 modules/ml/src/gbt.cpp find_gradient(k); k 358 modules/ml/src/gbt.cpp change_values(tree, k); k 390 modules/ml/src/gbt.cpp sum_response_tmp->data.fl[idx + k*n] = k 391 modules/ml/src/gbt.cpp sum_response->data.fl[idx + k*n] + k 396 modules/ml/src/gbt.cpp cvSeqPush( weak[k], &tree ); k 425 modules/ml/src/gbt.cpp void CvGBTrees::find_gradient(const int k) k 501 modules/ml/src/gbt.cpp if (j == k) exp_fk = res; k 513 modules/ml/src/gbt.cpp grad_data[idx] = (float)(!(k-ensemble_label)) - k 807 modules/ml/src/gbt.cpp CvMat* weak_responses, CvSlice slice, int k) const k 821 modules/ml/src/gbt.cpp if ((k >= 0) && (k<class_count) && (weak_responses->rows != 1)) k 823 modules/ml/src/gbt.cpp if ((k == -1) && (weak_responses->rows != class_count)) k 859 modules/ml/src/gbt.cpp if ((k>=0) && (k<class_count)) k 861 modules/ml/src/gbt.cpp result = sum[k]; k 894 modules/ml/src/gbt.cpp const int k; k 903 modules/ml/src/gbt.cpp Tree_predictor() : weak(0), sum(0), k(0), sample(0), missing(0), shrinkage(1.0f) {} k 906 modules/ml/src/gbt.cpp weak(_weak), sum(_sum), k(_k), sample(_sample), k 911 modules/ml/src/gbt.cpp weak(p.weak), sum(p.sum), k(p.k), sample(p.sample), k 927 modules/ml/src/gbt.cpp for (int i=0; i<k; ++i) k 956 modules/ml/src/gbt.cpp CvMat* /*weak_responses*/, CvSlice slice, int k) const k 982 modules/ml/src/gbt.cpp if ((k>=0) && (k<class_count)) k 984 modules/ml/src/gbt.cpp result = sum[k]; k 1358 modules/ml/src/gbt.cpp const cv::Range& slice, int k ) const k 1362 modules/ml/src/gbt.cpp slice==cv::Range::all() ? CV_WHOLE_SEQ : cvSlice(slice.start, slice.end), k); k 122 modules/ml/src/inner_functions.cpp int i, j, k; k 130 modules/ml/src/inner_functions.cpp for( k = 0; k < i; k++ ) k 132 modules/ml/src/inner_functions.cpp float val = S.at<float>(k,i); k 142 modules/ml/src/inner_functions.cpp for( k = 0; k < i; k++ ) k 143 modules/ml/src/inner_functions.cpp sum += S.at<float>(k, i) * S.at<float>(k, j); k 97 modules/ml/src/kdtree.cpp int k, a0 = a, b0 = b; k 124 modules/ml/src/kdtree.cpp for( k = a0; k < middle; k++ ) k 126 modules/ml/src/kdtree.cpp CV_Assert(vals[ofs[k]] <= pivot); k 127 modules/ml/src/kdtree.cpp less += vals[ofs[k]] < pivot; k 129 modules/ml/src/kdtree.cpp for( k = b0; k > middle; k-- ) k 131 modules/ml/src/kdtree.cpp CV_Assert(vals[ofs[k]] >= pivot); k 132 modules/ml/src/kdtree.cpp more += vals[ofs[k]] > pivot; k 508 modules/ml/src/kdtree.cpp int k = idx[i]; k 509 modules/ml/src/kdtree.cpp CV_Assert( (unsigned)k < (unsigned)points.rows ); k 510 modules/ml/src/kdtree.cpp const float* src = points.ptr<float>(k); k 514 modules/ml/src/kdtree.cpp dstlabels[i] = srclabels ? srclabels[k] : k; k 69 modules/ml/src/knearest.cpp virtual float findNearest( InputArray _samples, int k, k 149 modules/ml/src/knearest.cpp int k = std::min(k0, nsamples); k 151 modules/ml/src/knearest.cpp AutoBuffer<float> buf(testcount*k*2); k 153 modules/ml/src/knearest.cpp float* rbuf = dbuf + testcount*k; k 159 modules/ml/src/knearest.cpp for( i = 0; i < k; i++ ) k 161 modules/ml/src/knearest.cpp dbuf[testidx*k + i] = FLT_MAX; k 162 modules/ml/src/knearest.cpp rbuf[testidx*k + i] = 0.f; k 189 modules/ml/src/knearest.cpp Cv32suf* dd = (Cv32suf*)(&dbuf[testidx*k]); k 190 modules/ml/src/knearest.cpp float* nr = &rbuf[testidx*k]; k 192 modules/ml/src/knearest.cpp for( i = k; i > 0; i-- ) k 195 modules/ml/src/knearest.cpp if( i >= k ) k 198 modules/ml/src/knearest.cpp for( j = k-2; j >= i; j-- ) k 209 modules/ml/src/knearest.cpp float inv_scale = 1.f/k; k 216 modules/ml/src/knearest.cpp for( j = 0; j < k; j++ ) k 217 modules/ml/src/knearest.cpp nr[j] = rbuf[testidx*k + j]; k 225 modules/ml/src/knearest.cpp for( j = 0; j < k; j++ ) k 226 modules/ml/src/knearest.cpp dptr[j] = dbuf[testidx*k + j]; k 233 modules/ml/src/knearest.cpp if( !isclassifier || k == 1 ) k 236 modules/ml/src/knearest.cpp for( j = 0; j < k; j++ ) k 237 modules/ml/src/knearest.cpp s += rbuf[testidx*k + j]; k 242 modules/ml/src/knearest.cpp float* rp = rbuf + testidx*k; k 243 modules/ml/src/knearest.cpp for( j = k-1; j > 0; j-- ) k 261 modules/ml/src/knearest.cpp for( j = 1; j <= k; j++ ) k 263 modules/ml/src/knearest.cpp if( j == k || rp[j] != rp[j-1] ) k 289 modules/ml/src/knearest.cpp k = _k; k 302 modules/ml/src/knearest.cpp p->findNearestCore( *_samples, k, Range(start, std::min(start + delta, range.end)), k 308 modules/ml/src/knearest.cpp int k; k 316 modules/ml/src/knearest.cpp float findNearest( InputArray _samples, int k, k 322 modules/ml/src/knearest.cpp CV_Assert( 0 < k ); k 344 modules/ml/src/knearest.cpp _neighborResponses.create(testcount, k, CV_32F); k 349 modules/ml/src/knearest.cpp _dists.create(testcount, k, CV_32F); k 353 modules/ml/src/knearest.cpp findKNearestInvoker invoker(this, k, test_samples, pres, pnr, pd, &result); k 372 modules/ml/src/knearest.cpp float findNearest( InputArray _samples, int k, k 378 modules/ml/src/knearest.cpp CV_Assert( 0 < k ); k 400 modules/ml/src/knearest.cpp _neighborResponses.create(testcount, k, CV_32F); k 405 modules/ml/src/knearest.cpp _dists.create(testcount, k, CV_32F); k 424 modules/ml/src/knearest.cpp tr.findNearest(test_samples.row(i), k, Emax, _res, _nr, _d, noArray()); k 481 modules/ml/src/knearest.cpp float findNearest( InputArray samples, int k, k 486 modules/ml/src/knearest.cpp return impl->findNearest(samples, k, results, neighborResponses, dist); k 496 modules/ml/src/lr.cpp for(int k = 1;k<gradient.rows;k++) k 498 modules/ml/src/lr.cpp pcal_b = data_d(Range::all(), Range(k,k+1)); k 500 modules/ml/src/lr.cpp gradient.row(k) = (1.0/m)*sum(pcal_ab)[0] + (lambda_l/m) * theta_p.row(k); k 248 modules/ml/src/nbayes.cpp for(int k = range.start; k < range.end; k++ ) k 259 modules/ml/src/nbayes.cpp const float* x = samples->ptr<float>(k); k 282 modules/ml/src/nbayes.cpp results_prob->ptr<float>()[k*rpstep + i] = (float)probability; k 284 modules/ml/src/nbayes.cpp results_prob->ptr<double>()[k*rpstep + i] = probability; k 292 modules/ml/src/nbayes.cpp results->ptr<int>()[k*rstep] = ival; k 294 modules/ml/src/nbayes.cpp results->ptr<float>()[k*rstep] = (float)ival; k 315 modules/ml/src/precomp.hpp virtual void clusterCategories( const double* vectors, int n, int m, double* csums, int k, int* labels ); k 131 modules/ml/src/rtrees.cpp int i, j, k, vi, vi_, n = (int)w->sidx.size(); k 223 modules/ml/src/rtrees.cpp for( k = 1; k < nclasses; k++ ) k 224 modules/ml/src/rtrees.cpp if( votes[best_class] < votes[k] ) k 225 modules/ml/src/rtrees.cpp best_class = k; k 255 modules/ml/src/rtrees.cpp for( k = 0; k < nallvars; k++ ) k 256 modules/ml/src/rtrees.cpp sample.at<float>(k) = sample0.at<float>(k); k 303 modules/ml/src/rtrees.cpp int k, ntrees = (int)roots.size(); k 308 modules/ml/src/rtrees.cpp for( k = 0; k < ntrees; k++ ) k 311 modules/ml/src/rtrees.cpp writeTree(fs, roots[k]); k 169 modules/ml/src/svm.cpp int j, k; k 174 modules/ml/src/svm.cpp for( k = 0; k <= var_count - 4; k += 4 ) k 175 modules/ml/src/svm.cpp s += sample[k]*another[k] + sample[k+1]*another[k+1] + k 176 modules/ml/src/svm.cpp sample[k+2]*another[k+2] + sample[k+3]*another[k+3]; k 177 modules/ml/src/svm.cpp for( ; k < var_count; k++ ) k 178 modules/ml/src/svm.cpp s += sample[k]*another[k]; k 221 modules/ml/src/svm.cpp int j, k; k 228 modules/ml/src/svm.cpp for( k = 0; k <= var_count - 4; k += 4 ) k 230 modules/ml/src/svm.cpp double t0 = sample[k] - another[k]; k 231 modules/ml/src/svm.cpp double t1 = sample[k+1] - another[k+1]; k 235 modules/ml/src/svm.cpp t0 = sample[k+2] - another[k+2]; k 236 modules/ml/src/svm.cpp t1 = sample[k+3] - another[k+3]; k 241 modules/ml/src/svm.cpp for( ; k < var_count; k++ ) k 243 modules/ml/src/svm.cpp double t0 = sample[k] - another[k]; k 260 modules/ml/src/svm.cpp int j, k; k 265 modules/ml/src/svm.cpp for( k = 0; k <= var_count - 4; k += 4 ) k 266 modules/ml/src/svm.cpp s += std::min(sample[k],another[k]) + std::min(sample[k+1],another[k+1]) + k 267 modules/ml/src/svm.cpp std::min(sample[k+2],another[k+2]) + std::min(sample[k+3],another[k+3]); k 268 modules/ml/src/svm.cpp for( ; k < var_count; k++ ) k 269 modules/ml/src/svm.cpp s += std::min(sample[k],another[k]); k 280 modules/ml/src/svm.cpp int j, k; k 285 modules/ml/src/svm.cpp for(k = 0 ; k < var_count; k++ ) k 287 modules/ml/src/svm.cpp double d = sample[k]-another[k]; k 288 modules/ml/src/svm.cpp double devisor = sample[k]+another[k]; k 655 modules/ml/src/svm.cpp int i, j, k; k 780 modules/ml/src/svm.cpp for( k = 0; k < alpha_count; k++ ) k 781 modules/ml/src/svm.cpp G[k] += Q_i[k]*delta_alpha_i + Q_j[k]*delta_alpha_j; k 1360 modules/ml/src/svm.cpp int i, j, k, sample_count = _samples.rows; k 1393 modules/ml/src/svm.cpp for( i = k = 0; i < sample_count; i++ ) k 1397 modules/ml/src/svm.cpp _samples.row(i).copyTo(sv.row(k)); k 1398 modules/ml/src/svm.cpp df_alpha[k] = _alpha[i]; k 1399 modules/ml/src/svm.cpp df_index[k] = k; k 1400 modules/ml/src/svm.cpp k++; k 1473 modules/ml/src/svm.cpp for( k = 0; k < ci+cj; k++ ) k 1475 modules/ml/src/svm.cpp int idx = k < ci ? si+k : sj+k-ci; k 1476 modules/ml/src/svm.cpp memcpy(temp_samples.ptr(k), _samples.ptr(sidx_all[idx]), samplesize); k 1477 modules/ml/src/svm.cpp sidx[k] = sidx_all[idx]; k 1478 modules/ml/src/svm.cpp temp_y[k] = k < ci ? 1 : -1; k 1501 modules/ml/src/svm.cpp for( k = 0; k < ci + cj; k++ ) k 1503 modules/ml/src/svm.cpp if( std::abs(_alpha[k]) > 0 ) k 1505 modules/ml/src/svm.cpp int idx = k < ci ? si+k : sj+k-ci; k 1508 modules/ml/src/svm.cpp df_alpha.push_back(_alpha[k]); k 1515 modules/ml/src/svm.cpp for( i = 0, k = 0; i < sample_count; i++ ) k 1518 modules/ml/src/svm.cpp sv_tab[i] = ++k; k 1521 modules/ml/src/svm.cpp int sv_total = k; k 1573 modules/ml/src/svm.cpp int j, k, sv_count = getSVCount(i); k 1581 modules/ml/src/svm.cpp for( k = 0; k < var_count; k++ ) k 1582 modules/ml/src/svm.cpp v[k] += src[k]*a; k 1584 modules/ml/src/svm.cpp for( k = 0; k < var_count; k++ ) k 1585 modules/ml/src/svm.cpp dst[k] = (float)v[k]; k 1705 modules/ml/src/svm.cpp int i, j, k; k 1733 modules/ml/src/svm.cpp for( k = 0; k < k_fold; k++ ) k 1735 modules/ml/src/svm.cpp int b0 = ((k+1)*n0 + k_fold/2)/k_fold, b1 = ((k+1)*n1 + k_fold/2)/k_fold; k 1779 modules/ml/src/svm.cpp for( k = 0; k < k_fold; k++ ) k 1781 modules/ml/src/svm.cpp int start = (k*sample_count + k_fold/2)/k_fold; k 1846 modules/ml/src/svm.cpp int i, j, dfi, k, si; k 1884 modules/ml/src/svm.cpp for( k = 0; k < sv_count; k++ ) k 1885 modules/ml/src/svm.cpp sum += alpha[k]*buffer[sv_index[k]]; k 1891 modules/ml/src/svm.cpp for( i = 1, k = 0; i < class_count; i++ ) k 1893 modules/ml/src/svm.cpp if( vote[i] > vote[k] ) k 1894 modules/ml/src/svm.cpp k = i; k 1897 modules/ml/src/svm.cpp (float)sum : (float)(svm->class_labels.at<int>(k)); k 467 modules/ml/src/tree.cpp int i, j, k, n = (int)_sidx.size(), cv_n = params.getCVFolds(); k 497 modules/ml/src/tree.cpp for( k = 0; k < m; k++ ) k 498 modules/ml/src/tree.cpp cls_count[k] = 0; k 511 modules/ml/src/tree.cpp for( k = 0; k < m; k++ ) k 512 modules/ml/src/tree.cpp cv_cls_count[j*m + k] = 0; k 517 modules/ml/src/tree.cpp j = w->cv_labels[si]; k = w->cat_responses[si]; k 518 modules/ml/src/tree.cpp cv_cls_count[j*m + k] += w->sample_weights[si]; k 522 modules/ml/src/tree.cpp for( k = 0; k < m; k++ ) k 523 modules/ml/src/tree.cpp cls_count[k] += cv_cls_count[j*m + k]; k 526 modules/ml/src/tree.cpp for( k = 0; k < m; k++ ) k 528 modules/ml/src/tree.cpp double val = cls_count[k]; k 533 modules/ml/src/tree.cpp max_k = k; k 546 modules/ml/src/tree.cpp for( k = 0; k < m; k++ ) k 548 modules/ml/src/tree.cpp double val_k = cv_cls_count[j*m + k]; k 549 modules/ml/src/tree.cpp double val = cls_count[k] - val_k; k 556 modules/ml/src/tree.cpp max_k = k; k 714 modules/ml/src/tree.cpp void DTreesImpl::clusterCategories( const double* vectors, int n, int m, double* csums, int k, int* labels ) k 718 modules/ml/src/tree.cpp cv::AutoBuffer<double> buf(n + k); k 728 modules/ml/src/tree.cpp labels[i] = i < k ? i : r.uniform(0, k); k 746 modules/ml/src/tree.cpp for( i = 0; i < k; i++ ) k 767 modules/ml/src/tree.cpp for( i = 0; i < k; i++ ) k 784 modules/ml/src/tree.cpp for( idx = 0; idx < k; idx++ ) k 833 modules/ml/src/tree.cpp int i, j, k, si, idx; k 841 modules/ml/src/tree.cpp for( k = 0; k < m; k++ ) k 842 modules/ml/src/tree.cpp cjk[j*m + k] = 0; k 848 modules/ml/src/tree.cpp k = responses[si]; k 849 modules/ml/src/tree.cpp cjk[j*m + k] += weights[si]; k 875 modules/ml/src/tree.cpp for( k = 0; k < m; k++ ) k 879 modules/ml/src/tree.cpp sum += cjk[j*m + k]; k 881 modules/ml/src/tree.cpp rc[k] = sum; k 882 modules/ml/src/tree.cpp lc[k] = 0; k 888 modules/ml/src/tree.cpp for( k = 0; k < m; k++ ) k 889 modules/ml/src/tree.cpp sum += cjk[j*m + k]; k 921 modules/ml/src/tree.cpp for( k = 0; k < m; k++ ) k 923 modules/ml/src/tree.cpp double t = crow[k]; k 924 modules/ml/src/tree.cpp double lval = lc[k] + t; k 925 modules/ml/src/tree.cpp double rval = rc[k] - t; k 928 modules/ml/src/tree.cpp lc[k] = lval; rc[k] = rval; k 935 modules/ml/src/tree.cpp for( k = 0; k < m; k++ ) k 937 modules/ml/src/tree.cpp double t = crow[k]; k 938 modules/ml/src/tree.cpp double lval = lc[k] - t; k 939 modules/ml/src/tree.cpp double rval = rc[k] + t; k 942 modules/ml/src/tree.cpp lc[k] = lval; rc[k] = rval; k 65 modules/ml/test/test_mltests.cpp for (int k = 0; k < icount; k++) k 73 modules/ml/test/test_mltests.cpp res[k] = case_result; k 76 modules/ml/test/test_mltests.cpp for (int k = 0; k < icount; k++) k 78 modules/ml/test/test_mltests.cpp mean += res[k]; k 81 modules/ml/test/test_mltests.cpp for (int k = 0; k < icount; k++) k 83 modules/ml/test/test_mltests.cpp sigma += (res[k] - mean)*(res[k] - mean); k 129 modules/objdetect/src/cascadedetect_convert.cpp int i, j, k, n; k 161 modules/objdetect/src/cascadedetect_convert.cpp for( k = 0; k < nrects; k++ ) k 163 modules/objdetect/src/cascadedetect_convert.cpp FileNode rnode = rects_seq[k]; k 164 modules/objdetect/src/cascadedetect_convert.cpp f.rect[k].r.x = (int)rnode[0]; k 165 modules/objdetect/src/cascadedetect_convert.cpp f.rect[k].r.y = (int)rnode[1]; k 166 modules/objdetect/src/cascadedetect_convert.cpp f.rect[k].r.width = (int)rnode[2]; k 167 modules/objdetect/src/cascadedetect_convert.cpp f.rect[k].r.height = (int)rnode[3]; k 168 modules/objdetect/src/cascadedetect_convert.cpp f.rect[k].weight = (float)rnode[4]; k 230 modules/objdetect/src/cascadedetect_convert.cpp for( k = 0; k < nnodes; k++ ) k 231 modules/objdetect/src/cascadedetect_convert.cpp newfs << c.nodes[k].left << c.nodes[k].right k 232 modules/objdetect/src/cascadedetect_convert.cpp << c.nodes[k].f << c.nodes[k].threshold; k 234 modules/objdetect/src/cascadedetect_convert.cpp for( k = 0; k < nleaves; k++ ) k 235 modules/objdetect/src/cascadedetect_convert.cpp newfs << c.leaves[k]; k 920 modules/objdetect/src/detection_based_tracker.cpp int k=N-j-1; k 921 modules/objdetect/src/detection_based_tracker.cpp w += lastPositions[k].width * weightsSizesSmoothing[j]; k 922 modules/objdetect/src/detection_based_tracker.cpp h += lastPositions[k].height * weightsSizesSmoothing[j]; k 935 modules/objdetect/src/detection_based_tracker.cpp int k=N-j-1; k 936 modules/objdetect/src/detection_based_tracker.cpp Point tl(lastPositions[k].tl()); k 937 modules/objdetect/src/detection_based_tracker.cpp Point br(lastPositions[k].br()); k 951 modules/objdetect/src/detection_based_tracker.cpp int k=N-1; k 952 modules/objdetect/src/detection_based_tracker.cpp Point tl(lastPositions[k].tl()); k 953 modules/objdetect/src/detection_based_tracker.cpp Point br(lastPositions[k].br()); k 187 modules/objdetect/src/haar.cpp int i, j, k, l; k 236 modules/objdetect/src/haar.cpp for( k = 0; k < CV_HAAR_FEATURE_MAX; k++ ) k 238 modules/objdetect/src/haar.cpp if( classifier->haar_feature[l].rect[k].r.width ) k 240 modules/objdetect/src/haar.cpp CvRect r = classifier->haar_feature[l].rect[k].r; k 254 modules/objdetect/src/haar.cpp "the reference (original) cascade window", k, j, i ); k 510 modules/objdetect/src/haar.cpp int j, k, l; k 532 modules/objdetect/src/haar.cpp for( k = 0; k < CV_HAAR_FEATURE_MAX; k++ ) k 534 modules/objdetect/src/haar.cpp if( !hidfeature->rect[k].p0 ) k 536 modules/objdetect/src/haar.cpp r[k] = feature->rect[k].r; k 537 modules/objdetect/src/haar.cpp base_w = (int)CV_IMIN( (unsigned)base_w, (unsigned)(r[k].width-1) ); k 538 modules/objdetect/src/haar.cpp base_w = (int)CV_IMIN( (unsigned)base_w, (unsigned)(r[k].x - r[0].x-1) ); k 539 modules/objdetect/src/haar.cpp base_h = (int)CV_IMIN( (unsigned)base_h, (unsigned)(r[k].height-1) ); k 540 modules/objdetect/src/haar.cpp base_h = (int)CV_IMIN( (unsigned)base_h, (unsigned)(r[k].y - r[0].y-1) ); k 543 modules/objdetect/src/haar.cpp nr = k; k 564 modules/objdetect/src/haar.cpp for( k = 0; k < nr; k++ ) k 571 modules/objdetect/src/haar.cpp tr.x = (r[k].x - r[0].x) * new_base_w / base_w + x0; k 572 modules/objdetect/src/haar.cpp tr.width = r[k].width * new_base_w / base_w; k 576 modules/objdetect/src/haar.cpp tr.x = cvRound( r[k].x * scale ); k 577 modules/objdetect/src/haar.cpp tr.width = cvRound( r[k].width * scale ); k 582 modules/objdetect/src/haar.cpp tr.y = (r[k].y - r[0].y) * new_base_h / base_h + y0; k 583 modules/objdetect/src/haar.cpp tr.height = r[k].height * new_base_h / base_h; k 587 modules/objdetect/src/haar.cpp tr.y = cvRound( r[k].y * scale ); k 588 modules/objdetect/src/haar.cpp tr.height = cvRound( r[k].height * scale ); k 594 modules/objdetect/src/haar.cpp const float orig_feature_size = (float)(feature->rect[k].r.width)*feature->rect[k].r.height; k 610 modules/objdetect/src/haar.cpp hidfeature->rect[k].p0 = sum_elem_ptr(*sum, tr.y, tr.x); k 611 modules/objdetect/src/haar.cpp hidfeature->rect[k].p1 = sum_elem_ptr(*sum, tr.y, tr.x + tr.width); k 612 modules/objdetect/src/haar.cpp hidfeature->rect[k].p2 = sum_elem_ptr(*sum, tr.y + tr.height, tr.x); k 613 modules/objdetect/src/haar.cpp hidfeature->rect[k].p3 = sum_elem_ptr(*sum, tr.y + tr.height, tr.x + tr.width); k 617 modules/objdetect/src/haar.cpp hidfeature->rect[k].p2 = sum_elem_ptr(*tilted, tr.y + tr.width, tr.x + tr.width); k 618 modules/objdetect/src/haar.cpp hidfeature->rect[k].p3 = sum_elem_ptr(*tilted, tr.y + tr.width + tr.height, k 620 modules/objdetect/src/haar.cpp hidfeature->rect[k].p0 = sum_elem_ptr(*tilted, tr.y, tr.x); k 621 modules/objdetect/src/haar.cpp hidfeature->rect[k].p1 = sum_elem_ptr(*tilted, tr.y + tr.height, tr.x - tr.height); k 624 modules/objdetect/src/haar.cpp hidfeature->rect[k].weight = (float)(feature->rect[k].weight * correction_ratio); k 626 modules/objdetect/src/haar.cpp if( k == 0 ) k 629 modules/objdetect/src/haar.cpp sum0 += hidfeature->rect[k].weight * tr.width * tr.height; k 1241 modules/objdetect/src/haar.cpp int k = 0; k 1246 modules/objdetect/src/haar.cpp for( ; k < cascade->stage_classifier[i].count - 8; k += 8 ) k 1249 modules/objdetect/src/haar.cpp cascade->stage_classifier[i].classifier + k, k 1254 modules/objdetect/src/haar.cpp for(; k < cascade->stage_classifier[i].count; k++ ) k 1258 modules/objdetect/src/haar.cpp cascade->stage_classifier[i].classifier + k, k 1850 modules/objdetect/src/haar.cpp int k, rects = 0; k 1874 modules/objdetect/src/haar.cpp for( k = 0; k < rects; k++ ) k 1880 modules/objdetect/src/haar.cpp &(classifier->haar_feature[l].rect[k].weight), &dl ); k 1882 modules/objdetect/src/haar.cpp classifier->haar_feature[l].rect[k].r = r; k 1889 modules/objdetect/src/haar.cpp for( k = rects; k < CV_HAAR_FEATURE_MAX; k++ ) k 1891 modules/objdetect/src/haar.cpp memset( classifier->haar_feature[l].rect + k, 0, k 1892 modules/objdetect/src/haar.cpp sizeof(classifier->haar_feature[l].rect[k]) ); k 2061 modules/objdetect/src/haar.cpp int i, j, k, l; k 2145 modules/objdetect/src/haar.cpp for( k = 0, last_idx = 0; k < tree_fn->data.seq->total; ++k ) k 2156 modules/objdetect/src/haar.cpp k, i, j ); k 2163 modules/objdetect/src/haar.cpp "(stage %d, tree %d, node %d)", i, j, k ); k 2172 modules/objdetect/src/haar.cpp "(stage %d, tree %d, node %d)", i, j, k ); k 2185 modules/objdetect/src/haar.cpp "(stage %d, tree %d, node %d)", l, i, j, k ); k 2193 modules/objdetect/src/haar.cpp "(stage %d, tree %d, node %d, rect %d)", i, j, k, l ); k 2201 modules/objdetect/src/haar.cpp "(stage %d, tree %d, node %d, rect %d)", i, j, k, l ); k 2211 modules/objdetect/src/haar.cpp "(stage %d, tree %d, node %d, rect %d)", i, j, k, l ); k 2221 modules/objdetect/src/haar.cpp "(stage %d, tree %d, node %d, rect %d)", i, j, k, l ); k 2229 modules/objdetect/src/haar.cpp "(stage %d, tree %d, node %d, rect %d)", i, j, k, l ); k 2233 modules/objdetect/src/haar.cpp classifier->haar_feature[k].rect[l].weight = (float) fn->data.f; k 2234 modules/objdetect/src/haar.cpp classifier->haar_feature[k].rect[l].r = r; k 2240 modules/objdetect/src/haar.cpp classifier->haar_feature[k].rect[l].weight = 0; k 2241 modules/objdetect/src/haar.cpp classifier->haar_feature[k].rect[l].r = cvRect( 0, 0, 0, 0 ); k 2248 modules/objdetect/src/haar.cpp "(stage %d, tree %d, node %d)", i, j, k ); k 2251 modules/objdetect/src/haar.cpp classifier->haar_feature[k].tilted = ( fn->data.i != 0 ); k 2256 modules/objdetect/src/haar.cpp "(stage %d, tree %d, node %d)", i, j, k ); k 2259 modules/objdetect/src/haar.cpp classifier->threshold[k] = (float) fn->data.f; k 2263 modules/objdetect/src/haar.cpp if( !CV_NODE_IS_INT( fn->tag ) || fn->data.i <= k k 2267 modules/objdetect/src/haar.cpp "(stage %d, tree %d, node %d)", i, j, k ); k 2271 modules/objdetect/src/haar.cpp classifier->left[k] = fn->data.i; k 2279 modules/objdetect/src/haar.cpp "(stage %d, tree %d, node %d)", i, j, k ); k 2285 modules/objdetect/src/haar.cpp "(stage %d, tree %d, node %d)", i, j, k ); k 2292 modules/objdetect/src/haar.cpp "(stage %d, tree %d, node %d)", i, j, k ); k 2295 modules/objdetect/src/haar.cpp classifier->left[k] = -last_idx; k 2301 modules/objdetect/src/haar.cpp if( !CV_NODE_IS_INT( fn->tag ) || fn->data.i <= k k 2305 modules/objdetect/src/haar.cpp "(stage %d, tree %d, node %d)", i, j, k ); k 2309 modules/objdetect/src/haar.cpp classifier->right[k] = fn->data.i; k 2317 modules/objdetect/src/haar.cpp "(stage %d, tree %d, node %d)", i, j, k ); k 2323 modules/objdetect/src/haar.cpp "(stage %d, tree %d, node %d)", i, j, k ); k 2330 modules/objdetect/src/haar.cpp "(stage %d, tree %d, node %d)", i, j, k ); k 2333 modules/objdetect/src/haar.cpp classifier->right[k] = -last_idx; k 2396 modules/objdetect/src/haar.cpp int i, j, k, l; k 2426 modules/objdetect/src/haar.cpp for( k = 0; k < tree->count; ++k ) k 2428 modules/objdetect/src/haar.cpp CvHaarFeature* feature = &tree->haar_feature[k]; k 2431 modules/objdetect/src/haar.cpp if( k ) k 2433 modules/objdetect/src/haar.cpp sprintf( buf, "node %d", k ); k 2458 modules/objdetect/src/haar.cpp cvWriteReal( fs, ICV_HAAR_THRESHOLD_NAME, tree->threshold[k]); k 2460 modules/objdetect/src/haar.cpp if( tree->left[k] > 0 ) k 2462 modules/objdetect/src/haar.cpp cvWriteInt( fs, ICV_HAAR_LEFT_NODE_NAME, tree->left[k] ); k 2467 modules/objdetect/src/haar.cpp tree->alpha[-tree->left[k]] ); k 2470 modules/objdetect/src/haar.cpp if( tree->right[k] > 0 ) k 2472 modules/objdetect/src/haar.cpp cvWriteInt( fs, ICV_HAAR_RIGHT_NODE_NAME, tree->right[k] ); k 2477 modules/objdetect/src/haar.cpp tree->alpha[-tree->right[k]] ); k 2504 modules/objdetect/src/haar.cpp int i, j, k, n; k 2547 modules/objdetect/src/haar.cpp for( k = 0; k < classifier->count; ++k ) k 2549 modules/objdetect/src/haar.cpp classifier->haar_feature[k] = classifier_src->haar_feature[k]; k 2550 modules/objdetect/src/haar.cpp classifier->threshold[k] = classifier_src->threshold[k]; k 2551 modules/objdetect/src/haar.cpp classifier->left[k] = classifier_src->left[k]; k 2552 modules/objdetect/src/haar.cpp classifier->right[k] = classifier_src->right[k]; k 2553 modules/objdetect/src/haar.cpp classifier->alpha[k] = classifier_src->alpha[k]; k 129 modules/objdetect/src/hog.cpp for (size_t k = 0; k < block_hist_size; ++k) k 130 modules/objdetect/src/hog.cpp dst[k] = src[k]; k 793 modules/objdetect/src/hog.cpp int k, C1 = count1, C2 = count2, C4 = count4; k 802 modules/objdetect/src/hog.cpp for( k = 0; k < C1; k++ ) k 804 modules/objdetect/src/hog.cpp const PixData& pk = _pixData[k]; k 818 modules/objdetect/src/hog.cpp for( ; k < C2; k++ ) k 820 modules/objdetect/src/hog.cpp const PixData& pk = _pixData[k]; k 843 modules/objdetect/src/hog.cpp for( ; k < C2; k++ ) k 845 modules/objdetect/src/hog.cpp const PixData& pk = _pixData[k]; k 866 modules/objdetect/src/hog.cpp for( ; k < C4; k++ ) k 868 modules/objdetect/src/hog.cpp const PixData& pk = _pixData[k]; k 922 modules/objdetect/src/hog.cpp for( ; k < C4; k++ ) k 924 modules/objdetect/src/hog.cpp const PixData& pk = _pixData[k]; k 1088 modules/objdetect/src/hog.cpp ocl::Kernel k("compute_gradients_8UC1_kernel", ocl::objdetect::objdetect_hog_oclsrc); k 1089 modules/objdetect/src/hog.cpp if(k.empty()) k 1102 modules/objdetect/src/hog.cpp idx = k.set(idx, height); k 1103 modules/objdetect/src/hog.cpp idx = k.set(idx, width); k 1104 modules/objdetect/src/hog.cpp idx = k.set(idx, (int)img.step1()); k 1105 modules/objdetect/src/hog.cpp idx = k.set(idx, grad_quadstep); k 1106 modules/objdetect/src/hog.cpp idx = k.set(idx, qangle_step); k 1107 modules/objdetect/src/hog.cpp idx = k.set(idx, ocl::KernelArg::PtrReadOnly(img)); k 1108 modules/objdetect/src/hog.cpp idx = k.set(idx, ocl::KernelArg::PtrWriteOnly(grad)); k 1109 modules/objdetect/src/hog.cpp idx = k.set(idx, ocl::KernelArg::PtrWriteOnly(qangle)); k 1110 modules/objdetect/src/hog.cpp idx = k.set(idx, angle_scale); k 1111 modules/objdetect/src/hog.cpp idx = k.set(idx, correctGamma); k 1112 modules/objdetect/src/hog.cpp idx = k.set(idx, nbins); k 1114 modules/objdetect/src/hog.cpp return k.run(2, globalThreads, localThreads, false); k 1133 modules/objdetect/src/hog.cpp ocl::Kernel k("compute_hists_lut_kernel", ocl::objdetect::objdetect_hog_oclsrc); k 1134 modules/objdetect/src/hog.cpp if(k.empty()) k 1141 modules/objdetect/src/hog.cpp opts = cv::format("-D WAVE_SIZE=%d", k.preferedWorkGroupSizeMultiple()); k 1142 modules/objdetect/src/hog.cpp k.create("compute_hists_lut_kernel", ocl::objdetect::objdetect_hog_oclsrc, opts); k 1143 modules/objdetect/src/hog.cpp if(k.empty()) k 1164 modules/objdetect/src/hog.cpp idx = k.set(idx, block_stride_x); k 1165 modules/objdetect/src/hog.cpp idx = k.set(idx, block_stride_y); k 1166 modules/objdetect/src/hog.cpp idx = k.set(idx, nbins); k 1167 modules/objdetect/src/hog.cpp idx = k.set(idx, (int)block_hist_size); k 1168 modules/objdetect/src/hog.cpp idx = k.set(idx, img_block_width); k 1169 modules/objdetect/src/hog.cpp idx = k.set(idx, blocks_in_group); k 1170 modules/objdetect/src/hog.cpp idx = k.set(idx, blocks_total); k 1171 modules/objdetect/src/hog.cpp idx = k.set(idx, grad_quadstep); k 1172 modules/objdetect/src/hog.cpp idx = k.set(idx, qangle_step); k 1173 modules/objdetect/src/hog.cpp idx = k.set(idx, ocl::KernelArg::PtrReadOnly(grad)); k 1174 modules/objdetect/src/hog.cpp idx = k.set(idx, ocl::KernelArg::PtrReadOnly(qangle)); k 1175 modules/objdetect/src/hog.cpp idx = k.set(idx, ocl::KernelArg::PtrReadOnly(gauss_w_lut)); k 1176 modules/objdetect/src/hog.cpp idx = k.set(idx, ocl::KernelArg::PtrWriteOnly(block_hists)); k 1177 modules/objdetect/src/hog.cpp idx = k.set(idx, (void*)NULL, (size_t)smem); k 1179 modules/objdetect/src/hog.cpp return k.run(2, globalThreads, localThreads, false); k 1205 modules/objdetect/src/hog.cpp ocl::Kernel k; k 1208 modules/objdetect/src/hog.cpp k.create("normalize_hists_36_kernel", ocl::objdetect::objdetect_hog_oclsrc, ""); k 1209 modules/objdetect/src/hog.cpp if(k.empty()) k 1214 modules/objdetect/src/hog.cpp opts = cv::format("-D WAVE_SIZE=%d", k.preferedWorkGroupSizeMultiple()); k 1215 modules/objdetect/src/hog.cpp k.create("normalize_hists_36_kernel", ocl::objdetect::objdetect_hog_oclsrc, opts); k 1216 modules/objdetect/src/hog.cpp if(k.empty()) k 1227 modules/objdetect/src/hog.cpp k.create("normalize_hists_kernel", ocl::objdetect::objdetect_hog_oclsrc, ""); k 1228 modules/objdetect/src/hog.cpp if(k.empty()) k 1233 modules/objdetect/src/hog.cpp opts = cv::format("-D WAVE_SIZE=%d", k.preferedWorkGroupSizeMultiple()); k 1234 modules/objdetect/src/hog.cpp k.create("normalize_hists_kernel", ocl::objdetect::objdetect_hog_oclsrc, opts); k 1235 modules/objdetect/src/hog.cpp if(k.empty()) k 1246 modules/objdetect/src/hog.cpp idx = k.set(idx, nthreads); k 1247 modules/objdetect/src/hog.cpp idx = k.set(idx, block_hist_size); k 1248 modules/objdetect/src/hog.cpp idx = k.set(idx, img_block_width); k 1250 modules/objdetect/src/hog.cpp idx = k.set(idx, ocl::KernelArg::PtrReadWrite(block_hists)); k 1251 modules/objdetect/src/hog.cpp idx = k.set(idx, threshold); k 1252 modules/objdetect/src/hog.cpp idx = k.set(idx, (void*)NULL, nthreads * sizeof(float)); k 1254 modules/objdetect/src/hog.cpp return k.run(2, globalThreads, localThreads, false); k 1261 modules/objdetect/src/hog.cpp ocl::Kernel k("extract_descrs_by_rows_kernel", ocl::objdetect::objdetect_hog_oclsrc); k 1262 modules/objdetect/src/hog.cpp if(k.empty()) k 1278 modules/objdetect/src/hog.cpp idx = k.set(idx, block_hist_size); k 1279 modules/objdetect/src/hog.cpp idx = k.set(idx, descriptors_quadstep); k 1280 modules/objdetect/src/hog.cpp idx = k.set(idx, descr_size); k 1281 modules/objdetect/src/hog.cpp idx = k.set(idx, descr_width); k 1282 modules/objdetect/src/hog.cpp idx = k.set(idx, img_block_width); k 1283 modules/objdetect/src/hog.cpp idx = k.set(idx, win_block_stride_x); k 1284 modules/objdetect/src/hog.cpp idx = k.set(idx, win_block_stride_y); k 1285 modules/objdetect/src/hog.cpp idx = k.set(idx, ocl::KernelArg::PtrReadOnly(block_hists)); k 1286 modules/objdetect/src/hog.cpp idx = k.set(idx, ocl::KernelArg::PtrWriteOnly(descriptors)); k 1288 modules/objdetect/src/hog.cpp return k.run(2, globalThreads, localThreads, false); k 1295 modules/objdetect/src/hog.cpp ocl::Kernel k("extract_descrs_by_cols_kernel", ocl::objdetect::objdetect_hog_oclsrc); k 1296 modules/objdetect/src/hog.cpp if(k.empty()) k 1312 modules/objdetect/src/hog.cpp idx = k.set(idx, block_hist_size); k 1313 modules/objdetect/src/hog.cpp idx = k.set(idx, descriptors_quadstep); k 1314 modules/objdetect/src/hog.cpp idx = k.set(idx, descr_size); k 1315 modules/objdetect/src/hog.cpp idx = k.set(idx, nblocks_win_x); k 1316 modules/objdetect/src/hog.cpp idx = k.set(idx, nblocks_win_y); k 1317 modules/objdetect/src/hog.cpp idx = k.set(idx, img_block_width); k 1318 modules/objdetect/src/hog.cpp idx = k.set(idx, win_block_stride_x); k 1319 modules/objdetect/src/hog.cpp idx = k.set(idx, win_block_stride_y); k 1320 modules/objdetect/src/hog.cpp idx = k.set(idx, ocl::KernelArg::PtrReadOnly(block_hists)); k 1321 modules/objdetect/src/hog.cpp idx = k.set(idx, ocl::KernelArg::PtrWriteOnly(descriptors)); k 1323 modules/objdetect/src/hog.cpp return k.run(2, globalThreads, localThreads, false); k 1514 modules/objdetect/src/hog.cpp int j, k; k 1526 modules/objdetect/src/hog.cpp for( k = 4; k <= blockHistogramSize - 4; k += 4 ) k 1528 modules/objdetect/src/hog.cpp _vec = _mm_loadu_ps(vec + k); k 1529 modules/objdetect/src/hog.cpp _svmVec = _mm_loadu_ps(svmVec + k); k 1539 modules/objdetect/src/hog.cpp for( k = 0; k <= blockHistogramSize - 4; k += 4 ) k 1540 modules/objdetect/src/hog.cpp s += vec[k]*svmVec[k] + vec[k+1]*svmVec[k+1] + k 1541 modules/objdetect/src/hog.cpp vec[k+2]*svmVec[k+2] + vec[k+3]*svmVec[k+3]; k 1543 modules/objdetect/src/hog.cpp for( ; k < blockHistogramSize; k++ ) k 1544 modules/objdetect/src/hog.cpp s += vec[k]*svmVec[k]; k 1648 modules/objdetect/src/hog.cpp ocl::Kernel k; k 1654 modules/objdetect/src/hog.cpp k.create("classify_hists_180_kernel", ocl::objdetect::objdetect_hog_oclsrc, ""); k 1655 modules/objdetect/src/hog.cpp if(k.empty()) k 1660 modules/objdetect/src/hog.cpp opts = cv::format("-D WAVE_SIZE=%d", k.preferedWorkGroupSizeMultiple()); k 1661 modules/objdetect/src/hog.cpp k.create("classify_hists_180_kernel", ocl::objdetect::objdetect_hog_oclsrc, opts); k 1662 modules/objdetect/src/hog.cpp if(k.empty()) k 1664 modules/objdetect/src/hog.cpp idx = k.set(idx, descr_size.width); k 1665 modules/objdetect/src/hog.cpp idx = k.set(idx, descr_size.height); k 1670 modules/objdetect/src/hog.cpp k.create("classify_hists_252_kernel", ocl::objdetect::objdetect_hog_oclsrc, ""); k 1671 modules/objdetect/src/hog.cpp if(k.empty()) k 1676 modules/objdetect/src/hog.cpp opts = cv::format("-D WAVE_SIZE=%d", k.preferedWorkGroupSizeMultiple()); k 1677 modules/objdetect/src/hog.cpp k.create("classify_hists_252_kernel", ocl::objdetect::objdetect_hog_oclsrc, opts); k 1678 modules/objdetect/src/hog.cpp if(k.empty()) k 1680 modules/objdetect/src/hog.cpp idx = k.set(idx, descr_size.width); k 1681 modules/objdetect/src/hog.cpp idx = k.set(idx, descr_size.height); k 1686 modules/objdetect/src/hog.cpp k.create("classify_hists_kernel", ocl::objdetect::objdetect_hog_oclsrc, ""); k 1687 modules/objdetect/src/hog.cpp if(k.empty()) k 1692 modules/objdetect/src/hog.cpp opts = cv::format("-D WAVE_SIZE=%d", k.preferedWorkGroupSizeMultiple()); k 1693 modules/objdetect/src/hog.cpp k.create("classify_hists_kernel", ocl::objdetect::objdetect_hog_oclsrc, opts); k 1694 modules/objdetect/src/hog.cpp if(k.empty()) k 1696 modules/objdetect/src/hog.cpp idx = k.set(idx, descr_size.area()); k 1697 modules/objdetect/src/hog.cpp idx = k.set(idx, descr_size.height); k 1710 modules/objdetect/src/hog.cpp idx = k.set(idx, block_hist_size); k 1711 modules/objdetect/src/hog.cpp idx = k.set(idx, img_win_width); k 1712 modules/objdetect/src/hog.cpp idx = k.set(idx, img_block_width); k 1713 modules/objdetect/src/hog.cpp idx = k.set(idx, win_block_stride_x); k 1714 modules/objdetect/src/hog.cpp idx = k.set(idx, win_block_stride_y); k 1715 modules/objdetect/src/hog.cpp idx = k.set(idx, ocl::KernelArg::PtrReadOnly(block_hists)); k 1716 modules/objdetect/src/hog.cpp idx = k.set(idx, ocl::KernelArg::PtrReadOnly(detector)); k 1717 modules/objdetect/src/hog.cpp idx = k.set(idx, free_coef); k 1718 modules/objdetect/src/hog.cpp idx = k.set(idx, threshold); k 1719 modules/objdetect/src/hog.cpp idx = k.set(idx, ocl::KernelArg::PtrWriteOnly(labels)); k 1721 modules/objdetect/src/hog.cpp return k.run(2, globalThreads, localThreads, false); k 3378 modules/objdetect/src/hog.cpp int j, k; k 3392 modules/objdetect/src/hog.cpp for( k = 4; k <= blockHistogramSize - 4; k += 4 ) k 3394 modules/objdetect/src/hog.cpp _vec = _mm_loadu_ps(vec + k); k 3395 modules/objdetect/src/hog.cpp _svmVec = _mm_loadu_ps(svmVec + k); k 3405 modules/objdetect/src/hog.cpp for( k = 0; k <= blockHistogramSize - 4; k += 4 ) k 3406 modules/objdetect/src/hog.cpp s += vec[k]*svmVec[k] + vec[k+1]*svmVec[k+1] + k 3407 modules/objdetect/src/hog.cpp vec[k+2]*svmVec[k+2] + vec[k+3]*svmVec[k+3]; k 3409 modules/objdetect/src/hog.cpp for( ; k < blockHistogramSize; k++ ) k 3410 modules/objdetect/src/hog.cpp s += vec[k]*svmVec[k]; k 854 modules/objdetect/test/test_cascadeandhog.cpp int k, C1 = count1, C2 = count2, C4 = count4; k 859 modules/objdetect/test/test_cascadeandhog.cpp for( k = 0; k < blockHistogramSize; k++ ) k 860 modules/objdetect/test/test_cascadeandhog.cpp blockHist[k] = 0.f; k 864 modules/objdetect/test/test_cascadeandhog.cpp for( k = 0; k < C1; k++ ) k 866 modules/objdetect/test/test_cascadeandhog.cpp const PixData& pk = _pixData[k]; k 877 modules/objdetect/test/test_cascadeandhog.cpp for( ; k < C2; k++ ) k 879 modules/objdetect/test/test_cascadeandhog.cpp const PixData& pk = _pixData[k]; k 898 modules/objdetect/test/test_cascadeandhog.cpp for( ; k < C4; k++ ) k 900 modules/objdetect/test/test_cascadeandhog.cpp const PixData& pk = _pixData[k]; k 1053 modules/objdetect/test/test_cascadeandhog.cpp int j, k; k 1060 modules/objdetect/test/test_cascadeandhog.cpp for( k = 0; k <= blockHistogramSize - 4; k += 4 ) k 1061 modules/objdetect/test/test_cascadeandhog.cpp s += vec[k]*svmVec[k] + vec[k+1]*svmVec[k+1] + k 1062 modules/objdetect/test/test_cascadeandhog.cpp vec[k+2]*svmVec[k+2] + vec[k+3]*svmVec[k+3]; k 1063 modules/objdetect/test/test_cascadeandhog.cpp for( ; k < blockHistogramSize; k++ ) k 1064 modules/objdetect/test/test_cascadeandhog.cpp s += vec[k]*svmVec[k]; k 1162 modules/objdetect/test/test_cascadeandhog.cpp for( int k = 0; k < blockHistogramSize; k++ ) k 1163 modules/objdetect/test/test_cascadeandhog.cpp dst[k] = src[k]; k 66 modules/photo/src/fast_nlmeans_denoising_opencl.hpp ocl::Kernel k("calcAlmostDist2Weight", ocl::photo::nlmeans_oclsrc, k 73 modules/photo/src/fast_nlmeans_denoising_opencl.hpp if (k.empty()) k 76 modules/photo/src/fast_nlmeans_denoising_opencl.hpp k.args(ocl::KernelArg::PtrWriteOnly(almostDist2Weight), almostMaxDist, k 81 modules/photo/src/fast_nlmeans_denoising_opencl.hpp return k.run(1, globalsize, NULL, false); k 127 modules/photo/src/fast_nlmeans_denoising_opencl.hpp ocl::Kernel k("fastNlMeansDenoising", ocl::photo::nlmeans_oclsrc, opts); k 128 modules/photo/src/fast_nlmeans_denoising_opencl.hpp if (k.empty()) k 171 modules/photo/src/fast_nlmeans_denoising_opencl.hpp k.args(ocl::KernelArg::ReadOnlyNoSize(srcex), ocl::KernelArg::WriteOnly(dst), k 176 modules/photo/src/fast_nlmeans_denoising_opencl.hpp if (!k.run(2, globalsize, localsize, false)) return false; k 283 modules/photo/src/inpaint.cpp int i = 0, j = 0, ii = 0, jj = 0, k, l, q, color = 0; k 335 modules/photo/src/inpaint.cpp for (k=i-range; k<=i+range; k++) { k 336 modules/photo/src/inpaint.cpp int km=k-1+(k==1),kp=k-1-(k==t->rows-2); k 339 modules/photo/src/inpaint.cpp if (k>0&&l>0&&k<t->rows-1&&l<t->cols-1) { k 340 modules/photo/src/inpaint.cpp if ((CV_MAT_ELEM(*f,uchar,k,l)!=INSIDE)&& k 341 modules/photo/src/inpaint.cpp ((l-j)*(l-j)+(k-i)*(k-i)<=range*range)) { k 342 modules/photo/src/inpaint.cpp r.y = (float)(i-k); k 346 modules/photo/src/inpaint.cpp lev = (float)(1./(1+fabs(CV_MAT_ELEM(*t,float,k,l)-CV_MAT_ELEM(*t,float,i,j)))); k 352 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,k,l+1)!=INSIDE) { k 353 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,k,l-1)!=INSIDE) { k 359 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,k,l-1)!=INSIDE) { k 365 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,k+1,l)!=INSIDE) { k 366 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,k-1,l)!=INSIDE) { k 372 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,k-1,l)!=INSIDE) { k 447 modules/photo/src/inpaint.cpp for (k=i-range; k<=i+range; k++) { k 448 modules/photo/src/inpaint.cpp int km=k-1+(k==1),kp=k-1-(k==t->rows-2); k 451 modules/photo/src/inpaint.cpp if (k>0&&l>0&&k<t->rows-1&&l<t->cols-1) { k 452 modules/photo/src/inpaint.cpp if ((CV_MAT_ELEM(*f,uchar,k,l)!=INSIDE)&& k 453 modules/photo/src/inpaint.cpp ((l-j)*(l-j)+(k-i)*(k-i)<=range*range)) { k 454 modules/photo/src/inpaint.cpp r.y = (float)(i-k); k 458 modules/photo/src/inpaint.cpp lev = (float)(1./(1+fabs(CV_MAT_ELEM(*t,float,k,l)-CV_MAT_ELEM(*t,float,i,j)))); k 464 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,k,l+1)!=INSIDE) { k 465 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,k,l-1)!=INSIDE) { k 471 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,k,l-1)!=INSIDE) { k 477 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,k+1,l)!=INSIDE) { k 478 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,k-1,l)!=INSIDE) { k 484 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,k-1,l)!=INSIDE) { k 515 modules/photo/src/inpaint.cpp int i = 0, j = 0, ii = 0, jj = 0, k, l, q, color = 0; k 541 modules/photo/src/inpaint.cpp for (k=i-range; k<=i+range; k++) { k 542 modules/photo/src/inpaint.cpp int km=k-1+(k==1),kp=k-1-(k==f->rows-2); k 545 modules/photo/src/inpaint.cpp if (k>0&&l>0&&k<f->rows-1&&l<f->cols-1) { k 546 modules/photo/src/inpaint.cpp if ((CV_MAT_ELEM(*f,uchar,k,l)!=INSIDE)&& k 547 modules/photo/src/inpaint.cpp ((l-j)*(l-j)+(k-i)*(k-i)<=range*range)) { k 548 modules/photo/src/inpaint.cpp r.y=(float)(k-i); k 553 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,k+1,l)!=INSIDE) { k 554 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,k-1,l)!=INSIDE) { k 561 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,k-1,l)!=INSIDE) { k 567 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,k,l+1)!=INSIDE) { k 568 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,k,l-1)!=INSIDE) { k 575 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,k,l-1)!=INSIDE) { k 629 modules/photo/src/inpaint.cpp for (k=i-range; k<=i+range; k++) { k 630 modules/photo/src/inpaint.cpp int km=k-1+(k==1),kp=k-1-(k==t->rows-2); k 633 modules/photo/src/inpaint.cpp if (k>0&&l>0&&k<t->rows-1&&l<t->cols-1) { k 634 modules/photo/src/inpaint.cpp if ((CV_MAT_ELEM(*f,uchar,k,l)!=INSIDE)&& k 635 modules/photo/src/inpaint.cpp ((l-j)*(l-j)+(k-i)*(k-i)<=range*range)) { k 636 modules/photo/src/inpaint.cpp r.y=(float)(i-k); k 641 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,k+1,l)!=INSIDE) { k 642 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,k-1,l)!=INSIDE) { k 649 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,k-1,l)!=INSIDE) { k 655 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,k,l+1)!=INSIDE) { k 656 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,k,l-1)!=INSIDE) { k 663 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,k,l-1)!=INSIDE) { k 270 modules/photo/src/npr.hpp for(int k=(int) temp_lower_idx.at<float>(0,j-1);k<w+1;k++) k 272 modules/photo/src/npr.hpp if(domain_row.at<float>(0,k) > lower_pos_row.at<float>(0,j)) k 283 modules/photo/src/npr.hpp for(int k=(int) temp_upper_idx.at<float>(0,j-1);k<w+1;k++) k 287 modules/photo/src/npr.hpp if(domain_row.at<float>(0,k) > upper_pos_row.at<float>(0,j)) k 417 modules/photo/src/npr.hpp for(int j = 0,k=1; j < w-1; j++,k++) k 420 modules/photo/src/npr.hpp distx.at<float>(i,k) = k 421 modules/photo/src/npr.hpp distx.at<float>(i,k) + abs(derivx.at<float>(i,j*channel+c)); k 424 modules/photo/src/npr.hpp for(int i = 0,k=1; i < h-1; i++,k++) k 428 modules/photo/src/npr.hpp disty.at<float>(k,j) = k 429 modules/photo/src/npr.hpp disty.at<float>(k,j) + abs(derivy.at<float>(i,j*channel+c)); k 577 modules/photo/src/npr.hpp for(int k=0;k<h;k++) k 579 modules/photo/src/npr.hpp pen_res.at<float>(k,j) = (shade_factor * (penx.at<float>(k,j) + peny_t.at<float>(k,j))); k 1034 modules/python/src2/cv2.cpp String k = PyString_AsString(key); k 1038 modules/python/src2/cv2.cpp p.setString(k, value); k 1041 modules/python/src2/cv2.cpp p.setBool(k, item == Py_True); k 1045 modules/python/src2/cv2.cpp if( strcmp(k.c_str(), "algorithm") == 0 ) k 1048 modules/python/src2/cv2.cpp p.setInt(k, value); k 1053 modules/python/src2/cv2.cpp p.setDouble(k, value); k 475 modules/shape/src/emdL1.cpp for(int k=0;k<nNB;k++) k 479 modules/shape/src/emdL1.cpp if(k==0 && c>0) pNxtN = &(m_Nodes[r][c-1]); // left k 480 modules/shape/src/emdL1.cpp else if(k==1 && r>0) pNxtN = &(m_Nodes[r-1][c]); // down k 481 modules/shape/src/emdL1.cpp else if(k==2 && c<binsDim2-1) pNxtN = &(m_Nodes[r][c+1]); // right k 482 modules/shape/src/emdL1.cpp else if(k==3 && r<binsDim1-1) pNxtN = &(m_Nodes[r+1][c]); // up k 487 modules/shape/src/emdL1.cpp if(k==0 && c>0) pNxtN = &(m_3dNodes[r][c-1][z]); // left k 488 modules/shape/src/emdL1.cpp else if(k==1 && c<binsDim2-1) pNxtN = &(m_3dNodes[r][c+1][z]); // right k 489 modules/shape/src/emdL1.cpp else if(k==2 && r>0) pNxtN = &(m_3dNodes[r-1][c][z]); // down k 490 modules/shape/src/emdL1.cpp else if(k==3 && r<binsDim1-1) pNxtN = &(m_3dNodes[r+1][c][z]); // up k 491 modules/shape/src/emdL1.cpp else if(k==4 && z>0) pNxtN = &(m_3dNodes[r][c][z-1]); // shallow k 492 modules/shape/src/emdL1.cpp else if(k==5 && z<binsDim3-1) pNxtN = &(m_3dNodes[r][c][z+1]); // deep k 553 modules/shape/src/emdL1.cpp for(int k=0; k<nNBV; ++k) k 555 modules/shape/src/emdL1.cpp pE = m_NBVEdges[k]; k 560 modules/shape/src/emdL1.cpp m_iEnter= k; k 569 modules/shape/src/emdL1.cpp m_iEnter= k; k 596 modules/shape/src/emdL1.cpp int k; k 597 modules/shape/src/emdL1.cpp for(k=0; k<m_iFrom; k++) k 599 modules/shape/src/emdL1.cpp pE = m_fromLoop[k]; k 603 modules/shape/src/emdL1.cpp for(k=0; k<m_iTo; k++) k 605 modules/shape/src/emdL1.cpp pE = m_toLoop[k]; k 285 modules/shape/src/hist_cost.cpp for (int k=0; k<sig1.rows; k++) k 287 modules/shape/src/hist_cost.cpp sig1.at<float>(k,1)=float(k); k 289 modules/shape/src/hist_cost.cpp for (int k=0; k<sig2.rows; k++) k 291 modules/shape/src/hist_cost.cpp sig2.at<float>(k,1)=float(k); k 404 modules/shape/src/hist_cost.cpp for(int k=0; k<scd2.cols; k++) k 406 modules/shape/src/hist_cost.cpp float resta=scd1.at<float>(i,k)-scd2.at<float>(j,k); k 407 modules/shape/src/hist_cost.cpp float suma=scd1.at<float>(i,k)+scd2.at<float>(j,k); k 508 modules/shape/src/sc_dis.cpp int i=0, imin=0, numfree=0, prvnumfree=0, f=0, i0=0, k=0, freerow=0; k 569 modules/shape/src/sc_dis.cpp k=0; k 572 modules/shape/src/sc_dis.cpp while (k < prvnumfree) k 574 modules/shape/src/sc_dis.cpp i=free[k]; k 575 modules/shape/src/sc_dis.cpp k++; k 621 modules/shape/src/sc_dis.cpp free[--k] = i0; k 653 modules/shape/src/sc_dis.cpp for (k = up; k < costMatrix.rows; k++) k 655 modules/shape/src/sc_dis.cpp j = collist[k]; k 664 modules/shape/src/sc_dis.cpp collist[k] = collist[up]; k 668 modules/shape/src/sc_dis.cpp for (k=low; k<up; k++) k 670 modules/shape/src/sc_dis.cpp if (colsol[collist[k]] < 0) k 672 modules/shape/src/sc_dis.cpp endofpath = collist[k]; k 687 modules/shape/src/sc_dis.cpp for (k = up; k < costMatrix.rows; k++) k 689 modules/shape/src/sc_dis.cpp j = collist[k]; k 705 modules/shape/src/sc_dis.cpp collist[k] = collist[up]; k 716 modules/shape/src/sc_dis.cpp for (k = 0; k <= last; k++) k 718 modules/shape/src/sc_dis.cpp j1 = collist[k]; k 131 modules/stitching/include/opencv2/stitching/detail/warpers.hpp float k[9]; k 162 modules/stitching/src/autocalib.cpp for (int k = 0; k < m; ++k) k 164 modules/stitching/src/autocalib.cpp Mat_<double> H(Hs_[k]); k 258 modules/stitching/src/blenders.cpp ocl::Kernel k("feed", ocl::stitching::multibandblend_oclsrc, buildOptions); k 259 modules/stitching/src/blenders.cpp if (k.empty()) k 264 modules/stitching/src/blenders.cpp k.args(ocl::KernelArg::ReadOnly(src), k 271 modules/stitching/src/blenders.cpp return k.run(2, globalsize, NULL, false); k 462 modules/stitching/src/blenders.cpp ocl::Kernel k("normalizeUsingWeightMap", ocl::stitching::multibandblend_oclsrc, buildOptions); k 463 modules/stitching/src/blenders.cpp if (k.empty()) k 468 modules/stitching/src/blenders.cpp k.args(ocl::KernelArg::ReadWrite(mat), k 473 modules/stitching/src/blenders.cpp return k.run(2, globalsize, NULL, false); k 66 modules/stitching/src/camera.cpp Mat_<double> k = Mat::eye(3, 3, CV_64F); k 67 modules/stitching/src/camera.cpp k(0,0) = focal; k(0,2) = ppx; k 68 modules/stitching/src/camera.cpp k(1,1) = focal * aspect; k(1,2) = ppy; k 69 modules/stitching/src/camera.cpp return k; k 377 modules/stitching/src/motion_estimators.cpp for (size_t k = 0; k < matches_info.matches.size(); ++k) k 379 modules/stitching/src/motion_estimators.cpp if (!matches_info.inliers_mask[k]) k 382 modules/stitching/src/motion_estimators.cpp const DMatch& m = matches_info.matches[k]; k 547 modules/stitching/src/motion_estimators.cpp for (size_t k = 0; k < matches_info.matches.size(); ++k) k 549 modules/stitching/src/motion_estimators.cpp if (!matches_info.inliers_mask[k]) k 552 modules/stitching/src/motion_estimators.cpp const DMatch& m = matches_info.matches[k]; k 58 modules/stitching/src/warpers.cpp k[0] = K_(0,0); k[1] = K_(0,1); k[2] = K_(0,2); k 59 modules/stitching/src/warpers.cpp k[3] = K_(1,0); k[4] = K_(1,1); k[5] = K_(1,2); k 60 modules/stitching/src/warpers.cpp k[6] = K_(2,0); k[7] = K_(2,1); k[8] = K_(2,2); k 115 modules/stitching/src/warpers.cpp ocl::Kernel k("buildWarpPlaneMaps", ocl::stitching::warpers_oclsrc); k 116 modules/stitching/src/warpers.cpp if (!k.empty()) k 123 modules/stitching/src/warpers.cpp k.args(ocl::KernelArg::WriteOnlyNoSize(uxmap), ocl::KernelArg::WriteOnly(uymap), k 128 modules/stitching/src/warpers.cpp if (k.run(2, globalsize, NULL, true)) k 237 modules/stitching/src/warpers.cpp float x_ = (projector_.k[0] * x + projector_.k[1] * y) / z + projector_.k[2]; k 238 modules/stitching/src/warpers.cpp float y_ = projector_.k[4] * y / z + projector_.k[5]; k 251 modules/stitching/src/warpers.cpp float x_ = (projector_.k[0] * x + projector_.k[1] * y) / z + projector_.k[2]; k 252 modules/stitching/src/warpers.cpp float y_ = projector_.k[4] * y / z + projector_.k[5]; k 280 modules/stitching/src/warpers.cpp float x_ = (projector_.k[0] * x + projector_.k[1] * y) / z + projector_.k[2]; k 281 modules/stitching/src/warpers.cpp float y_ = projector_.k[4] * y / z + projector_.k[5]; k 294 modules/stitching/src/warpers.cpp float x_ = (projector_.k[0] * x + projector_.k[1] * y) / z + projector_.k[2]; k 295 modules/stitching/src/warpers.cpp float y_ = projector_.k[4] * y / z + projector_.k[5]; k 315 modules/stitching/src/warpers.cpp ocl::Kernel k("buildWarpSphericalMaps", ocl::stitching::warpers_oclsrc); k 316 modules/stitching/src/warpers.cpp if (!k.empty()) k 331 modules/stitching/src/warpers.cpp k.args(ocl::KernelArg::WriteOnlyNoSize(uxmap), ocl::KernelArg::WriteOnly(uymap), k 335 modules/stitching/src/warpers.cpp if (k.run(2, globalsize, NULL, true)) k 363 modules/stitching/src/warpers.cpp ocl::Kernel k("buildWarpCylindricalMaps", ocl::stitching::warpers_oclsrc); k 364 modules/stitching/src/warpers.cpp if (!k.empty()) k 379 modules/stitching/src/warpers.cpp k.args(ocl::KernelArg::WriteOnlyNoSize(uxmap), ocl::KernelArg::WriteOnly(uymap), k 384 modules/stitching/src/warpers.cpp if (k.run(2, globalsize, NULL, true)) k 171 modules/superres/src/btv_l1.cpp ocl::Kernel k("buildMotionMaps", ocl::superres::superres_btvl1_oclsrc); k 172 modules/superres/src/btv_l1.cpp if (k.empty()) k 183 modules/superres/src/btv_l1.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(forwardMotion), k 189 modules/superres/src/btv_l1.cpp return k.run(2, globalsize, NULL, false); k 248 modules/superres/src/btv_l1.cpp ocl::Kernel k("upscale", ocl::superres::superres_btvl1_oclsrc, k 250 modules/superres/src/btv_l1.cpp if (k.empty()) k 258 modules/superres/src/btv_l1.cpp k.args(ocl::KernelArg::ReadOnly(src), k 262 modules/superres/src/btv_l1.cpp return k.run(2, globalsize, NULL, false); k 306 modules/superres/src/btv_l1.cpp ocl::Kernel k("diffSign", ocl::superres::superres_btvl1_oclsrc); k 307 modules/superres/src/btv_l1.cpp if (k.empty()) k 315 modules/superres/src/btv_l1.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(src1), k 320 modules/superres/src/btv_l1.cpp return k.run(2, globalsize, NULL, false); k 424 modules/superres/src/btv_l1.cpp ocl::Kernel k("calcBtvRegularization", ocl::superres::superres_btvl1_oclsrc, k 426 modules/superres/src/btv_l1.cpp if (k.empty()) k 436 modules/superres/src/btv_l1.cpp k.args(ocl::KernelArg::ReadOnlyNoSize(src), ocl::KernelArg::WriteOnly(dst), k 440 modules/superres/src/btv_l1.cpp return k.run(2, globalsize, NULL, false); k 619 modules/superres/src/btv_l1.cpp for (size_t k = 0; k < src.size(); ++k) k 622 modules/superres/src/btv_l1.cpp remap(uhighRes_, ua_, ubackwardMaps_[k], noArray(), INTER_NEAREST); k 628 modules/superres/src/btv_l1.cpp diffSign(src[k], uc_, uc_); k 636 modules/superres/src/btv_l1.cpp remap(ub_, ua_, uforwardMaps_[k], noArray(), INTER_NEAREST); k 720 modules/superres/src/btv_l1.cpp for (size_t k = 0; k < src.size(); ++k) k 723 modules/superres/src/btv_l1.cpp remap(highRes_, a_, backwardMaps_[k], noArray(), INTER_NEAREST); k 729 modules/superres/src/btv_l1.cpp diffSign(src[k], c_, c_); k 736 modules/superres/src/btv_l1.cpp remap(b_, a_, forwardMaps_[k], noArray(), INTER_NEAREST); k 1046 modules/superres/src/btv_l1.cpp for (int i = startIdx, k = 0; i <= endIdx; ++i, ++k) k 1049 modules/superres/src/btv_l1.cpp baseIdx = k; k 1051 modules/superres/src/btv_l1.cpp usrcFrames_[k] = at(i, uframes_); k 1054 modules/superres/src/btv_l1.cpp usrcForwardMotions_[k] = at(i, uforwardMotions_); k 1056 modules/superres/src/btv_l1.cpp usrcBackwardMotions_[k] = at(i, ubackwardMotions_); k 1083 modules/superres/src/btv_l1.cpp for (int i = startIdx, k = 0; i <= endIdx; ++i, ++k) k 1086 modules/superres/src/btv_l1.cpp baseIdx = k; k 1088 modules/superres/src/btv_l1.cpp srcFrames_[k] = at(i, frames_); k 1091 modules/superres/src/btv_l1.cpp srcForwardMotions_[k] = at(i, forwardMotions_); k 1093 modules/superres/src/btv_l1.cpp srcBackwardMotions_[k] = at(i, backwardMotions_); k 357 modules/superres/src/btv_l1_cuda.cpp for (size_t k = 0; k < src.size(); ++k) k 360 modules/superres/src/btv_l1_cuda.cpp cuda::remap(highRes_, a_[k], backwardMaps_[k].first, backwardMaps_[k].second, INTER_NEAREST, BORDER_REPLICATE, Scalar(), streams_[k]); k 362 modules/superres/src/btv_l1_cuda.cpp filters_[k]->apply(a_[k], b_[k], streams_[k]); k 364 modules/superres/src/btv_l1_cuda.cpp cuda::resize(b_[k], c_[k], lowResSize, 0, 0, INTER_NEAREST, streams_[k]); k 366 modules/superres/src/btv_l1_cuda.cpp diffSign(src[k], c_[k], c_[k], streams_[k]); k 369 modules/superres/src/btv_l1_cuda.cpp upscale(c_[k], a_[k], scale_, streams_[k]); k 371 modules/superres/src/btv_l1_cuda.cpp filters_[k]->apply(a_[k], b_[k], streams_[k]); k 373 modules/superres/src/btv_l1_cuda.cpp cuda::remap(b_[k], diffTerms_[k], forwardMaps_[k].first, forwardMaps_[k].second, INTER_NEAREST, BORDER_REPLICATE, Scalar(), streams_[k]); k 382 modules/superres/src/btv_l1_cuda.cpp for (size_t k = 0; k < src.size(); ++k) k 384 modules/superres/src/btv_l1_cuda.cpp streams_[k].waitForCompletion(); k 385 modules/superres/src/btv_l1_cuda.cpp cuda::addWeighted(highRes_, 1.0, diffTerms_[k], tau_, 0.0, highRes_); k 559 modules/superres/src/btv_l1_cuda.cpp for (int i = startIdx, k = 0; i <= endIdx; ++i, ++k) k 562 modules/superres/src/btv_l1_cuda.cpp baseIdx = k; k 564 modules/superres/src/btv_l1_cuda.cpp srcFrames_[k] = at(i, frames_); k 567 modules/superres/src/btv_l1_cuda.cpp srcForwardMotions_[k] = at(i, forwardMotions_); k 569 modules/superres/src/btv_l1_cuda.cpp srcBackwardMotions_[k] = at(i, backwardMotions_); k 127 modules/ts/include/opencv2/ts.hpp CV_EXPORTS void initUndistortMap( const Mat& a, const Mat& k, Size sz, Mat& mapx, Mat& mapy ); k 68 modules/ts/include/opencv2/ts/cuda_perf.hpp #define GET_PARAM(k) std::tr1::get< k >(GetParam()) k 212 modules/ts/include/opencv2/ts/cuda_test.hpp #define GET_PARAM(k) std::tr1::get< k >(GetParam()) k 329 modules/ts/include/opencv2/ts/ocl_test.hpp #define GET_PARAM(k) std::tr1::get< k >(GetParam()) k 825 modules/ts/include/opencv2/ts/ts_gtest.h template <int k> class Get; k 895 modules/ts/include/opencv2/ts/ts_gtest.h template <int k> friend class gtest_internal::Get; k 927 modules/ts/include/opencv2/ts/ts_gtest.h template <int k> friend class gtest_internal::Get; k 970 modules/ts/include/opencv2/ts/ts_gtest.h template <int k> friend class gtest_internal::Get; k 1007 modules/ts/include/opencv2/ts/ts_gtest.h template <int k> friend class gtest_internal::Get; k 1048 modules/ts/include/opencv2/ts/ts_gtest.h template <int k> friend class gtest_internal::Get; k 1092 modules/ts/include/opencv2/ts/ts_gtest.h template <int k> friend class gtest_internal::Get; k 1139 modules/ts/include/opencv2/ts/ts_gtest.h template <int k> friend class gtest_internal::Get; k 1188 modules/ts/include/opencv2/ts/ts_gtest.h template <int k> friend class gtest_internal::Get; k 1240 modules/ts/include/opencv2/ts/ts_gtest.h template <int k> friend class gtest_internal::Get; k 1294 modules/ts/include/opencv2/ts/ts_gtest.h template <int k> friend class gtest_internal::Get; k 1475 modules/ts/include/opencv2/ts/ts_gtest.h template <int k, class Tuple> k 1481 modules/ts/include/opencv2/ts/ts_gtest.h #define GTEST_TUPLE_ELEMENT_(k, Tuple) typename tuple_element<k, Tuple >::type k 1609 modules/ts/include/opencv2/ts/ts_gtest.h template <int k, GTEST_10_TYPENAMES_(T)> k 1610 modules/ts/include/opencv2/ts/ts_gtest.h GTEST_ADD_REF_(GTEST_TUPLE_ELEMENT_(k, GTEST_10_TUPLE_(T))) k 1612 modules/ts/include/opencv2/ts/ts_gtest.h return gtest_internal::Get<k>::Field(t); k 1615 modules/ts/include/opencv2/ts/ts_gtest.h template <int k, GTEST_10_TYPENAMES_(T)> k 1616 modules/ts/include/opencv2/ts/ts_gtest.h GTEST_BY_REF_(GTEST_TUPLE_ELEMENT_(k, GTEST_10_TUPLE_(T))) k 1618 modules/ts/include/opencv2/ts/ts_gtest.h return gtest_internal::Get<k>::ConstField(t); k 1642 modules/ts/include/opencv2/ts/ts_gtest.h template <int k> k 1643 modules/ts/include/opencv2/ts/ts_gtest.h struct SameSizeTuplePrefixComparator<k, k> { k 1646 modules/ts/include/opencv2/ts/ts_gtest.h return SameSizeTuplePrefixComparator<k - 1, k - 1>::Eq(t1, t2) && k 1647 modules/ts/include/opencv2/ts/ts_gtest.h ::std::tr1::get<k - 1>(t1) == ::std::tr1::get<k - 1>(t2); k 69 modules/ts/src/ts_func.cpp int k = rng.uniform(0, dims); k 70 modules/ts/src/ts_func.cpp std::swap(sz[j], sz[k]); k 205 modules/ts/src/ts_func.cpp size_t k, n = (j2 - j)*cn; k 211 modules/ts/src/ts_func.cpp for( k = 0; k < n; k++ ) k 212 modules/ts/src/ts_func.cpp aptr[k] += gptr[k]; k 221 modules/ts/src/ts_func.cpp for( k = 0; k < n; k++ ) k 222 modules/ts/src/ts_func.cpp aptr[k] += bptr[k] + gptr[k]; k 225 modules/ts/src/ts_func.cpp for( k = 0; k < n; k++ ) k 226 modules/ts/src/ts_func.cpp aptr[k] = fabs(aptr[k]); k 361 modules/ts/src/ts_func.cpp size_t j, k, elemSize = src.elemSize(), total = planes[0].total(); k 373 modules/ts/src/ts_func.cpp for( k = 0; k < elemSize; k++ ) k 374 modules/ts/src/ts_func.cpp dptr[k] = sptr[k]; k 392 modules/ts/src/ts_func.cpp size_t j, k, elemSize = dst.elemSize(), planeSize = plane.total()*elemSize; k 394 modules/ts/src/ts_func.cpp for( k = 1; k < elemSize; k++ ) k 395 modules/ts/src/ts_func.cpp if( gptr[k] != gptr[0] ) k 397 modules/ts/src/ts_func.cpp bool uniform = k >= elemSize; k 407 modules/ts/src/ts_func.cpp for( k = 0; k < elemSize; k++ ) k 408 modules/ts/src/ts_func.cpp dptr[k] = gptr[k]; k 422 modules/ts/src/ts_func.cpp size_t j, k, elemSize = dst.elemSize(), total = planes[0].total(); k 433 modules/ts/src/ts_func.cpp for( k = 0; k < elemSize; k++ ) k 434 modules/ts/src/ts_func.cpp dptr[k] = gptr[k]; k 449 modules/ts/src/ts_func.cpp size_t j, k, size0 = src.elemSize(), size1 = dst.elemSize(), total = planes[0].total(); k 458 modules/ts/src/ts_func.cpp for( k = 0; k < size0; k++ ) k 459 modules/ts/src/ts_func.cpp dptr[k] = sptr[k]; k 474 modules/ts/src/ts_func.cpp size_t j, k, size0 = src.elemSize(), size1 = dst.elemSize(), total = planes[0].total(); k 483 modules/ts/src/ts_func.cpp for( k = 0; k < size1; k++ ) k 484 modules/ts/src/ts_func.cpp dptr[k] = sptr[k]; k 494 modules/ts/src/ts_func.cpp int i, j, k, esz = (int)src.elemSize(); k 503 modules/ts/src/ts_func.cpp for( k = 0; k < esz; k++ ) k 504 modules/ts/src/ts_func.cpp dptr[k] = sptr[k]; k 514 modules/ts/src/ts_func.cpp for( int k = 0; k < cn; k++ ) k 516 modules/ts/src/ts_func.cpp int val = cvFloor( randInt(rng)*scale[k] + delta[k] ); k 517 modules/ts/src/ts_func.cpp data[i + k] = saturate_cast<_Tp>(val); k 526 modules/ts/src/ts_func.cpp for( int k = 0; k < cn; k++ ) k 528 modules/ts/src/ts_func.cpp double val = randReal(rng)*scale[k] + delta[k]; k 529 modules/ts/src/ts_func.cpp data[i + k] = saturate_cast<_Tp>(val); k 540 modules/ts/src/ts_func.cpp for( int k = 0; k < 4; k++ ) k 542 modules/ts/src/ts_func.cpp double s = scale.val[k] - delta.val[k]; k 544 modules/ts/src/ts_func.cpp scale.val[k] = s; k 547 modules/ts/src/ts_func.cpp delta.val[k] = scale.val[k]; k 548 modules/ts/src/ts_func.cpp scale.val[k] = -s; k 550 modules/ts/src/ts_func.cpp scale.val[k] *= C; k 872 modules/ts/src/ts_func.cpp int i, j, k, esz = (int)src.elemSize(); k 918 modules/ts/src/ts_func.cpp for( k = 0; k < esz; k++ ) k 919 modules/ts/src/ts_func.cpp ltab[i*esz + k] = j + k; k 924 modules/ts/src/ts_func.cpp for( k = 0; k < esz; k++ ) k 925 modules/ts/src/ts_func.cpp rtab[i*esz + k] = j + k; k 952 modules/ts/src/ts_func.cpp for( k = 0; k < width1; k++ ) k 953 modules/ts/src/ts_func.cpp dptr[k] = sptr[k]; k 962 modules/ts/src/ts_func.cpp for( k = 0; k < width1; k++ ) k 963 modules/ts/src/ts_func.cpp dptr[k] = sptr[k]; k 2172 modules/ts/src/ts_func.cpp for( int k = 0; k < a_cols; k++ ) k 2184 modules/ts/src/ts_func.cpp for( int k = 0; k < a_cols; k++ ) k 2280 modules/ts/src/ts_func.cpp for( int k = 0; k < scn; k++ ) k 2281 modules/ts/src/ts_func.cpp s += mat[j*(scn + 1) + k]*sptr[k]; k 2773 modules/ts/src/ts_func.cpp double a[9], k[5]={0,0,0,0,0}; k 2775 modules/ts/src/ts_func.cpp Mat _k(_k0.rows,_k0.cols, CV_MAKETYPE(CV_64F,_k0.channels()),k); k 2793 modules/ts/src/ts_func.cpp double cdist = 1 + (k[0] + (k[1] + k[4]*r2)*r2)*r2; k 2794 modules/ts/src/ts_func.cpp double x1 = x*cdist + k[2]*2*x*y + k[3]*(r2 + 2*x2); k 2795 modules/ts/src/ts_func.cpp double y1 = y*cdist + k[3]*2*x*y + k[2]*(r2 + 2*y2); k 634 modules/video/src/bgfg_gaussmix2.cpp float k = alphaT/weight; k 638 modules/video/src/bgfg_gaussmix2.cpp mean_m[c] -= k*dData[c]; k 641 modules/video/src/bgfg_gaussmix2.cpp float varnew = var + k*(dist2-var); k 130 modules/video/src/lkpyramid.cpp for( int k = 0; k < cn; k++ ) k 132 modules/video/src/lkpyramid.cpp trow0[-cn + k] = trow0[x0 + k]; trow0[colsn + k] = trow0[x1 + k]; k 133 modules/video/src/lkpyramid.cpp trow1[-cn + k] = trow1[x0 + k]; trow1[colsn + k] = trow1[x1 + k]; k 1365 modules/video/src/lkpyramid.cpp int i, j, k, k1; k 1427 modules/video/src/lkpyramid.cpp for( i = 0, k = 0; i < count_y; i++ ) k 1428 modules/video/src/lkpyramid.cpp for( j = 0; j < count_x; j++, k++ ) k 1430 modules/video/src/lkpyramid.cpp pA[k].x = (j+0.5f)*sz1.width/count_x; k 1431 modules/video/src/lkpyramid.cpp pA[k].y = (i+0.5f)*sz1.height/count_y; k 1439 modules/video/src/lkpyramid.cpp for( i = 0, k = 0; i < count; i++ ) k 1442 modules/video/src/lkpyramid.cpp if( i > k ) k 1444 modules/video/src/lkpyramid.cpp pA[k] = pA[i]; k 1445 modules/video/src/lkpyramid.cpp pB[k] = pB[i]; k 1447 modules/video/src/lkpyramid.cpp k++; k 1449 modules/video/src/lkpyramid.cpp count = k; k 1465 modules/video/src/lkpyramid.cpp for( k = 0; k < RANSAC_MAX_ITERS; k++ ) k 1540 modules/video/src/lkpyramid.cpp if( k >= RANSAC_MAX_ITERS ) k 118 modules/video/src/optflowgf.cpp int k, x, y; k 147 modules/video/src/optflowgf.cpp for( k = 1; k <= n; k++ ) k 149 modules/video/src/optflowgf.cpp g0 = g[k]; g1 = xg[k]; g2 = xxg[k]; k 150 modules/video/src/optflowgf.cpp srow0 = src.ptr<float>(std::max(y-k,0)); k 151 modules/video/src/optflowgf.cpp srow1 = src.ptr<float>(std::min(y+k,height-1)); k 180 modules/video/src/optflowgf.cpp for( k = 1; k <= n; k++ ) k 182 modules/video/src/optflowgf.cpp double tg = row[(x+k)*3] + row[(x-k)*3]; k 183 modules/video/src/optflowgf.cpp g0 = g[k]; k 185 modules/video/src/optflowgf.cpp b4 += tg*xxg[k]; k 186 modules/video/src/optflowgf.cpp b2 += (row[(x+k)*3] - row[(x-k)*3])*xg[k]; k 187 modules/video/src/optflowgf.cpp b3 += (row[(x+k)*3+1] + row[(x-k)*3+1])*g0; k 188 modules/video/src/optflowgf.cpp b6 += (row[(x+k)*3+1] - row[(x-k)*3+1])*xg[k]; k 189 modules/video/src/optflowgf.cpp b5 += (row[(x+k)*3+2] + row[(x-k)*3+2])*g0; k 658 modules/video/src/optflowgf.cpp for (int k = numLevelsCropped; k >= 0; k--) k 661 modules/video/src/optflowgf.cpp for (int i = 0; i < k; i++) k 673 modules/video/src/optflowgf.cpp width = pyramid0_[k].cols; k 674 modules/video/src/optflowgf.cpp height = pyramid0_[k].rows; k 677 modules/video/src/optflowgf.cpp if (k > 0) k 721 modules/video/src/optflowgf.cpp if (!polynomialExpansionOcl(pyramid0_[k], R[0])) k 723 modules/video/src/optflowgf.cpp if (!polynomialExpansionOcl(pyramid1_[k], R[1])) k 1093 modules/video/src/optflowgf.cpp int i, k; k 1102 modules/video/src/optflowgf.cpp for( k = 0, scale = 1; k < levels; k++ ) k 1109 modules/video/src/optflowgf.cpp levels = k; k 1111 modules/video/src/optflowgf.cpp for( k = levels; k >= 0; k-- ) k 1113 modules/video/src/optflowgf.cpp for( i = 0, scale = 1; i < k; i++ ) k 1123 modules/video/src/optflowgf.cpp if( k > 0 ) k 130 modules/video/test/test_ecc.cpp for (int k=from; k<ntests; k++){ k 132 modules/video/test/test_ecc.cpp ts->update_context( this, k, true ); k 133 modules/video/test/test_ecc.cpp progress = update_progress(progress, k, ntests, 0); k 204 modules/video/test/test_ecc.cpp for (int k=from; k<ntests; k++){ k 205 modules/video/test/test_ecc.cpp ts->update_context( this, k, true ); k 206 modules/video/test/test_ecc.cpp progress = update_progress(progress, k, ntests, 0); k 278 modules/video/test/test_ecc.cpp for (int k=from; k<ntests; k++){ k 279 modules/video/test/test_ecc.cpp ts->update_context( this, k, true ); k 280 modules/video/test/test_ecc.cpp progress = update_progress(progress, k, ntests, 0); k 354 modules/video/test/test_ecc.cpp for (int k=from; k<ntests; k++){ k 355 modules/video/test/test_ecc.cpp ts->update_context( this, k, true ); k 356 modules/video/test/test_ecc.cpp progress = update_progress(progress, k, ntests, 0); k 430 modules/video/test/test_ecc.cpp for (int k=from; k<ntests; k++){ k 432 modules/video/test/test_ecc.cpp ts->update_context( this, k, true ); k 433 modules/video/test/test_ecc.cpp progress = update_progress(progress, k, ntests, 0); k 88 modules/video/test/test_estimaterigid.cpp int k, ntests = 10000; k 90 modules/video/test/test_estimaterigid.cpp for( k = from; k < ntests; k++ ) k 92 modules/video/test/test_estimaterigid.cpp ts->update_context( this, k, true ); k 93 modules/video/test/test_estimaterigid.cpp progress = update_progress(progress, k, ntests, 0); k 102 modules/video/test/test_kalman.cpp for(int k=0; k<Dim; k++) k 104 modules/video/test/test_kalman.cpp t += Dyn.data.fl[j*Dim+k]*Sample->data.fl[k]; k 881 modules/videoio/src/cap_dc1394_v2.cpp int k, j; k 883 modules/videoio/src/cap_dc1394_v2.cpp for( k = 0; k < 2; k++ ) k 885 modules/videoio/src/cap_dc1394_v2.cpp const char* section_name = k == 0 ? "[left_camera]" : "[right_camera]"; k 888 modules/videoio/src/cap_dc1394_v2.cpp CvMat* intrinsic = k == 0 ? &l_intrinsic : &r_intrinsic; k 889 modules/videoio/src/cap_dc1394_v2.cpp CvMat* distortion = k == 0 ? &l_distortion : &r_distortion; k 890 modules/videoio/src/cap_dc1394_v2.cpp CvMat* rectification = k == 0 ? &l_rect : &r_rect; k 891 modules/videoio/src/cap_dc1394_v2.cpp IplImage** dst = k == 0 ? ml : mr; k 928 modules/videoio/src/cap_dc1394_v2.cpp return k >= 2; k 272 modules/videoio/src/cap_mjpeg_encoder.cpp int i, k; k 277 modules/videoio/src/cap_mjpeg_encoder.cpp for( i = 1, k = 1; src[k] >= 0; i++ ) k 279 modules/videoio/src/cap_mjpeg_encoder.cpp int code_count = src[k++]; k 281 modules/videoio/src/cap_mjpeg_encoder.cpp for( code_count += k; k < code_count; k++ ) k 283 modules/videoio/src/cap_mjpeg_encoder.cpp int val = src[k] >> huff_val_shift; k 304 modules/videoio/src/cap_mjpeg_encoder.cpp for( i = 1, k = 1; src[k] >= 0; i++ ) k 306 modules/videoio/src/cap_mjpeg_encoder.cpp int code_count = src[k++]; k 308 modules/videoio/src/cap_mjpeg_encoder.cpp for( code_count += k; k < code_count; k++ ) k 310 modules/videoio/src/cap_mjpeg_encoder.cpp int val = src[k] >> huff_val_shift; k 311 modules/videoio/src/cap_mjpeg_encoder.cpp int code = src[k] & huff_code_mask; k 330 modules/videoio/src/cap_mjpeg_encoder.cpp for (int k = 0; k < code_count; k++) k 332 modules/videoio/src/cap_mjpeg_encoder.cpp dst[k + 1] = (src[val_idx + k] << huff_val_shift) | (code + k); k 466 modules/videoio/test/test_video_io.cpp for (int k = 0; k < img.rows; ++k) k 468 modules/videoio/test/test_video_io.cpp if (img.at<Vec3b>(k, l) == Vec3b::all(0)) k 469 modules/videoio/test/test_video_io.cpp img.at<Vec3b>(k, l) = Vec3b(0, 255, 0); k 470 modules/videoio/test/test_video_io.cpp else img.at<Vec3b>(k, l) = Vec3b(0, 0, 255); k 129 modules/videoio/test/test_video_pos.cpp for (int k = 0; k < n_frames; ++k) k 92 modules/videostab/src/deblurring.cpp for (int k = idx - radius_; k <= idx + radius_; ++k) k 94 modules/videostab/src/deblurring.cpp const Mat &neighbor = at(k, *frames_); k 95 modules/videostab/src/deblurring.cpp float bRatio = at(idx, *blurrinessRates_) / at(k, *blurrinessRates_); k 96 modules/videostab/src/deblurring.cpp Mat_<float> M = getMotion(idx, k, *motions_); k 348 modules/videostab/src/global_motion.cpp for (int i = 0, k = 0; i < 2; ++i) k 349 modules/videostab/src/global_motion.cpp for (int j = 0; j < 3; ++j, ++k) k 350 modules/videostab/src/global_motion.cpp M(i,j) = sol(k,0); k 70 modules/videostab/src/motion_stabilizing.cpp for (int k = 0; k < size; ++k) k 71 modules/videostab/src/motion_stabilizing.cpp stabilizationMotions[k] = stabilizationMotions_[k] * stabilizationMotions[k]; k 61 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Processor.java int k = i * GRID_SIZE + j; k 62 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Processor.java mCells15[k] = mRgba15.submat(i * height / GRID_SIZE, (i + 1) * height / GRID_SIZE, j * width / GRID_SIZE, (j + 1) * width / GRID_SIZE); k 86 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Processor.java int k = i * GRID_SIZE + j; k 87 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Processor.java cells[k] = inputPicture.submat(i * inputPicture.rows() / GRID_SIZE, (i + 1) * inputPicture.rows() / GRID_SIZE, j * inputPicture.cols()/ GRID_SIZE, (j + 1) * inputPicture.cols() / GRID_SIZE); k 177 samples/cpp/3calibration.cpp int i, k; k 248 samples/cpp/3calibration.cpp for( k = 0; k < 3; k++ ) k 250 samples/cpp/3calibration.cpp cameraMatrix[k] = Mat_<double>::eye(3,3); k 251 samples/cpp/3calibration.cpp cameraMatrix[k].at<double>(0,0) = aspectRatio; k 252 samples/cpp/3calibration.cpp cameraMatrix[k].at<double>(1,1) = 1; k 253 samples/cpp/3calibration.cpp distCoeffs[k] = Mat_<double>::zeros(5,1); k 260 samples/cpp/3calibration.cpp for( k = 0; k < 3; k++ ) k 261 samples/cpp/3calibration.cpp imgpt[k].resize(imageList.size()/3); k 265 samples/cpp/3calibration.cpp for( k = 0; k < 3; k++ ) k 267 samples/cpp/3calibration.cpp int k1 = k == 0 ? 2 : k == 1 ? 0 : 1; k 268 samples/cpp/3calibration.cpp printf("%s\n", imageList[i*3+k].c_str()); k 269 samples/cpp/3calibration.cpp view = imread(imageList[i*3+k], 1); k 343 samples/cpp/3calibration.cpp for( k = 0; k < 3; k++ ) k 344 samples/cpp/3calibration.cpp initUndistortRectifyMap(cameraMatrix[k], distCoeffs[k], R[k], P[k], imageSize, CV_16SC2, map1[k], map2[k]); k 353 samples/cpp/3calibration.cpp for( k = 0; k < 3; k++ ) k 355 samples/cpp/3calibration.cpp int k1 = k == 0 ? 2 : k == 1 ? 0 : 1; k 356 samples/cpp/3calibration.cpp int k2 = k == 0 ? 1 : k == 1 ? 0 : 2; k 357 samples/cpp/3calibration.cpp view = imread(imageList[i*3+k], 1); k 367 samples/cpp/3calibration.cpp for( k = 0; k < small_canvas.rows; k += 16 ) k 368 samples/cpp/3calibration.cpp line(small_canvas, Point(0, k), Point(small_canvas.cols, k), Scalar(0,255,0), 1); k 98 samples/cpp/bgfg_segm.cpp char k = (char)waitKey(30); k 99 samples/cpp/bgfg_segm.cpp if( k == 27 ) break; k 100 samples/cpp/bgfg_segm.cpp if( k == ' ' ) k 239 samples/cpp/cloning_gui.cpp for(int i=miny, k=minyd;i<(miny+leny);i++,k++) k 244 samples/cpp/cloning_gui.cpp final1.at<uchar>(k,l*channel+c) = final.at<uchar>(i,j*channel+c); k 84 samples/cpp/contours2.cpp for( size_t k = 0; k < contours0.size(); k++ ) k 85 samples/cpp/contours2.cpp approxPolyDP(Mat(contours0[k]), contours[k], 3, true); k 190 samples/cpp/detect_blob.cpp for (vector<KeyPoint>::iterator k = keyImg.begin(); k != keyImg.end(); k++, i++) k 191 samples/cpp/detect_blob.cpp circle(result, k->pt, (int)k->size, palette[i % 65536]); k 35 samples/cpp/kmeans.cpp int k, clusterCount = rng.uniform(2, MAX_CLUSTERS+1); k 43 samples/cpp/kmeans.cpp for( k = 0; k < clusterCount; k++ ) k 48 samples/cpp/kmeans.cpp Mat pointChunk = points.rowRange(k*sampleCount/clusterCount, k 49 samples/cpp/kmeans.cpp k == clusterCount - 1 ? sampleCount : k 50 samples/cpp/kmeans.cpp (k+1)*sampleCount/clusterCount); k 233 samples/cpp/letter_recog.cpp int i, j, k; k 308 samples/cpp/letter_recog.cpp for( k = 0; k < var_count; k++ ) k 309 samples/cpp/letter_recog.cpp tptr[k] = ptr[k]; k 94 samples/cpp/lkdemo.cpp size_t i, k; k 95 samples/cpp/lkdemo.cpp for( i = k = 0; i < points[1].size(); i++ ) k 109 samples/cpp/lkdemo.cpp points[1][k++] = points[1][i]; k 112 samples/cpp/lkdemo.cpp points[1].resize(k); k 76 samples/cpp/stereo_calib.cpp int i, j, k, nimages = (int)imagelist.size()/2; k 84 samples/cpp/stereo_calib.cpp for( k = 0; k < 2; k++ ) k 86 samples/cpp/stereo_calib.cpp const string& filename = imagelist[i*2+k]; k 98 samples/cpp/stereo_calib.cpp vector<Point2f>& corners = imagePoints[k][j]; k 139 samples/cpp/stereo_calib.cpp if( k == 2 ) k 161 samples/cpp/stereo_calib.cpp for( k = 0; k < boardSize.width; k++ ) k 162 samples/cpp/stereo_calib.cpp objectPoints[i].push_back(Point3f(k*squareSize, j*squareSize, 0)); k 196 samples/cpp/stereo_calib.cpp for( k = 0; k < 2; k++ ) k 198 samples/cpp/stereo_calib.cpp imgpt[k] = Mat(imagePoints[k][i]); k 199 samples/cpp/stereo_calib.cpp undistortPoints(imgpt[k], imgpt[k], cameraMatrix[k], distCoeffs[k], Mat(), cameraMatrix[k]); k 200 samples/cpp/stereo_calib.cpp computeCorrespondEpilines(imgpt[k], k+1, F, lines[k]); k 263 samples/cpp/stereo_calib.cpp for( k = 0; k < 2; k++ ) k 266 samples/cpp/stereo_calib.cpp std::copy(imagePoints[k][i].begin(), imagePoints[k][i].end(), back_inserter(allimgpt[k])); k 302 samples/cpp/stereo_calib.cpp for( k = 0; k < 2; k++ ) k 304 samples/cpp/stereo_calib.cpp Mat img = imread(goodImageList[i*2+k], 0), rimg, cimg; k 305 samples/cpp/stereo_calib.cpp remap(img, rimg, rmap[k][0], rmap[k][1], INTER_LINEAR); k 307 samples/cpp/stereo_calib.cpp Mat canvasPart = !isVerticalStereo ? canvas(Rect(w*k, 0, w, h)) : canvas(Rect(0, h*k, w, h)); k 311 samples/cpp/stereo_calib.cpp Rect vroi(cvRound(validRoi[k].x*sf), cvRound(validRoi[k].y*sf), k 312 samples/cpp/stereo_calib.cpp cvRound(validRoi[k].width*sf), cvRound(validRoi[k].height*sf)); k 61 samples/cpp/tutorial_code/TrackingMotion/cornerHarris_Demo.cpp double k = 0.04; k 64 samples/cpp/tutorial_code/TrackingMotion/cornerHarris_Demo.cpp cornerHarris( src_gray, dst, blockSize, apertureSize, k, BORDER_DEFAULT ); k 66 samples/cpp/tutorial_code/TrackingMotion/cornerSubPix_Demo.cpp double k = 0.04; k 81 samples/cpp/tutorial_code/TrackingMotion/cornerSubPix_Demo.cpp k ); k 66 samples/cpp/tutorial_code/TrackingMotion/goodFeaturesToTrack_Demo.cpp double k = 0.04; k 81 samples/cpp/tutorial_code/TrackingMotion/goodFeaturesToTrack_Demo.cpp k ); k 238 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp for(int i=miny, k=minyd;i<(miny+leny);i++,k++) k 243 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp final1.at<uchar>(k,l*channel+c) = final.at<uchar>(i,j*channel+c); k 36 samples/cpp/tvl1_optical_flow.cpp int k = 0; k 38 samples/cpp/tvl1_optical_flow.cpp for (int i = 0; i < RY; ++i, ++k) k 39 samples/cpp/tvl1_optical_flow.cpp colorWheel[k] = Vec3i(255, 255 * i / RY, 0); k 41 samples/cpp/tvl1_optical_flow.cpp for (int i = 0; i < YG; ++i, ++k) k 42 samples/cpp/tvl1_optical_flow.cpp colorWheel[k] = Vec3i(255 - 255 * i / YG, 255, 0); k 44 samples/cpp/tvl1_optical_flow.cpp for (int i = 0; i < GC; ++i, ++k) k 45 samples/cpp/tvl1_optical_flow.cpp colorWheel[k] = Vec3i(0, 255, 255 * i / GC); k 47 samples/cpp/tvl1_optical_flow.cpp for (int i = 0; i < CB; ++i, ++k) k 48 samples/cpp/tvl1_optical_flow.cpp colorWheel[k] = Vec3i(0, 255 - 255 * i / CB, 255); k 50 samples/cpp/tvl1_optical_flow.cpp for (int i = 0; i < BM; ++i, ++k) k 51 samples/cpp/tvl1_optical_flow.cpp colorWheel[k] = Vec3i(255 * i / BM, 0, 255); k 53 samples/cpp/tvl1_optical_flow.cpp for (int i = 0; i < MR; ++i, ++k) k 54 samples/cpp/tvl1_optical_flow.cpp colorWheel[k] = Vec3i(255, 0, 255 - 255 * i / MR); k 38 samples/gpu/optical_flow.cpp int k = 0; k 40 samples/gpu/optical_flow.cpp for (int i = 0; i < RY; ++i, ++k) k 41 samples/gpu/optical_flow.cpp colorWheel[k] = Vec3i(255, 255 * i / RY, 0); k 43 samples/gpu/optical_flow.cpp for (int i = 0; i < YG; ++i, ++k) k 44 samples/gpu/optical_flow.cpp colorWheel[k] = Vec3i(255 - 255 * i / YG, 255, 0); k 46 samples/gpu/optical_flow.cpp for (int i = 0; i < GC; ++i, ++k) k 47 samples/gpu/optical_flow.cpp colorWheel[k] = Vec3i(0, 255, 255 * i / GC); k 49 samples/gpu/optical_flow.cpp for (int i = 0; i < CB; ++i, ++k) k 50 samples/gpu/optical_flow.cpp colorWheel[k] = Vec3i(0, 255 - 255 * i / CB, 255); k 52 samples/gpu/optical_flow.cpp for (int i = 0; i < BM; ++i, ++k) k 53 samples/gpu/optical_flow.cpp colorWheel[k] = Vec3i(255 * i / BM, 0, 255); k 55 samples/gpu/optical_flow.cpp for (int i = 0; i < MR; ++i, ++k) k 56 samples/gpu/optical_flow.cpp colorWheel[k] = Vec3i(255, 0, 255 - 255 * i / MR);