i 28 3rdparty/include/ffmpeg_/libavutil/intfloat.h uint32_t i; i 33 3rdparty/include/ffmpeg_/libavutil/intfloat.h uint64_t i; i 40 3rdparty/include/ffmpeg_/libavutil/intfloat.h static av_always_inline float av_int2float(uint32_t i) i 43 3rdparty/include/ffmpeg_/libavutil/intfloat.h v.i = i; i 54 3rdparty/include/ffmpeg_/libavutil/intfloat.h return v.i; i 60 3rdparty/include/ffmpeg_/libavutil/intfloat.h static av_always_inline double av_int2double(uint64_t i) i 63 3rdparty/include/ffmpeg_/libavutil/intfloat.h v.i = i; i 74 3rdparty/include/ffmpeg_/libavutil/intfloat.h return v.i; i 763 3rdparty/include/opencl/1.2/CL/cl.hpp for (unsigned int i = 0; i < size; i++) { i 800 3rdparty/include/opencl/1.2/CL/cl.hpp for( unsigned int i = 0; i < size(); ++i ) { i 801 3rdparty/include/opencl/1.2/CL/cl.hpp if( operator[](i) != vec[i] ) { i 914 3rdparty/include/opencl/1.2/CL/cl.hpp iterator i(vec, 0); i 916 3rdparty/include/opencl/1.2/CL/cl.hpp return i; i 921 3rdparty/include/opencl/1.2/CL/cl.hpp iterator i(vec, vec.size()); i 923 3rdparty/include/opencl/1.2/CL/cl.hpp return i; i 926 3rdparty/include/opencl/1.2/CL/cl.hpp bool operator==(iterator i) i 928 3rdparty/include/opencl/1.2/CL/cl.hpp return ((vec_ == i.vec_) && i 929 3rdparty/include/opencl/1.2/CL/cl.hpp (index_ == i.index_)); i 932 3rdparty/include/opencl/1.2/CL/cl.hpp bool operator!=(iterator i) i 934 3rdparty/include/opencl/1.2/CL/cl.hpp return (!(*this==i)); i 1058 3rdparty/include/opencl/1.2/CL/cl.hpp for( int i = 0; i < N; ++i ) { i 1059 3rdparty/include/opencl/1.2/CL/cl.hpp data_[i] = 0; i 1135 3rdparty/include/opencl/1.2/CL/cl.hpp for (::size_t i = 0; i < elements; i++) i 1137 3rdparty/include/opencl/1.2/CL/cl.hpp if (value[i] != NULL) i 1139 3rdparty/include/opencl/1.2/CL/cl.hpp err = (*param)[i].retain(); i 1197 3rdparty/include/opencl/1.2/CL/cl.hpp for(int i = 0; i < N; ++i) { i 1198 3rdparty/include/opencl/1.2/CL/cl.hpp (*param)[i] = value[i]; i 3190 3rdparty/include/opencl/1.2/CL/cl.hpp for( int i = 0; i < props.size(); ++i ) { i 3191 3rdparty/include/opencl/1.2/CL/cl.hpp if( props[i] == CL_CONTEXT_PLATFORM ) { i 3192 3rdparty/include/opencl/1.2/CL/cl.hpp platform = props[i+1]; i 4689 3rdparty/include/opencl/1.2/CL/cl.hpp for (::size_t i = 0; i < n; ++i) { i 4690 3rdparty/include/opencl/1.2/CL/cl.hpp strings[i] = sources[(int)i].first; i 4691 3rdparty/include/opencl/1.2/CL/cl.hpp lengths[i] = sources[(int)i].second; i 4746 3rdparty/include/opencl/1.2/CL/cl.hpp for (::size_t i = 0; i < numDevices; ++i) { i 4747 3rdparty/include/opencl/1.2/CL/cl.hpp images[i] = (const unsigned char*)binaries[i].first; i 4748 3rdparty/include/opencl/1.2/CL/cl.hpp lengths[i] = binaries[(int)i].second; i 4999 3rdparty/include/opencl/1.2/CL/cl.hpp for (unsigned int i = 0; i < inputPrograms.size(); i++) { i 5000 3rdparty/include/opencl/1.2/CL/cl.hpp programs[i] = inputPrograms[i](); i 5822 3rdparty/include/opencl/1.2/CL/cl.hpp for( int i = 0; i < (int)memObjects.size(); ++i ) { i 5823 3rdparty/include/opencl/1.2/CL/cl.hpp localMemObjects[i] = memObjects[i](); i 5904 3rdparty/include/opencl/1.2/CL/cl.hpp for (unsigned int i = 0; i < mem_objects->size(); i++) { i 5905 3rdparty/include/opencl/1.2/CL/cl.hpp mems[i] = ((*mem_objects)[i])(); i 102 3rdparty/libjasper/jas_cm.c static int jas_cmpxformseq_delete(jas_cmpxformseq_t *pxformseq, int i); i 107 3rdparty/libjasper/jas_cm.c int i, jas_cmpxform_t *pxform); i 181 3rdparty/libjasper/jas_cm.c int i; i 221 3rdparty/libjasper/jas_cm.c for (i = 0; i < JAS_CMXFORM_NUMINTENTS; ++i) { i 222 3rdparty/libjasper/jas_cm.c j = SEQFWD(i); i 228 3rdparty/libjasper/jas_cm.c j = SEQREV(i); i 313 3rdparty/libjasper/jas_cm.c int i; i 319 3rdparty/libjasper/jas_cm.c for (i = 0; i < JAS_CMPROF_NUMPXFORMSEQS; ++i) i 320 3rdparty/libjasper/jas_cm.c prof->pxformseqs[i] = 0; i 326 3rdparty/libjasper/jas_cm.c int i; i 327 3rdparty/libjasper/jas_cm.c for (i = 0; i < JAS_CMPROF_NUMPXFORMSEQS; ++i) { i 328 3rdparty/libjasper/jas_cm.c if (prof->pxformseqs[i]) { i 329 3rdparty/libjasper/jas_cm.c jas_cmpxformseq_destroy(prof->pxformseqs[i]); i 330 3rdparty/libjasper/jas_cm.c prof->pxformseqs[i] = 0; i 341 3rdparty/libjasper/jas_cm.c int i; i 350 3rdparty/libjasper/jas_cm.c for (i = 0; i < JAS_CMPROF_NUMPXFORMSEQS; ++i) { i 351 3rdparty/libjasper/jas_cm.c if (prof->pxformseqs[i]) { i 352 3rdparty/libjasper/jas_cm.c if (!(newprof->pxformseqs[i] = jas_cmpxformseq_copy(prof->pxformseqs[i]))) i 470 3rdparty/libjasper/jas_cm.c int i; i 494 3rdparty/libjasper/jas_cm.c for (i = 1; i < xform->numinchans; ++i) { i 495 3rdparty/libjasper/jas_cm.c fmt = &in->cmptfmts[i]; i 500 3rdparty/libjasper/jas_cm.c for (i = 0; i < xform->numoutchans; ++i) { i 501 3rdparty/libjasper/jas_cm.c fmt = &out->cmptfmts[i]; i 509 3rdparty/libjasper/jas_cm.c for (i = 0; i < pxformseq->numpxforms; ++i) { i 510 3rdparty/libjasper/jas_cm.c pxform = pxformseq->pxforms[i]; i 528 3rdparty/libjasper/jas_cm.c for (i = 0; i < xform->numinchans; ++i) { i 529 3rdparty/libjasper/jas_cm.c fmt = &in->cmptfmts[i]; i 533 3rdparty/libjasper/jas_cm.c bufptr = &inbuf[i]; i 544 3rdparty/libjasper/jas_cm.c for (i = 0; i < pxformseq->numpxforms; ++i) { i 545 3rdparty/libjasper/jas_cm.c pxform = pxformseq->pxforms[i]; i 556 3rdparty/libjasper/jas_cm.c for (i = 0; i < xform->numoutchans; ++i) { i 557 3rdparty/libjasper/jas_cm.c fmt = &out->cmptfmts[i]; i 560 3rdparty/libjasper/jas_cm.c bufptr = &outbuf[i]; i 629 3rdparty/libjasper/jas_cm.c static int jas_cmpxformseq_delete(jas_cmpxformseq_t *pxformseq, int i) i 631 3rdparty/libjasper/jas_cm.c assert(i >= 0 && i < pxformseq->numpxforms); i 632 3rdparty/libjasper/jas_cm.c if (i != pxformseq->numpxforms - 1) i 634 3rdparty/libjasper/jas_cm.c jas_cmpxform_destroy(pxformseq->pxforms[i]); i 635 3rdparty/libjasper/jas_cm.c pxformseq->pxforms[i] = 0; i 652 3rdparty/libjasper/jas_cm.c int i, jas_cmpxform_t *pxform) i 656 3rdparty/libjasper/jas_cm.c if (i < 0) i 657 3rdparty/libjasper/jas_cm.c i = pxformseq->numpxforms; i 658 3rdparty/libjasper/jas_cm.c assert(i >= 0 && i <= pxformseq->numpxforms); i 667 3rdparty/libjasper/jas_cm.c n = pxformseq->numpxforms - i; i 669 3rdparty/libjasper/jas_cm.c memmove(&pxformseq->pxforms[i + 1], &pxformseq->pxforms[i], i 672 3rdparty/libjasper/jas_cm.c pxformseq->pxforms[i] = tmppxform; i 683 3rdparty/libjasper/jas_cm.c int i; i 691 3rdparty/libjasper/jas_cm.c for (i = 0; i < othpxformseq->numpxforms; ++i) { i 692 3rdparty/libjasper/jas_cm.c othpxform = othpxformseq->pxforms[i]; i 751 3rdparty/libjasper/jas_cm.c int i; i 763 3rdparty/libjasper/jas_cm.c for (i = 0; i < 3; ++i) i 764 3rdparty/libjasper/jas_cm.c jas_cmshapmatlut_init(&shapmat->luts[i]); i 765 3rdparty/libjasper/jas_cm.c for (i = 0; i < 3; ++i) { i 767 3rdparty/libjasper/jas_cm.c shapmat->mat[i][j] = 0.0; i 776 3rdparty/libjasper/jas_cm.c int i; i 777 3rdparty/libjasper/jas_cm.c for (i = 0; i < 3; ++i) i 778 3rdparty/libjasper/jas_cm.c jas_cmshapmatlut_cleanup(&shapmat->luts[i]); i 885 3rdparty/libjasper/jas_cm.c int i; i 899 3rdparty/libjasper/jas_cm.c for (i = 0; i < lut->size; ++i) { i 900 3rdparty/libjasper/jas_cm.c lut->data[i] = gammafn(i / (double) (lut->size - 1), gamma); i 906 3rdparty/libjasper/jas_cm.c for (i = 0; i < lut->size; ++i) { i 907 3rdparty/libjasper/jas_cm.c lut->data[i] = curv->ents[i] / 65535.0; i 933 3rdparty/libjasper/jas_cm.c int i; i 948 3rdparty/libjasper/jas_cm.c for (i = 1; i < lut->size; ++i) { i 949 3rdparty/libjasper/jas_cm.c if (lut->data[i - 1] > lut->data[i]) { i 957 3rdparty/libjasper/jas_cm.c for (i = 0; i < invlut->size; ++i) { i 958 3rdparty/libjasper/jas_cm.c sy = ((double) i) / (invlut->size - 1); i 990 3rdparty/libjasper/jas_cm.c invlut->data[i] = sx; i 993 3rdparty/libjasper/jas_cm.c for (i=0;i<lut->size;++i) i 994 3rdparty/libjasper/jas_cm.c jas_eprintf("lut[%d]=%f ", i, lut->data[i]); i 995 3rdparty/libjasper/jas_cm.c for (i=0;i<invlut->size;++i) i 996 3rdparty/libjasper/jas_cm.c jas_eprintf("invlut[%d]=%f ", i, invlut->data[i]); i 1123 3rdparty/libjasper/jas_cm.c int i; i 1134 3rdparty/libjasper/jas_cm.c for (i = 0; i < 3; ++i) { i 1135 3rdparty/libjasper/jas_cm.c trcs[i] = 0; i 1136 3rdparty/libjasper/jas_cm.c cols[i] = 0; i 1147 3rdparty/libjasper/jas_cm.c for (i = 0; i < 3; ++i) { i 1148 3rdparty/libjasper/jas_cm.c if (trcs[i]->type != JAS_ICC_TYPE_CURV || i 1149 3rdparty/libjasper/jas_cm.c cols[i]->type != JAS_ICC_TYPE_XYZ) i 1166 3rdparty/libjasper/jas_cm.c for (i = 0; i < 3; ++i) { i 1167 3rdparty/libjasper/jas_cm.c shapmat->mat[0][i] = cols[i]->data.xyz.x / 65536.0; i 1168 3rdparty/libjasper/jas_cm.c shapmat->mat[1][i] = cols[i]->data.xyz.y / 65536.0; i 1169 3rdparty/libjasper/jas_cm.c shapmat->mat[2][i] = cols[i]->data.xyz.z / 65536.0; i 1171 3rdparty/libjasper/jas_cm.c for (i = 0; i < 3; ++i) i 1172 3rdparty/libjasper/jas_cm.c shapmat->mat[i][3] = 0.0; i 1173 3rdparty/libjasper/jas_cm.c for (i = 0; i < 3; ++i) { i 1174 3rdparty/libjasper/jas_cm.c if (jas_cmshapmatlut_set(&shapmat->luts[i], &trcs[i]->data.curv)) i 1179 3rdparty/libjasper/jas_cm.c for (i = 0; i < 3; ++i) { i 1180 3rdparty/libjasper/jas_cm.c mat[0][i] = cols[i]->data.xyz.x / 65536.0; i 1181 3rdparty/libjasper/jas_cm.c mat[1][i] = cols[i]->data.xyz.y / 65536.0; i 1182 3rdparty/libjasper/jas_cm.c mat[2][i] = cols[i]->data.xyz.z / 65536.0; i 1184 3rdparty/libjasper/jas_cm.c for (i = 0; i < 3; ++i) i 1185 3rdparty/libjasper/jas_cm.c mat[i][3] = 0.0; i 1188 3rdparty/libjasper/jas_cm.c for (i = 0; i < 3; ++i) { i 1190 3rdparty/libjasper/jas_cm.c if (jas_cmshapmatlut_set(&lut, &trcs[i]->data.curv)) i 1192 3rdparty/libjasper/jas_cm.c if (jas_cmshapmatlut_invert(&shapmat->luts[i], &lut, lut.size)) i 1197 3rdparty/libjasper/jas_cm.c for (i = 0; i < 3; ++i) { i 1198 3rdparty/libjasper/jas_cm.c jas_iccattrval_destroy(trcs[i]); i 1199 3rdparty/libjasper/jas_cm.c jas_iccattrval_destroy(cols[i]); i 1207 3rdparty/libjasper/jas_cm.c for (i = 0; i < 3; ++i) { i 1208 3rdparty/libjasper/jas_cm.c if (trcs[i]) { i 1209 3rdparty/libjasper/jas_cm.c jas_iccattrval_destroy(trcs[i]); i 1211 3rdparty/libjasper/jas_cm.c if (cols[i]) { i 1212 3rdparty/libjasper/jas_cm.c jas_iccattrval_destroy(cols[i]); i 123 3rdparty/libjasper/jas_debug.c size_t i; i 127 3rdparty/libjasper/jas_debug.c for (i = 0; i < len; i += 16) { i 128 3rdparty/libjasper/jas_debug.c fprintf(out, "%04x:", (int)i); i 130 3rdparty/libjasper/jas_debug.c if (i + j < len) { i 131 3rdparty/libjasper/jas_debug.c fprintf(out, " %02x", dp[i + j]); i 139 3rdparty/libjasper/jas_icc.c static int jas_iccattrtab_add(jas_iccattrtab_t *attrtab, int i, i 141 3rdparty/libjasper/jas_icc.c static int jas_iccattrtab_replace(jas_iccattrtab_t *attrtab, int i, i 143 3rdparty/libjasper/jas_icc.c static void jas_iccattrtab_delete(jas_iccattrtab_t *attrtab, int i); i 145 3rdparty/libjasper/jas_icc.c static int jas_iccattrtab_get(jas_iccattrtab_t *attrtab, int i, i 270 3rdparty/libjasper/jas_icc.c int i; i 294 3rdparty/libjasper/jas_icc.c for (i = 0; i < numtags; ++i) { i 295 3rdparty/libjasper/jas_icc.c tagtabent = &prof->tagtab.ents[i]; i 366 3rdparty/libjasper/jas_icc.c int i; i 381 3rdparty/libjasper/jas_icc.c for (i = 0; i < JAS_CAST(int, tagtab->numents); ++i) { i 382 3rdparty/libjasper/jas_icc.c tagtabent = &tagtab->ents[i]; i 383 3rdparty/libjasper/jas_icc.c if (jas_iccattrtab_get(prof->attrtab, i, &attrname, &attrval)) i 389 3rdparty/libjasper/jas_icc.c for (j = 0; j < i; ++j) { i 404 3rdparty/libjasper/jas_icc.c if (i < JAS_CAST(int, tagtab->numents - 1)) { i 418 3rdparty/libjasper/jas_icc.c for (i = 0; i < JAS_CAST(int, tagtab->numents);) { i 419 3rdparty/libjasper/jas_icc.c tagtabent = &tagtab->ents[i]; i 421 3rdparty/libjasper/jas_icc.c if (jas_iccattrtab_get(prof->attrtab, i, &attrname, &attrval)) i 430 3rdparty/libjasper/jas_icc.c ++i; i 431 3rdparty/libjasper/jas_icc.c while (i < JAS_CAST(int, tagtab->numents) && i 432 3rdparty/libjasper/jas_icc.c tagtab->ents[i].first) i 433 3rdparty/libjasper/jas_icc.c ++i; i 434 3rdparty/libjasper/jas_icc.c newoff = (i < JAS_CAST(int, tagtab->numents)) ? i 435 3rdparty/libjasper/jas_icc.c tagtab->ents[i].off : prof->hdr.size; i 475 3rdparty/libjasper/jas_icc.c int i; i 479 3rdparty/libjasper/jas_icc.c for (i = 0; i < JAS_CAST(int, tagtab->numents); ++i) { i 480 3rdparty/libjasper/jas_icc.c tagtabent = &tagtab->ents[i]; i 516 3rdparty/libjasper/jas_icc.c int i; i 529 3rdparty/libjasper/jas_icc.c for (i = 0; i < JAS_CAST(long, tagtab->numents); ++i) { i 548 3rdparty/libjasper/jas_icc.c int i; i 550 3rdparty/libjasper/jas_icc.c if ((i = jas_iccattrtab_lookup(prof->attrtab, name)) < 0) i 552 3rdparty/libjasper/jas_icc.c if (!(attrval = jas_iccattrval_clone(prof->attrtab->attrs[i].val))) i 562 3rdparty/libjasper/jas_icc.c int i; i 563 3rdparty/libjasper/jas_icc.c if ((i = jas_iccattrtab_lookup(prof->attrtab, name)) >= 0) { i 565 3rdparty/libjasper/jas_icc.c if (jas_iccattrtab_replace(prof->attrtab, i, name, val)) i 568 3rdparty/libjasper/jas_icc.c jas_iccattrtab_delete(prof->attrtab, i); i 692 3rdparty/libjasper/jas_icc.c int i; i 695 3rdparty/libjasper/jas_icc.c for (i = 0; i < attrtab->numattrs; ++i) { i 696 3rdparty/libjasper/jas_icc.c if (jas_iccattrtab_add(newattrtab, i, attrtab->attrs[i].name, i 697 3rdparty/libjasper/jas_icc.c attrtab->attrs[i].val)) i 718 3rdparty/libjasper/jas_icc.c int i; i 725 3rdparty/libjasper/jas_icc.c for (i = 0; i < attrtab->numattrs; ++i) { i 726 3rdparty/libjasper/jas_icc.c attr = &attrtab->attrs[i]; i 731 3rdparty/libjasper/jas_icc.c i, i 754 3rdparty/libjasper/jas_icc.c static int jas_iccattrtab_add(jas_iccattrtab_t *attrtab, int i, i 761 3rdparty/libjasper/jas_icc.c if (i < 0) { i 762 3rdparty/libjasper/jas_icc.c i = attrtab->numattrs; i 764 3rdparty/libjasper/jas_icc.c assert(i >= 0 && i <= attrtab->numattrs); i 772 3rdparty/libjasper/jas_icc.c n = attrtab->numattrs - i; i 774 3rdparty/libjasper/jas_icc.c memmove(&attrtab->attrs[i + 1], &attrtab->attrs[i], i 776 3rdparty/libjasper/jas_icc.c attr = &attrtab->attrs[i]; i 787 3rdparty/libjasper/jas_icc.c static int jas_iccattrtab_replace(jas_iccattrtab_t *attrtab, int i, i 794 3rdparty/libjasper/jas_icc.c attr = &attrtab->attrs[i]; i 803 3rdparty/libjasper/jas_icc.c static void jas_iccattrtab_delete(jas_iccattrtab_t *attrtab, int i) i 806 3rdparty/libjasper/jas_icc.c jas_iccattrval_destroy(attrtab->attrs[i].val); i 807 3rdparty/libjasper/jas_icc.c if ((n = attrtab->numattrs - i - 1) > 0) i 808 3rdparty/libjasper/jas_icc.c memmove(&attrtab->attrs[i], &attrtab->attrs[i + 1], i 813 3rdparty/libjasper/jas_icc.c static int jas_iccattrtab_get(jas_iccattrtab_t *attrtab, int i, i 817 3rdparty/libjasper/jas_icc.c if (i < 0 || i >= attrtab->numattrs) i 819 3rdparty/libjasper/jas_icc.c attr = &attrtab->attrs[i]; i 831 3rdparty/libjasper/jas_icc.c int i; i 833 3rdparty/libjasper/jas_icc.c for (i = 0; i < attrtab->numattrs; ++i) { i 834 3rdparty/libjasper/jas_icc.c attr = &attrtab->attrs[i]; i 836 3rdparty/libjasper/jas_icc.c return i; i 994 3rdparty/libjasper/jas_icc.c unsigned int i; i 1003 3rdparty/libjasper/jas_icc.c for (i = 0; i < curv->numents; ++i) { i 1004 3rdparty/libjasper/jas_icc.c if (jas_iccgetuint16(in, &curv->ents[i])) i 1026 3rdparty/libjasper/jas_icc.c unsigned int i; i 1030 3rdparty/libjasper/jas_icc.c for (i = 0; i < curv->numents; ++i) { i 1031 3rdparty/libjasper/jas_icc.c if (jas_iccputuint16(out, curv->ents[i])) i 1041 3rdparty/libjasper/jas_icc.c int i; i 1047 3rdparty/libjasper/jas_icc.c for (i = 0; i < JAS_CAST(int, curv->numents); ++i) { i 1048 3rdparty/libjasper/jas_icc.c if (i < 3 || i >= JAS_CAST(int, curv->numents) - 3) { i 1049 3rdparty/libjasper/jas_icc.c fprintf(out, "entry[%d] = %f\n", i, curv->ents[i] / 65535.0); i 1270 3rdparty/libjasper/jas_icc.c int i; i 1284 3rdparty/libjasper/jas_icc.c for (i = 0; i < 3; ++i) { i 1286 3rdparty/libjasper/jas_icc.c if (jas_iccgetsint32(in, &lut8->e[i][j])) i 1300 3rdparty/libjasper/jas_icc.c for (i = 0; i < lut8->numinchans; ++i) i 1301 3rdparty/libjasper/jas_icc.c lut8->intabs[i] = &lut8->intabsbuf[i * lut8->numintabents]; i 1307 3rdparty/libjasper/jas_icc.c for (i = 0; i < lut8->numoutchans; ++i) i 1308 3rdparty/libjasper/jas_icc.c lut8->outtabs[i] = &lut8->outtabsbuf[i * lut8->numouttabents]; i 1309 3rdparty/libjasper/jas_icc.c for (i = 0; i < lut8->numinchans; ++i) { i 1311 3rdparty/libjasper/jas_icc.c if (jas_iccgetuint8(in, &lut8->intabs[i][j])) i 1315 3rdparty/libjasper/jas_icc.c for (i = 0; i < lut8->numoutchans; ++i) { i 1317 3rdparty/libjasper/jas_icc.c if (jas_iccgetuint8(in, &lut8->outtabs[i][j])) i 1321 3rdparty/libjasper/jas_icc.c for (i = 0; i < clutsize; ++i) { i 1322 3rdparty/libjasper/jas_icc.c if (jas_iccgetuint8(in, &lut8->clut[i])) i 1347 3rdparty/libjasper/jas_icc.c int i; i 1360 3rdparty/libjasper/jas_icc.c for (i = 0; i < 3; ++i) { i 1362 3rdparty/libjasper/jas_icc.c if (jas_iccputsint32(out, lut8->e[i][j])) i 1370 3rdparty/libjasper/jas_icc.c for (i = 0; i < n; ++i) { i 1371 3rdparty/libjasper/jas_icc.c if (jas_iccputuint8(out, lut8->intabsbuf[i])) i 1375 3rdparty/libjasper/jas_icc.c for (i = 0; i < n; ++i) { i 1376 3rdparty/libjasper/jas_icc.c if (jas_iccputuint8(out, lut8->outtabsbuf[i])) i 1380 3rdparty/libjasper/jas_icc.c for (i = 0; i < n; ++i) { i 1381 3rdparty/libjasper/jas_icc.c if (jas_iccputuint8(out, lut8->clut[i])) i 1392 3rdparty/libjasper/jas_icc.c int i; i 1396 3rdparty/libjasper/jas_icc.c for (i = 0; i < 3; ++i) { i 1398 3rdparty/libjasper/jas_icc.c fprintf(out, "e[%d][%d]=%f ", i, j, lut8->e[i][j] / 65536.0); i 1439 3rdparty/libjasper/jas_icc.c int i; i 1453 3rdparty/libjasper/jas_icc.c for (i = 0; i < 3; ++i) { i 1455 3rdparty/libjasper/jas_icc.c if (jas_iccgetsint32(in, &lut16->e[i][j])) i 1469 3rdparty/libjasper/jas_icc.c for (i = 0; i < lut16->numinchans; ++i) i 1470 3rdparty/libjasper/jas_icc.c lut16->intabs[i] = &lut16->intabsbuf[i * lut16->numintabents]; i 1476 3rdparty/libjasper/jas_icc.c for (i = 0; i < lut16->numoutchans; ++i) i 1477 3rdparty/libjasper/jas_icc.c lut16->outtabs[i] = &lut16->outtabsbuf[i * lut16->numouttabents]; i 1478 3rdparty/libjasper/jas_icc.c for (i = 0; i < lut16->numinchans; ++i) { i 1480 3rdparty/libjasper/jas_icc.c if (jas_iccgetuint16(in, &lut16->intabs[i][j])) i 1484 3rdparty/libjasper/jas_icc.c for (i = 0; i < lut16->numoutchans; ++i) { i 1486 3rdparty/libjasper/jas_icc.c if (jas_iccgetuint16(in, &lut16->outtabs[i][j])) i 1490 3rdparty/libjasper/jas_icc.c for (i = 0; i < clutsize; ++i) { i 1491 3rdparty/libjasper/jas_icc.c if (jas_iccgetuint16(in, &lut16->clut[i])) i 1516 3rdparty/libjasper/jas_icc.c int i; i 1524 3rdparty/libjasper/jas_icc.c for (i = 0; i < 3; ++i) { i 1526 3rdparty/libjasper/jas_icc.c if (jas_iccputsint32(out, lut16->e[i][j])) i 1534 3rdparty/libjasper/jas_icc.c for (i = 0; i < n; ++i) { i 1535 3rdparty/libjasper/jas_icc.c if (jas_iccputuint16(out, lut16->intabsbuf[i])) i 1539 3rdparty/libjasper/jas_icc.c for (i = 0; i < n; ++i) { i 1540 3rdparty/libjasper/jas_icc.c if (jas_iccputuint16(out, lut16->outtabsbuf[i])) i 1544 3rdparty/libjasper/jas_icc.c for (i = 0; i < n; ++i) { i 1545 3rdparty/libjasper/jas_icc.c if (jas_iccputuint16(out, lut16->clut[i])) i 1556 3rdparty/libjasper/jas_icc.c int i; i 1560 3rdparty/libjasper/jas_icc.c for (i = 0; i < 3; ++i) { i 1562 3rdparty/libjasper/jas_icc.c fprintf(out, "e[%d][%d]=%f ", i, j, lut16->e[i][j] / 65536.0); i 1576 3rdparty/libjasper/jas_icc.c int i; i 1580 3rdparty/libjasper/jas_icc.c for (i = n; i > 0; --i) { i 1637 3rdparty/libjasper/jas_icc.c int i; i 1639 3rdparty/libjasper/jas_icc.c for (i = n; i > 0; --i) { i 1640 3rdparty/libjasper/jas_icc.c c = (val >> (8 * (i - 1))) & 0xff; i 284 3rdparty/libjasper/jas_image.c int i; i 287 3rdparty/libjasper/jas_image.c for (i = 0; i < image->numcmpts_; ++i) { i 288 3rdparty/libjasper/jas_image.c jas_image_cmpt_destroy(image->cmpts_[i]); i 289 3rdparty/libjasper/jas_image.c image->cmpts_[i] = 0; i 409 3rdparty/libjasper/jas_image.c jas_image_coord_t i; i 437 3rdparty/libjasper/jas_image.c for (i = 0; i < height; ++i, dr += drs) { i 439 3rdparty/libjasper/jas_image.c if (jas_stream_seek(cmpt->stream_, (cmpt->width_ * (y + i) + x) i 462 3rdparty/libjasper/jas_image.c jas_image_coord_t i; i 488 3rdparty/libjasper/jas_image.c for (i = 0; i < height; ++i, dr += drs) { i 490 3rdparty/libjasper/jas_image.c if (jas_stream_seek(cmpt->stream_, (cmpt->width_ * (y + i) + x) i 516 3rdparty/libjasper/jas_image.c int i; i 518 3rdparty/libjasper/jas_image.c for (i = 0; i < jas_image_numfmts; ++i) { i 519 3rdparty/libjasper/jas_image.c fmtinfo = &jas_image_fmtinfos[i]; i 585 3rdparty/libjasper/jas_image.c int i; i 589 3rdparty/libjasper/jas_image.c for (i = 0, fmtinfo = jas_image_fmtinfos; i < jas_image_numfmts; ++i, i 604 3rdparty/libjasper/jas_image.c int i; i 613 3rdparty/libjasper/jas_image.c for (i = 0, fmtinfo = jas_image_fmtinfos; i < jas_image_numfmts; ++i, i 689 3rdparty/libjasper/jas_image.c int i; i 692 3rdparty/libjasper/jas_image.c for (i = 0, fmtinfo = jas_image_fmtinfos; i < jas_image_numfmts; ++i, ++fmtinfo) { i 702 3rdparty/libjasper/jas_image.c int i; i 705 3rdparty/libjasper/jas_image.c for (i = 0, fmtinfo = jas_image_fmtinfos; i < jas_image_numfmts; ++i, ++fmtinfo) { i 817 3rdparty/libjasper/jas_image.c int i; i 831 3rdparty/libjasper/jas_image.c for (i = 0; i < n; ++i) { i 832 3rdparty/libjasper/jas_image.c fprintf(out, " f(%d,%d)=%ld", i, 0, buf[i]); i 838 3rdparty/libjasper/jas_image.c for (i = 0; i < n; ++i) { i 839 3rdparty/libjasper/jas_image.c fprintf(out, " f(%d,%d)=%ld", width - n + i, height - 1, buf[i]); i 850 3rdparty/libjasper/jas_image.c int i; i 873 3rdparty/libjasper/jas_image.c for (i = 0; i < cmpt->width_; ++i) { i 874 3rdparty/libjasper/jas_image.c v = jas_image_readcmptsample(image, cmptno, i, j); i 880 3rdparty/libjasper/jas_image.c jas_image_writecmptsample(image, newcmptno, i, j, i 971 3rdparty/libjasper/jas_image.c jas_image_coord_t i; i 985 3rdparty/libjasper/jas_image.c for (i = 0; i < height; ++i) { i 986 3rdparty/libjasper/jas_image.c if (jas_stream_seek(cmpt->stream_, (cmpt->width_ * (y + i) + x) i 1006 3rdparty/libjasper/jas_image.c jas_image_coord_t i; i 1020 3rdparty/libjasper/jas_image.c for (i = 0; i < height; ++i) { i 1021 3rdparty/libjasper/jas_image.c if (jas_stream_seek(cmpt->stream_, (cmpt->width_ * (y + i) + x) i 1048 3rdparty/libjasper/jas_image.c int i; i 1087 3rdparty/libjasper/jas_image.c for (i = 0; i < height; ++i) { i 1088 3rdparty/libjasper/jas_image.c y = newcmpt->tly_ + newcmpt->vstep_ * i; i 1144 3rdparty/libjasper/jas_image.c int i; i 1148 3rdparty/libjasper/jas_image.c for (i = 0; i < image->numcmpts_; ++i) { i 1149 3rdparty/libjasper/jas_image.c if (jas_image_cmpthstep(image, i) != hstep || i 1150 3rdparty/libjasper/jas_image.c jas_image_cmptvstep(image, i) != vstep) { i 1168 3rdparty/libjasper/jas_image.c int i; i 1175 3rdparty/libjasper/jas_image.c for (i = 0; i < image->numcmpts_; ++i) { i 1176 3rdparty/libjasper/jas_image.c cmpt = image->cmpts_[i]; i 1275 3rdparty/libjasper/jas_image.c int i; i 1312 3rdparty/libjasper/jas_image.c for (i = 1; i < jas_image_numcmpts(inimage); ++i) { i 1313 3rdparty/libjasper/jas_image.c hstep = jas_image_cmpthstep(inimage, i); i 1314 3rdparty/libjasper/jas_image.c vstep = jas_image_cmptvstep(inimage, i); i 1321 3rdparty/libjasper/jas_image.c for (i = 0; i < n; ++i) { i 1322 3rdparty/libjasper/jas_image.c cmpttype = jas_image_cmpttype(inimage, i); i 1323 3rdparty/libjasper/jas_image.c if (jas_image_sampcmpt(inimage, i, i + 1, 0, 0, minhstep, minvstep, jas_image_cmptsgnd(inimage, i), jas_image_cmptprec(inimage, i))) i 1325 3rdparty/libjasper/jas_image.c jas_image_setcmpttype(inimage, i + 1, cmpttype); i 1326 3rdparty/libjasper/jas_image.c jas_image_delcmpt(inimage, i); i 1348 3rdparty/libjasper/jas_image.c for (i = 0; i < numoutclrchans; ++i) { i 1359 3rdparty/libjasper/jas_image.c jas_image_setcmpttype(outimage, i, JAS_IMAGE_CT_COLOR(i)); i 1363 3rdparty/libjasper/jas_image.c for (i = 0; i < jas_image_numcmpts(inimage); ++i) { i 1364 3rdparty/libjasper/jas_image.c if (!ISCOLOR(jas_image_cmpttype(inimage, i))) { i 1365 3rdparty/libjasper/jas_image.c jas_image_copycmpt(outimage, -1, inimage, i); i 1385 3rdparty/libjasper/jas_image.c for (i = 0; i < numinclrchans; ++i) { i 1386 3rdparty/libjasper/jas_image.c j = jas_image_getcmptbytype(inimage, JAS_IMAGE_CT_COLOR(i)); i 1388 3rdparty/libjasper/jas_image.c if (!(incmptfmts[i].buf = malloc(width * sizeof(long)))) i 1390 3rdparty/libjasper/jas_image.c incmptfmts[i].prec = jas_image_cmptprec(inimage, j); i 1391 3rdparty/libjasper/jas_image.c incmptfmts[i].sgnd = jas_image_cmptsgnd(inimage, j); i 1392 3rdparty/libjasper/jas_image.c incmptfmts[i].width = width; i 1393 3rdparty/libjasper/jas_image.c incmptfmts[i].height = 1; i 1401 3rdparty/libjasper/jas_image.c for (i = 0; i < numoutclrchans; ++i) { i 1402 3rdparty/libjasper/jas_image.c j = jas_image_getcmptbytype(outimage, JAS_IMAGE_CT_COLOR(i)); i 1404 3rdparty/libjasper/jas_image.c if (!(outcmptfmts[i].buf = malloc(width * sizeof(long)))) i 1406 3rdparty/libjasper/jas_image.c outcmptfmts[i].prec = jas_image_cmptprec(outimage, j); i 1407 3rdparty/libjasper/jas_image.c outcmptfmts[i].sgnd = jas_image_cmptsgnd(outimage, j); i 1408 3rdparty/libjasper/jas_image.c outcmptfmts[i].width = width; i 1409 3rdparty/libjasper/jas_image.c outcmptfmts[i].height = 1; i 1412 3rdparty/libjasper/jas_image.c for (i = 0; i < height; ++i) { i 1415 3rdparty/libjasper/jas_image.c if (jas_image_readcmpt2(inimage, k, 0, i, width, 1, incmptfmts[j].buf)) i 1421 3rdparty/libjasper/jas_image.c if (jas_image_writecmpt2(outimage, k, 0, i, width, 1, outcmptfmts[j].buf)) i 1426 3rdparty/libjasper/jas_image.c for (i = 0; i < numoutclrchans; ++i) i 1427 3rdparty/libjasper/jas_image.c jas_free(outcmptfmts[i].buf); i 1429 3rdparty/libjasper/jas_image.c for (i = 0; i < numinclrchans; ++i) i 1430 3rdparty/libjasper/jas_image.c jas_free(incmptfmts[i].buf); i 103 3rdparty/libjasper/jas_seq.c int i; i 132 3rdparty/libjasper/jas_seq.c for (i = 0; i < numrows; ++i) { i 133 3rdparty/libjasper/jas_seq.c matrix->rows_[i] = &matrix->data_[i * matrix->numcols_]; i 136 3rdparty/libjasper/jas_seq.c for (i = 0; i < matrix->datasize_; ++i) { i 137 3rdparty/libjasper/jas_seq.c matrix->data_[i] = 0; i 165 3rdparty/libjasper/jas_seq.c int i; i 170 3rdparty/libjasper/jas_seq.c for (i = 0; i < x->numrows_; ++i) { i 172 3rdparty/libjasper/jas_seq.c *jas_matrix_getref(y, i, j) = jas_matrix_get(x, i, j); i 181 3rdparty/libjasper/jas_seq.c int i; i 184 3rdparty/libjasper/jas_seq.c for (i = 0; i < x->numrows_; ++i) { i 186 3rdparty/libjasper/jas_seq.c *jas_matrix_getref(y, i, j) = jas_matrix_get(x, i, j); i 206 3rdparty/libjasper/jas_seq.c int i; i 224 3rdparty/libjasper/jas_seq.c for (i = 0; i < mat0->numrows_; ++i) { i 225 3rdparty/libjasper/jas_seq.c mat0->rows_[i] = mat1->rows_[r0 + i] + c0; i 240 3rdparty/libjasper/jas_seq.c int i; i 247 3rdparty/libjasper/jas_seq.c for (i = 0; i < mat0->numrows_; i++) { i 249 3rdparty/libjasper/jas_seq.c if (jas_matrix_get(mat0, i, j) != jas_matrix_get(mat1, i, j)) { i 259 3rdparty/libjasper/jas_seq.c int i; i 266 3rdparty/libjasper/jas_seq.c for (i = matrix->numrows_, rowstart = matrix->rows_[0]; i > 0; --i, i 278 3rdparty/libjasper/jas_seq.c int i; i 286 3rdparty/libjasper/jas_seq.c for (i = matrix->numrows_, rowstart = matrix->rows_[0]; i > 0; --i, i 303 3rdparty/libjasper/jas_seq.c int i; i 311 3rdparty/libjasper/jas_seq.c for (i = matrix->numrows_, rowstart = matrix->rows_[0]; i > 0; --i, i 322 3rdparty/libjasper/jas_seq.c int i; i 329 3rdparty/libjasper/jas_seq.c for (i = matrix->numrows_, rowstart = matrix->rows_[0]; i > 0; --i, i 345 3rdparty/libjasper/jas_seq.c int i; i 355 3rdparty/libjasper/jas_seq.c for (i = 0; i < numrows; ++i) { i 356 3rdparty/libjasper/jas_seq.c matrix->rows_[i] = &matrix->data_[numcols * i]; i 364 3rdparty/libjasper/jas_seq.c int i; i 371 3rdparty/libjasper/jas_seq.c for (i = matrix->numrows_, rowstart = matrix->rows_[0]; i > 0; --i, i 383 3rdparty/libjasper/jas_seq.c int i; i 403 3rdparty/libjasper/jas_seq.c for (i = 0; i < jas_matrix_numrows(matrix); i++) { i 409 3rdparty/libjasper/jas_seq.c jas_matrix_set(matrix, i, j, JAS_CAST(jas_seqent_t, x)); i 419 3rdparty/libjasper/jas_seq.c int i; i 432 3rdparty/libjasper/jas_seq.c for (i = 0; i < jas_matrix_numrows(matrix); ++i) { i 434 3rdparty/libjasper/jas_seq.c x = jas_matrix_get(matrix, i, j); i 917 3rdparty/libjasper/jas_stream.c int i; i 927 3rdparty/libjasper/jas_stream.c for (i = 0; i < n; i += 16) { i 928 3rdparty/libjasper/jas_stream.c if (n > 16 && i > 0) { i 929 3rdparty/libjasper/jas_stream.c display = (i >= cnt) ? 1 : 0; i 932 3rdparty/libjasper/jas_stream.c fprintf(fp, "%08x:", i); i 934 3rdparty/libjasper/jas_stream.c m = JAS_MIN(n - i, 16); i 158 3rdparty/libjasper/jasper/jas_seq.h #define jas_matrix_get(matrix, i, j) \ i 159 3rdparty/libjasper/jasper/jas_seq.h ((matrix)->rows_[i][j]) i 162 3rdparty/libjasper/jasper/jas_seq.h #define jas_matrix_set(matrix, i, j, v) \ i 163 3rdparty/libjasper/jasper/jas_seq.h ((matrix)->rows_[i][j] = (v)) i 166 3rdparty/libjasper/jasper/jas_seq.h #define jas_matrix_getv(matrix, i) \ i 167 3rdparty/libjasper/jasper/jas_seq.h (((matrix)->numrows_ == 1) ? ((matrix)->rows_[0][i]) : \ i 168 3rdparty/libjasper/jasper/jas_seq.h ((matrix)->rows_[i][0])) i 171 3rdparty/libjasper/jasper/jas_seq.h #define jas_matrix_setv(matrix, i, v) \ i 172 3rdparty/libjasper/jasper/jas_seq.h (((matrix)->numrows_ == 1) ? ((matrix)->rows_[0][i] = (v)) : \ i 173 3rdparty/libjasper/jasper/jas_seq.h ((matrix)->rows_[i][0] = (v))) i 176 3rdparty/libjasper/jasper/jas_seq.h #define jas_matrix_getref(matrix, i, j) \ i 177 3rdparty/libjasper/jasper/jas_seq.h (&(matrix)->rows_[i][j]) i 179 3rdparty/libjasper/jasper/jas_seq.h #define jas_matrix_getvref(matrix, i) \ i 180 3rdparty/libjasper/jasper/jas_seq.h (((matrix)->numrows_ > 1) ? jas_matrix_getref(matrix, i, 0) : jas_matrix_getref(matrix, 0, i)) i 286 3rdparty/libjasper/jasper/jas_seq.h #define jas_seq_set(seq, i, v) \ i 287 3rdparty/libjasper/jasper/jas_seq.h ((seq)->rows_[0][(i) - (seq)->xstart_] = (v)) i 288 3rdparty/libjasper/jasper/jas_seq.h #define jas_seq_getref(seq, i) \ i 289 3rdparty/libjasper/jasper/jas_seq.h (&(seq)->rows_[0][(i) - (seq)->xstart_]) i 290 3rdparty/libjasper/jasper/jas_seq.h #define jas_seq_get(seq, i) \ i 291 3rdparty/libjasper/jasper/jas_seq.h ((seq)->rows_[0][(i) - (seq)->xstart_]) i 350 3rdparty/libjasper/jp2_cod.c unsigned int i; i 358 3rdparty/libjasper/jp2_cod.c for (i = 0; i < ftyp->numcompatcodes; ++i) { i 359 3rdparty/libjasper/jp2_cod.c if (jp2_getuint32(in, &ftyp->compatcodes[i])) { i 381 3rdparty/libjasper/jp2_cod.c unsigned int i; i 386 3rdparty/libjasper/jp2_cod.c for (i = 0; i < bpcc->numcmpts; ++i) { i 387 3rdparty/libjasper/jp2_cod.c if (jp2_getuint8(in, &bpcc->bpcs[i])) { i 441 3rdparty/libjasper/jp2_cod.c unsigned int i; i 442 3rdparty/libjasper/jp2_cod.c for (i = 0; i < cdef->numchans; ++i) { i 444 3rdparty/libjasper/jp2_cod.c (int)cdef->ents[i].channo, (int)cdef->ents[i].type, (int)cdef->ents[i].assoc); i 544 3rdparty/libjasper/jp2_cod.c unsigned int i; i 548 3rdparty/libjasper/jp2_cod.c for (i = 0; i < ftyp->numcompatcodes; ++i) { i 549 3rdparty/libjasper/jp2_cod.c if (jp2_putuint32(out, ftyp->compatcodes[i])) { i 571 3rdparty/libjasper/jp2_cod.c unsigned int i; i 572 3rdparty/libjasper/jp2_cod.c for (i = 0; i < bpcc->numcmpts; ++i) { i 573 3rdparty/libjasper/jp2_cod.c if (jp2_putuint8(out, bpcc->bpcs[i])) { i 605 3rdparty/libjasper/jp2_cod.c unsigned int i; i 612 3rdparty/libjasper/jp2_cod.c for (i = 0; i < cdef->numchans; ++i) { i 613 3rdparty/libjasper/jp2_cod.c ent = &cdef->ents[i]; i 686 3rdparty/libjasper/jp2_cod.c int i; i 690 3rdparty/libjasper/jp2_cod.c for (i = 0; i < 8; ++i) { i 774 3rdparty/libjasper/jp2_cod.c unsigned int i; i 780 3rdparty/libjasper/jp2_cod.c for (i = 0; i < cmap->numchans; ++i) { i 781 3rdparty/libjasper/jp2_cod.c ent = &cmap->ents[i]; i 804 3rdparty/libjasper/jp2_cod.c unsigned int i; i 807 3rdparty/libjasper/jp2_cod.c for (i = 0; i < cmap->numchans; ++i) { i 808 3rdparty/libjasper/jp2_cod.c ent = &cmap->ents[i]; i 828 3rdparty/libjasper/jp2_cod.c unsigned int i; i 845 3rdparty/libjasper/jp2_cod.c for (i = 0; i < pclr->numchans; ++i) { i 846 3rdparty/libjasper/jp2_cod.c if (jp2_getuint8(in, &pclr->bpc[i])) { i 850 3rdparty/libjasper/jp2_cod.c for (i = 0; i < pclr->numlutents; ++i) { i 856 3rdparty/libjasper/jp2_cod.c pclr->lutdata[i * pclr->numchans + j] = x; i 876 3rdparty/libjasper/jp2_cod.c unsigned int i; i 880 3rdparty/libjasper/jp2_cod.c for (i = 0; i < pclr->numlutents; ++i) { i 882 3rdparty/libjasper/jp2_cod.c fprintf(out, "LUT[%d][%d]=%d\n", i, j, (int)pclr->lutdata[i * pclr->numchans + j]); i 900 3rdparty/libjasper/jp2_cod.c int i; i 902 3rdparty/libjasper/jp2_cod.c for (i = 0; i < 16; i++) i 904 3rdparty/libjasper/jp2_cod.c if (jp2_getuint8(in, &uuid->uuid[i])) i 910 3rdparty/libjasper/jp2_cod.c for (i = 0; i < uuid->datalen; i++) i 912 3rdparty/libjasper/jp2_cod.c if (jp2_getuint8(in, &uuid->data[i])) i 921 3rdparty/libjasper/jp2_cod.c int i; i 923 3rdparty/libjasper/jp2_cod.c for (i = 0; i < 16; i++) i 925 3rdparty/libjasper/jp2_cod.c if (jp2_putuint8(out, uuid->uuid[i])) i 929 3rdparty/libjasper/jp2_cod.c for (i = 0; i < uuid->datalen; i++) i 931 3rdparty/libjasper/jp2_cod.c if (jp2_putuint8(out, uuid->data[i])) i 940 3rdparty/libjasper/jp2_cod.c int i; i 947 3rdparty/libjasper/jp2_cod.c for (i = 0; i < m; ++i) { i 970 3rdparty/libjasper/jp2_cod.c unsigned int i; i 972 3rdparty/libjasper/jp2_cod.c for (i = 0; i < cdef->numchans; ++i) { i 973 3rdparty/libjasper/jp2_cod.c cdefent = &cdef->ents[i]; i 104 3rdparty/libjasper/jp2_dec.c unsigned int i; i 241 3rdparty/libjasper/jp2_dec.c for (i = 1; i < JAS_CAST(uint, jas_image_numcmpts(dec->image)); ++i) { i 242 3rdparty/libjasper/jp2_dec.c if (jas_image_cmptdtype(dec->image, i) != dtype) { i 271 3rdparty/libjasper/jp2_dec.c for (i = 0; i < JAS_CAST(uint, jas_image_numcmpts(dec->image)); ++i) { i 272 3rdparty/libjasper/jp2_dec.c if (jas_image_cmptdtype(dec->image, i) != JP2_BPCTODTYPE(dec->bpcc->data.bpcc.bpcs[i])) { i 324 3rdparty/libjasper/jp2_dec.c for (i = 0; i < dec->numchans; ++i) { i 326 3rdparty/libjasper/jp2_dec.c if (dec->cmap->data.cmap.ents[i].cmptno >= JAS_CAST(uint, jas_image_numcmpts(dec->image))) { i 331 3rdparty/libjasper/jp2_dec.c if (dec->cmap->data.cmap.ents[i].pcol >= dec->pclr->data.pclr.numchans) { i 345 3rdparty/libjasper/jp2_dec.c for (i = 0; i < dec->numchans; ++i) { i 346 3rdparty/libjasper/jp2_dec.c dec->chantocmptlut[i] = i; i 358 3rdparty/libjasper/jp2_dec.c for (i = 0; i < pclrd->numlutents; ++i) { i 359 3rdparty/libjasper/jp2_dec.c lutents[i] = pclrd->lutdata[cmapent->pcol + i * pclrd->numchans]; i 382 3rdparty/libjasper/jp2_dec.c for (i = 0; i < JAS_CAST(uint, jas_image_numcmpts(dec->image)); ++i) { i 383 3rdparty/libjasper/jp2_dec.c jas_image_setcmpttype(dec->image, i, JAS_IMAGE_CT_UNKNOWN); i 388 3rdparty/libjasper/jp2_dec.c for (i = 0; i < dec->numchans; ++i) { i 390 3rdparty/libjasper/jp2_dec.c dec->chantocmptlut[dec->cdef->data.cdef.ents[i].channo], i 392 3rdparty/libjasper/jp2_dec.c dec->cdef->data.cdef.ents[i].type, dec->cdef->data.cdef.ents[i].assoc)); i 395 3rdparty/libjasper/jp2_dec.c for (i = 0; i < dec->numchans; ++i) { i 396 3rdparty/libjasper/jp2_dec.c jas_image_setcmpttype(dec->image, dec->chantocmptlut[i], i 397 3rdparty/libjasper/jp2_dec.c jp2_getct(jas_image_clrspc(dec->image), 0, i + 1)); i 402 3rdparty/libjasper/jp2_dec.c for (i = jas_image_numcmpts(dec->image); i > 0; --i) { i 403 3rdparty/libjasper/jp2_dec.c if (jas_image_cmpttype(dec->image, i - 1) == JAS_IMAGE_CT_UNKNOWN) { i 404 3rdparty/libjasper/jp2_dec.c jas_image_delcmpt(dec->image, i - 1); i 438 3rdparty/libjasper/jp2_dec.c int i; i 455 3rdparty/libjasper/jp2_dec.c for (i = n - 1; i >= 0; --i) { i 456 3rdparty/libjasper/jp2_dec.c if (jas_stream_ungetc(in, buf[i]) == EOF) { i 107 3rdparty/libjasper/jp2_enc.c int i; i 122 3rdparty/libjasper/jp2_enc.c for (i = 1; i < jas_image_numcmpts(image); ++i) { i 123 3rdparty/libjasper/jp2_enc.c if (jas_image_cmptsgnd(image, i) != sgnd || i 124 3rdparty/libjasper/jp2_enc.c jas_image_cmptprec(image, i) != prec) { i 292 3rdparty/libjasper/jp2_enc.c for (i = 0; i < jas_image_numcmpts(image); ++i) { i 293 3rdparty/libjasper/jp2_enc.c cdefchanent = &cdef->ents[i]; i 294 3rdparty/libjasper/jp2_enc.c cdefchanent->channo = i; i 295 3rdparty/libjasper/jp2_enc.c typeasoc = jp2_gettypeasoc(jas_image_clrspc(image), jas_image_cmpttype(image, i)); i 482 3rdparty/libjasper/jpc_cs.c unsigned int i; i 507 3rdparty/libjasper/jpc_cs.c for (i = 0; i < siz->numcomps; ++i) { i 509 3rdparty/libjasper/jpc_cs.c jpc_getuint8(in, &siz->comps[i].hsamp) || i 510 3rdparty/libjasper/jpc_cs.c jpc_getuint8(in, &siz->comps[i].vsamp)) { i 514 3rdparty/libjasper/jpc_cs.c siz->comps[i].sgnd = (tmp >> 7) & 1; i 515 3rdparty/libjasper/jpc_cs.c siz->comps[i].prec = (tmp & 0x7f) + 1; i 527 3rdparty/libjasper/jpc_cs.c unsigned int i; i 546 3rdparty/libjasper/jpc_cs.c for (i = 0; i < siz->numcomps; ++i) { i 547 3rdparty/libjasper/jpc_cs.c if (jpc_putuint8(out, ((siz->comps[i].sgnd & 1) << 7) | i 548 3rdparty/libjasper/jpc_cs.c ((siz->comps[i].prec - 1) & 0x7f)) || i 549 3rdparty/libjasper/jpc_cs.c jpc_putuint8(out, siz->comps[i].hsamp) || i 550 3rdparty/libjasper/jpc_cs.c jpc_putuint8(out, siz->comps[i].vsamp)) { i 560 3rdparty/libjasper/jpc_cs.c unsigned int i; i 567 3rdparty/libjasper/jpc_cs.c for (i = 0; i < siz->numcomps; ++i) { i 569 3rdparty/libjasper/jpc_cs.c "vsamp[%d] = %d\n", i, siz->comps[i].prec, i, i 570 3rdparty/libjasper/jpc_cs.c siz->comps[i].sgnd, i, siz->comps[i].hsamp, i, i 571 3rdparty/libjasper/jpc_cs.c siz->comps[i].vsamp); i 629 3rdparty/libjasper/jpc_cs.c int i; i 639 3rdparty/libjasper/jpc_cs.c for (i = 0; i < cod->compparms.numrlvls; ++i) { i 641 3rdparty/libjasper/jpc_cs.c i, cod->compparms.rlvls[i].parwidthval, i 642 3rdparty/libjasper/jpc_cs.c i, cod->compparms.rlvls[i].parheightval); i 732 3rdparty/libjasper/jpc_cs.c int i; i 751 3rdparty/libjasper/jpc_cs.c for (i = 0; i < compparms->numrlvls; ++i) { i 756 3rdparty/libjasper/jpc_cs.c compparms->rlvls[i].parwidthval = tmp & 0xf; i 757 3rdparty/libjasper/jpc_cs.c compparms->rlvls[i].parheightval = (tmp >> 4) & 0xf; i 773 3rdparty/libjasper/jpc_cs.c int i; i 788 3rdparty/libjasper/jpc_cs.c for (i = 0; i < compparms->numrlvls; ++i) { i 790 3rdparty/libjasper/jpc_cs.c ((compparms->rlvls[i].parheightval & 0xf) << 4) | i 791 3rdparty/libjasper/jpc_cs.c (compparms->rlvls[i].parwidthval & 0xf))) { i 876 3rdparty/libjasper/jpc_cs.c int i; i 879 3rdparty/libjasper/jpc_cs.c for (i = 0; i < qcd->compparms.numstepsizes; ++i) { i 881 3rdparty/libjasper/jpc_cs.c i, (unsigned) JPC_QCX_GETEXPN(qcd->compparms.stepsizes[i]), i 882 3rdparty/libjasper/jpc_cs.c i, (unsigned) JPC_QCX_GETMANT(qcd->compparms.stepsizes[i])); i 938 3rdparty/libjasper/jpc_cs.c int i; i 942 3rdparty/libjasper/jpc_cs.c for (i = 0; i < qcc->compparms.numstepsizes; ++i) { i 944 3rdparty/libjasper/jpc_cs.c i, (unsigned) JPC_QCX_GETEXPN(qcc->compparms.stepsizes[i]), i 945 3rdparty/libjasper/jpc_cs.c i, (unsigned) JPC_QCX_GETMANT(qcc->compparms.stepsizes[i])); i 966 3rdparty/libjasper/jpc_cs.c int i; i 995 3rdparty/libjasper/jpc_cs.c for (i = 0; i < compparms->numstepsizes; ++i) { i 998 3rdparty/libjasper/jpc_cs.c compparms->stepsizes[i] = JPC_QCX_EXPN(tmp >> 3); i 1000 3rdparty/libjasper/jpc_cs.c jpc_getuint16(in, &compparms->stepsizes[i]); i 1016 3rdparty/libjasper/jpc_cs.c int i; i 1022 3rdparty/libjasper/jpc_cs.c for (i = 0; i < compparms->numstepsizes; ++i) { i 1025 3rdparty/libjasper/jpc_cs.c compparms->stepsizes[i]) << 3); i 1027 3rdparty/libjasper/jpc_cs.c jpc_putuint16(out, compparms->stepsizes[i]); i 1438 3rdparty/libjasper/jpc_cs.c unsigned int i; i 1442 3rdparty/libjasper/jpc_cs.c for (i = 0; i < com->len; ++i) { i 1443 3rdparty/libjasper/jpc_cs.c if (!isprint(com->data[i])) { i 1505 3rdparty/libjasper/jpc_cs.c unsigned int i; i 1507 3rdparty/libjasper/jpc_cs.c for (i = 0; i < unk->len; ++i) { i 1508 3rdparty/libjasper/jpc_cs.c fprintf(out, "%02x ", unk->data[i]); i 1620 3rdparty/libjasper/jpc_cs.c int i; i 1628 3rdparty/libjasper/jpc_cs.c for (i = n - 1; i >= 0; --i) { i 1629 3rdparty/libjasper/jpc_cs.c if (jas_stream_ungetc(in, buf[i]) == EOF) { i 1018 3rdparty/libjasper/jpc_dec.c int i; i 1087 3rdparty/libjasper/jpc_dec.c for (i = 0; i < jas_matrix_numrows(tcomp->data); ++i) { i 1089 3rdparty/libjasper/jpc_dec.c v = jas_matrix_get(tcomp->data, i, j); i 1091 3rdparty/libjasper/jpc_dec.c jas_matrix_set(tcomp->data, i, j, jpc_fixtoint(v)); i 1101 3rdparty/libjasper/jpc_dec.c for (i = 0; i < jas_matrix_numrows(tcomp->data); ++i) { i 1103 3rdparty/libjasper/jpc_dec.c *jas_matrix_getref(tcomp->data, i, j) += adjust; i 1605 3rdparty/libjasper/jpc_dec.c int i; i 1609 3rdparty/libjasper/jpc_dec.c for (i = 0; i < JPC_MAXRLVLS; ++i) { i 1610 3rdparty/libjasper/jpc_dec.c ccp->prcwidthexpns[i] = 15; i 1611 3rdparty/libjasper/jpc_dec.c ccp->prcheightexpns[i] = 15; i 1773 3rdparty/libjasper/jpc_dec.c int i; i 1782 3rdparty/libjasper/jpc_dec.c for (i = 0; i < jas_matrix_numrows(x); ++i) { i 1784 3rdparty/libjasper/jpc_dec.c t = jas_matrix_get(x, i, j); i 1790 3rdparty/libjasper/jpc_dec.c jas_matrix_set(x, i, j, t); i 1798 3rdparty/libjasper/jpc_dec.c int i; i 1812 3rdparty/libjasper/jpc_dec.c for (i = 0; i < jas_matrix_numrows(x); ++i) { i 1814 3rdparty/libjasper/jpc_dec.c val = jas_matrix_get(x, i, j); i 1820 3rdparty/libjasper/jpc_dec.c jas_matrix_set(x, i, j, val); i 1837 3rdparty/libjasper/jpc_dec.c jas_matrix_set(x, i, j, val); i 2044 3rdparty/libjasper/jpc_dec.c int i; i 2056 3rdparty/libjasper/jpc_dec.c for (i = 0; i < streamlist->maxstreams; ++i) { i 2057 3rdparty/libjasper/jpc_dec.c streamlist->streams[i] = 0; i 2067 3rdparty/libjasper/jpc_dec.c int i; i 2075 3rdparty/libjasper/jpc_dec.c for (i = streamlist->numstreams; i < streamlist->maxstreams; ++i) { i 2076 3rdparty/libjasper/jpc_dec.c streamlist->streams[i] = 0; i 2093 3rdparty/libjasper/jpc_dec.c int i; i 2098 3rdparty/libjasper/jpc_dec.c for (i = streamno + 1; i < streamlist->numstreams; ++i) { i 2099 3rdparty/libjasper/jpc_dec.c streamlist->streams[i - 1] = streamlist->streams[i]; i 2144 3rdparty/libjasper/jpc_dec.c int i; i 2145 3rdparty/libjasper/jpc_dec.c for (i = 0; i < tab->numents; ++i) { i 2146 3rdparty/libjasper/jpc_dec.c jpc_ppxstabent_destroy(tab->ents[i]); i 2171 3rdparty/libjasper/jpc_dec.c int i; i 2173 3rdparty/libjasper/jpc_dec.c for (i = 0; i < tab->numents; ++i) { i 2174 3rdparty/libjasper/jpc_dec.c if (tab->ents[i]->ind > ent->ind) { i 2178 3rdparty/libjasper/jpc_dec.c inspt = i; i 2186 3rdparty/libjasper/jpc_dec.c for (i = tab->numents; i > inspt; --i) { i 2187 3rdparty/libjasper/jpc_dec.c tab->ents[i] = tab->ents[i - 1]; i 2189 3rdparty/libjasper/jpc_dec.c tab->ents[i] = ent; i 2275 3rdparty/libjasper/jpc_dec.c int i; i 2277 3rdparty/libjasper/jpc_dec.c for (i = 0; i < tab->numents; ++i) { i 2278 3rdparty/libjasper/jpc_dec.c ent = tab->ents[i]; i 350 3rdparty/libjasper/jpc_enc.c int i; i 663 3rdparty/libjasper/jpc_enc.c for (i = 0; i < JAS_CAST(int, tcp->numlyrs - 1); ++i) { i 664 3rdparty/libjasper/jpc_enc.c tcp->ilyrrates[i] = jpc_dbltofix(ilyrrates[i]); i 893 3rdparty/libjasper/jpc_enc.c int i; i 945 3rdparty/libjasper/jpc_enc.c for (i = 0; i < JAS_CAST(int, cp->numcmpts); ++i) { i 946 3rdparty/libjasper/jpc_enc.c siz->comps[i].prec = cp->ccps[i].prec; i 947 3rdparty/libjasper/jpc_enc.c siz->comps[i].sgnd = cp->ccps[i].sgnd; i 948 3rdparty/libjasper/jpc_enc.c siz->comps[i].hsamp = cp->ccps[i].sampgrdstepx; i 949 3rdparty/libjasper/jpc_enc.c siz->comps[i].vsamp = cp->ccps[i].sampgrdstepy; i 1102 3rdparty/libjasper/jpc_enc.c int i; i 1158 3rdparty/libjasper/jpc_enc.c for (i = 0; i < jas_matrix_numrows(comp->data); ++i) { i 1160 3rdparty/libjasper/jpc_enc.c *jas_matrix_getref(comp->data, i, j) -= adjust; i 1188 3rdparty/libjasper/jpc_enc.c for (i = 0; i < jas_image_numcmpts(enc->image); ++i) { i 1189 3rdparty/libjasper/jpc_enc.c comp = &tile->tcmpts[i]; i 1322 3rdparty/libjasper/jpc_enc.c for (i = 0; i < comp->numrlvls; ++i) { i 1323 3rdparty/libjasper/jpc_enc.c cod->compparms.rlvls[i].parwidthval = comp->rlvls[i].prcwidthexpn; i 1324 3rdparty/libjasper/jpc_enc.c cod->compparms.rlvls[i].parheightval = comp->rlvls[i].prcheightexpn; i 1468 3rdparty/libjasper/jpc_enc.c int i; i 1474 3rdparty/libjasper/jpc_enc.c for (i = 0; i < numpasses; ++i) { i 1488 3rdparty/libjasper/jpc_enc.c int i; i 1496 3rdparty/libjasper/jpc_enc.c for (i = 0; i < jas_matrix_numrows(data); ++i) { i 1498 3rdparty/libjasper/jpc_enc.c t = jas_matrix_get(data, i, j); i 1508 3rdparty/libjasper/jpc_enc.c jas_matrix_set(data, i, j, t); i 91 3rdparty/libjasper/jpc_mct.c int i; i 104 3rdparty/libjasper/jpc_mct.c for (i = 0; i < numrows; i++) { i 105 3rdparty/libjasper/jpc_mct.c c0p = jas_matrix_getref(c0, i, 0); i 106 3rdparty/libjasper/jpc_mct.c c1p = jas_matrix_getref(c1, i, 0); i 107 3rdparty/libjasper/jpc_mct.c c2p = jas_matrix_getref(c2, i, 0); i 134 3rdparty/libjasper/jpc_mct.c int i; i 147 3rdparty/libjasper/jpc_mct.c for (i = 0; i < numrows; i++) { i 148 3rdparty/libjasper/jpc_mct.c c0p = jas_matrix_getref(c0, i, 0); i 149 3rdparty/libjasper/jpc_mct.c c1p = jas_matrix_getref(c1, i, 0); i 150 3rdparty/libjasper/jpc_mct.c c2p = jas_matrix_getref(c2, i, 0); i 175 3rdparty/libjasper/jpc_mct.c int i; i 191 3rdparty/libjasper/jpc_mct.c for (i = 0; i < numrows; ++i) { i 192 3rdparty/libjasper/jpc_mct.c c0p = jas_matrix_getref(c0, i, 0); i 193 3rdparty/libjasper/jpc_mct.c c1p = jas_matrix_getref(c1, i, 0); i 194 3rdparty/libjasper/jpc_mct.c c2p = jas_matrix_getref(c2, i, 0); i 216 3rdparty/libjasper/jpc_mct.c int i; i 232 3rdparty/libjasper/jpc_mct.c for (i = 0; i < numrows; ++i) { i 233 3rdparty/libjasper/jpc_mct.c c0p = jas_matrix_getref(c0, i, 0); i 234 3rdparty/libjasper/jpc_mct.c c1p = jas_matrix_getref(c1, i, 0); i 235 3rdparty/libjasper/jpc_mct.c c2p = jas_matrix_getref(c2, i, 0); i 456 3rdparty/libjasper/jpc_qmfb.c register int i; i 480 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 495 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 510 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 545 3rdparty/libjasper/jpc_qmfb.c register int i; i 569 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 584 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 599 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 763 3rdparty/libjasper/jpc_qmfb.c register int i; i 785 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 800 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 815 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 849 3rdparty/libjasper/jpc_qmfb.c register int i; i 871 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 886 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 901 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 988 3rdparty/libjasper/jpc_qmfb.c register int i; i 1050 3rdparty/libjasper/jpc_qmfb.c register int i; i 1063 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 1074 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 1085 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 1098 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 1109 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 1120 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 1131 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 1150 3rdparty/libjasper/jpc_qmfb.c register int i; i 1163 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 1174 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 1185 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 1198 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 1209 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 1220 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 1231 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 1306 3rdparty/libjasper/jpc_qmfb.c register int i; i 1368 3rdparty/libjasper/jpc_qmfb.c register int i; i 1381 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 1392 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 1403 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 1416 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 1427 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 1438 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 1449 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 1468 3rdparty/libjasper/jpc_qmfb.c register int i; i 1481 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 1492 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 1503 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 1516 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 1527 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 1538 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 1549 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 1566 3rdparty/libjasper/jpc_qmfb.c int i; i 1572 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < maxcols; i += JPC_QMFB_COLGRPSIZE) { i 1585 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numrows; ++i) { i 1605 3rdparty/libjasper/jpc_qmfb.c int i; i 1608 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numrows; ++i) { i 1616 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < maxcols; i += JPC_QMFB_COLGRPSIZE) { i 1773 3rdparty/libjasper/jpc_qmfb.c register int i; i 1786 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 1798 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 1810 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 1824 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 1836 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 1848 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 1862 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 1874 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 1886 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 1900 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 1912 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 1924 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 1938 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 1948 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 1961 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 1981 3rdparty/libjasper/jpc_qmfb.c register int i; i 1994 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 2006 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 2018 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 2032 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 2044 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 2056 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 2070 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 2082 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 2094 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 2108 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 2120 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 2132 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 2146 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 2156 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 2169 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 2487 3rdparty/libjasper/jpc_qmfb.c register int i; i 2500 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 2510 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 2524 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 2536 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 2548 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 2562 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 2574 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 2586 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 2600 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 2612 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 2624 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 2638 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 2650 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 2662 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 2675 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < JPC_QMFB_COLGRPSIZE; ++i) { i 2695 3rdparty/libjasper/jpc_qmfb.c register int i; i 2708 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 2718 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 2732 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 2744 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 2756 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 2770 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 2782 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 2794 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 2808 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 2820 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 2832 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 2846 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 2858 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 2870 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 2883 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numcols; ++i) { i 3079 3rdparty/libjasper/jpc_qmfb.c int i; i 3085 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < maxcols; i += JPC_QMFB_COLGRPSIZE) { i 3098 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numrows; ++i) { i 3118 3rdparty/libjasper/jpc_qmfb.c int i; i 3121 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < numrows; ++i) { i 3129 3rdparty/libjasper/jpc_qmfb.c for (i = 0; i < maxcols; i += JPC_QMFB_COLGRPSIZE) { i 236 3rdparty/libjasper/jpc_t1cod.c int i; i 247 3rdparty/libjasper/jpc_t1cod.c for (i = 0; i < 256; ++i) { i 248 3rdparty/libjasper/jpc_t1cod.c jpc_zcctxnolut[(orient << 8) | i] = jpc_getzcctxno(i, orient); i 252 3rdparty/libjasper/jpc_t1cod.c for (i = 0; i < 256; ++i) { i 253 3rdparty/libjasper/jpc_t1cod.c jpc_spblut[i] = jpc_getspb(i << 4); i 256 3rdparty/libjasper/jpc_t1cod.c for (i = 0; i < 256; ++i) { i 257 3rdparty/libjasper/jpc_t1cod.c jpc_scctxnolut[i] = jpc_getscctxno(i << 4); i 261 3rdparty/libjasper/jpc_t1cod.c for (i = 0; i < 2048; ++i) { i 262 3rdparty/libjasper/jpc_t1cod.c jpc_magctxnolut[(refine << 11) + i] = jpc_getmagctxno((refine ? JPC_REFINE : 0) | i); i 266 3rdparty/libjasper/jpc_t1cod.c for (i = 0; i < (1 << JPC_NMSEDEC_BITS); ++i) { i 267 3rdparty/libjasper/jpc_t1cod.c t = i * jpc_pow2i(-JPC_NMSEDEC_FRACBITS); i 270 3rdparty/libjasper/jpc_t1cod.c jpc_signmsedec[i] = jpc_dbltofix(floor((u * u - v * v) * jpc_pow2i(JPC_NMSEDEC_FRACBITS) + 0.5) / jpc_pow2i(JPC_NMSEDEC_FRACBITS)); i 272 3rdparty/libjasper/jpc_t1cod.c jpc_signmsedec0[i] = jpc_dbltofix(floor((u * u) * jpc_pow2i(JPC_NMSEDEC_FRACBITS) + 0.5) / jpc_pow2i(JPC_NMSEDEC_FRACBITS)); i 274 3rdparty/libjasper/jpc_t1cod.c if (i & (1 << (JPC_NMSEDEC_BITS - 1))) { i 279 3rdparty/libjasper/jpc_t1cod.c jpc_refnmsedec[i] = jpc_dbltofix(floor((u * u - v * v) * jpc_pow2i(JPC_NMSEDEC_FRACBITS) + 0.5) / jpc_pow2i(JPC_NMSEDEC_FRACBITS)); i 281 3rdparty/libjasper/jpc_t1cod.c jpc_refnmsedec0[i] = jpc_dbltofix(floor((u * u) * jpc_pow2i(JPC_NMSEDEC_FRACBITS) + 0.5) / jpc_pow2i(JPC_NMSEDEC_FRACBITS)); i 452 3rdparty/libjasper/jpc_t1cod.c int i; i 455 3rdparty/libjasper/jpc_t1cod.c for (i = 0; i < JPC_NUMCTXS; ++i) { i 457 3rdparty/libjasper/jpc_t1cod.c switch (i) { i 194 3rdparty/libjasper/jpc_t1dec.c int i; i 239 3rdparty/libjasper/jpc_t1dec.c for (i = 0; i < seg->numpasses; ++i) { i 251 3rdparty/libjasper/jpc_t1dec.c (seg->passno + i - cblk->firstpassno + 2) / 3); i 256 3rdparty/libjasper/jpc_t1dec.c passtype = (seg->passno + i + 2) % 3; i 258 3rdparty/libjasper/jpc_t1dec.c passtype = JPC_PASSTYPE(seg->passno + i + 2); i 364 3rdparty/libjasper/jpc_t1dec.c int i; i 400 3rdparty/libjasper/jpc_t1dec.c for (i = height; i > 0; i -= 4, fstripestart += fstripestep, i 404 3rdparty/libjasper/jpc_t1dec.c vscanlen = JAS_MIN(i, 4); i 470 3rdparty/libjasper/jpc_t1dec.c int i; i 506 3rdparty/libjasper/jpc_t1dec.c for (i = height; i > 0; i -= 4, fstripestart += fstripestep, i 510 3rdparty/libjasper/jpc_t1dec.c vscanlen = JAS_MIN(i, 4); i 572 3rdparty/libjasper/jpc_t1dec.c int i; i 609 3rdparty/libjasper/jpc_t1dec.c for (i = height; i > 0; i -= 4, fstripestart += fstripestep, i 613 3rdparty/libjasper/jpc_t1dec.c vscanlen = JAS_MIN(i, 4); i 670 3rdparty/libjasper/jpc_t1dec.c int i; i 707 3rdparty/libjasper/jpc_t1dec.c for (i = height; i > 0; i -= 4, fstripestart += fstripestep, i 711 3rdparty/libjasper/jpc_t1dec.c vscanlen = JAS_MIN(i, 4); i 778 3rdparty/libjasper/jpc_t1dec.c int i; i 820 3rdparty/libjasper/jpc_t1dec.c for (i = 0; i < height; i += 4, fstripestart += fstripestep, i 824 3rdparty/libjasper/jpc_t1dec.c vscanlen = JAS_MIN(4, height - i); i 118 3rdparty/libjasper/jpc_t1enc.c int i; i 149 3rdparty/libjasper/jpc_t1enc.c for (i = 0; i < jas_matrix_numrows(cblk->data); ++i) { i 151 3rdparty/libjasper/jpc_t1enc.c v = abs(jas_matrix_get(cblk->data, i, j)); i 432 3rdparty/libjasper/jpc_t1enc.c int i; i 462 3rdparty/libjasper/jpc_t1enc.c for (i = height; i > 0; i -= 4, fstripestart += fstripestep, i 466 3rdparty/libjasper/jpc_t1enc.c vscanlen = JAS_MIN(i, 4); i 531 3rdparty/libjasper/jpc_t1enc.c int i; i 561 3rdparty/libjasper/jpc_t1enc.c for (i = height; i > 0; i -= 4, fstripestart += fstripestep, i 565 3rdparty/libjasper/jpc_t1enc.c vscanlen = JAS_MIN(i, 4); i 633 3rdparty/libjasper/jpc_t1enc.c int i; i 664 3rdparty/libjasper/jpc_t1enc.c for (i = height; i > 0; i -= 4, fstripestart += fstripestep, i 668 3rdparty/libjasper/jpc_t1enc.c vscanlen = JAS_MIN(i, 4); i 726 3rdparty/libjasper/jpc_t1enc.c int i; i 756 3rdparty/libjasper/jpc_t1enc.c for (i = height; i > 0; i -= 4, fstripestart += fstripestep, i 760 3rdparty/libjasper/jpc_t1enc.c vscanlen = JAS_MIN(i, 4); i 832 3rdparty/libjasper/jpc_t1enc.c int i; i 864 3rdparty/libjasper/jpc_t1enc.c for (i = height; i > 0; i -= 4, fstripestart += fstripestep, i 868 3rdparty/libjasper/jpc_t1enc.c vscanlen = JAS_MIN(i, 4); i 568 3rdparty/libjasper/jpc_t2cod.c int i; i 582 3rdparty/libjasper/jpc_t2cod.c for (i = pchglist->numpchgs; i > pchgno; --i) { i 583 3rdparty/libjasper/jpc_t2cod.c pchglist->pchgs[i] = pchglist->pchgs[i - 1]; i 592 3rdparty/libjasper/jpc_t2cod.c int i; i 596 3rdparty/libjasper/jpc_t2cod.c for (i = pchgno + 1; i < pchglist->numpchgs; ++i) { i 597 3rdparty/libjasper/jpc_t2cod.c pchglist->pchgs[i - 1] = pchglist->pchgs[i]; i 166 3rdparty/libjasper/jpc_t2dec.c int i; i 268 3rdparty/libjasper/jpc_t2dec.c i = 1; i 271 3rdparty/libjasper/jpc_t2dec.c if ((ret = jpc_tagtree_decode(prc->numimsbstagtree, leaf, i, inb)) < 0) { i 277 3rdparty/libjasper/jpc_t2dec.c ++i; i 279 3rdparty/libjasper/jpc_t2dec.c cblk->numimsbs = i - 1; i 175 3rdparty/libjasper/jpc_t2enc.c int i; i 264 3rdparty/libjasper/jpc_t2enc.c i = 1; i 267 3rdparty/libjasper/jpc_t2enc.c if ((ret = jpc_tagtree_encode(prc->nlibtree, leaf, i, outb)) < 0) { i 273 3rdparty/libjasper/jpc_t2enc.c ++i; i 275 3rdparty/libjasper/jpc_t2enc.c assert(leaf->known_ && i == leaf->value_ + 1); i 103 3rdparty/libjasper/jpc_tagtree.c int i; i 138 3rdparty/libjasper/jpc_tagtree.c for (i = 0; i < numlvls - 1; ++i) { i 139 3rdparty/libjasper/jpc_tagtree.c for (j = 0; j < nplv[i]; ++j) { i 140 3rdparty/libjasper/jpc_tagtree.c k = nplh[i]; i 150 3rdparty/libjasper/jpc_tagtree.c if ((j & 1) || j == nplv[i] - 1) { i 154 3rdparty/libjasper/jpc_tagtree.c parentnode0 += nplh[i]; i 142 3rdparty/libjasper/jpc_util.c int i; i 146 3rdparty/libjasper/jpc_util.c for (i = jas_seq_start(z); i < jas_seq_end(z); i++) { i 147 3rdparty/libjasper/jpc_util.c *jas_seq_getref(z, i) = (!JAS_MOD(i, m)) ? jas_seq_get(x, i / m) : i 157 3rdparty/libjasper/jpc_util.c int i; i 160 3rdparty/libjasper/jpc_util.c for (i = jas_seq_start(x); i < jas_seq_end(x); i++) { i 161 3rdparty/libjasper/jpc_util.c s = jpc_fix_add(s, jpc_fix_mul(jas_seq_get(x, i), jas_seq_get(x, i))); i 169 3rdparty/libjasper/jpc_util.c int i; i 179 3rdparty/libjasper/jpc_util.c for (i = jas_seq_start(z); i < jas_seq_end(z); i++) { i 182 3rdparty/libjasper/jpc_util.c k = i - j; i 190 3rdparty/libjasper/jpc_util.c *jas_seq_getref(z, i) = s; i 29 3rdparty/libjpeg/jaricom.c #define V(i,a,b,c,d) (((INT32)a << 16) | ((INT32)c << 8) | ((INT32)d << 7) | b) i 33 3rdparty/libjpeg/jcapimin.c int i; i 67 3rdparty/libjpeg/jcapimin.c for (i = 0; i < NUM_QUANT_TBLS; i++) { i 68 3rdparty/libjpeg/jcapimin.c cinfo->quant_tbl_ptrs[i] = NULL; i 69 3rdparty/libjpeg/jcapimin.c cinfo->q_scale_factor[i] = 100; i 72 3rdparty/libjpeg/jcapimin.c for (i = 0; i < NUM_HUFF_TBLS; i++) { i 73 3rdparty/libjpeg/jcapimin.c cinfo->dc_huff_tbl_ptrs[i] = NULL; i 74 3rdparty/libjpeg/jcapimin.c cinfo->ac_huff_tbl_ptrs[i] = NULL; i 129 3rdparty/libjpeg/jcapimin.c int i; i 133 3rdparty/libjpeg/jcapimin.c for (i = 0; i < NUM_QUANT_TBLS; i++) { i 134 3rdparty/libjpeg/jcapimin.c if ((qtbl = cinfo->quant_tbl_ptrs[i]) != NULL) i 138 3rdparty/libjpeg/jcapimin.c for (i = 0; i < NUM_HUFF_TBLS; i++) { i 139 3rdparty/libjpeg/jcapimin.c if ((htbl = cinfo->dc_huff_tbl_ptrs[i]) != NULL) i 141 3rdparty/libjpeg/jcapimin.c if ((htbl = cinfo->ac_huff_tbl_ptrs[i]) != NULL) i 926 3rdparty/libjpeg/jcarith.c int i; i 936 3rdparty/libjpeg/jcarith.c for (i = 0; i < NUM_ARITH_TBLS; i++) { i 937 3rdparty/libjpeg/jcarith.c entropy->dc_stats[i] = NULL; i 938 3rdparty/libjpeg/jcarith.c entropy->ac_stats[i] = NULL; i 444 3rdparty/libjpeg/jccoefct.c int i; i 449 3rdparty/libjpeg/jccoefct.c for (i = 0; i < C_MAX_BLOCKS_IN_MCU; i++) { i 450 3rdparty/libjpeg/jccoefct.c coef->MCU_buffer[i] = buffer + i; i 91 3rdparty/libjpeg/jccolor.c INT32 i; i 98 3rdparty/libjpeg/jccolor.c for (i = 0; i <= MAXJSAMPLE; i++) { i 99 3rdparty/libjpeg/jccolor.c rgb_ycc_tab[i+R_Y_OFF] = FIX(0.29900) * i; i 100 3rdparty/libjpeg/jccolor.c rgb_ycc_tab[i+G_Y_OFF] = FIX(0.58700) * i; i 101 3rdparty/libjpeg/jccolor.c rgb_ycc_tab[i+B_Y_OFF] = FIX(0.11400) * i + ONE_HALF; i 102 3rdparty/libjpeg/jccolor.c rgb_ycc_tab[i+R_CB_OFF] = (-FIX(0.16874)) * i; i 103 3rdparty/libjpeg/jccolor.c rgb_ycc_tab[i+G_CB_OFF] = (-FIX(0.33126)) * i; i 108 3rdparty/libjpeg/jccolor.c rgb_ycc_tab[i+B_CB_OFF] = FIX(0.50000) * i + CBCR_OFFSET + ONE_HALF-1; i 112 3rdparty/libjpeg/jccolor.c rgb_ycc_tab[i+G_CR_OFF] = (-FIX(0.41869)) * i; i 113 3rdparty/libjpeg/jccolor.c rgb_ycc_tab[i+B_CR_OFF] = (-FIX(0.08131)) * i; i 86 3rdparty/libjpeg/jcdctmgr.c register int i; i 89 3rdparty/libjpeg/jcdctmgr.c for (i = 0; i < DCTSIZE2; i++) { i 90 3rdparty/libjpeg/jcdctmgr.c qval = divisors[i]; i 91 3rdparty/libjpeg/jcdctmgr.c temp = workspace[i]; i 118 3rdparty/libjpeg/jcdctmgr.c output_ptr[i] = (JCOEF) temp; i 149 3rdparty/libjpeg/jcdctmgr.c register int i; i 152 3rdparty/libjpeg/jcdctmgr.c for (i = 0; i < DCTSIZE2; i++) { i 154 3rdparty/libjpeg/jcdctmgr.c temp = workspace[i] * divisors[i]; i 161 3rdparty/libjpeg/jcdctmgr.c output_ptr[i] = (JCOEF) ((int) (temp + (FAST_FLOAT) 16384.5) - 16384); i 183 3rdparty/libjpeg/jcdctmgr.c int ci, qtblno, i; i 369 3rdparty/libjpeg/jcdctmgr.c for (i = 0; i < DCTSIZE2; i++) { i 370 3rdparty/libjpeg/jcdctmgr.c dtbl[i] = ((DCTELEM) qtbl->quantval[i]) << 3; i 404 3rdparty/libjpeg/jcdctmgr.c for (i = 0; i < DCTSIZE2; i++) { i 405 3rdparty/libjpeg/jcdctmgr.c dtbl[i] = (DCTELEM) i 406 3rdparty/libjpeg/jcdctmgr.c DESCALE(MULTIPLY16V16((INT32) qtbl->quantval[i], i 407 3rdparty/libjpeg/jcdctmgr.c (INT32) aanscales[i]), i 438 3rdparty/libjpeg/jcdctmgr.c i = 0; i 441 3rdparty/libjpeg/jcdctmgr.c fdtbl[i] = (FAST_FLOAT) i 442 3rdparty/libjpeg/jcdctmgr.c (1.0 / (((double) qtbl->quantval[i] * i 444 3rdparty/libjpeg/jcdctmgr.c i++; i 467 3rdparty/libjpeg/jcdctmgr.c int i; i 476 3rdparty/libjpeg/jcdctmgr.c for (i = 0; i < NUM_QUANT_TBLS; i++) { i 477 3rdparty/libjpeg/jcdctmgr.c fdct->divisors[i] = NULL; i 479 3rdparty/libjpeg/jcdctmgr.c fdct->float_divisors[i] = NULL; i 166 3rdparty/libjpeg/jchuff.c int p, i, l, lastp, si, maxsymbol; i 194 3rdparty/libjpeg/jchuff.c i = (int) htbl->bits[l]; i 195 3rdparty/libjpeg/jchuff.c if (i < 0 || p + i > 256) /* protect against table overrun */ i 197 3rdparty/libjpeg/jchuff.c while (i--) i 240 3rdparty/libjpeg/jchuff.c i = htbl->huffval[p]; i 241 3rdparty/libjpeg/jchuff.c if (i < 0 || i > maxsymbol || dtbl->ehufsi[i]) i 243 3rdparty/libjpeg/jchuff.c dtbl->ehufco[i] = huffcode[p]; i 244 3rdparty/libjpeg/jchuff.c dtbl->ehufsi[i] = huffsize[p]; i 921 3rdparty/libjpeg/jchuff.c register int k, r, i; i 989 3rdparty/libjpeg/jchuff.c i = (r << 4) + nbits; i 990 3rdparty/libjpeg/jchuff.c if (! emit_bits_s(state, actbl->ehufco[i], actbl->ehufsi[i])) i 1263 3rdparty/libjpeg/jchuff.c int p, i, j; i 1270 3rdparty/libjpeg/jchuff.c for (i = 0; i < 257; i++) i 1271 3rdparty/libjpeg/jchuff.c others[i] = -1; /* init links to empty */ i 1286 3rdparty/libjpeg/jchuff.c for (i = 0; i <= 256; i++) { i 1287 3rdparty/libjpeg/jchuff.c if (freq[i] && freq[i] <= v) { i 1288 3rdparty/libjpeg/jchuff.c v = freq[i]; i 1289 3rdparty/libjpeg/jchuff.c c1 = i; i 1297 3rdparty/libjpeg/jchuff.c for (i = 0; i <= 256; i++) { i 1298 3rdparty/libjpeg/jchuff.c if (freq[i] && freq[i] <= v && i != c1) { i 1299 3rdparty/libjpeg/jchuff.c v = freq[i]; i 1300 3rdparty/libjpeg/jchuff.c c2 = i; i 1330 3rdparty/libjpeg/jchuff.c for (i = 0; i <= 256; i++) { i 1331 3rdparty/libjpeg/jchuff.c if (codesize[i]) { i 1334 3rdparty/libjpeg/jchuff.c if (codesize[i] > MAX_CLEN) i 1337 3rdparty/libjpeg/jchuff.c bits[codesize[i]]++; i 1352 3rdparty/libjpeg/jchuff.c for (i = MAX_CLEN; i > 16; i--) { i 1353 3rdparty/libjpeg/jchuff.c while (bits[i] > 0) { i 1354 3rdparty/libjpeg/jchuff.c j = i - 2; /* find length of new prefix to be used */ i 1358 3rdparty/libjpeg/jchuff.c bits[i] -= 2; /* remove two symbols */ i 1359 3rdparty/libjpeg/jchuff.c bits[i-1]++; /* one goes in this length */ i 1366 3rdparty/libjpeg/jchuff.c while (bits[i] == 0) /* find largest codelength still in use */ i 1367 3rdparty/libjpeg/jchuff.c i--; i 1368 3rdparty/libjpeg/jchuff.c bits[i]--; i 1378 3rdparty/libjpeg/jchuff.c for (i = 1; i <= MAX_CLEN; i++) { i 1380 3rdparty/libjpeg/jchuff.c if (codesize[j] == i) { i 1560 3rdparty/libjpeg/jchuff.c int i; i 1569 3rdparty/libjpeg/jchuff.c for (i = 0; i < NUM_HUFF_TBLS; i++) { i 1570 3rdparty/libjpeg/jchuff.c entropy->dc_derived_tbls[i] = entropy->ac_derived_tbls[i] = NULL; i 1571 3rdparty/libjpeg/jchuff.c entropy->dc_count_ptrs[i] = entropy->ac_count_ptrs[i] = NULL; i 152 3rdparty/libjpeg/jcmarker.c int i; i 158 3rdparty/libjpeg/jcmarker.c for (i = 0; i <= cinfo->lim_Se; i++) { i 159 3rdparty/libjpeg/jcmarker.c if (qtbl->quantval[cinfo->natural_order[i]] > 255) i 171 3rdparty/libjpeg/jcmarker.c for (i = 0; i <= cinfo->lim_Se; i++) { i 173 3rdparty/libjpeg/jcmarker.c unsigned int qval = qtbl->quantval[cinfo->natural_order[i]]; i 191 3rdparty/libjpeg/jcmarker.c int length, i; i 207 3rdparty/libjpeg/jcmarker.c for (i = 1; i <= 16; i++) i 208 3rdparty/libjpeg/jcmarker.c length += htbl->bits[i]; i 213 3rdparty/libjpeg/jcmarker.c for (i = 1; i <= 16; i++) i 214 3rdparty/libjpeg/jcmarker.c emit_byte(cinfo, htbl->bits[i]); i 216 3rdparty/libjpeg/jcmarker.c for (i = 0; i < length; i++) i 217 3rdparty/libjpeg/jcmarker.c emit_byte(cinfo, htbl->huffval[i]); i 233 3rdparty/libjpeg/jcmarker.c int length, i; i 236 3rdparty/libjpeg/jcmarker.c for (i = 0; i < NUM_ARITH_TBLS; i++) i 237 3rdparty/libjpeg/jcmarker.c dc_in_use[i] = ac_in_use[i] = 0; i 239 3rdparty/libjpeg/jcmarker.c for (i = 0; i < cinfo->comps_in_scan; i++) { i 240 3rdparty/libjpeg/jcmarker.c compptr = cinfo->cur_comp_info[i]; i 250 3rdparty/libjpeg/jcmarker.c for (i = 0; i < NUM_ARITH_TBLS; i++) i 251 3rdparty/libjpeg/jcmarker.c length += dc_in_use[i] + ac_in_use[i]; i 258 3rdparty/libjpeg/jcmarker.c for (i = 0; i < NUM_ARITH_TBLS; i++) { i 259 3rdparty/libjpeg/jcmarker.c if (dc_in_use[i]) { i 260 3rdparty/libjpeg/jcmarker.c emit_byte(cinfo, i); i 261 3rdparty/libjpeg/jcmarker.c emit_byte(cinfo, cinfo->arith_dc_L[i] + (cinfo->arith_dc_U[i]<<4)); i 263 3rdparty/libjpeg/jcmarker.c if (ac_in_use[i]) { i 264 3rdparty/libjpeg/jcmarker.c emit_byte(cinfo, i + 0x10); i 265 3rdparty/libjpeg/jcmarker.c emit_byte(cinfo, cinfo->arith_ac_K[i]); i 351 3rdparty/libjpeg/jcmarker.c int i, td, ta; i 360 3rdparty/libjpeg/jcmarker.c for (i = 0; i < cinfo->comps_in_scan; i++) { i 361 3rdparty/libjpeg/jcmarker.c compptr = cinfo->cur_comp_info[i]; i 616 3rdparty/libjpeg/jcmarker.c int i; i 629 3rdparty/libjpeg/jcmarker.c for (i = 0; i < cinfo->comps_in_scan; i++) { i 630 3rdparty/libjpeg/jcmarker.c compptr = cinfo->cur_comp_info[i]; i 673 3rdparty/libjpeg/jcmarker.c int i; i 677 3rdparty/libjpeg/jcmarker.c for (i = 0; i < NUM_QUANT_TBLS; i++) { i 678 3rdparty/libjpeg/jcmarker.c if (cinfo->quant_tbl_ptrs[i] != NULL) i 679 3rdparty/libjpeg/jcmarker.c (void) emit_dqt(cinfo, i); i 683 3rdparty/libjpeg/jcmarker.c for (i = 0; i < NUM_HUFF_TBLS; i++) { i 684 3rdparty/libjpeg/jcmarker.c if (cinfo->dc_huff_tbl_ptrs[i] != NULL) i 685 3rdparty/libjpeg/jcmarker.c emit_dht(cinfo, i, FALSE); i 686 3rdparty/libjpeg/jcmarker.c if (cinfo->ac_huff_tbl_ptrs[i] != NULL) i 687 3rdparty/libjpeg/jcmarker.c emit_dht(cinfo, i, TRUE); i 34 3rdparty/libjpeg/jcparam.c int i; i 49 3rdparty/libjpeg/jcparam.c for (i = 0; i < DCTSIZE2; i++) { i 50 3rdparty/libjpeg/jcparam.c temp = ((long) basic_table[i] * scale_factor + 50L) / 100L; i 56 3rdparty/libjpeg/jcparam.c (*qtblptr)->quantval[i] = (UINT16) temp; i 287 3rdparty/libjpeg/jcparam.c int i; i 313 3rdparty/libjpeg/jcparam.c for (i = 0; i < NUM_ARITH_TBLS; i++) { i 314 3rdparty/libjpeg/jcparam.c cinfo->arith_dc_L[i] = 0; i 315 3rdparty/libjpeg/jcparam.c cinfo->arith_dc_U[i] = 1; i 316 3rdparty/libjpeg/jcparam.c cinfo->arith_ac_K[i] = 5; i 273 3rdparty/libjpeg/jcprepct.c int ci, i; i 301 3rdparty/libjpeg/jcprepct.c for (i = 0; i < rgroup_height; i++) { i 302 3rdparty/libjpeg/jcprepct.c fake_buffer[i] = true_buffer[2 * rgroup_height + i]; i 303 3rdparty/libjpeg/jcprepct.c fake_buffer[4 * rgroup_height + i] = true_buffer[i]; i 365 3rdparty/libjpeg/jctrans.c int i; i 382 3rdparty/libjpeg/jctrans.c for (i = 0; i < C_MAX_BLOCKS_IN_MCU; i++) { i 383 3rdparty/libjpeg/jctrans.c coef->dummy_buffer[i] = buffer + i; i 33 3rdparty/libjpeg/jdapimin.c int i; i 65 3rdparty/libjpeg/jdapimin.c for (i = 0; i < NUM_QUANT_TBLS; i++) i 66 3rdparty/libjpeg/jdapimin.c cinfo->quant_tbl_ptrs[i] = NULL; i 68 3rdparty/libjpeg/jdapimin.c for (i = 0; i < NUM_HUFF_TBLS; i++) { i 69 3rdparty/libjpeg/jdapimin.c cinfo->dc_huff_tbl_ptrs[i] = NULL; i 70 3rdparty/libjpeg/jdapimin.c cinfo->ac_huff_tbl_ptrs[i] = NULL; i 754 3rdparty/libjpeg/jdarith.c int i; i 763 3rdparty/libjpeg/jdarith.c for (i = 0; i < NUM_ARITH_TBLS; i++) { i 764 3rdparty/libjpeg/jdarith.c entropy->dc_stats[i] = NULL; i 765 3rdparty/libjpeg/jdarith.c entropy->ac_stats[i] = NULL; i 779 3rdparty/libjpeg/jdarith.c for (i = 0; i < DCTSIZE2; i++) i 726 3rdparty/libjpeg/jdcoefct.c int i; i 731 3rdparty/libjpeg/jdcoefct.c for (i = 0; i < D_MAX_BLOCKS_IN_MCU; i++) { i 732 3rdparty/libjpeg/jdcoefct.c coef->MCU_buffer[i] = buffer + i; i 94 3rdparty/libjpeg/jdcolor.c int i; i 111 3rdparty/libjpeg/jdcolor.c for (i = 0, x = -CENTERJSAMPLE; i <= MAXJSAMPLE; i++, x++) { i 115 3rdparty/libjpeg/jdcolor.c cconvert->Cr_r_tab[i] = (int) i 118 3rdparty/libjpeg/jdcolor.c cconvert->Cb_b_tab[i] = (int) i 121 3rdparty/libjpeg/jdcolor.c cconvert->Cr_g_tab[i] = (- FIX(0.71414)) * x; i 124 3rdparty/libjpeg/jdcolor.c cconvert->Cb_g_tab[i] = (- FIX(0.34414)) * x + ONE_HALF; i 193 3rdparty/libjpeg/jdcolor.c INT32 i; i 200 3rdparty/libjpeg/jdcolor.c for (i = 0; i <= MAXJSAMPLE; i++) { i 201 3rdparty/libjpeg/jdcolor.c rgb_y_tab[i+R_Y_OFF] = FIX(0.29900) * i; i 202 3rdparty/libjpeg/jdcolor.c rgb_y_tab[i+G_Y_OFF] = FIX(0.58700) * i; i 203 3rdparty/libjpeg/jdcolor.c rgb_y_tab[i+B_Y_OFF] = FIX(0.11400) * i + ONE_HALF; i 93 3rdparty/libjpeg/jddctmgr.c int ci, i; i 281 3rdparty/libjpeg/jddctmgr.c for (i = 0; i < DCTSIZE2; i++) { i 282 3rdparty/libjpeg/jddctmgr.c ismtbl[i] = (ISLOW_MULT_TYPE) qtbl->quantval[i]; i 312 3rdparty/libjpeg/jddctmgr.c for (i = 0; i < DCTSIZE2; i++) { i 313 3rdparty/libjpeg/jddctmgr.c ifmtbl[i] = (IFAST_MULT_TYPE) i 314 3rdparty/libjpeg/jddctmgr.c DESCALE(MULTIPLY16V16((INT32) qtbl->quantval[i], i 315 3rdparty/libjpeg/jddctmgr.c (INT32) aanscales[i]), i 337 3rdparty/libjpeg/jddctmgr.c i = 0; i 340 3rdparty/libjpeg/jddctmgr.c fmtbl[i] = (FLOAT_MULT_TYPE) i 341 3rdparty/libjpeg/jddctmgr.c ((double) qtbl->quantval[i] * i 343 3rdparty/libjpeg/jddctmgr.c i++; i 328 3rdparty/libjpeg/jdhuff.c int p, i, l, si, numsymbols; i 358 3rdparty/libjpeg/jdhuff.c i = (int) htbl->bits[l]; i 359 3rdparty/libjpeg/jdhuff.c if (i < 0 || p + i > 256) /* protect against table overrun */ i 361 3rdparty/libjpeg/jdhuff.c while (i--) i 415 3rdparty/libjpeg/jdhuff.c for (i = 1; i <= (int) htbl->bits[l]; i++, p++) { i 434 3rdparty/libjpeg/jdhuff.c for (i = 0; i < numsymbols; i++) { i 435 3rdparty/libjpeg/jdhuff.c int sym = htbl->huffval[i]; i 1314 3rdparty/libjpeg/jdhuff.c int ci, blkn, tbl, i; i 1448 3rdparty/libjpeg/jdhuff.c i = compptr->DCT_h_scaled_size; i 1455 3rdparty/libjpeg/jdhuff.c if (i <= 0 || i > 2) i = 2; i 1456 3rdparty/libjpeg/jdhuff.c entropy->coef_limit[blkn] = 1 + jpeg_zigzag_order2[ci - 1][i - 1]; i 1460 3rdparty/libjpeg/jdhuff.c if (i <= 0 || i > 3) i = 3; i 1461 3rdparty/libjpeg/jdhuff.c entropy->coef_limit[blkn] = 1 + jpeg_zigzag_order3[ci - 1][i - 1]; i 1465 3rdparty/libjpeg/jdhuff.c if (i <= 0 || i > 4) i = 4; i 1466 3rdparty/libjpeg/jdhuff.c entropy->coef_limit[blkn] = 1 + jpeg_zigzag_order4[ci - 1][i - 1]; i 1470 3rdparty/libjpeg/jdhuff.c if (i <= 0 || i > 5) i = 5; i 1471 3rdparty/libjpeg/jdhuff.c entropy->coef_limit[blkn] = 1 + jpeg_zigzag_order5[ci - 1][i - 1]; i 1475 3rdparty/libjpeg/jdhuff.c if (i <= 0 || i > 6) i = 6; i 1476 3rdparty/libjpeg/jdhuff.c entropy->coef_limit[blkn] = 1 + jpeg_zigzag_order6[ci - 1][i - 1]; i 1480 3rdparty/libjpeg/jdhuff.c if (i <= 0 || i > 7) i = 7; i 1481 3rdparty/libjpeg/jdhuff.c entropy->coef_limit[blkn] = 1 + jpeg_zigzag_order7[ci - 1][i - 1]; i 1485 3rdparty/libjpeg/jdhuff.c if (i <= 0 || i > 8) i = 8; i 1486 3rdparty/libjpeg/jdhuff.c entropy->coef_limit[blkn] = 1 + jpeg_zigzag_order[ci - 1][i - 1]; i 1513 3rdparty/libjpeg/jdhuff.c int i; i 1529 3rdparty/libjpeg/jdhuff.c for (i = 0; i < DCTSIZE2; i++) i 1533 3rdparty/libjpeg/jdhuff.c for (i = 0; i < NUM_HUFF_TBLS; i++) { i 1534 3rdparty/libjpeg/jdhuff.c entropy->derived_tbls[i] = NULL; i 1538 3rdparty/libjpeg/jdhuff.c for (i = 0; i < NUM_HUFF_TBLS; i++) { i 1539 3rdparty/libjpeg/jdhuff.c entropy->dc_derived_tbls[i] = entropy->ac_derived_tbls[i] = NULL; i 205 3rdparty/libjpeg/jdmainct.c int ci, i, rgroup; i 218 3rdparty/libjpeg/jdmainct.c for (i = 0; i < rgroup * (M + 2); i++) { i 219 3rdparty/libjpeg/jdmainct.c xbuf0[i] = xbuf1[i] = buf[i]; i 222 3rdparty/libjpeg/jdmainct.c for (i = 0; i < rgroup * 2; i++) { i 223 3rdparty/libjpeg/jdmainct.c xbuf1[rgroup*(M-2) + i] = buf[rgroup*M + i]; i 224 3rdparty/libjpeg/jdmainct.c xbuf1[rgroup*M + i] = buf[rgroup*(M-2) + i]; i 231 3rdparty/libjpeg/jdmainct.c for (i = 0; i < rgroup; i++) { i 232 3rdparty/libjpeg/jdmainct.c xbuf0[i - rgroup] = xbuf0[0]; i 245 3rdparty/libjpeg/jdmainct.c int ci, i, rgroup; i 256 3rdparty/libjpeg/jdmainct.c for (i = 0; i < rgroup; i++) { i 257 3rdparty/libjpeg/jdmainct.c xbuf0[i - rgroup] = xbuf0[rgroup*(M+1) + i]; i 258 3rdparty/libjpeg/jdmainct.c xbuf1[i - rgroup] = xbuf1[rgroup*(M+1) + i]; i 259 3rdparty/libjpeg/jdmainct.c xbuf0[rgroup*(M+2) + i] = xbuf0[i]; i 260 3rdparty/libjpeg/jdmainct.c xbuf1[rgroup*(M+2) + i] = xbuf1[i]; i 274 3rdparty/libjpeg/jdmainct.c int ci, i, rgroup, iMCUheight, rows_left; i 296 3rdparty/libjpeg/jdmainct.c for (i = 0; i < rgroup * 2; i++) { i 297 3rdparty/libjpeg/jdmainct.c xbuf[rows_left + i] = xbuf[rows_left-1]; i 202 3rdparty/libjpeg/jdmarker.c int i; i 211 3rdparty/libjpeg/jdmarker.c for (i = 0; i < NUM_ARITH_TBLS; i++) { i 212 3rdparty/libjpeg/jdmarker.c cinfo->arith_dc_L[i] = 0; i 213 3rdparty/libjpeg/jdmarker.c cinfo->arith_dc_U[i] = 1; i 214 3rdparty/libjpeg/jdmarker.c cinfo->arith_ac_K[i] = 5; i 245 3rdparty/libjpeg/jdmarker.c int c, ci, i; i 290 3rdparty/libjpeg/jdmarker.c for (i = 0, compptr = cinfo->comp_info; i < ci; i++, compptr++) { i 295 3rdparty/libjpeg/jdmarker.c for (i = 1; i < ci; i++, compptr++) { i 326 3rdparty/libjpeg/jdmarker.c int c, ci, i, n; i 348 3rdparty/libjpeg/jdmarker.c for (i = 0; i < n; i++) { i 353 3rdparty/libjpeg/jdmarker.c for (ci = 0; ci < i; ci++) { i 356 3rdparty/libjpeg/jdmarker.c for (ci = 1; ci < i; ci++) { i 375 3rdparty/libjpeg/jdmarker.c cinfo->cur_comp_info[i] = compptr; i 462 3rdparty/libjpeg/jdmarker.c int i, index, count; i 476 3rdparty/libjpeg/jdmarker.c for (i = 1; i <= 16; i++) { i 477 3rdparty/libjpeg/jdmarker.c INPUT_BYTE(cinfo, bits[i], return FALSE); i 478 3rdparty/libjpeg/jdmarker.c count += bits[i]; i 496 3rdparty/libjpeg/jdmarker.c for (i = 0; i < count; i++) i 497 3rdparty/libjpeg/jdmarker.c INPUT_BYTE(cinfo, huffval[i], return FALSE); i 530 3rdparty/libjpeg/jdmarker.c INT32 length, count, i; i 558 3rdparty/libjpeg/jdmarker.c for (i = 0; i < DCTSIZE2; i++) { i 559 3rdparty/libjpeg/jdmarker.c quant_ptr->quantval[i] = 1; i 567 3rdparty/libjpeg/jdmarker.c for (i = 0; i < DCTSIZE2; i++) { i 568 3rdparty/libjpeg/jdmarker.c quant_ptr->quantval[i] = 1; i 585 3rdparty/libjpeg/jdmarker.c for (i = 0; i < count; i++) { i 591 3rdparty/libjpeg/jdmarker.c quant_ptr->quantval[natural_order[i]] = (UINT16) tmp; i 595 3rdparty/libjpeg/jdmarker.c for (i = 0; i < DCTSIZE2; i += 8) { i 597 3rdparty/libjpeg/jdmarker.c quant_ptr->quantval[i], quant_ptr->quantval[i+1], i 598 3rdparty/libjpeg/jdmarker.c quant_ptr->quantval[i+2], quant_ptr->quantval[i+3], i 599 3rdparty/libjpeg/jdmarker.c quant_ptr->quantval[i+4], quant_ptr->quantval[i+5], i 600 3rdparty/libjpeg/jdmarker.c quant_ptr->quantval[i+6], quant_ptr->quantval[i+7]); i 827 3rdparty/libjpeg/jdmarker.c unsigned int i, numtoread; i 840 3rdparty/libjpeg/jdmarker.c for (i = 0; i < numtoread; i++) i 841 3rdparty/libjpeg/jdmarker.c INPUT_BYTE(cinfo, b[i], return FALSE); i 1410 3rdparty/libjpeg/jdmarker.c int i; i 1427 3rdparty/libjpeg/jdmarker.c for (i = 0; i < 16; i++) { i 1428 3rdparty/libjpeg/jdmarker.c marker->process_APPn[i] = skip_variable; i 1429 3rdparty/libjpeg/jdmarker.c marker->length_limit_APPn[i] = 0; i 233 3rdparty/libjpeg/jdmaster.c int i; i 243 3rdparty/libjpeg/jdmaster.c for (i = 0; i <= MAXJSAMPLE; i++) i 244 3rdparty/libjpeg/jdmaster.c table[i] = (JSAMPLE) i; i 247 3rdparty/libjpeg/jdmaster.c for (i = CENTERJSAMPLE; i < 2*(MAXJSAMPLE+1); i++) i 248 3rdparty/libjpeg/jdmaster.c table[i] = MAXJSAMPLE; i 86 3rdparty/libjpeg/jdmerge.c int i; i 103 3rdparty/libjpeg/jdmerge.c for (i = 0, x = -CENTERJSAMPLE; i <= MAXJSAMPLE; i++, x++) { i 107 3rdparty/libjpeg/jdmerge.c upsample->Cr_r_tab[i] = (int) i 110 3rdparty/libjpeg/jdmerge.c upsample->Cb_b_tab[i] = (int) i 113 3rdparty/libjpeg/jdmerge.c upsample->Cr_g_tab[i] = (- FIX(0.71414)) * x; i 116 3rdparty/libjpeg/jdmerge.c upsample->Cb_g_tab[i] = (- FIX(0.34414)) * x + ONE_HALF; i 178 3rdparty/libjpeg/jerror.c err->msg_parm.i[0] = msg_code; i 197 3rdparty/libjpeg/jerror.c err->msg_parm.i[0], err->msg_parm.i[1], i 198 3rdparty/libjpeg/jerror.c err->msg_parm.i[2], err->msg_parm.i[3], i 199 3rdparty/libjpeg/jerror.c err->msg_parm.i[4], err->msg_parm.i[5], i 200 3rdparty/libjpeg/jerror.c err->msg_parm.i[6], err->msg_parm.i[7]); i 214 3rdparty/libjpeg/jerror.h (cinfo)->err->msg_parm.i[0] = (p1), \ i 218 3rdparty/libjpeg/jerror.h (cinfo)->err->msg_parm.i[0] = (p1), \ i 219 3rdparty/libjpeg/jerror.h (cinfo)->err->msg_parm.i[1] = (p2), \ i 223 3rdparty/libjpeg/jerror.h (cinfo)->err->msg_parm.i[0] = (p1), \ i 224 3rdparty/libjpeg/jerror.h (cinfo)->err->msg_parm.i[1] = (p2), \ i 225 3rdparty/libjpeg/jerror.h (cinfo)->err->msg_parm.i[2] = (p3), \ i 229 3rdparty/libjpeg/jerror.h (cinfo)->err->msg_parm.i[0] = (p1), \ i 230 3rdparty/libjpeg/jerror.h (cinfo)->err->msg_parm.i[1] = (p2), \ i 231 3rdparty/libjpeg/jerror.h (cinfo)->err->msg_parm.i[2] = (p3), \ i 232 3rdparty/libjpeg/jerror.h (cinfo)->err->msg_parm.i[3] = (p4), \ i 236 3rdparty/libjpeg/jerror.h (cinfo)->err->msg_parm.i[0] = (p1), \ i 237 3rdparty/libjpeg/jerror.h (cinfo)->err->msg_parm.i[1] = (p2), \ i 238 3rdparty/libjpeg/jerror.h (cinfo)->err->msg_parm.i[2] = (p3), \ i 239 3rdparty/libjpeg/jerror.h (cinfo)->err->msg_parm.i[3] = (p4), \ i 240 3rdparty/libjpeg/jerror.h (cinfo)->err->msg_parm.i[4] = (p5), \ i 241 3rdparty/libjpeg/jerror.h (cinfo)->err->msg_parm.i[5] = (p6), \ i 256 3rdparty/libjpeg/jerror.h (cinfo)->err->msg_parm.i[0] = (p1), \ i 260 3rdparty/libjpeg/jerror.h (cinfo)->err->msg_parm.i[0] = (p1), \ i 261 3rdparty/libjpeg/jerror.h (cinfo)->err->msg_parm.i[1] = (p2), \ i 270 3rdparty/libjpeg/jerror.h (cinfo)->err->msg_parm.i[0] = (p1), \ i 274 3rdparty/libjpeg/jerror.h (cinfo)->err->msg_parm.i[0] = (p1), \ i 275 3rdparty/libjpeg/jerror.h (cinfo)->err->msg_parm.i[1] = (p2), \ i 278 3rdparty/libjpeg/jerror.h MAKESTMT(int * _mp = (cinfo)->err->msg_parm.i; \ i 283 3rdparty/libjpeg/jerror.h MAKESTMT(int * _mp = (cinfo)->err->msg_parm.i; \ i 288 3rdparty/libjpeg/jerror.h MAKESTMT(int * _mp = (cinfo)->err->msg_parm.i; \ i 294 3rdparty/libjpeg/jerror.h MAKESTMT(int * _mp = (cinfo)->err->msg_parm.i; \ i 403 3rdparty/libjpeg/jmemmgr.c JDIMENSION rowsperchunk, currow, i; i 428 3rdparty/libjpeg/jmemmgr.c for (i = rowsperchunk; i > 0; i--) { i 451 3rdparty/libjpeg/jmemmgr.c JDIMENSION rowsperchunk, currow, i; i 476 3rdparty/libjpeg/jmemmgr.c for (i = rowsperchunk; i > 0; i--) { i 694 3rdparty/libjpeg/jmemmgr.c long bytesperrow, file_offset, byte_count, rows, thisrow, i; i 699 3rdparty/libjpeg/jmemmgr.c for (i = 0; i < (long) ptr->rows_in_mem; i += ptr->rowsperchunk) { i 701 3rdparty/libjpeg/jmemmgr.c rows = MIN((long) ptr->rowsperchunk, (long) ptr->rows_in_mem - i); i 703 3rdparty/libjpeg/jmemmgr.c thisrow = (long) ptr->cur_start_row + i; i 712 3rdparty/libjpeg/jmemmgr.c (void FAR *) ptr->mem_buffer[i], i 716 3rdparty/libjpeg/jmemmgr.c (void FAR *) ptr->mem_buffer[i], i 727 3rdparty/libjpeg/jmemmgr.c long bytesperrow, file_offset, byte_count, rows, thisrow, i; i 732 3rdparty/libjpeg/jmemmgr.c for (i = 0; i < (long) ptr->rows_in_mem; i += ptr->rowsperchunk) { i 734 3rdparty/libjpeg/jmemmgr.c rows = MIN((long) ptr->rowsperchunk, (long) ptr->rows_in_mem - i); i 736 3rdparty/libjpeg/jmemmgr.c thisrow = (long) ptr->cur_start_row + i; i 745 3rdparty/libjpeg/jmemmgr.c (void FAR *) ptr->mem_buffer[i], i 749 3rdparty/libjpeg/jmemmgr.c (void FAR *) ptr->mem_buffer[i], i 714 3rdparty/libjpeg/jpeglib.h int i[8]; i 194 3rdparty/libjpeg/jquant1.c int total_colors, iroot, i, j; i 205 3rdparty/libjpeg/jquant1.c for (i = 1; i < nc; i++) i 216 3rdparty/libjpeg/jquant1.c for (i = 0; i < nc; i++) { i 217 3rdparty/libjpeg/jquant1.c Ncolors[i] = iroot; i 228 3rdparty/libjpeg/jquant1.c for (i = 0; i < nc; i++) { i 229 3rdparty/libjpeg/jquant1.c j = (cinfo->out_color_space == JCS_RGB ? RGB_order[i] : i); i 279 3rdparty/libjpeg/jquant1.c int i,j,k, nci, blksize, blkdist, ptr, val; i 304 3rdparty/libjpeg/jquant1.c for (i = 0; i < cinfo->out_color_components; i++) { i 306 3rdparty/libjpeg/jquant1.c nci = cquantize->Ncolors[i]; /* # of distinct values for this color */ i 310 3rdparty/libjpeg/jquant1.c val = output_value(cinfo, i, j, nci-1); i 315 3rdparty/libjpeg/jquant1.c colormap[i][ptr+k] = (JSAMPLE) val; i 338 3rdparty/libjpeg/jquant1.c int i,j,k, nci, blksize, val, pad; i 361 3rdparty/libjpeg/jquant1.c for (i = 0; i < cinfo->out_color_components; i++) { i 363 3rdparty/libjpeg/jquant1.c nci = cquantize->Ncolors[i]; /* # of distinct values for this color */ i 368 3rdparty/libjpeg/jquant1.c cquantize->colorindex[i] += MAXJSAMPLE; i 372 3rdparty/libjpeg/jquant1.c indexptr = cquantize->colorindex[i]; i 374 3rdparty/libjpeg/jquant1.c k = largest_input_value(cinfo, i, 0, nci-1); i 377 3rdparty/libjpeg/jquant1.c k = largest_input_value(cinfo, i, ++val, nci-1); i 437 3rdparty/libjpeg/jquant1.c int i, j, nci; i 439 3rdparty/libjpeg/jquant1.c for (i = 0; i < cinfo->out_color_components; i++) { i 440 3rdparty/libjpeg/jquant1.c nci = cquantize->Ncolors[i]; /* # of distinct values for this color */ i 442 3rdparty/libjpeg/jquant1.c for (j = 0; j < i; j++) { i 450 3rdparty/libjpeg/jquant1.c cquantize->odither[i] = odither; i 727 3rdparty/libjpeg/jquant1.c int i; i 730 3rdparty/libjpeg/jquant1.c for (i = 0; i < cinfo->out_color_components; i++) { i 731 3rdparty/libjpeg/jquant1.c cquantize->fserrors[i] = (FSERRPTR) i 746 3rdparty/libjpeg/jquant1.c int i; i 784 3rdparty/libjpeg/jquant1.c for (i = 0; i < cinfo->out_color_components; i++) i 785 3rdparty/libjpeg/jquant1.c FMEMZERO((void FAR *) cquantize->fserrors[i], arraysize); i 279 3rdparty/libjpeg/jquant2.c register int i; i 283 3rdparty/libjpeg/jquant2.c for (i = 0, boxp = boxlist; i < numboxes; i++, boxp++) { i 299 3rdparty/libjpeg/jquant2.c register int i; i 303 3rdparty/libjpeg/jquant2.c for (i = 0, boxp = boxlist; i < numboxes; i++, boxp++) { i 545 3rdparty/libjpeg/jquant2.c int i; i 563 3rdparty/libjpeg/jquant2.c for (i = 0; i < numboxes; i++) i 564 3rdparty/libjpeg/jquant2.c compute_color(cinfo, & boxlist[i], i); i 661 3rdparty/libjpeg/jquant2.c int i, x, ncolors; i 688 3rdparty/libjpeg/jquant2.c for (i = 0; i < numcolors; i++) { i 690 3rdparty/libjpeg/jquant2.c x = GETJSAMPLE(cinfo->colormap[0][i]); i 713 3rdparty/libjpeg/jquant2.c x = GETJSAMPLE(cinfo->colormap[1][i]); i 735 3rdparty/libjpeg/jquant2.c x = GETJSAMPLE(cinfo->colormap[2][i]); i 757 3rdparty/libjpeg/jquant2.c mindist[i] = min_dist; /* save away the results */ i 767 3rdparty/libjpeg/jquant2.c for (i = 0; i < numcolors; i++) { i 768 3rdparty/libjpeg/jquant2.c if (mindist[i] <= minmaxdist) i 769 3rdparty/libjpeg/jquant2.c colorlist[ncolors++] = (JSAMPLE) i; i 786 3rdparty/libjpeg/jquant2.c int i, icolor; i 799 3rdparty/libjpeg/jquant2.c for (i = BOX_C0_ELEMS*BOX_C1_ELEMS*BOX_C2_ELEMS-1; i >= 0; i--) i 812 3rdparty/libjpeg/jquant2.c for (i = 0; i < numcolors; i++) { i 813 3rdparty/libjpeg/jquant2.c icolor = GETJSAMPLE(colorlist[i]); i 1172 3rdparty/libjpeg/jquant2.c int i; i 1193 3rdparty/libjpeg/jquant2.c i = cinfo->actual_number_of_colors; i 1194 3rdparty/libjpeg/jquant2.c if (i < 1) i 1196 3rdparty/libjpeg/jquant2.c if (i > MAXNUMCOLORS) i 1217 3rdparty/libjpeg/jquant2.c for (i = 0; i < HIST_C0_ELEMS; i++) { i 1218 3rdparty/libjpeg/jquant2.c FMEMZERO((void FAR *) histogram[i], i 1248 3rdparty/libjpeg/jquant2.c int i; i 1266 3rdparty/libjpeg/jquant2.c for (i = 0; i < HIST_C0_ELEMS; i++) { i 1267 3rdparty/libjpeg/jquant2.c cquantize->histogram[i] = (hist2d) (*cinfo->mem->alloc_large) i 176 3rdparty/libpng/png.c int i = 0; i 180 3rdparty/libpng/png.c if (user_png_ver[i] != png_libpng_ver[i]) i 182 3rdparty/libpng/png.c } while (png_libpng_ver[i++]); i 353 3rdparty/libpng/png.c int i; i 354 3rdparty/libpng/png.c for (i = 0; i < info_ptr->num_text; i++) i 355 3rdparty/libpng/png.c png_free_data(png_ptr, info_ptr, PNG_FREE_TEXT, i); i 395 3rdparty/libpng/png.c int i; i 396 3rdparty/libpng/png.c for (i = 0; i < (int)info_ptr->pcal_nparams; i++) i 398 3rdparty/libpng/png.c png_free(png_ptr, info_ptr->pcal_params[i]); i 399 3rdparty/libpng/png.c info_ptr->pcal_params[i] = NULL; i 439 3rdparty/libpng/png.c int i; i 440 3rdparty/libpng/png.c for (i = 0; i < (int)info_ptr->splt_palettes_num; i++) i 441 3rdparty/libpng/png.c png_free_data(png_ptr, info_ptr, PNG_FREE_SPLT, i); i 472 3rdparty/libpng/png.c int i; i 476 3rdparty/libpng/png.c for (i = 0; i < info_ptr->unknown_chunks_num; i++) i 477 3rdparty/libpng/png.c png_free_data(png_ptr, info_ptr, PNG_FREE_UNKN, i); i 1325 3rdparty/libpng/png.c png_size_t i = *whereami; i 1327 3rdparty/libpng/png.c while (i < size) i 1331 3rdparty/libpng/png.c switch (string[i]) i 1432 3rdparty/libpng/png.c ++i; i 1440 3rdparty/libpng/png.c *whereami = i; i 1866 3rdparty/libpng/png.c unsigned int i; i 1871 3rdparty/libpng/png.c i = 5; i 1872 3rdparty/libpng/png.c while (ndigits < i) *ascii++ = 48, --i; i 2182 3rdparty/libpng/png.c for (i=128;i<256;++i) { .5 - l(i/255)/l(2)*65536*65536; } i 2354 3rdparty/libpng/png.c for (i=0;i<16;++i) { .5 + e(-i/16*l(2))*2^32; } i 2365 3rdparty/libpng/png.c for (i=11;i>=0;--i){ print i, " ", (1 - e(-(2^i)/65536*l(2))) * 2^(32-i), "\n"} i 2542 3rdparty/libpng/png.c unsigned int i; i 2547 3rdparty/libpng/png.c for (i = 0; i < num; i++) i 2549 3rdparty/libpng/png.c png_uint_16p sub_table = table[i] = i 2568 3rdparty/libpng/png.c png_uint_32 ig = (j << (8-shift)) + i; i 2588 3rdparty/libpng/png.c png_uint_32 ig = (j << (8-shift)) + i; i 2608 3rdparty/libpng/png.c unsigned int i; i 2618 3rdparty/libpng/png.c for (i = 0; i < num; i++) i 2619 3rdparty/libpng/png.c table[i] = (png_uint_16p)png_malloc(png_ptr, i 2639 3rdparty/libpng/png.c for (i = 0; i < 255; ++i) /* 8-bit output value */ i 2642 3rdparty/libpng/png.c png_uint_16 out = (png_uint_16)(i * 257U); /* 16-bit output value */ i 2673 3rdparty/libpng/png.c unsigned int i; i 2676 3rdparty/libpng/png.c if (png_gamma_significant(gamma_val)) for (i=0; i<256; i++) i 2677 3rdparty/libpng/png.c table[i] = png_gamma_8bit_correct(i, gamma_val); i 2679 3rdparty/libpng/png.c else for (i=0; i<256; ++i) i 2680 3rdparty/libpng/png.c table[i] = (png_byte)i; i 2694 3rdparty/libpng/png.c int i; i 2696 3rdparty/libpng/png.c for (i = 0; i < istop; i++) i 2698 3rdparty/libpng/png.c png_free(png_ptr, png_ptr->gamma_16_table[i]); i 2714 3rdparty/libpng/png.c int i; i 2716 3rdparty/libpng/png.c for (i = 0; i < istop; i++) i 2718 3rdparty/libpng/png.c png_free(png_ptr, png_ptr->gamma_16_from_1[i]); i 2725 3rdparty/libpng/png.c int i; i 2727 3rdparty/libpng/png.c for (i = 0; i < istop; i++) i 2729 3rdparty/libpng/png.c png_free(png_ptr, png_ptr->gamma_16_to_1[i]); i 2607 3rdparty/libpng/png.h PNG_EXPORT(205, void, png_save_uint_32, (png_bytep buf, png_uint_32 i)); i 2610 3rdparty/libpng/png.h PNG_EXPORT(206, void, png_save_int_32, (png_bytep buf, png_int_32 i)); i 2618 3rdparty/libpng/png.h PNG_EXPORT(207, void, png_save_uint_16, (png_bytep buf, unsigned int i)); i 58 3rdparty/libpng/pngerror.c int i; i 59 3rdparty/libpng/pngerror.c for (i = 0; i < offset - 1; i++) i 60 3rdparty/libpng/pngerror.c msg[i] = error_message[i + 1]; i 61 3rdparty/libpng/pngerror.c msg[i - 1] = '\0'; i 289 3rdparty/libpng/pngerror.c size_t i = 0; /* Index in the msg[] buffer: */ i 298 3rdparty/libpng/pngerror.c while (i<(sizeof msg)-1 && *message != '\0') i 327 3rdparty/libpng/pngerror.c while (i<(sizeof msg)-1 && *parm != '\0' && parm < pend) i 328 3rdparty/libpng/pngerror.c msg[i++] = *parm++; i 343 3rdparty/libpng/pngerror.c msg[i++] = *message++; i 347 3rdparty/libpng/pngerror.c msg[i] = '\0'; i 190 3rdparty/libpng/pngmem.c int i, mem_level, window_bits; i 273 3rdparty/libpng/pngmem.c for (i = 0; i < num_blocks; i++) i 275 3rdparty/libpng/pngmem.c png_ptr->offset_table_ptr[i] = (png_bytep)hptr; i 348 3rdparty/libpng/pngmem.c int i; i 350 3rdparty/libpng/pngmem.c for (i = 0; i < png_ptr->offset_table_count; i++) i 352 3rdparty/libpng/pngmem.c if (ptr == png_ptr->offset_table_ptr[i]) i 689 3rdparty/libpng/pngpread.c png_size_t i, istop; i 695 3rdparty/libpng/pngpread.c for (i = 0, sp = png_ptr->save_buffer_ptr, dp = png_ptr->save_buffer; i 696 3rdparty/libpng/pngpread.c i < istop; i++, sp++, dp++) i 1016 3rdparty/libpng/pngpread.c int i; i 1017 3rdparty/libpng/pngpread.c for (i = 0; i < 8 && png_ptr->pass == 0; i++) i 1025 3rdparty/libpng/pngpread.c for (i = 0; i < 4 && png_ptr->pass == 2; i++) i 1034 3rdparty/libpng/pngpread.c for (i = 0; i < 2 && png_ptr->pass == 4; i++) i 1052 3rdparty/libpng/pngpread.c int i; i 1053 3rdparty/libpng/pngpread.c for (i = 0; i < 8 && png_ptr->pass == 1; i++) i 1061 3rdparty/libpng/pngpread.c for (i = 0; i < 4 && png_ptr->pass == 2; i++) i 1073 3rdparty/libpng/pngpread.c int i; i 1075 3rdparty/libpng/pngpread.c for (i = 0; i < 4 && png_ptr->pass == 2; i++) i 1081 3rdparty/libpng/pngpread.c for (i = 0; i < 4 && png_ptr->pass == 2; i++) i 1089 3rdparty/libpng/pngpread.c for (i = 0; i < 2 && png_ptr->pass == 4; i++) i 1101 3rdparty/libpng/pngpread.c int i; i 1103 3rdparty/libpng/pngpread.c for (i = 0; i < 4 && png_ptr->pass == 3; i++) i 1111 3rdparty/libpng/pngpread.c for (i = 0; i < 2 && png_ptr->pass == 4; i++) i 1123 3rdparty/libpng/pngpread.c int i; i 1125 3rdparty/libpng/pngpread.c for (i = 0; i < 2 && png_ptr->pass == 4; i++) i 1131 3rdparty/libpng/pngpread.c for (i = 0; i < 2 && png_ptr->pass == 4; i++) i 1148 3rdparty/libpng/pngpread.c int i; i 1150 3rdparty/libpng/pngpread.c for (i = 0; i < 2 && png_ptr->pass == 5; i++) i 678 3rdparty/libpng/pngread.c png_uint_32 i; i 690 3rdparty/libpng/pngread.c for (i = 0; i < num_rows; i++) i 699 3rdparty/libpng/pngread.c for (i = 0; i < num_rows; i++) i 707 3rdparty/libpng/pngread.c for (i = 0; i < num_rows; i++) i 732 3rdparty/libpng/pngread.c png_uint_32 i, image_height; i 780 3rdparty/libpng/pngread.c for (i = 0; i < image_height; i++) i 394 3rdparty/libpng/pngrtran.c int i; i 398 3rdparty/libpng/pngrtran.c for (i = 0; i < num_palette; i++) i 399 3rdparty/libpng/pngrtran.c png_ptr->quantize_index[i] = (png_byte)i; i 410 3rdparty/libpng/pngrtran.c int i; i 417 3rdparty/libpng/pngrtran.c for (i = 0; i < num_palette; i++) i 418 3rdparty/libpng/pngrtran.c png_ptr->quantize_sort[i] = (png_byte)i; i 427 3rdparty/libpng/pngrtran.c for (i = num_palette - 1; i >= maximum_colors; i--) i 433 3rdparty/libpng/pngrtran.c for (j = 0; j < i; j++) i 459 3rdparty/libpng/pngrtran.c for (i = 0; i < maximum_colors; i++) i 461 3rdparty/libpng/pngrtran.c if ((int)png_ptr->quantize_sort[i] >= maximum_colors) i 467 3rdparty/libpng/pngrtran.c palette[i] = palette[j]; i 478 3rdparty/libpng/pngrtran.c for (i = 0; i < maximum_colors; i++) i 481 3rdparty/libpng/pngrtran.c if ((int)png_ptr->quantize_sort[i] >= maximum_colors) i 490 3rdparty/libpng/pngrtran.c palette[j] = palette[i]; i 491 3rdparty/libpng/pngrtran.c palette[i] = tmp_color; i 493 3rdparty/libpng/pngrtran.c png_ptr->quantize_index[j] = (png_byte)i; i 494 3rdparty/libpng/pngrtran.c png_ptr->quantize_index[i] = (png_byte)j; i 499 3rdparty/libpng/pngrtran.c for (i = 0; i < num_palette; i++) i 501 3rdparty/libpng/pngrtran.c if ((int)png_ptr->quantize_index[i] >= maximum_colors) i 506 3rdparty/libpng/pngrtran.c d_index = png_ptr->quantize_index[i]; i 521 3rdparty/libpng/pngrtran.c png_ptr->quantize_index[i] = (png_byte)min_k; i 538 3rdparty/libpng/pngrtran.c int i; i 553 3rdparty/libpng/pngrtran.c for (i = 0; i < num_palette; i++) i 555 3rdparty/libpng/pngrtran.c png_ptr->index_to_palette[i] = (png_byte)i; i 556 3rdparty/libpng/pngrtran.c png_ptr->palette_to_index[i] = (png_byte)i; i 576 3rdparty/libpng/pngrtran.c for (i = 0; i < num_new_palette - 1; i++) i 580 3rdparty/libpng/pngrtran.c for (j = i + 1; j < num_new_palette; j++) i 584 3rdparty/libpng/pngrtran.c d = PNG_COLOR_DIST(palette[i], palette[j]); i 596 3rdparty/libpng/pngrtran.c t->left = (png_byte)i; i 606 3rdparty/libpng/pngrtran.c for (i = 0; i <= max_d; i++) i 608 3rdparty/libpng/pngrtran.c if (hash[i] != NULL) i 612 3rdparty/libpng/pngrtran.c for (p = hash[i]; p; p = p->next) i 673 3rdparty/libpng/pngrtran.c for (i = 0; i < 769; i++) i 675 3rdparty/libpng/pngrtran.c if (hash[i] != NULL) i 677 3rdparty/libpng/pngrtran.c png_dsortp p = hash[i]; i 685 3rdparty/libpng/pngrtran.c hash[i] = 0; i 705 3rdparty/libpng/pngrtran.c int i; i 722 3rdparty/libpng/pngrtran.c for (i = 0; i < num_palette; i++) i 725 3rdparty/libpng/pngrtran.c int r = (palette[i].red >> (8 - PNG_QUANTIZE_RED_BITS)); i 726 3rdparty/libpng/pngrtran.c int g = (palette[i].green >> (8 - PNG_QUANTIZE_GREEN_BITS)); i 727 3rdparty/libpng/pngrtran.c int b = (palette[i].blue >> (8 - PNG_QUANTIZE_BLUE_BITS)); i 755 3rdparty/libpng/pngrtran.c png_ptr->palette_lookup[d_index] = (png_byte)i; i 1092 3rdparty/libpng/pngrtran.c int i; i 1095 3rdparty/libpng/pngrtran.c for (i=0; i<png_ptr->num_trans; ++i) i 1096 3rdparty/libpng/pngrtran.c if (png_ptr->trans_alpha[i] == 255) i 1098 3rdparty/libpng/pngrtran.c else if (png_ptr->trans_alpha[i] == 0) i 1146 3rdparty/libpng/pngrtran.c int i, istop = png_ptr->num_trans; i 1148 3rdparty/libpng/pngrtran.c for (i=0; i<istop; i++) i 1149 3rdparty/libpng/pngrtran.c png_ptr->trans_alpha[i] = (png_byte)(255 - i 1150 3rdparty/libpng/pngrtran.c png_ptr->trans_alpha[i]); i 1555 3rdparty/libpng/pngrtran.c int i; i 1630 3rdparty/libpng/pngrtran.c for (i = 0; i < num_palette; i++) i 1632 3rdparty/libpng/pngrtran.c if (i < (int)png_ptr->num_trans && i 1633 3rdparty/libpng/pngrtran.c png_ptr->trans_alpha[i] != 0xff) i 1635 3rdparty/libpng/pngrtran.c if (png_ptr->trans_alpha[i] == 0) i 1637 3rdparty/libpng/pngrtran.c palette[i] = back; i 1643 3rdparty/libpng/pngrtran.c v = png_ptr->gamma_to_1[palette[i].red]; i 1644 3rdparty/libpng/pngrtran.c png_composite(w, v, png_ptr->trans_alpha[i], back_1.red); i 1645 3rdparty/libpng/pngrtran.c palette[i].red = png_ptr->gamma_from_1[w]; i 1647 3rdparty/libpng/pngrtran.c v = png_ptr->gamma_to_1[palette[i].green]; i 1648 3rdparty/libpng/pngrtran.c png_composite(w, v, png_ptr->trans_alpha[i], back_1.green); i 1649 3rdparty/libpng/pngrtran.c palette[i].green = png_ptr->gamma_from_1[w]; i 1651 3rdparty/libpng/pngrtran.c v = png_ptr->gamma_to_1[palette[i].blue]; i 1652 3rdparty/libpng/pngrtran.c png_composite(w, v, png_ptr->trans_alpha[i], back_1.blue); i 1653 3rdparty/libpng/pngrtran.c palette[i].blue = png_ptr->gamma_from_1[w]; i 1658 3rdparty/libpng/pngrtran.c palette[i].red = png_ptr->gamma_table[palette[i].red]; i 1659 3rdparty/libpng/pngrtran.c palette[i].green = png_ptr->gamma_table[palette[i].green]; i 1660 3rdparty/libpng/pngrtran.c palette[i].blue = png_ptr->gamma_table[palette[i].blue]; i 1771 3rdparty/libpng/pngrtran.c int i; i 1776 3rdparty/libpng/pngrtran.c for (i = 0; i < num_palette; i++) i 1778 3rdparty/libpng/pngrtran.c palette[i].red = png_ptr->gamma_table[palette[i].red]; i 1779 3rdparty/libpng/pngrtran.c palette[i].green = png_ptr->gamma_table[palette[i].green]; i 1780 3rdparty/libpng/pngrtran.c palette[i].blue = png_ptr->gamma_table[palette[i].blue]; i 1797 3rdparty/libpng/pngrtran.c int i; i 1806 3rdparty/libpng/pngrtran.c for (i = 0; i < istop; i++) i 1808 3rdparty/libpng/pngrtran.c if (png_ptr->trans_alpha[i] == 0) i 1810 3rdparty/libpng/pngrtran.c palette[i] = back; i 1813 3rdparty/libpng/pngrtran.c else if (png_ptr->trans_alpha[i] != 0xff) i 1816 3rdparty/libpng/pngrtran.c png_composite(palette[i].red, palette[i].red, i 1817 3rdparty/libpng/pngrtran.c png_ptr->trans_alpha[i], back.red); i 1819 3rdparty/libpng/pngrtran.c png_composite(palette[i].green, palette[i].green, i 1820 3rdparty/libpng/pngrtran.c png_ptr->trans_alpha[i], back.green); i 1822 3rdparty/libpng/pngrtran.c png_composite(palette[i].blue, palette[i].blue, i 1823 3rdparty/libpng/pngrtran.c png_ptr->trans_alpha[i], back.blue); i 1836 3rdparty/libpng/pngrtran.c int i; i 1846 3rdparty/libpng/pngrtran.c if (shift > 0 && shift < 8) for (i=0; i<istop; ++i) i 1848 3rdparty/libpng/pngrtran.c int component = png_ptr->palette[i].red; i 1851 3rdparty/libpng/pngrtran.c png_ptr->palette[i].red = (png_byte)component; i 1855 3rdparty/libpng/pngrtran.c if (shift > 0 && shift < 8) for (i=0; i<istop; ++i) i 1857 3rdparty/libpng/pngrtran.c int component = png_ptr->palette[i].green; i 1860 3rdparty/libpng/pngrtran.c png_ptr->palette[i].green = (png_byte)component; i 1864 3rdparty/libpng/pngrtran.c if (shift > 0 && shift < 8) for (i=0; i<istop; ++i) i 1866 3rdparty/libpng/pngrtran.c int component = png_ptr->palette[i].blue; i 1869 3rdparty/libpng/pngrtran.c png_ptr->palette[i].blue = (png_byte)component; i 2385 3rdparty/libpng/pngrtran.c png_uint_32 i; i 2395 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 2419 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 2442 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 2716 3rdparty/libpng/pngrtran.c png_uint_32 i; i 2718 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 2735 3rdparty/libpng/pngrtran.c png_uint_32 i; i 2737 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 2762 3rdparty/libpng/pngrtran.c png_uint_32 i; i 2764 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 2779 3rdparty/libpng/pngrtran.c png_uint_32 i; i 2781 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 2812 3rdparty/libpng/pngrtran.c png_uint_32 i; i 2814 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 2835 3rdparty/libpng/pngrtran.c png_uint_32 i; i 2837 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 2864 3rdparty/libpng/pngrtran.c png_uint_32 i; i 2866 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 2879 3rdparty/libpng/pngrtran.c png_uint_32 i; i 2881 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 2904 3rdparty/libpng/pngrtran.c png_uint_32 i; i 2924 3rdparty/libpng/pngrtran.c for (i = 1; i < row_width; i++) i 2940 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 2959 3rdparty/libpng/pngrtran.c for (i = 1; i < row_width; i++) i 2978 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 3001 3rdparty/libpng/pngrtran.c for (i = 1; i < row_width; i++) i 3019 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 3040 3rdparty/libpng/pngrtran.c for (i = 1; i < row_width; i++) i 3063 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 3090 3rdparty/libpng/pngrtran.c png_uint_32 i; i 3105 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 3118 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 3137 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 3151 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 3256 3rdparty/libpng/pngrtran.c png_uint_32 i; i 3258 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 3295 3rdparty/libpng/pngrtran.c png_uint_32 i; i 3297 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 3328 3rdparty/libpng/pngrtran.c png_uint_32 i; i 3330 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 3379 3rdparty/libpng/pngrtran.c png_uint_32 i; i 3381 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 3433 3rdparty/libpng/pngrtran.c int i; i 3469 3rdparty/libpng/pngrtran.c for (i = 0, v = 0; i < num_palette; i++, v += color_inc) i 3471 3rdparty/libpng/pngrtran.c palette[i].red = (png_byte)v; i 3472 3rdparty/libpng/pngrtran.c palette[i].green = (png_byte)v; i 3473 3rdparty/libpng/pngrtran.c palette[i].blue = (png_byte)v; i 3500 3rdparty/libpng/pngrtran.c png_uint_32 i; i 3518 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 3546 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 3580 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 3609 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 3643 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 3671 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++, sp++) i 3684 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++, sp++) i 3699 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++, sp += 2) i 3724 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++, sp += 2) i 3754 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++, sp += 3) i 3777 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++, sp += 3) i 3796 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++, sp += 6) i 3840 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++, sp += 6) i 3876 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++, sp += 2) i 3905 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++, sp += 2) i 3924 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++, sp += 4) i 3964 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++, sp += 4) i 3999 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++, sp += 4) i 4043 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++, sp += 4) i 4074 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++, sp += 8) i 4141 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++, sp += 8) i 4206 3rdparty/libpng/pngrtran.c png_uint_32 i; i 4221 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 4235 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 4263 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 4281 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 4307 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 4317 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 4333 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i += 4) i 4352 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i += 2) i 4366 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 4376 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 4471 3rdparty/libpng/pngrtran.c png_uint_32 i; i 4487 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 4514 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 4537 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 4571 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 4596 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 4624 3rdparty/libpng/pngrtran.c png_uint_32 i; i 4644 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 4672 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 4697 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 4732 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 4750 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 4785 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 4808 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 4881 3rdparty/libpng/pngrtran.c png_uint_32 i; i 4893 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 4930 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++) i 4960 3rdparty/libpng/pngrtran.c for (i = 0; i < row_width; i++, sp++) i 4986 3rdparty/libpng/pngrtran.c png_uint_32 i; i 4997 3rdparty/libpng/pngrtran.c for (i = 0, rp = row; i < row_width; i++, rp += bytes_per_pixel) i 5006 3rdparty/libpng/pngrtran.c png_uint_32 i; i 5017 3rdparty/libpng/pngrtran.c for (i = 0, rp = row; i < row_width; i++, rp += bytes_per_pixel) i 206 3rdparty/libpng/pngrutil.c png_size_t i; i 209 3rdparty/libpng/pngrutil.c for (i = (png_size_t)skip; i > istop; i -= istop) i 214 3rdparty/libpng/pngrutil.c if (i) i 216 3rdparty/libpng/pngrutil.c png_crc_read(png_ptr, png_ptr->zbuf, i); i 599 3rdparty/libpng/pngrutil.c int num, i; i 655 3rdparty/libpng/pngrutil.c for (i = 0, pal_ptr = palette; i < num; i++, pal_ptr++) i 665 3rdparty/libpng/pngrutil.c for (i = 0; i < num; i++) i 671 3rdparty/libpng/pngrutil.c palette[i].red = buf[0]; i 672 3rdparty/libpng/pngrutil.c palette[i].green = buf[1]; i 673 3rdparty/libpng/pngrutil.c palette[i].blue = buf[2]; i 1378 3rdparty/libpng/pngrutil.c int entry_size, i; i 1497 3rdparty/libpng/pngrutil.c for (i = 0; i < new_palette.nentries; i++) i 1499 3rdparty/libpng/pngrutil.c pp = new_palette.entries + i; i 1522 3rdparty/libpng/pngrutil.c for (i = 0; i < new_palette.nentries; i++) i 1527 3rdparty/libpng/pngrutil.c pp[i].red = *entry_start++; i 1528 3rdparty/libpng/pngrutil.c pp[i].green = *entry_start++; i 1529 3rdparty/libpng/pngrutil.c pp[i].blue = *entry_start++; i 1530 3rdparty/libpng/pngrutil.c pp[i].alpha = *entry_start++; i 1535 3rdparty/libpng/pngrutil.c pp[i].red = png_get_uint_16(entry_start); entry_start += 2; i 1536 3rdparty/libpng/pngrutil.c pp[i].green = png_get_uint_16(entry_start); entry_start += 2; i 1537 3rdparty/libpng/pngrutil.c pp[i].blue = png_get_uint_16(entry_start); entry_start += 2; i 1538 3rdparty/libpng/pngrutil.c pp[i].alpha = png_get_uint_16(entry_start); entry_start += 2; i 1541 3rdparty/libpng/pngrutil.c pp[i].frequency = png_get_uint_16(entry_start); entry_start += 2; i 1770 3rdparty/libpng/pngrutil.c unsigned int num, i; i 1809 3rdparty/libpng/pngrutil.c for (i = 0; i < num; i++) i 1814 3rdparty/libpng/pngrutil.c readbuf[i] = png_get_uint_16(buf); i 1926 3rdparty/libpng/pngrutil.c int i; i 2031 3rdparty/libpng/pngrutil.c for (i = 0; i < (int)nparams; i++) i 2035 3rdparty/libpng/pngrutil.c png_debug1(3, "Reading pCAL parameter %d", i); i 2037 3rdparty/libpng/pngrutil.c for (params[i] = buf; buf <= endptr && *buf != 0x00; buf++) i 2065 3rdparty/libpng/pngrutil.c png_size_t slength, i; i 2130 3rdparty/libpng/pngrutil.c i = 1; i 2133 3rdparty/libpng/pngrutil.c if (!png_check_fp_number(png_ptr->chunkdata, slength, &state, &i) || i 2134 3rdparty/libpng/pngrutil.c i >= slength || png_ptr->chunkdata[i++] != 0) i 2142 3rdparty/libpng/pngrutil.c png_size_t heighti = i; i 2145 3rdparty/libpng/pngrutil.c if (!png_check_fp_number(png_ptr->chunkdata, slength, &state, &i) || i 2146 3rdparty/libpng/pngrutil.c i != slength) i 2762 3rdparty/libpng/pngrutil.c int i; i 2766 3rdparty/libpng/pngrutil.c for (i=1; i<=4; ++i) i 3289 3rdparty/libpng/pngrutil.c png_uint_32 i; i 3312 3rdparty/libpng/pngrutil.c for (i = 0; i < row_info->width; i++) i 3349 3rdparty/libpng/pngrutil.c png_uint_32 i; i 3371 3rdparty/libpng/pngrutil.c for (i = 0; i < row_info->width; i++) i 3410 3rdparty/libpng/pngrutil.c png_uint_32 i; i 3433 3rdparty/libpng/pngrutil.c for (i = 0; i < row_info->width; i++) i 3475 3rdparty/libpng/pngrutil.c png_uint_32 i; i 3477 3rdparty/libpng/pngrutil.c for (i = 0; i < row_info->width; i++) i 3509 3rdparty/libpng/pngrutil.c png_size_t i; i 3516 3rdparty/libpng/pngrutil.c for (i = bpp; i < istop; i++) i 3527 3rdparty/libpng/pngrutil.c png_size_t i; i 3532 3rdparty/libpng/pngrutil.c for (i = 0; i < istop; i++) i 3543 3rdparty/libpng/pngrutil.c png_size_t i; i 3549 3rdparty/libpng/pngrutil.c for (i = 0; i < bpp; i++) i 3557 3rdparty/libpng/pngrutil.c for (i = 0; i < istop; i++) i 179 3rdparty/libpng/pngset.c int i; i 209 3rdparty/libpng/pngset.c for (i = 0; i < info_ptr->num_palette; i++) i 210 3rdparty/libpng/pngset.c png_ptr->hist[i] = hist[i]; i 291 3rdparty/libpng/pngset.c int i; i 309 3rdparty/libpng/pngset.c for (i=0; i<nparams; ++i) i 310 3rdparty/libpng/pngset.c if (!png_check_fp_string(params[i], png_strlen(params[i]))) i 354 3rdparty/libpng/pngset.c for (i = 0; i < nparams; i++) i 356 3rdparty/libpng/pngset.c length = png_strlen(params[i]) + 1; i 357 3rdparty/libpng/pngset.c png_debug2(3, "allocating parameter %d for info (%lu bytes)", i, i 360 3rdparty/libpng/pngset.c info_ptr->pcal_params[i] = (png_charp)png_malloc_warn(png_ptr, length); i 362 3rdparty/libpng/pngset.c if (info_ptr->pcal_params[i] == NULL) i 368 3rdparty/libpng/pngset.c png_memcpy(info_ptr->pcal_params[i], params[i], length); i 682 3rdparty/libpng/pngset.c int i; i 740 3rdparty/libpng/pngset.c for (i = 0; i < num_text; i++) i 746 3rdparty/libpng/pngset.c if (text_ptr[i].key == NULL) i 749 3rdparty/libpng/pngset.c if (text_ptr[i].compression < PNG_TEXT_COMPRESSION_NONE || i 750 3rdparty/libpng/pngset.c text_ptr[i].compression >= PNG_TEXT_COMPRESSION_LAST) i 756 3rdparty/libpng/pngset.c key_len = png_strlen(text_ptr[i].key); i 758 3rdparty/libpng/pngset.c if (text_ptr[i].compression <= 0) i 769 3rdparty/libpng/pngset.c if (text_ptr[i].lang != NULL) i 770 3rdparty/libpng/pngset.c lang_len = png_strlen(text_ptr[i].lang); i 775 3rdparty/libpng/pngset.c if (text_ptr[i].lang_key != NULL) i 776 3rdparty/libpng/pngset.c lang_key_len = png_strlen(text_ptr[i].lang_key); i 788 3rdparty/libpng/pngset.c if (text_ptr[i].text == NULL || text_ptr[i].text[0] == '\0') i 792 3rdparty/libpng/pngset.c if (text_ptr[i].compression > 0) i 802 3rdparty/libpng/pngset.c text_length = png_strlen(text_ptr[i].text); i 803 3rdparty/libpng/pngset.c textp->compression = text_ptr[i].compression; i 818 3rdparty/libpng/pngset.c png_memcpy(textp->key, text_ptr[i].key,(png_size_t)(key_len)); i 821 3rdparty/libpng/pngset.c if (text_ptr[i].compression > 0) i 824 3rdparty/libpng/pngset.c png_memcpy(textp->lang, text_ptr[i].lang, lang_len); i 827 3rdparty/libpng/pngset.c png_memcpy(textp->lang_key, text_ptr[i].lang_key, lang_key_len); i 840 3rdparty/libpng/pngset.c png_memcpy(textp->text, text_ptr[i].text, i 961 3rdparty/libpng/pngset.c int i; i 982 3rdparty/libpng/pngset.c for (i = 0; i < nentries; i++) i 984 3rdparty/libpng/pngset.c png_sPLT_tp to = np + info_ptr->splt_palettes_num + i; i 985 3rdparty/libpng/pngset.c png_const_sPLT_tp from = entries + i; i 1031 3rdparty/libpng/pngset.c int i; i 1054 3rdparty/libpng/pngset.c for (i = 0; i < num_unknowns; i++) i 1056 3rdparty/libpng/pngset.c png_unknown_chunkp to = np + info_ptr->unknown_chunks_num + i; i 1057 3rdparty/libpng/pngset.c png_const_unknown_chunkp from = unknowns + i; i 1124 3rdparty/libpng/pngset.c int i, old_num_chunks; i 1163 3rdparty/libpng/pngset.c for (p = new_list + 5*old_num_chunks + 4, i = 0; i<num_chunks; i++, p += 5) i 220 3rdparty/libpng/pngtrans.c png_size_t i; i 223 3rdparty/libpng/pngtrans.c for (i = 0; i < istop; i++) i 234 3rdparty/libpng/pngtrans.c png_size_t i; i 237 3rdparty/libpng/pngtrans.c for (i = 0; i < istop; i += 2) i 249 3rdparty/libpng/pngtrans.c png_size_t i; i 252 3rdparty/libpng/pngtrans.c for (i = 0; i < istop; i += 4) i 274 3rdparty/libpng/pngtrans.c png_uint_32 i; i 277 3rdparty/libpng/pngtrans.c for (i = 0; i < istop; i++, rp += 2) i 558 3rdparty/libpng/pngtrans.c png_uint_32 i; i 560 3rdparty/libpng/pngtrans.c for (i = 0, rp = row; i < row_width; i++, rp += 3) i 571 3rdparty/libpng/pngtrans.c png_uint_32 i; i 573 3rdparty/libpng/pngtrans.c for (i = 0, rp = row; i < row_width; i++, rp += 4) i 588 3rdparty/libpng/pngtrans.c png_uint_32 i; i 590 3rdparty/libpng/pngtrans.c for (i = 0, rp = row; i < row_width; i++, rp += 6) i 604 3rdparty/libpng/pngtrans.c png_uint_32 i; i 606 3rdparty/libpng/pngtrans.c for (i = 0, rp = row; i < row_width; i++, rp += 8) i 661 3rdparty/libpng/pngtrans.c int i = ((*rp >> padding) & 0x03); i 663 3rdparty/libpng/pngtrans.c if (i > png_ptr->num_palette_max) i 664 3rdparty/libpng/pngtrans.c png_ptr->num_palette_max = i; i 666 3rdparty/libpng/pngtrans.c i = (((*rp >> padding) >> 2) & 0x03); i 668 3rdparty/libpng/pngtrans.c if (i > png_ptr->num_palette_max) i 669 3rdparty/libpng/pngtrans.c png_ptr->num_palette_max = i; i 671 3rdparty/libpng/pngtrans.c i = (((*rp >> padding) >> 4) & 0x03); i 673 3rdparty/libpng/pngtrans.c if (i > png_ptr->num_palette_max) i 674 3rdparty/libpng/pngtrans.c png_ptr->num_palette_max = i; i 676 3rdparty/libpng/pngtrans.c i = (((*rp >> padding) >> 6) & 0x03); i 678 3rdparty/libpng/pngtrans.c if (i > png_ptr->num_palette_max) i 679 3rdparty/libpng/pngtrans.c png_ptr->num_palette_max = i; i 691 3rdparty/libpng/pngtrans.c int i = ((*rp >> padding) & 0x0f); i 693 3rdparty/libpng/pngtrans.c if (i > png_ptr->num_palette_max) i 694 3rdparty/libpng/pngtrans.c png_ptr->num_palette_max = i; i 696 3rdparty/libpng/pngtrans.c i = (((*rp >> padding) >> 4) & 0x0f); i 698 3rdparty/libpng/pngtrans.c if (i > png_ptr->num_palette_max) i 699 3rdparty/libpng/pngtrans.c png_ptr->num_palette_max = i; i 125 3rdparty/libpng/pngwrite.c int i; i 205 3rdparty/libpng/pngwrite.c for (i = 0; i < (int)info_ptr->splt_palettes_num; i++) i 206 3rdparty/libpng/pngwrite.c png_write_sPLT(png_ptr, info_ptr->splt_palettes + i); i 211 3rdparty/libpng/pngwrite.c for (i = 0; i < info_ptr->num_text; i++) i 213 3rdparty/libpng/pngwrite.c png_debug2(2, "Writing header text chunk %d, type %d", i, i 214 3rdparty/libpng/pngwrite.c info_ptr->text[i].compression); i 216 3rdparty/libpng/pngwrite.c if (info_ptr->text[i].compression > 0) i 221 3rdparty/libpng/pngwrite.c info_ptr->text[i].compression, i 222 3rdparty/libpng/pngwrite.c info_ptr->text[i].key, i 223 3rdparty/libpng/pngwrite.c info_ptr->text[i].lang, i 224 3rdparty/libpng/pngwrite.c info_ptr->text[i].lang_key, i 225 3rdparty/libpng/pngwrite.c info_ptr->text[i].text); i 230 3rdparty/libpng/pngwrite.c info_ptr->text[i].compression = PNG_TEXT_COMPRESSION_NONE_WR; i 234 3rdparty/libpng/pngwrite.c else if (info_ptr->text[i].compression == PNG_TEXT_COMPRESSION_zTXt) i 238 3rdparty/libpng/pngwrite.c png_write_zTXt(png_ptr, info_ptr->text[i].key, i 239 3rdparty/libpng/pngwrite.c info_ptr->text[i].text, 0, i 240 3rdparty/libpng/pngwrite.c info_ptr->text[i].compression); i 245 3rdparty/libpng/pngwrite.c info_ptr->text[i].compression = PNG_TEXT_COMPRESSION_zTXt_WR; i 248 3rdparty/libpng/pngwrite.c else if (info_ptr->text[i].compression == PNG_TEXT_COMPRESSION_NONE) i 252 3rdparty/libpng/pngwrite.c png_write_tEXt(png_ptr, info_ptr->text[i].key, i 253 3rdparty/libpng/pngwrite.c info_ptr->text[i].text, i 256 3rdparty/libpng/pngwrite.c info_ptr->text[i].compression = PNG_TEXT_COMPRESSION_NONE_WR; i 317 3rdparty/libpng/pngwrite.c int i; /* local index variable */ i 328 3rdparty/libpng/pngwrite.c for (i = 0; i < info_ptr->num_text; i++) i 330 3rdparty/libpng/pngwrite.c png_debug2(2, "Writing trailer text chunk %d, type %d", i, i 331 3rdparty/libpng/pngwrite.c info_ptr->text[i].compression); i 333 3rdparty/libpng/pngwrite.c if (info_ptr->text[i].compression > 0) i 338 3rdparty/libpng/pngwrite.c info_ptr->text[i].compression, i 339 3rdparty/libpng/pngwrite.c info_ptr->text[i].key, i 340 3rdparty/libpng/pngwrite.c info_ptr->text[i].lang, i 341 3rdparty/libpng/pngwrite.c info_ptr->text[i].lang_key, i 342 3rdparty/libpng/pngwrite.c info_ptr->text[i].text); i 347 3rdparty/libpng/pngwrite.c info_ptr->text[i].compression = PNG_TEXT_COMPRESSION_NONE_WR; i 350 3rdparty/libpng/pngwrite.c else if (info_ptr->text[i].compression >= PNG_TEXT_COMPRESSION_zTXt) i 354 3rdparty/libpng/pngwrite.c png_write_zTXt(png_ptr, info_ptr->text[i].key, i 355 3rdparty/libpng/pngwrite.c info_ptr->text[i].text, 0, i 356 3rdparty/libpng/pngwrite.c info_ptr->text[i].compression); i 361 3rdparty/libpng/pngwrite.c info_ptr->text[i].compression = PNG_TEXT_COMPRESSION_zTXt_WR; i 364 3rdparty/libpng/pngwrite.c else if (info_ptr->text[i].compression == PNG_TEXT_COMPRESSION_NONE) i 368 3rdparty/libpng/pngwrite.c png_write_tEXt(png_ptr, info_ptr->text[i].key, i 369 3rdparty/libpng/pngwrite.c info_ptr->text[i].text, 0); i 375 3rdparty/libpng/pngwrite.c info_ptr->text[i].compression = PNG_TEXT_COMPRESSION_NONE_WR; i 564 3rdparty/libpng/pngwrite.c png_uint_32 i; /* row counter */ i 573 3rdparty/libpng/pngwrite.c for (i = 0, rp = row; i < num_rows; i++, rp++) i 585 3rdparty/libpng/pngwrite.c png_uint_32 i; /* row index */ i 606 3rdparty/libpng/pngwrite.c for (i = 0, rp = image; i < png_ptr->height; i++, rp++) i 1207 3rdparty/libpng/pngwrite.c int i; i 1215 3rdparty/libpng/pngwrite.c for (i = 0; i < num_weights; i++) i 1217 3rdparty/libpng/pngwrite.c png_ptr->prev_filters[i] = 255; i 1226 3rdparty/libpng/pngwrite.c for (i = 0; i < num_weights; i++) i 1228 3rdparty/libpng/pngwrite.c png_ptr->inv_filter_weights[i] = i 1229 3rdparty/libpng/pngwrite.c png_ptr->filter_weights[i] = PNG_WEIGHT_FACTOR; i 1248 3rdparty/libpng/pngwrite.c for (i = 0; i < PNG_FILTER_VALUE_LAST; i++) i 1250 3rdparty/libpng/pngwrite.c png_ptr->inv_filter_costs[i] = i 1251 3rdparty/libpng/pngwrite.c png_ptr->filter_costs[i] = PNG_COST_FACTOR; i 1290 3rdparty/libpng/pngwrite.c int i; i 1291 3rdparty/libpng/pngwrite.c for (i = 0; i < num_weights; i++) i 1293 3rdparty/libpng/pngwrite.c if (filter_weights[i] <= 0.0) i 1295 3rdparty/libpng/pngwrite.c png_ptr->inv_filter_weights[i] = i 1296 3rdparty/libpng/pngwrite.c png_ptr->filter_weights[i] = PNG_WEIGHT_FACTOR; i 1301 3rdparty/libpng/pngwrite.c png_ptr->inv_filter_weights[i] = i 1302 3rdparty/libpng/pngwrite.c (png_uint_16)(PNG_WEIGHT_FACTOR*filter_weights[i]+.5); i 1304 3rdparty/libpng/pngwrite.c png_ptr->filter_weights[i] = i 1305 3rdparty/libpng/pngwrite.c (png_uint_16)(PNG_WEIGHT_FACTOR/filter_weights[i]+.5); i 1316 3rdparty/libpng/pngwrite.c for (i = 0; i < PNG_FILTER_VALUE_LAST; i++) if (filter_costs[i] >= 1.0) i 1318 3rdparty/libpng/pngwrite.c png_ptr->inv_filter_costs[i] = i 1319 3rdparty/libpng/pngwrite.c (png_uint_16)(PNG_COST_FACTOR / filter_costs[i] + .5); i 1321 3rdparty/libpng/pngwrite.c png_ptr->filter_costs[i] = i 1322 3rdparty/libpng/pngwrite.c (png_uint_16)(PNG_COST_FACTOR * filter_costs[i] + .5); i 1345 3rdparty/libpng/pngwrite.c int i; i 1346 3rdparty/libpng/pngwrite.c for (i = 0; i < num_weights; i++) i 1348 3rdparty/libpng/pngwrite.c if (filter_weights[i] <= 0) i 1350 3rdparty/libpng/pngwrite.c png_ptr->inv_filter_weights[i] = i 1351 3rdparty/libpng/pngwrite.c png_ptr->filter_weights[i] = PNG_WEIGHT_FACTOR; i 1356 3rdparty/libpng/pngwrite.c png_ptr->inv_filter_weights[i] = (png_uint_16) i 1357 3rdparty/libpng/pngwrite.c ((PNG_WEIGHT_FACTOR*filter_weights[i]+PNG_FP_HALF)/PNG_FP_1); i 1359 3rdparty/libpng/pngwrite.c png_ptr->filter_weights[i] = (png_uint_16)((PNG_WEIGHT_FACTOR* i 1360 3rdparty/libpng/pngwrite.c PNG_FP_1+(filter_weights[i]/2))/filter_weights[i]); i 1371 3rdparty/libpng/pngwrite.c for (i = 0; i < PNG_FILTER_VALUE_LAST; i++) i 1372 3rdparty/libpng/pngwrite.c if (filter_costs[i] >= PNG_FP_1) i 1380 3rdparty/libpng/pngwrite.c tmp = PNG_COST_FACTOR*PNG_FP_1 + (filter_costs[i]/2); i 1381 3rdparty/libpng/pngwrite.c tmp /= filter_costs[i]; i 1383 3rdparty/libpng/pngwrite.c png_ptr->inv_filter_costs[i] = (png_uint_16)tmp; i 1385 3rdparty/libpng/pngwrite.c tmp = PNG_COST_FACTOR * filter_costs[i] + PNG_FP_HALF; i 1388 3rdparty/libpng/pngwrite.c png_ptr->filter_costs[i] = (png_uint_16)tmp; i 114 3rdparty/libpng/pngwtran.c png_uint_32 i; i 122 3rdparty/libpng/pngwtran.c for (i = 0; i < row_width; i++) i 151 3rdparty/libpng/pngwtran.c png_uint_32 i; i 159 3rdparty/libpng/pngwtran.c for (i = 0; i < row_width; i++) i 190 3rdparty/libpng/pngwtran.c png_uint_32 i; i 198 3rdparty/libpng/pngwtran.c for (i = 0; i < row_width; i++) i 289 3rdparty/libpng/pngwtran.c png_size_t i; i 302 3rdparty/libpng/pngwtran.c for (i = 0; i < row_bytes; i++, bp++) i 324 3rdparty/libpng/pngwtran.c png_uint_32 i; i 327 3rdparty/libpng/pngwtran.c for (i = 0; i < istop; i++, bp++) i 332 3rdparty/libpng/pngwtran.c int c = (int)(i%channels); i 351 3rdparty/libpng/pngwtran.c png_uint_32 i; i 354 3rdparty/libpng/pngwtran.c for (bp = row, i = 0; i < istop; i++) i 356 3rdparty/libpng/pngwtran.c int c = (int)(i%channels); i 392 3rdparty/libpng/pngwtran.c png_uint_32 i; i 395 3rdparty/libpng/pngwtran.c for (i = 0, sp = dp = row; i < row_width; i++) i 410 3rdparty/libpng/pngwtran.c png_uint_32 i; i 413 3rdparty/libpng/pngwtran.c for (i = 0, sp = dp = row; i < row_width; i++) i 437 3rdparty/libpng/pngwtran.c png_uint_32 i; i 440 3rdparty/libpng/pngwtran.c for (i = 0, sp = dp = row; i < row_width; i++) i 453 3rdparty/libpng/pngwtran.c png_uint_32 i; i 456 3rdparty/libpng/pngwtran.c for (i = 0, sp = dp = row; i < row_width; i++) i 486 3rdparty/libpng/pngwtran.c png_uint_32 i; i 489 3rdparty/libpng/pngwtran.c for (i = 0, sp = dp = row; i < row_width; i++) i 506 3rdparty/libpng/pngwtran.c png_uint_32 i; i 509 3rdparty/libpng/pngwtran.c for (i = 0, sp = dp = row; i < row_width; i++) i 533 3rdparty/libpng/pngwtran.c png_uint_32 i; i 536 3rdparty/libpng/pngwtran.c for (i = 0, sp = dp = row; i < row_width; i++) i 548 3rdparty/libpng/pngwtran.c png_uint_32 i; i 551 3rdparty/libpng/pngwtran.c for (i = 0, sp = dp = row; i < row_width; i++) i 583 3rdparty/libpng/pngwtran.c png_uint_32 i; i 594 3rdparty/libpng/pngwtran.c for (i = 0, rp = row; i < row_width; i++, rp += bytes_per_pixel) i 605 3rdparty/libpng/pngwtran.c png_uint_32 i; i 616 3rdparty/libpng/pngwtran.c for (i = 0, rp = row; i < row_width; i++, rp += bytes_per_pixel) i 24 3rdparty/libpng/pngwutil.c png_save_uint_32(png_bytep buf, png_uint_32 i) i 26 3rdparty/libpng/pngwutil.c buf[0] = (png_byte)((i >> 24) & 0xff); i 27 3rdparty/libpng/pngwutil.c buf[1] = (png_byte)((i >> 16) & 0xff); i 28 3rdparty/libpng/pngwutil.c buf[2] = (png_byte)((i >> 8) & 0xff); i 29 3rdparty/libpng/pngwutil.c buf[3] = (png_byte)(i & 0xff); i 40 3rdparty/libpng/pngwutil.c png_save_int_32(png_bytep buf, png_int_32 i) i 42 3rdparty/libpng/pngwutil.c buf[0] = (png_byte)((i >> 24) & 0xff); i 43 3rdparty/libpng/pngwutil.c buf[1] = (png_byte)((i >> 16) & 0xff); i 44 3rdparty/libpng/pngwutil.c buf[2] = (png_byte)((i >> 8) & 0xff); i 45 3rdparty/libpng/pngwutil.c buf[3] = (png_byte)(i & 0xff); i 54 3rdparty/libpng/pngwutil.c png_save_uint_16(png_bytep buf, unsigned int i) i 56 3rdparty/libpng/pngwutil.c buf[0] = (png_byte)((i >> 8) & 0xff); i 57 3rdparty/libpng/pngwutil.c buf[1] = (png_byte)(i & 0xff); i 575 3rdparty/libpng/pngwutil.c int i; i 651 3rdparty/libpng/pngwutil.c for (i = 0; i < comp->num_output_ptr; i++) i 653 3rdparty/libpng/pngwutil.c png_write_chunk_data(png_ptr, comp->output_ptr[i], i 656 3rdparty/libpng/pngwutil.c png_free(png_ptr, comp->output_ptr[i]); i 899 3rdparty/libpng/pngwutil.c png_uint_32 i; i 937 3rdparty/libpng/pngwutil.c for (i = 0, pal_ptr = palette; i < num_pal; i++, pal_ptr++) i 951 3rdparty/libpng/pngwutil.c for (i = 0; i < num_pal; i++) i 953 3rdparty/libpng/pngwutil.c buf[0] = pal_ptr[i].red; i 954 3rdparty/libpng/pngwutil.c buf[1] = pal_ptr[i].green; i 955 3rdparty/libpng/pngwutil.c buf[2] = pal_ptr[i].blue; i 1188 3rdparty/libpng/pngwutil.c int i; i 1231 3rdparty/libpng/pngwutil.c for (i = 0; i>spalette->nentries; i++) i 1235 3rdparty/libpng/pngwutil.c entrybuf[0] = (png_byte)ep[i].red; i 1236 3rdparty/libpng/pngwutil.c entrybuf[1] = (png_byte)ep[i].green; i 1237 3rdparty/libpng/pngwutil.c entrybuf[2] = (png_byte)ep[i].blue; i 1238 3rdparty/libpng/pngwutil.c entrybuf[3] = (png_byte)ep[i].alpha; i 1239 3rdparty/libpng/pngwutil.c png_save_uint_16(entrybuf + 4, ep[i].frequency); i 1244 3rdparty/libpng/pngwutil.c png_save_uint_16(entrybuf + 0, ep[i].red); i 1245 3rdparty/libpng/pngwutil.c png_save_uint_16(entrybuf + 2, ep[i].green); i 1246 3rdparty/libpng/pngwutil.c png_save_uint_16(entrybuf + 4, ep[i].blue); i 1247 3rdparty/libpng/pngwutil.c png_save_uint_16(entrybuf + 6, ep[i].alpha); i 1248 3rdparty/libpng/pngwutil.c png_save_uint_16(entrybuf + 8, ep[i].frequency); i 1485 3rdparty/libpng/pngwutil.c int i; i 1501 3rdparty/libpng/pngwutil.c for (i = 0; i < num_hist; i++) i 1503 3rdparty/libpng/pngwutil.c png_save_uint_16(buf, hist[i]); i 1869 3rdparty/libpng/pngwutil.c int i; i 1888 3rdparty/libpng/pngwutil.c for (i = 0; i < nparams; i++) i 1890 3rdparty/libpng/pngwutil.c params_len[i] = png_strlen(params[i]) + (i == nparams - 1 ? 0 : 1); i 1891 3rdparty/libpng/pngwutil.c png_debug2(3, "pCAL parameter %d length = %lu", i, i 1892 3rdparty/libpng/pngwutil.c (unsigned long)params_len[i]); i 1893 3rdparty/libpng/pngwutil.c total_len += params_len[i]; i 1908 3rdparty/libpng/pngwutil.c for (i = 0; i < nparams; i++) i 1910 3rdparty/libpng/pngwutil.c png_write_chunk_data(png_ptr, (png_const_bytep)params[i], params_len[i]); i 2265 3rdparty/libpng/pngwutil.c png_uint_32 i; i 2272 3rdparty/libpng/pngwutil.c for (i = png_pass_start[pass]; i < row_width; i 2273 3rdparty/libpng/pngwutil.c i += png_pass_inc[pass]) i 2275 3rdparty/libpng/pngwutil.c sp = row + (png_size_t)(i >> 3); i 2276 3rdparty/libpng/pngwutil.c value = (int)(*sp >> (7 - (int)(i & 0x07))) & 0x01; i 2303 3rdparty/libpng/pngwutil.c png_uint_32 i; i 2310 3rdparty/libpng/pngwutil.c for (i = png_pass_start[pass]; i < row_width; i 2311 3rdparty/libpng/pngwutil.c i += png_pass_inc[pass]) i 2313 3rdparty/libpng/pngwutil.c sp = row + (png_size_t)(i >> 2); i 2314 3rdparty/libpng/pngwutil.c value = (*sp >> ((3 - (int)(i & 0x03)) << 1)) & 0x03; i 2340 3rdparty/libpng/pngwutil.c png_uint_32 i; i 2346 3rdparty/libpng/pngwutil.c for (i = png_pass_start[pass]; i < row_width; i 2347 3rdparty/libpng/pngwutil.c i += png_pass_inc[pass]) i 2349 3rdparty/libpng/pngwutil.c sp = row + (png_size_t)(i >> 1); i 2350 3rdparty/libpng/pngwutil.c value = (*sp >> ((1 - (int)(i & 0x01)) << 2)) & 0x0f; i 2373 3rdparty/libpng/pngwutil.c png_uint_32 i; i 2384 3rdparty/libpng/pngwutil.c for (i = png_pass_start[pass]; i < row_width; i 2385 3rdparty/libpng/pngwutil.c i += png_pass_inc[pass]) i 2388 3rdparty/libpng/pngwutil.c sp = row + (png_size_t)i * pixel_bytes; i 2488 3rdparty/libpng/pngwutil.c png_size_t i; i 2491 3rdparty/libpng/pngwutil.c for (i = 0, rp = row_buf + 1; i < row_bytes; i++, rp++) i 2543 3rdparty/libpng/pngwutil.c png_size_t i; i 2545 3rdparty/libpng/pngwutil.c for (i = 0, rp = row_buf + 1, dp = png_ptr->sub_row + 1; i < bpp; i 2546 3rdparty/libpng/pngwutil.c i++, rp++, dp++) i 2551 3rdparty/libpng/pngwutil.c for (lp = row_buf + 1; i < row_bytes; i 2552 3rdparty/libpng/pngwutil.c i++, rp++, lp++, dp++) i 2564 3rdparty/libpng/pngwutil.c png_size_t i; i 2605 3rdparty/libpng/pngwutil.c for (i = 0, rp = row_buf + 1, dp = png_ptr->sub_row + 1; i < bpp; i 2606 3rdparty/libpng/pngwutil.c i++, rp++, dp++) i 2613 3rdparty/libpng/pngwutil.c for (lp = row_buf + 1; i < row_bytes; i 2614 3rdparty/libpng/pngwutil.c i++, rp++, lp++, dp++) i 2669 3rdparty/libpng/pngwutil.c png_size_t i; i 2671 3rdparty/libpng/pngwutil.c for (i = 0, rp = row_buf + 1, dp = png_ptr->up_row + 1, i 2672 3rdparty/libpng/pngwutil.c pp = prev_row + 1; i < row_bytes; i 2673 3rdparty/libpng/pngwutil.c i++, rp++, pp++, dp++) i 2685 3rdparty/libpng/pngwutil.c png_size_t i; i 2723 3rdparty/libpng/pngwutil.c for (i = 0, rp = row_buf + 1, dp = png_ptr->up_row + 1, i 2724 3rdparty/libpng/pngwutil.c pp = prev_row + 1; i < row_bytes; i++) i 2779 3rdparty/libpng/pngwutil.c png_uint_32 i; i 2781 3rdparty/libpng/pngwutil.c for (i = 0, rp = row_buf + 1, dp = png_ptr->avg_row + 1, i 2782 3rdparty/libpng/pngwutil.c pp = prev_row + 1; i < bpp; i++) i 2787 3rdparty/libpng/pngwutil.c for (lp = row_buf + 1; i < row_bytes; i++) i 2799 3rdparty/libpng/pngwutil.c png_size_t i; i 2836 3rdparty/libpng/pngwutil.c for (i = 0, rp = row_buf + 1, dp = png_ptr->avg_row + 1, i 2837 3rdparty/libpng/pngwutil.c pp = prev_row + 1; i < bpp; i++) i 2844 3rdparty/libpng/pngwutil.c for (lp = row_buf + 1; i < row_bytes; i++) i 2900 3rdparty/libpng/pngwutil.c png_size_t i; i 2902 3rdparty/libpng/pngwutil.c for (i = 0, rp = row_buf + 1, dp = png_ptr->paeth_row + 1, i 2903 3rdparty/libpng/pngwutil.c pp = prev_row + 1; i < bpp; i++) i 2908 3rdparty/libpng/pngwutil.c for (lp = row_buf + 1, cp = prev_row + 1; i < row_bytes; i++) i 2940 3rdparty/libpng/pngwutil.c png_size_t i; i 2977 3rdparty/libpng/pngwutil.c for (i = 0, rp = row_buf + 1, dp = png_ptr->paeth_row + 1, i 2978 3rdparty/libpng/pngwutil.c pp = prev_row + 1; i < bpp; i++) i 2985 3rdparty/libpng/pngwutil.c for (lp = row_buf + 1, cp = prev_row + 1; i < row_bytes; i++) i 95 3rdparty/libtiff/tif_aux.c tmsize_t i, n, nbytes; i 106 3rdparty/libtiff/tif_aux.c for (i = 1; i < n; i++) { i 107 3rdparty/libtiff/tif_aux.c double t = (double)i/((double) n-1.); i 108 3rdparty/libtiff/tif_aux.c tf[0][i] = (uint16)floor(65535.*pow(t, 2.2) + .5); i 135 3rdparty/libtiff/tif_aux.c int i; i 152 3rdparty/libtiff/tif_aux.c for (i = 0; i < 3; i++) { i 153 3rdparty/libtiff/tif_aux.c td->td_refblackwhite[2*i+0] = 0; i 154 3rdparty/libtiff/tif_aux.c td->td_refblackwhite[2*i+1] = i 322 3rdparty/libtiff/tif_aux.c _Int64 i; i 324 3rdparty/libtiff/tif_aux.c i.value = ui64; i 325 3rdparty/libtiff/tif_aux.c if (i.part.high >= 0) { i 326 3rdparty/libtiff/tif_aux.c return (float)i.value; i 329 3rdparty/libtiff/tif_aux.c df = (long double)i.value; i 338 3rdparty/libtiff/tif_aux.c _Int64 i; i 340 3rdparty/libtiff/tif_aux.c i.value = ui64; i 341 3rdparty/libtiff/tif_aux.c if (i.part.high >= 0) { i 342 3rdparty/libtiff/tif_aux.c return (double)i.value; i 345 3rdparty/libtiff/tif_aux.c df = (long double)i.value; i 81 3rdparty/libtiff/tif_close.c uint32 i; i 83 3rdparty/libtiff/tif_close.c for (i = 0; i < tif->tif_nfields; i++) { i 84 3rdparty/libtiff/tif_close.c TIFFField *fld = tif->tif_fields[i]; i 96 3rdparty/libtiff/tif_close.c uint32 i; i 98 3rdparty/libtiff/tif_close.c for (i = 0; i < tif->tif_nfieldscompat; i++) { i 99 3rdparty/libtiff/tif_close.c if (tif->tif_fieldscompat[i].allocated_size) i 100 3rdparty/libtiff/tif_close.c _TIFFfree(tif->tif_fieldscompat[i].fields); i 81 3rdparty/libtiff/tif_color.c int i; i 101 3rdparty/libtiff/tif_color.c i = (int)((Yr - cielab->display.d_Y0R) / cielab->rstep); i 102 3rdparty/libtiff/tif_color.c i = TIFFmin(cielab->range, i); i 103 3rdparty/libtiff/tif_color.c *r = RINT(cielab->Yr2r[i]); i 105 3rdparty/libtiff/tif_color.c i = (int)((Yg - cielab->display.d_Y0G) / cielab->gstep); i 106 3rdparty/libtiff/tif_color.c i = TIFFmin(cielab->range, i); i 107 3rdparty/libtiff/tif_color.c *g = RINT(cielab->Yg2g[i]); i 109 3rdparty/libtiff/tif_color.c i = (int)((Yb - cielab->display.d_Y0B) / cielab->bstep); i 110 3rdparty/libtiff/tif_color.c i = TIFFmin(cielab->range, i); i 111 3rdparty/libtiff/tif_color.c *b = RINT(cielab->Yb2b[i]); i 128 3rdparty/libtiff/tif_color.c int i; i 139 3rdparty/libtiff/tif_color.c for(i = 0; i <= cielab->range; i++) { i 140 3rdparty/libtiff/tif_color.c cielab->Yr2r[i] = cielab->display.d_Vrwr i 141 3rdparty/libtiff/tif_color.c * ((float)pow((double)i / cielab->range, gamma)); i 148 3rdparty/libtiff/tif_color.c for(i = 0; i <= cielab->range; i++) { i 149 3rdparty/libtiff/tif_color.c cielab->Yg2g[i] = cielab->display.d_Vrwg i 150 3rdparty/libtiff/tif_color.c * ((float)pow((double)i / cielab->range, gamma)); i 157 3rdparty/libtiff/tif_color.c for(i = 0; i <= cielab->range; i++) { i 158 3rdparty/libtiff/tif_color.c cielab->Yb2b[i] = cielab->display.d_Vrwb i 159 3rdparty/libtiff/tif_color.c * ((float)pow((double)i / cielab->range, gamma)); i 186 3rdparty/libtiff/tif_color.c int32 i; i 191 3rdparty/libtiff/tif_color.c i = ycbcr->Y_tab[Y] + ycbcr->Cr_r_tab[Cr]; i 192 3rdparty/libtiff/tif_color.c *r = CLAMP(i, 0, 255); i 193 3rdparty/libtiff/tif_color.c i = ycbcr->Y_tab[Y] i 195 3rdparty/libtiff/tif_color.c *g = CLAMP(i, 0, 255); i 196 3rdparty/libtiff/tif_color.c i = ycbcr->Y_tab[Y] + ycbcr->Cb_b_tab[Cb]; i 197 3rdparty/libtiff/tif_color.c *b = CLAMP(i, 0, 255); i 220 3rdparty/libtiff/tif_color.c int i; i 230 3rdparty/libtiff/tif_color.c for (i = 0; i < 256; i++) i 231 3rdparty/libtiff/tif_color.c clamptab[i] = (TIFFRGBValue) i; i 256 3rdparty/libtiff/tif_color.c for (i = 0, x = -128; i < 256; i++, x++) { i 262 3rdparty/libtiff/tif_color.c ycbcr->Cr_r_tab[i] = (int32)((D1*Cr + ONE_HALF)>>SHIFT); i 263 3rdparty/libtiff/tif_color.c ycbcr->Cb_b_tab[i] = (int32)((D3*Cb + ONE_HALF)>>SHIFT); i 264 3rdparty/libtiff/tif_color.c ycbcr->Cr_g_tab[i] = D2*Cr; i 265 3rdparty/libtiff/tif_color.c ycbcr->Cb_g_tab[i] = D4*Cb + ONE_HALF; i 266 3rdparty/libtiff/tif_color.c ycbcr->Y_tab[i] = i 255 3rdparty/libtiff/tif_compress.c int i = 1; i 263 3rdparty/libtiff/tif_compress.c _TIFFrealloc(codecs, i * sizeof(TIFFCodec)); i 269 3rdparty/libtiff/tif_compress.c _TIFFmemcpy(codecs + i - 1, cd, sizeof(TIFFCodec)); i 270 3rdparty/libtiff/tif_compress.c i++; i 275 3rdparty/libtiff/tif_compress.c _TIFFrealloc(codecs, i * sizeof(TIFFCodec)); i 281 3rdparty/libtiff/tif_compress.c _TIFFmemcpy(codecs + i - 1, (const void*)c, sizeof(TIFFCodec)); i 282 3rdparty/libtiff/tif_compress.c i++; i 286 3rdparty/libtiff/tif_compress.c new_codecs = (TIFFCodec *) _TIFFrealloc(codecs, i * sizeof(TIFFCodec)); i 292 3rdparty/libtiff/tif_compress.c _TIFFmemset(codecs + i - 1, 0, sizeof(TIFFCodec)); i 96 3rdparty/libtiff/tif_dir.c uint32 i; i 104 3rdparty/libtiff/tif_dir.c for (i = 0; i < *v; i++) { i 105 3rdparty/libtiff/tif_dir.c if (va[i] > EXTRASAMPLE_UNASSALPHA) { i 112 3rdparty/libtiff/tif_dir.c if (va[i] == EXTRASAMPLE_COREL_UNASSALPHA) i 113 3rdparty/libtiff/tif_dir.c va[i] = EXTRASAMPLE_UNASSALPHA; i 133 3rdparty/libtiff/tif_dir.c uint16 i = td->td_samplesperpixel; i 138 3rdparty/libtiff/tif_dir.c for (; i > 0; i--) { i 151 3rdparty/libtiff/tif_dir.c td->td_samplesperpixel-i); i 162 3rdparty/libtiff/tif_dir.c uint32 v32, i, v; i 414 3rdparty/libtiff/tif_dir.c for (i = 0; i < v; i++) i 415 3rdparty/libtiff/tif_dir.c _TIFFsetShortArray(&td->td_transferfunction[i], i 768 3rdparty/libtiff/tif_dir.c int i; i 770 3rdparty/libtiff/tif_dir.c for (i = 0; i < td->td_customValueCount; i++) { i 772 3rdparty/libtiff/tif_dir.c tv = td->td_customValues + i; i 777 3rdparty/libtiff/tif_dir.c if( i < td->td_customValueCount ) i 780 3rdparty/libtiff/tif_dir.c for( ; i < td->td_customValueCount-1; i++) { i 781 3rdparty/libtiff/tif_dir.c td->td_customValues[i] = td->td_customValues[i+1]; i 869 3rdparty/libtiff/tif_dir.c uint16 i; i 871 3rdparty/libtiff/tif_dir.c for (i=1; i < td->td_samplesperpixel; ++i) i 872 3rdparty/libtiff/tif_dir.c if( td->td_sminsamplevalue[i] < v ) i 873 3rdparty/libtiff/tif_dir.c v = td->td_sminsamplevalue[i]; i 883 3rdparty/libtiff/tif_dir.c uint16 i; i 885 3rdparty/libtiff/tif_dir.c for (i=1; i < td->td_samplesperpixel; ++i) i 886 3rdparty/libtiff/tif_dir.c if( td->td_smaxsamplevalue[i] > v ) i 887 3rdparty/libtiff/tif_dir.c v = td->td_smaxsamplevalue[i]; i 998 3rdparty/libtiff/tif_dir.c int i; i 1025 3rdparty/libtiff/tif_dir.c for (i = 0; i < td->td_customValueCount; i++) { i 1026 3rdparty/libtiff/tif_dir.c TIFFTagValue *tv = td->td_customValues + i; i 1171 3rdparty/libtiff/tif_dir.c int i; i 1192 3rdparty/libtiff/tif_dir.c for( i = 0; i < td->td_customValueCount; i++ ) { i 1193 3rdparty/libtiff/tif_dir.c if (td->td_customValues[i].value) i 1194 3rdparty/libtiff/tif_dir.c _TIFFfree(td->td_customValues[i].value); i 298 3rdparty/libtiff/tif_dirinfo.c uint32 i; i 300 3rdparty/libtiff/tif_dirinfo.c for (i = 0; i < tif->tif_nfields; i++) { i 301 3rdparty/libtiff/tif_dirinfo.c TIFFField *fld = tif->tif_fields[i]; i 352 3rdparty/libtiff/tif_dirinfo.c uint32 i; i 373 3rdparty/libtiff/tif_dirinfo.c for (i = 0; i < n; i++) { i 375 3rdparty/libtiff/tif_dirinfo.c TIFFFindField(tif, info[i].field_tag, TIFF_ANY); i 379 3rdparty/libtiff/tif_dirinfo.c tif->tif_fields[tif->tif_nfields] = (TIFFField *) (info+i); i 394 3rdparty/libtiff/tif_dirinfo.c uint32 i; i 397 3rdparty/libtiff/tif_dirinfo.c for (i = 0; i < tif->tif_nfields; i++) { i 398 3rdparty/libtiff/tif_dirinfo.c const TIFFField* fip = tif->tif_fields[i]; i 400 3rdparty/libtiff/tif_dirinfo.c , (int)i i 836 3rdparty/libtiff/tif_dirinfo.c uint32 i; i 868 3rdparty/libtiff/tif_dirinfo.c for (i = 0; i < n; i++) { i 869 3rdparty/libtiff/tif_dirinfo.c tp->field_tag = info[i].field_tag; i 870 3rdparty/libtiff/tif_dirinfo.c tp->field_readcount = info[i].field_readcount; i 871 3rdparty/libtiff/tif_dirinfo.c tp->field_writecount = info[i].field_writecount; i 872 3rdparty/libtiff/tif_dirinfo.c tp->field_type = info[i].field_type; i 875 3rdparty/libtiff/tif_dirinfo.c _TIFFSetGetType(info[i].field_type, i 876 3rdparty/libtiff/tif_dirinfo.c info[i].field_readcount, i 877 3rdparty/libtiff/tif_dirinfo.c info[i].field_passcount); i 879 3rdparty/libtiff/tif_dirinfo.c _TIFFSetGetType(info[i].field_type, i 880 3rdparty/libtiff/tif_dirinfo.c info[i].field_readcount, i 881 3rdparty/libtiff/tif_dirinfo.c info[i].field_passcount); i 882 3rdparty/libtiff/tif_dirinfo.c tp->field_bit = info[i].field_bit; i 883 3rdparty/libtiff/tif_dirinfo.c tp->field_oktochange = info[i].field_oktochange; i 884 3rdparty/libtiff/tif_dirinfo.c tp->field_passcount = info[i].field_passcount; i 885 3rdparty/libtiff/tif_dirinfo.c tp->field_name = info[i].field_name; i 173 3rdparty/libtiff/tif_dirread.c uint32 i[2]; i 2885 3rdparty/libtiff/tif_dirread.c err=TIFFReadDirEntryData(tif,offset,8,m.i); i 2892 3rdparty/libtiff/tif_dirread.c TIFFSwabArrayOfLong(m.i,2); i 2893 3rdparty/libtiff/tif_dirread.c if (m.i[0]==0) i 2896 3rdparty/libtiff/tif_dirread.c *value=(double)m.i[0]/(double)m.i[1]; i 2913 3rdparty/libtiff/tif_dirread.c err=TIFFReadDirEntryData(tif,offset,8,m.i); i 2920 3rdparty/libtiff/tif_dirread.c TIFFSwabArrayOfLong(m.i,2); i 2921 3rdparty/libtiff/tif_dirread.c if ((int32)m.i[0]==0) i 2924 3rdparty/libtiff/tif_dirread.c *value=(double)((int32)m.i[0])/(double)m.i[1]; i 2933 3rdparty/libtiff/tif_dirread.c uint32 i; i 2938 3rdparty/libtiff/tif_dirread.c float_union.i=*(uint32*)(&direntry->tdir_offset); i 5415 3rdparty/libtiff/tif_dirread.c err=TIFFReadDirEntryData(tif,offset,8,m.i); i 5427 3rdparty/libtiff/tif_dirread.c TIFFSwabArrayOfLong(m.i,2); i 5428 3rdparty/libtiff/tif_dirread.c if (m.i[0]==0) i 5430 3rdparty/libtiff/tif_dirread.c else if (m.i[0]==0xFFFFFFFF) i 5438 3rdparty/libtiff/tif_dirread.c n=(double)m.i[0]/(double)m.i[1]; i 933 3rdparty/libtiff/tif_dirwrite.c uint32 i; i 947 3rdparty/libtiff/tif_dirwrite.c for (i = 0; i < count; ++i) i 948 3rdparty/libtiff/tif_dirwrite.c ((float*)conv)[i] = (float)value[i]; i 959 3rdparty/libtiff/tif_dirwrite.c for (i = 0; i < count; ++i) i 960 3rdparty/libtiff/tif_dirwrite.c ((int8*)conv)[i] = (int8)value[i]; i 965 3rdparty/libtiff/tif_dirwrite.c for (i = 0; i < count; ++i) i 966 3rdparty/libtiff/tif_dirwrite.c ((int16*)conv)[i] = (int16)value[i]; i 971 3rdparty/libtiff/tif_dirwrite.c for (i = 0; i < count; ++i) i 972 3rdparty/libtiff/tif_dirwrite.c ((int32*)conv)[i] = (int32)value[i]; i 979 3rdparty/libtiff/tif_dirwrite.c for (i = 0; i < count; ++i) i 980 3rdparty/libtiff/tif_dirwrite.c ((uint8*)conv)[i] = (uint8)value[i]; i 985 3rdparty/libtiff/tif_dirwrite.c for (i = 0; i < count; ++i) i 986 3rdparty/libtiff/tif_dirwrite.c ((uint16*)conv)[i] = (uint16)value[i]; i 991 3rdparty/libtiff/tif_dirwrite.c for (i = 0; i < count; ++i) i 992 3rdparty/libtiff/tif_dirwrite.c ((uint32*)conv)[i] = (uint32)value[i]; i 2740 3rdparty/libtiff/tif_dirwrite.c tmsize_t i; i 2742 3rdparty/libtiff/tif_dirwrite.c for( i = 0; i < count; i++ ) i 2744 3rdparty/libtiff/tif_dirwrite.c ((int32 *) buf_to_write)[i] = i 2745 3rdparty/libtiff/tif_dirwrite.c (int32) ((int64 *) data)[i]; i 2746 3rdparty/libtiff/tif_dirwrite.c if( (int64) ((int32 *) buf_to_write)[i] != ((int64 *) data)[i] ) i 2758 3rdparty/libtiff/tif_dirwrite.c tmsize_t i; i 2760 3rdparty/libtiff/tif_dirwrite.c for( i = 0; i < count; i++ ) i 2762 3rdparty/libtiff/tif_dirwrite.c ((uint32 *) buf_to_write)[i] = i 2763 3rdparty/libtiff/tif_dirwrite.c (uint32) ((uint64 *) data)[i]; i 2764 3rdparty/libtiff/tif_dirwrite.c if( (uint64) ((uint32 *) buf_to_write)[i] != ((uint64 *) data)[i] ) i 1094 3rdparty/libtiff/tif_fax3.c int i; i 1098 3rdparty/libtiff/tif_fax3.c for (i = 0; i < 6; i++) i 2217 3rdparty/libtiff/tif_getimage.c int i; i 2230 3rdparty/libtiff/tif_getimage.c for (i = 0; i < 256; i++) { i 2232 3rdparty/libtiff/tif_getimage.c img->BWmap[i] = p; i 2236 3rdparty/libtiff/tif_getimage.c GREY(i>>7); i 2237 3rdparty/libtiff/tif_getimage.c GREY((i>>6)&1); i 2238 3rdparty/libtiff/tif_getimage.c GREY((i>>5)&1); i 2239 3rdparty/libtiff/tif_getimage.c GREY((i>>4)&1); i 2240 3rdparty/libtiff/tif_getimage.c GREY((i>>3)&1); i 2241 3rdparty/libtiff/tif_getimage.c GREY((i>>2)&1); i 2242 3rdparty/libtiff/tif_getimage.c GREY((i>>1)&1); i 2243 3rdparty/libtiff/tif_getimage.c GREY(i&1); i 2246 3rdparty/libtiff/tif_getimage.c GREY(i>>6); i 2247 3rdparty/libtiff/tif_getimage.c GREY((i>>4)&3); i 2248 3rdparty/libtiff/tif_getimage.c GREY((i>>2)&3); i 2249 3rdparty/libtiff/tif_getimage.c GREY(i&3); i 2252 3rdparty/libtiff/tif_getimage.c GREY(i>>4); i 2253 3rdparty/libtiff/tif_getimage.c GREY(i&0xf); i 2257 3rdparty/libtiff/tif_getimage.c GREY(i); i 2329 3rdparty/libtiff/tif_getimage.c long i; i 2331 3rdparty/libtiff/tif_getimage.c for (i = (1L<<img->bitspersample)-1; i >= 0; i--) { i 2333 3rdparty/libtiff/tif_getimage.c r[i] = CVT(r[i]); i 2334 3rdparty/libtiff/tif_getimage.c g[i] = CVT(g[i]); i 2335 3rdparty/libtiff/tif_getimage.c b[i] = CVT(b[i]); i 2356 3rdparty/libtiff/tif_getimage.c int i; i 2365 3rdparty/libtiff/tif_getimage.c for (i = 0; i < 256; i++) { i 2367 3rdparty/libtiff/tif_getimage.c img->PALmap[i] = p; i 2371 3rdparty/libtiff/tif_getimage.c CMAP(i>>7); i 2372 3rdparty/libtiff/tif_getimage.c CMAP((i>>6)&1); i 2373 3rdparty/libtiff/tif_getimage.c CMAP((i>>5)&1); i 2374 3rdparty/libtiff/tif_getimage.c CMAP((i>>4)&1); i 2375 3rdparty/libtiff/tif_getimage.c CMAP((i>>3)&1); i 2376 3rdparty/libtiff/tif_getimage.c CMAP((i>>2)&1); i 2377 3rdparty/libtiff/tif_getimage.c CMAP((i>>1)&1); i 2378 3rdparty/libtiff/tif_getimage.c CMAP(i&1); i 2381 3rdparty/libtiff/tif_getimage.c CMAP(i>>6); i 2382 3rdparty/libtiff/tif_getimage.c CMAP((i>>4)&3); i 2383 3rdparty/libtiff/tif_getimage.c CMAP((i>>2)&3); i 2384 3rdparty/libtiff/tif_getimage.c CMAP(i&3); i 2387 3rdparty/libtiff/tif_getimage.c CMAP(i>>4); i 2388 3rdparty/libtiff/tif_getimage.c CMAP(i&0xf); i 2391 3rdparty/libtiff/tif_getimage.c CMAP(i); i 1391 3rdparty/libtiff/tif_jpeg.c int i=0; i 1393 3rdparty/libtiff/tif_jpeg.c for (i=0; i<len; i++) i 1395 3rdparty/libtiff/tif_jpeg.c ((unsigned char*)buf)[i] = tmpbuf[i] & 0xff; i 189 3rdparty/libtiff/tif_luv.c tmsize_t i; i 214 3rdparty/libtiff/tif_luv.c for (i = 0; i < npixels && cc > 0; ) i 219 3rdparty/libtiff/tif_luv.c while (rc-- && i < npixels) i 220 3rdparty/libtiff/tif_luv.c tp[i++] |= b; i 223 3rdparty/libtiff/tif_luv.c while (--cc && rc-- && i < npixels) i 224 3rdparty/libtiff/tif_luv.c tp[i++] |= (int16)*bp++ << shft; i 226 3rdparty/libtiff/tif_luv.c if (i != npixels) { i 231 3rdparty/libtiff/tif_luv.c (unsigned __int64) (npixels - i)); i 236 3rdparty/libtiff/tif_luv.c (unsigned long long) (npixels - i)); i 258 3rdparty/libtiff/tif_luv.c tmsize_t i; i 277 3rdparty/libtiff/tif_luv.c for (i = 0; i < npixels && cc > 0; i++) { i 278 3rdparty/libtiff/tif_luv.c tp[i] = bp[0] << 16 | bp[1] << 8 | bp[2]; i 284 3rdparty/libtiff/tif_luv.c if (i != npixels) { i 289 3rdparty/libtiff/tif_luv.c (unsigned __int64) (npixels - i)); i 294 3rdparty/libtiff/tif_luv.c (unsigned long long) (npixels - i)); i 311 3rdparty/libtiff/tif_luv.c tmsize_t i; i 337 3rdparty/libtiff/tif_luv.c for (i = 0; i < npixels && cc > 0; ) i 342 3rdparty/libtiff/tif_luv.c while (rc-- && i < npixels) i 343 3rdparty/libtiff/tif_luv.c tp[i++] |= b; i 346 3rdparty/libtiff/tif_luv.c while (--cc && rc-- && i < npixels) i 347 3rdparty/libtiff/tif_luv.c tp[i++] |= (uint32)*bp++ << shft; i 349 3rdparty/libtiff/tif_luv.c if (i != npixels) { i 354 3rdparty/libtiff/tif_luv.c (unsigned __int64) (npixels - i)); i 359 3rdparty/libtiff/tif_luv.c (unsigned long long) (npixels - i)); i 412 3rdparty/libtiff/tif_luv.c tmsize_t i; i 437 3rdparty/libtiff/tif_luv.c for (i = 0; i < npixels; i += rc) { i 447 3rdparty/libtiff/tif_luv.c for (beg = i; beg < npixels; beg += rc) { i 456 3rdparty/libtiff/tif_luv.c if (beg-i > 1 && beg-i < MINRUN) { i 457 3rdparty/libtiff/tif_luv.c b = (int16) (tp[i] & mask);/*check short run */ i 458 3rdparty/libtiff/tif_luv.c j = i+1; i 461 3rdparty/libtiff/tif_luv.c *op++ = (uint8)(128-2+j-i); i 464 3rdparty/libtiff/tif_luv.c i = beg; i 468 3rdparty/libtiff/tif_luv.c while (i < beg) { /* write out non-run */ i 469 3rdparty/libtiff/tif_luv.c if ((j = beg-i) > 127) j = 127; i 480 3rdparty/libtiff/tif_luv.c *op++ = (uint8) (tp[i++] >> shft & 0xff); i 504 3rdparty/libtiff/tif_luv.c tmsize_t i; i 524 3rdparty/libtiff/tif_luv.c for (i = npixels; i--; ) { i 552 3rdparty/libtiff/tif_luv.c tmsize_t i; i 578 3rdparty/libtiff/tif_luv.c for (i = 0; i < npixels; i += rc) { i 588 3rdparty/libtiff/tif_luv.c for (beg = i; beg < npixels; beg += rc) { i 597 3rdparty/libtiff/tif_luv.c if (beg-i > 1 && beg-i < MINRUN) { i 598 3rdparty/libtiff/tif_luv.c b = tp[i] & mask; /* check short run */ i 599 3rdparty/libtiff/tif_luv.c j = i+1; i 602 3rdparty/libtiff/tif_luv.c *op++ = (uint8)(128-2+j-i); i 605 3rdparty/libtiff/tif_luv.c i = beg; i 609 3rdparty/libtiff/tif_luv.c while (i < beg) { /* write out non-run */ i 610 3rdparty/libtiff/tif_luv.c if ((j = beg-i) > 127) j = 127; i 621 3rdparty/libtiff/tif_luv.c *op++ = (uint8)(tp[i++] >> shft & 0xff); i 809 3rdparty/libtiff/tif_luv.c register int i; i 814 3rdparty/libtiff/tif_luv.c for (i = NANGLES; i--; ) i 815 3rdparty/libtiff/tif_luv.c eps[i] = 2.; i 824 3rdparty/libtiff/tif_luv.c i = (int) ang; i 825 3rdparty/libtiff/tif_luv.c epsa = fabs(ang - (i+.5)); i 826 3rdparty/libtiff/tif_luv.c if (epsa < eps[i]) { i 827 3rdparty/libtiff/tif_luv.c oog_table[i] = uv_row[vi].ncum + ui; i 828 3rdparty/libtiff/tif_luv.c eps[i] = epsa; i 832 3rdparty/libtiff/tif_luv.c for (i = NANGLES; i--; ) /* fill any holes */ i 833 3rdparty/libtiff/tif_luv.c if (eps[i] > 1.5) { i 836 3rdparty/libtiff/tif_luv.c if (eps[(i+i1)%NANGLES] < 1.5) i 839 3rdparty/libtiff/tif_luv.c if (eps[(i+NANGLES-i2)%NANGLES] < 1.5) i 842 3rdparty/libtiff/tif_luv.c oog_table[i] = i 843 3rdparty/libtiff/tif_luv.c oog_table[(i+i1)%NANGLES]; i 845 3rdparty/libtiff/tif_luv.c oog_table[i] = i 846 3rdparty/libtiff/tif_luv.c oog_table[(i+NANGLES-i2)%NANGLES]; i 850 3rdparty/libtiff/tif_luv.c i = (int) uv2ang(u, v); /* look up hue angle */ i 851 3rdparty/libtiff/tif_luv.c return (oog_table[i]); i 1058 3rdparty/libtiff/tif_lzw.c register long i = HSIZE-8; i 1061 3rdparty/libtiff/tif_lzw.c i -= 8; i 1071 3rdparty/libtiff/tif_lzw.c } while (i >= 0); i 1072 3rdparty/libtiff/tif_lzw.c for (i += 8; i > 0; i--, hp--) i 111 3rdparty/libtiff/tif_pixarlog.c #define REPEAT(n, op) { int i; i=n; do { i--; op; } while (i>0); } i 495 3rdparty/libtiff/tif_pixarlog.c int i, j; i 538 3rdparty/libtiff/tif_pixarlog.c for (i = 0; i < nlin; i++) { i 539 3rdparty/libtiff/tif_pixarlog.c v = i * linstep; i 543 3rdparty/libtiff/tif_pixarlog.c for (i = nlin; i < TSIZE; i++) i 544 3rdparty/libtiff/tif_pixarlog.c ToLinearF[j++] = (float)(b*exp(c*i)); i 548 3rdparty/libtiff/tif_pixarlog.c for (i = 0; i < TSIZEP1; i++) { i 549 3rdparty/libtiff/tif_pixarlog.c v = ToLinearF[i]*65535.0 + 0.5; i 550 3rdparty/libtiff/tif_pixarlog.c ToLinear16[i] = (v > 65535.0) ? 65535 : (uint16)v; i 551 3rdparty/libtiff/tif_pixarlog.c v = ToLinearF[i]*255.0 + 0.5; i 552 3rdparty/libtiff/tif_pixarlog.c ToLinear8[i] = (v > 255.0) ? 255 : (unsigned char)v; i 556 3rdparty/libtiff/tif_pixarlog.c for (i = 0; i < lt2size; i++) { i 557 3rdparty/libtiff/tif_pixarlog.c if ((i*linstep)*(i*linstep) > ToLinearF[j]*ToLinearF[j+1]) i 559 3rdparty/libtiff/tif_pixarlog.c FromLT2[i] = j; i 568 3rdparty/libtiff/tif_pixarlog.c for (i = 0; i < 16384; i++) { i 569 3rdparty/libtiff/tif_pixarlog.c while ((i/16383.)*(i/16383.) > ToLinearF[j]*ToLinearF[j+1]) i 571 3rdparty/libtiff/tif_pixarlog.c From14[i] = j; i 575 3rdparty/libtiff/tif_pixarlog.c for (i = 0; i < 256; i++) { i 576 3rdparty/libtiff/tif_pixarlog.c while ((i/255.)*(i/255.) > ToLinearF[j]*ToLinearF[j+1]) i 578 3rdparty/libtiff/tif_pixarlog.c From8[i] = j; i 728 3rdparty/libtiff/tif_pixarlog.c tmsize_t i; i 813 3rdparty/libtiff/tif_pixarlog.c for (i = 0; i < nsamples; i += llen, up += llen) { i 1090 3rdparty/libtiff/tif_pixarlog.c tmsize_t i; i 1119 3rdparty/libtiff/tif_pixarlog.c for (i = 0, up = sp->tbuf; i < n; i += llen, up += llen) { i 234 3rdparty/libtiff/tif_predict.c default: { tmsize_t i; for (i = n-4; i > 0; i--) { op; } } \ i 188 3rdparty/libtiff/tif_print.c uint32 i; i 191 3rdparty/libtiff/tif_print.c for(i = 0; i < value_count; i++) i 192 3rdparty/libtiff/tif_print.c fputc(((char *)raw_data)[i], fd); i 238 3rdparty/libtiff/tif_print.c uint16 i; i 368 3rdparty/libtiff/tif_print.c for (i = 0; i < td->td_extrasamples; i++) { i 369 3rdparty/libtiff/tif_print.c switch (td->td_sampleinfo[i]) { i 381 3rdparty/libtiff/tif_print.c td->td_sampleinfo[i], td->td_sampleinfo[i]); i 391 3rdparty/libtiff/tif_print.c i = td->td_samplesperpixel; i 394 3rdparty/libtiff/tif_print.c i > 0 && cp < td->td_inknames + td->td_inknameslen; i 395 3rdparty/libtiff/tif_print.c cp = strchr(cp,'\0')+1, i--) { i 484 3rdparty/libtiff/tif_print.c for (i = 0; i < count; ++i) i 485 3rdparty/libtiff/tif_print.c fprintf(fd, " %g", td->td_sminsamplevalue[i]); i 491 3rdparty/libtiff/tif_print.c for (i = 0; i < count; ++i) i 492 3rdparty/libtiff/tif_print.c fprintf(fd, " %g", td->td_smaxsamplevalue[i]); i 529 3rdparty/libtiff/tif_print.c for (i = 0; i < 3; i++) i 530 3rdparty/libtiff/tif_print.c fprintf(fd, " %2d: %5g %5g\n", i, i 531 3rdparty/libtiff/tif_print.c td->td_refblackwhite[2*i+0], i 532 3rdparty/libtiff/tif_print.c td->td_refblackwhite[2*i+1]); i 542 3rdparty/libtiff/tif_print.c for (i = 1; i < td->td_samplesperpixel; i++) i 544 3rdparty/libtiff/tif_print.c td->td_transferfunction[i][l]); i 552 3rdparty/libtiff/tif_print.c for (i = 0; i < td->td_nsubifd; i++) i 555 3rdparty/libtiff/tif_print.c (unsigned __int64) td->td_subifd[i]); i 558 3rdparty/libtiff/tif_print.c (unsigned long long) td->td_subifd[i]); i 567 3rdparty/libtiff/tif_print.c int i; i 571 3rdparty/libtiff/tif_print.c for(i = 0; i < count; i++) { i 572 3rdparty/libtiff/tif_print.c uint32 tag = TIFFGetTagListEntry(tif, i); i 241 3rdparty/libtiff/tif_stream.cxx for( uint64 i = 0; i < num_fill; i++ ) i 228 3rdparty/libwebp/dec/io.c int i, j; i 231 3rdparty/libwebp/dec/io.c for (i = 0; i < mb_w; ++i) { i 232 3rdparty/libwebp/dec/io.c const uint32_t alpha_value = alpha[i]; i 233 3rdparty/libwebp/dec/io.c dst[4 * i] = alpha_value; i 259 3rdparty/libwebp/dec/io.c int i, j; i 262 3rdparty/libwebp/dec/io.c for (i = 0; i < mb_w; ++i) { i 264 3rdparty/libwebp/dec/io.c const uint32_t alpha_value = alpha[i] >> 4; i 265 3rdparty/libwebp/dec/io.c alpha_dst[2 * i] = (alpha_dst[2 * i] & 0xf0) | alpha_value; i 421 3rdparty/libwebp/dec/io.c int i; i 424 3rdparty/libwebp/dec/io.c for (i = 0; i < width; ++i) { i 425 3rdparty/libwebp/dec/io.c const uint32_t alpha_value = p->scaler_a.dst[i]; i 426 3rdparty/libwebp/dec/io.c dst[4 * i] = alpha_value; i 450 3rdparty/libwebp/dec/io.c int i; i 453 3rdparty/libwebp/dec/io.c for (i = 0; i < width; ++i) { i 455 3rdparty/libwebp/dec/io.c const uint32_t alpha_value = p->scaler_a.dst[i] >> 4; i 456 3rdparty/libwebp/dec/io.c alpha_dst[2 * i] = (alpha_dst[2 * i] & 0xf0) | alpha_value; i 76 3rdparty/libwebp/dec/quant.c int i; i 78 3rdparty/libwebp/dec/quant.c for (i = 0; i < NUM_MB_SEGMENTS; ++i) { i 81 3rdparty/libwebp/dec/quant.c q = hdr->quantizer_[i]; i 86 3rdparty/libwebp/dec/quant.c if (i > 0) { i 87 3rdparty/libwebp/dec/quant.c dec->dqm_[i] = dec->dqm_[0]; i 94 3rdparty/libwebp/dec/quant.c VP8QuantMatrix* const m = &dec->dqm_[i]; i 361 3rdparty/libwebp/dec/tree.c int i = 0; i 363 3rdparty/libwebp/dec/tree.c i = kYModesIntra4[2 * i + VP8GetBit(br, prob[i])]; i 364 3rdparty/libwebp/dec/tree.c } while (i > 0); i 365 3rdparty/libwebp/dec/tree.c ymode = -i; i 561 3rdparty/libwebp/dec/tree.c int i; i 566 3rdparty/libwebp/dec/tree.c for (i = 0; i < 4; ++i) { i 567 3rdparty/libwebp/dec/tree.c proba->ymode_[i] = VP8GetValue(br, 8); i 571 3rdparty/libwebp/dec/tree.c for (i = 0; i < 3; ++i) { i 572 3rdparty/libwebp/dec/tree.c proba->uvmode_[i] = VP8GetValue(br, 8); i 576 3rdparty/libwebp/dec/tree.c for (i = 0; i < 2; ++i) { i 579 3rdparty/libwebp/dec/tree.c if (VP8GetBit(br, MVUpdateProba[i][k])) { i 581 3rdparty/libwebp/dec/tree.c proba->mv_[i][k] = v ? v << 1 : 1; i 227 3rdparty/libwebp/dec/vp8.c int i; i 228 3rdparty/libwebp/dec/vp8.c for (i = 0; i < NUM_REF_LF_DELTAS; ++i) { i 230 3rdparty/libwebp/dec/vp8.c hdr->ref_lf_delta_[i] = VP8GetSignedValue(br, 6); i 233 3rdparty/libwebp/dec/vp8.c for (i = 0; i < NUM_MODE_LF_DELTAS; ++i) { i 235 3rdparty/libwebp/dec/vp8.c hdr->mode_lf_delta_[i] = VP8GetSignedValue(br, 6); i 254 3rdparty/libwebp/dec/vp8l.c int i; i 269 3rdparty/libwebp/dec/vp8l.c for (i = 0; i < num_codes; ++i) { i 270 3rdparty/libwebp/dec/vp8l.c code_length_code_lengths[kCodeLengthCodeOrder[i]] = VP8LReadBits(br, 3); i 289 3rdparty/libwebp/dec/vp8l.c int i, j; i 290 3rdparty/libwebp/dec/vp8l.c for (i = 0; i < num_htree_groups; ++i) { i 291 3rdparty/libwebp/dec/vp8l.c HuffmanTree* const htrees = htree_groups[i].htrees_; i 302 3rdparty/libwebp/dec/vp8l.c int i, j; i 321 3rdparty/libwebp/dec/vp8l.c for (i = 0; i < huffman_pixs; ++i) { i 323 3rdparty/libwebp/dec/vp8l.c const int group = (huffman_image[i] >> 8) & 0xffff; i 324 3rdparty/libwebp/dec/vp8l.c huffman_image[i] = group; i 342 3rdparty/libwebp/dec/vp8l.c for (i = 0; i < num_htree_groups; ++i) { i 343 3rdparty/libwebp/dec/vp8l.c HuffmanTree* const htrees = htree_groups[i].htrees_; i 461 3rdparty/libwebp/dec/vp8l.c int i; i 463 3rdparty/libwebp/dec/vp8l.c for (i = 0; i < width; ++i) { i 464 3rdparty/libwebp/dec/vp8l.c const uint32_t p = src[i]; i 465 3rdparty/libwebp/dec/vp8l.c y[i] = VP8RGBToY((p >> 16) & 0xff, (p >> 8) & 0xff, (p >> 0) & 0xff); i 474 3rdparty/libwebp/dec/vp8l.c int i; i 475 3rdparty/libwebp/dec/vp8l.c for (i = 0; i < uv_width; ++i) { i 476 3rdparty/libwebp/dec/vp8l.c const uint32_t v0 = src[2 * i + 0]; i 477 3rdparty/libwebp/dec/vp8l.c const uint32_t v1 = src[2 * i + 1]; i 484 3rdparty/libwebp/dec/vp8l.c u[i] = VP8RGBToU(r, g, b); i 485 3rdparty/libwebp/dec/vp8l.c v[i] = VP8RGBToV(r, g, b); i 490 3rdparty/libwebp/dec/vp8l.c u[i] = (u[i] + tmp_u + 1) >> 1; i 491 3rdparty/libwebp/dec/vp8l.c v[i] = (v[i] + tmp_v + 1) >> 1; i 495 3rdparty/libwebp/dec/vp8l.c const uint32_t v0 = src[2 * i + 0]; i 500 3rdparty/libwebp/dec/vp8l.c u[i] = VP8RGBToU(r, g, b); i 501 3rdparty/libwebp/dec/vp8l.c v[i] = VP8RGBToV(r, g, b); i 505 3rdparty/libwebp/dec/vp8l.c u[i] = (u[i] + tmp_u + 1) >> 1; i 506 3rdparty/libwebp/dec/vp8l.c v[i] = (v[i] + tmp_v + 1) >> 1; i 512 3rdparty/libwebp/dec/vp8l.c int i; i 514 3rdparty/libwebp/dec/vp8l.c for (i = 0; i < width; ++i) a[i] = (src[i] >> 24); i 749 3rdparty/libwebp/dec/vp8l.c int i; \ i 750 3rdparty/libwebp/dec/vp8l.c for (i = 0; i < length; ++i) src[i] = src[i - dist]; \ i 826 3rdparty/libwebp/dec/vp8l.c int i; i 837 3rdparty/libwebp/dec/vp8l.c for (i = 4; i < 4 * num_colors; ++i) { i 839 3rdparty/libwebp/dec/vp8l.c new_data[i] = (data[i] + new_data[i - 4]) & 0xff; i 841 3rdparty/libwebp/dec/vp8l.c for (; i < 4 * final_num_colors; ++i) i 842 3rdparty/libwebp/dec/vp8l.c new_data[i] = 0; // black tail. i 932 3rdparty/libwebp/dec/vp8l.c int i; i 938 3rdparty/libwebp/dec/vp8l.c for (i = 0; i < dec->next_transform_; ++i) { i 939 3rdparty/libwebp/dec/vp8l.c ClearTransform(&dec->transforms_[i]); i 1104 3rdparty/libwebp/dec/vp8l.c int i; i 1105 3rdparty/libwebp/dec/vp8l.c for (i = 0; i < cache_pixs; ++i) dst[i] = (src[i] >> 8) & 0xff; i 36 3rdparty/libwebp/dsp/dec.c int i; i 37 3rdparty/libwebp/dsp/dec.c for (i = -255; i <= 255; ++i) { i 38 3rdparty/libwebp/dsp/dec.c abs0[255 + i] = (i < 0) ? -i : i; i 39 3rdparty/libwebp/dsp/dec.c abs1[255 + i] = abs0[255 + i] >> 1; i 41 3rdparty/libwebp/dsp/dec.c for (i = -1020; i <= 1020; ++i) { i 42 3rdparty/libwebp/dsp/dec.c sclip1[1020 + i] = (i < -128) ? -128 : (i > 127) ? 127 : i; i 44 3rdparty/libwebp/dsp/dec.c for (i = -112; i <= 112; ++i) { i 45 3rdparty/libwebp/dsp/dec.c sclip2[112 + i] = (i < -16) ? -16 : (i > 15) ? 15 : i; i 47 3rdparty/libwebp/dsp/dec.c for (i = -255; i <= 255 + 255; ++i) { i 48 3rdparty/libwebp/dsp/dec.c clip1[255 + i] = (i < 0) ? 0 : (i > 255) ? 255 : i; i 70 3rdparty/libwebp/dsp/dec.c int i; i 72 3rdparty/libwebp/dsp/dec.c for (i = 0; i < 4; ++i) { // vertical pass i 92 3rdparty/libwebp/dsp/dec.c for (i = 0; i < 4; ++i) { // horizontal pass i 122 3rdparty/libwebp/dsp/dec.c int i, j; i 124 3rdparty/libwebp/dsp/dec.c for (i = 0; i < 4; ++i) { i 125 3rdparty/libwebp/dsp/dec.c STORE(i, j, DC); i 144 3rdparty/libwebp/dsp/dec.c int i; i 145 3rdparty/libwebp/dsp/dec.c for (i = 0; i < 4; ++i) { i 146 3rdparty/libwebp/dsp/dec.c const int a0 = in[0 + i] + in[12 + i]; i 147 3rdparty/libwebp/dsp/dec.c const int a1 = in[4 + i] + in[ 8 + i]; i 148 3rdparty/libwebp/dsp/dec.c const int a2 = in[4 + i] - in[ 8 + i]; i 149 3rdparty/libwebp/dsp/dec.c const int a3 = in[0 + i] - in[12 + i]; i 150 3rdparty/libwebp/dsp/dec.c tmp[0 + i] = a0 + a1; i 151 3rdparty/libwebp/dsp/dec.c tmp[8 + i] = a0 - a1; i 152 3rdparty/libwebp/dsp/dec.c tmp[4 + i] = a3 + a2; i 153 3rdparty/libwebp/dsp/dec.c tmp[12 + i] = a3 - a2; i 155 3rdparty/libwebp/dsp/dec.c for (i = 0; i < 4; ++i) { i 156 3rdparty/libwebp/dsp/dec.c const int dc = tmp[0 + i * 4] + 3; // w/ rounder i 157 3rdparty/libwebp/dsp/dec.c const int a0 = dc + tmp[3 + i * 4]; i 158 3rdparty/libwebp/dsp/dec.c const int a1 = tmp[1 + i * 4] + tmp[2 + i * 4]; i 159 3rdparty/libwebp/dsp/dec.c const int a2 = tmp[1 + i * 4] - tmp[2 + i * 4]; i 160 3rdparty/libwebp/dsp/dec.c const int a3 = dc - tmp[3 + i * 4]; i 238 3rdparty/libwebp/dsp/dec.c int i; i 239 3rdparty/libwebp/dsp/dec.c for (i = 0; i < 16; ++i) { i 240 3rdparty/libwebp/dsp/dec.c DC += dst[i - BPS]; i 263 3rdparty/libwebp/dsp/dec.c int i; i 264 3rdparty/libwebp/dsp/dec.c for (i = 0; i < 4; ++i) { i 265 3rdparty/libwebp/dsp/dec.c memcpy(dst + i * BPS, vals, sizeof(vals)); i 283 3rdparty/libwebp/dsp/dec.c int i; i 284 3rdparty/libwebp/dsp/dec.c for (i = 0; i < 4; ++i) dc += dst[i - BPS] + dst[-1 + i * BPS]; i 286 3rdparty/libwebp/dsp/dec.c for (i = 0; i < 4; ++i) memset(dst + i * BPS, dc, 4); i 445 3rdparty/libwebp/dsp/dec.c int i; i 446 3rdparty/libwebp/dsp/dec.c for (i = 0; i < 8; ++i) { i 447 3rdparty/libwebp/dsp/dec.c dc0 += dst[i - BPS] + dst[-1 + i * BPS]; i 454 3rdparty/libwebp/dsp/dec.c int i; i 455 3rdparty/libwebp/dsp/dec.c for (i = 0; i < 8; ++i) { i 456 3rdparty/libwebp/dsp/dec.c dc0 += dst[i - BPS]; i 463 3rdparty/libwebp/dsp/dec.c int i; i 464 3rdparty/libwebp/dsp/dec.c for (i = 0; i < 8; ++i) { i 465 3rdparty/libwebp/dsp/dec.c dc0 += dst[-1 + i * BPS]; i 558 3rdparty/libwebp/dsp/dec.c int i; i 559 3rdparty/libwebp/dsp/dec.c for (i = 0; i < 16; ++i) { i 560 3rdparty/libwebp/dsp/dec.c if (needs_filter(p + i, stride, thresh)) { i 561 3rdparty/libwebp/dsp/dec.c do_filter2(p + i, stride); i 567 3rdparty/libwebp/dsp/dec.c int i; i 568 3rdparty/libwebp/dsp/dec.c for (i = 0; i < 16; ++i) { i 569 3rdparty/libwebp/dsp/dec.c if (needs_filter(p + i * stride, 1, thresh)) { i 570 3rdparty/libwebp/dsp/dec.c do_filter2(p + i * stride, 1); i 550 3rdparty/libwebp/dsp/dec_sse2.c int i; i 551 3rdparty/libwebp/dsp/dec_sse2.c for (i = 0; i < 4; ++i, dst += stride) { i 75 3rdparty/libwebp/dsp/enc.c int i; i 76 3rdparty/libwebp/dsp/enc.c for (i = -255; i <= 255 + 255; ++i) { i 77 3rdparty/libwebp/dsp/enc.c clip1[255 + i] = clip_8b(i); i 97 3rdparty/libwebp/dsp/enc.c int i; i 99 3rdparty/libwebp/dsp/enc.c for (i = 0; i < 4; ++i) { // vertical pass i 113 3rdparty/libwebp/dsp/enc.c for (i = 0; i < 4; ++i) { // horizontal pass i 119 3rdparty/libwebp/dsp/enc.c STORE(0, i, a + d); i 120 3rdparty/libwebp/dsp/enc.c STORE(1, i, b + c); i 121 3rdparty/libwebp/dsp/enc.c STORE(2, i, b - c); i 122 3rdparty/libwebp/dsp/enc.c STORE(3, i, a - d); i 136 3rdparty/libwebp/dsp/enc.c int i; i 138 3rdparty/libwebp/dsp/enc.c for (i = 0; i < 4; ++i, src += BPS, ref += BPS) { i 147 3rdparty/libwebp/dsp/enc.c tmp[0 + i * 4] = (a0 + a1) * 8; // 14b [-8160,8160] i 148 3rdparty/libwebp/dsp/enc.c tmp[1 + i * 4] = (a2 * 2217 + a3 * 5352 + 1812) >> 9; // [-7536,7542] i 149 3rdparty/libwebp/dsp/enc.c tmp[2 + i * 4] = (a0 - a1) * 8; i 150 3rdparty/libwebp/dsp/enc.c tmp[3 + i * 4] = (a3 * 2217 - a2 * 5352 + 937) >> 9; i 152 3rdparty/libwebp/dsp/enc.c for (i = 0; i < 4; ++i) { i 153 3rdparty/libwebp/dsp/enc.c const int a0 = (tmp[0 + i] + tmp[12 + i]); // 15b i 154 3rdparty/libwebp/dsp/enc.c const int a1 = (tmp[4 + i] + tmp[ 8 + i]); i 155 3rdparty/libwebp/dsp/enc.c const int a2 = (tmp[4 + i] - tmp[ 8 + i]); i 156 3rdparty/libwebp/dsp/enc.c const int a3 = (tmp[0 + i] - tmp[12 + i]); i 157 3rdparty/libwebp/dsp/enc.c out[0 + i] = (a0 + a1 + 7) >> 4; // 12b i 158 3rdparty/libwebp/dsp/enc.c out[4 + i] = ((a2 * 2217 + a3 * 5352 + 12000) >> 16) + (a3 != 0); i 159 3rdparty/libwebp/dsp/enc.c out[8 + i] = (a0 - a1 + 7) >> 4; i 160 3rdparty/libwebp/dsp/enc.c out[12+ i] = ((a3 * 2217 - a2 * 5352 + 51000) >> 16); i 166 3rdparty/libwebp/dsp/enc.c int i; i 167 3rdparty/libwebp/dsp/enc.c for (i = 0; i < 4; ++i) { i 168 3rdparty/libwebp/dsp/enc.c const int a0 = in[0 + i] + in[12 + i]; i 169 3rdparty/libwebp/dsp/enc.c const int a1 = in[4 + i] + in[ 8 + i]; i 170 3rdparty/libwebp/dsp/enc.c const int a2 = in[4 + i] - in[ 8 + i]; i 171 3rdparty/libwebp/dsp/enc.c const int a3 = in[0 + i] - in[12 + i]; i 172 3rdparty/libwebp/dsp/enc.c tmp[0 + i] = a0 + a1; i 173 3rdparty/libwebp/dsp/enc.c tmp[8 + i] = a0 - a1; i 174 3rdparty/libwebp/dsp/enc.c tmp[4 + i] = a3 + a2; i 175 3rdparty/libwebp/dsp/enc.c tmp[12 + i] = a3 - a2; i 177 3rdparty/libwebp/dsp/enc.c for (i = 0; i < 4; ++i) { i 178 3rdparty/libwebp/dsp/enc.c const int dc = tmp[0 + i * 4] + 3; // w/ rounder i 179 3rdparty/libwebp/dsp/enc.c const int a0 = dc + tmp[3 + i * 4]; i 180 3rdparty/libwebp/dsp/enc.c const int a1 = tmp[1 + i * 4] + tmp[2 + i * 4]; i 181 3rdparty/libwebp/dsp/enc.c const int a2 = tmp[1 + i * 4] - tmp[2 + i * 4]; i 182 3rdparty/libwebp/dsp/enc.c const int a3 = dc - tmp[3 + i * 4]; i 194 3rdparty/libwebp/dsp/enc.c int i; i 195 3rdparty/libwebp/dsp/enc.c for (i = 0; i < 4; ++i, in += 64) { i 200 3rdparty/libwebp/dsp/enc.c tmp[0 + i * 4] = a0 + a1; // 14b i 201 3rdparty/libwebp/dsp/enc.c tmp[1 + i * 4] = a3 + a2; i 202 3rdparty/libwebp/dsp/enc.c tmp[2 + i * 4] = a3 - a2; i 203 3rdparty/libwebp/dsp/enc.c tmp[3 + i * 4] = a0 - a1; i 205 3rdparty/libwebp/dsp/enc.c for (i = 0; i < 4; ++i) { i 206 3rdparty/libwebp/dsp/enc.c const int a0 = (tmp[0 + i] + tmp[8 + i]); // 15b i 207 3rdparty/libwebp/dsp/enc.c const int a1 = (tmp[4 + i] + tmp[12+ i]); i 208 3rdparty/libwebp/dsp/enc.c const int a2 = (tmp[4 + i] - tmp[12+ i]); i 209 3rdparty/libwebp/dsp/enc.c const int a3 = (tmp[0 + i] - tmp[8 + i]); i 214 3rdparty/libwebp/dsp/enc.c out[ 0 + i] = b0 >> 1; // 15b i 215 3rdparty/libwebp/dsp/enc.c out[ 4 + i] = b1 >> 1; i 216 3rdparty/libwebp/dsp/enc.c out[ 8 + i] = b2 >> 1; i 217 3rdparty/libwebp/dsp/enc.c out[12 + i] = b3 >> 1; i 355 3rdparty/libwebp/dsp/enc.c int i; i 356 3rdparty/libwebp/dsp/enc.c for (i = 0; i < 4; ++i) { i 357 3rdparty/libwebp/dsp/enc.c memcpy(dst + i * BPS, vals, 4); i 375 3rdparty/libwebp/dsp/enc.c int i; i 376 3rdparty/libwebp/dsp/enc.c for (i = 0; i < 4; ++i) dc += top[i] + top[-5 + i]; i 572 3rdparty/libwebp/dsp/enc.c int i; i 574 3rdparty/libwebp/dsp/enc.c for (i = 0; i < 4; ++i, in += BPS) { i 579 3rdparty/libwebp/dsp/enc.c tmp[0 + i * 4] = a0 + a1; i 580 3rdparty/libwebp/dsp/enc.c tmp[1 + i * 4] = a3 + a2; i 581 3rdparty/libwebp/dsp/enc.c tmp[2 + i * 4] = a3 - a2; i 582 3rdparty/libwebp/dsp/enc.c tmp[3 + i * 4] = a0 - a1; i 585 3rdparty/libwebp/dsp/enc.c for (i = 0; i < 4; ++i, ++w) { i 586 3rdparty/libwebp/dsp/enc.c const int a0 = tmp[0 + i] + tmp[8 + i]; i 587 3rdparty/libwebp/dsp/enc.c const int a1 = tmp[4 + i] + tmp[12+ i]; i 588 3rdparty/libwebp/dsp/enc.c const int a2 = tmp[4 + i] - tmp[12+ i]; i 589 3rdparty/libwebp/dsp/enc.c const int a3 = tmp[0 + i] - tmp[8 + i]; i 460 3rdparty/libwebp/dsp/enc_sse2.c int i; i 461 3rdparty/libwebp/dsp/enc_sse2.c for (i = 0; i < 4; ++i, in += 64) { i 466 3rdparty/libwebp/dsp/enc_sse2.c tmp[0 + i * 4] = a0 + a1; i 467 3rdparty/libwebp/dsp/enc_sse2.c tmp[1 + i * 4] = a3 + a2; i 468 3rdparty/libwebp/dsp/enc_sse2.c tmp[2 + i * 4] = a3 - a2; i 469 3rdparty/libwebp/dsp/enc_sse2.c tmp[3 + i * 4] = a0 - a1; i 479 3rdparty/libwebp/dsp/lossless.c int i; i 480 3rdparty/libwebp/dsp/lossless.c for (i = 1; i < significant_symbols; ++i) { i 481 3rdparty/libwebp/dsp/lossless.c bits += exp_val * (counts[i] + counts[256 - i]); i 490 3rdparty/libwebp/dsp/lossless.c int i; i 493 3rdparty/libwebp/dsp/lossless.c for (i = 0; i < n; ++i) { i 494 3rdparty/libwebp/dsp/lossless.c const int x = X[i]; i 495 3rdparty/libwebp/dsp/lossless.c const int xy = X[i] + Y[i]; i 511 3rdparty/libwebp/dsp/lossless.c int i; i 513 3rdparty/libwebp/dsp/lossless.c for (i = 0; i < 4; ++i) { i 515 3rdparty/libwebp/dsp/lossless.c retval += PredictionCostSpatial(tile[i], 1, kExpValue); i 516 3rdparty/libwebp/dsp/lossless.c retval += CombinedShannonEntropy(tile[i], accumulated[i], 256); i 720 3rdparty/libwebp/dsp/lossless.c int i = 0; i 723 3rdparty/libwebp/dsp/lossless.c for (; i + 4 < num_pixs; i += 4) { i 724 3rdparty/libwebp/dsp/lossless.c const __m128i in = _mm_loadu_si128((__m128i*)&argb_data[i]); i 730 3rdparty/libwebp/dsp/lossless.c _mm_storeu_si128((__m128i*)&argb_data[i], out); i 734 3rdparty/libwebp/dsp/lossless.c for (; i < num_pixs; ++i) { i 735 3rdparty/libwebp/dsp/lossless.c const uint32_t argb = argb_data[i]; i 739 3rdparty/libwebp/dsp/lossless.c argb_data[i] = (argb & 0xff00ff00) | (new_r << 16) | new_b; i 117 3rdparty/libwebp/dsp/upsampling.c int i; \ i 118 3rdparty/libwebp/dsp/upsampling.c for (i = 0; i < len - 1; i += 2) { \ i 130 3rdparty/libwebp/dsp/upsampling.c if (i == len - 1) { /* last one */ \ i 209 3rdparty/libwebp/dsp/upsampling.c int i; \ i 210 3rdparty/libwebp/dsp/upsampling.c for (i = 0; i < len; ++i) FUNC(y[i], u[i], v[i], &dst[i * XSTEP]); \ i 258 3rdparty/libwebp/dsp/upsampling.c int i; i 259 3rdparty/libwebp/dsp/upsampling.c for (i = 0; i < w; ++i) { i 260 3rdparty/libwebp/dsp/upsampling.c const uint32_t a = alpha[4 * i]; i 263 3rdparty/libwebp/dsp/upsampling.c rgb[4 * i + 0] = PREMULTIPLY(rgb[4 * i + 0], mult); i 264 3rdparty/libwebp/dsp/upsampling.c rgb[4 * i + 1] = PREMULTIPLY(rgb[4 * i + 1], mult); i 265 3rdparty/libwebp/dsp/upsampling.c rgb[4 * i + 2] = PREMULTIPLY(rgb[4 * i + 2], mult); i 293 3rdparty/libwebp/dsp/upsampling.c int i; i 294 3rdparty/libwebp/dsp/upsampling.c for (i = 0; i < w; ++i) { i 295 3rdparty/libwebp/dsp/upsampling.c const uint8_t a = (rgba4444[2 * i + 1] & 0x0f); i 297 3rdparty/libwebp/dsp/upsampling.c const uint8_t r = multiply(dither_hi(rgba4444[2 * i + 0]), mult); i 298 3rdparty/libwebp/dsp/upsampling.c const uint8_t g = multiply(dither_lo(rgba4444[2 * i + 0]), mult); i 299 3rdparty/libwebp/dsp/upsampling.c const uint8_t b = multiply(dither_hi(rgba4444[2 * i + 1]), mult); i 300 3rdparty/libwebp/dsp/upsampling.c rgba4444[2 * i + 0] = (r & 0xf0) | ((g >> 4) & 0x0f); i 301 3rdparty/libwebp/dsp/upsampling.c rgba4444[2 * i + 1] = (b & 0xf0) | a; i 97 3rdparty/libwebp/dsp/upsampling_neon.c int i; \ i 98 3rdparty/libwebp/dsp/upsampling_neon.c for (i = 0; i < N; i += 8) { \ i 99 3rdparty/libwebp/dsp/upsampling_neon.c int off = ((cur_x) + i) * XSTEP; \ i 100 3rdparty/libwebp/dsp/upsampling_neon.c uint8x8_t y = vld1_u8(src_y + (cur_x) + i); \ i 101 3rdparty/libwebp/dsp/upsampling_neon.c uint8x8_t u = vld1_u8((src_uv) + i); \ i 102 3rdparty/libwebp/dsp/upsampling_neon.c uint8x8_t v = vld1_u8((src_uv) + i + 16); \ i 180 3rdparty/libwebp/dsp/upsampling_neon.c int i; \ i 181 3rdparty/libwebp/dsp/upsampling_neon.c for (i = 0; i < N; i++) { \ i 182 3rdparty/libwebp/dsp/upsampling_neon.c int off = ((cur_x) + i) * XSTEP; \ i 183 3rdparty/libwebp/dsp/upsampling_neon.c int y = src_y[(cur_x) + i]; \ i 184 3rdparty/libwebp/dsp/upsampling_neon.c int u = (src_uv)[i]; \ i 185 3rdparty/libwebp/dsp/upsampling_neon.c int v = (src_uv)[i + 16]; \ i 34 3rdparty/libwebp/dsp/yuv.c int i; i 39 3rdparty/libwebp/dsp/yuv.c for (i = 0; i < 256; ++i) { i 40 3rdparty/libwebp/dsp/yuv.c VP8kVToR[i] = (89858 * (i - 128) + YUV_HALF) >> YUV_FIX; i 41 3rdparty/libwebp/dsp/yuv.c VP8kUToG[i] = -22014 * (i - 128) + YUV_HALF; i 42 3rdparty/libwebp/dsp/yuv.c VP8kVToG[i] = -45773 * (i - 128); i 43 3rdparty/libwebp/dsp/yuv.c VP8kUToB[i] = (113618 * (i - 128) + YUV_HALF) >> YUV_FIX; i 45 3rdparty/libwebp/dsp/yuv.c for (i = YUV_RANGE_MIN; i < YUV_RANGE_MAX; ++i) { i 46 3rdparty/libwebp/dsp/yuv.c const int k = ((i - 16) * 76283 + YUV_HALF) >> YUV_FIX; i 47 3rdparty/libwebp/dsp/yuv.c VP8kClip[i - YUV_RANGE_MIN] = clip(k, 255); i 48 3rdparty/libwebp/dsp/yuv.c VP8kClip4Bits[i - YUV_RANGE_MIN] = clip((k + 8) >> 4, 15); i 51 3rdparty/libwebp/dsp/yuv.c for (i = 0; i < 256; ++i) { i 52 3rdparty/libwebp/dsp/yuv.c VP8kVToR[i] = (91881 * (i - 128) + YUV_HALF) >> YUV_FIX; i 53 3rdparty/libwebp/dsp/yuv.c VP8kUToG[i] = -22554 * (i - 128) + YUV_HALF; i 54 3rdparty/libwebp/dsp/yuv.c VP8kVToG[i] = -46802 * (i - 128); i 55 3rdparty/libwebp/dsp/yuv.c VP8kUToB[i] = (116130 * (i - 128) + YUV_HALF) >> YUV_FIX; i 57 3rdparty/libwebp/dsp/yuv.c for (i = YUV_RANGE_MIN; i < YUV_RANGE_MAX; ++i) { i 58 3rdparty/libwebp/dsp/yuv.c const int k = i; i 59 3rdparty/libwebp/dsp/yuv.c VP8kClip[i - YUV_RANGE_MIN] = clip(k, 255); i 60 3rdparty/libwebp/dsp/yuv.c VP8kClip4Bits[i - YUV_RANGE_MIN] = clip((k + 8) >> 4, 15); i 69 3rdparty/libwebp/enc/alpha.c int i, j; i 73 3rdparty/libwebp/enc/alpha.c for (i = 0; i < picture.width; ++i) { i 74 3rdparty/libwebp/enc/alpha.c dst[i] = (src[i] << 8) | 0xff000000u; i 168 3rdparty/libwebp/enc/alpha.c int i; i 170 3rdparty/libwebp/enc/alpha.c for (i = 0; i < width; ++i) { i 171 3rdparty/libwebp/enc/alpha.c color[p[i]] = 1; i 136 3rdparty/libwebp/enc/analysis.c int i; i 137 3rdparty/libwebp/enc/analysis.c for (i = 0; i <= MAX_COEFF_THRESH; ++i) { i 138 3rdparty/libwebp/enc/analysis.c out->distribution[i] += in->distribution[i]; i 117 3rdparty/libwebp/enc/backward_references.c int i; i 122 3rdparty/libwebp/enc/backward_references.c for (i = 0; i < size; ++i) { i 123 3rdparty/libwebp/enc/backward_references.c p->chain_[i] = -1; i 125 3rdparty/libwebp/enc/backward_references.c for (i = 0; i < HASH_SIZE; ++i) { i 126 3rdparty/libwebp/enc/backward_references.c p->hash_to_first_index_[i] = -1; i 247 3rdparty/libwebp/enc/backward_references.c int i; i 251 3rdparty/libwebp/enc/backward_references.c for (i = 1; i < pix_count; ++i) { i 252 3rdparty/libwebp/enc/backward_references.c if (argb[i] == argb[i - 1]) { i 257 3rdparty/libwebp/enc/backward_references.c refs->refs[refs->size++] = PixOrCopyCreateLiteral(argb[i]); i 267 3rdparty/libwebp/enc/backward_references.c int i; i 289 3rdparty/libwebp/enc/backward_references.c for (i = 0; i < pix_count; ) { i 293 3rdparty/libwebp/enc/backward_references.c if (i < pix_count - 1) { // FindCopy(i,..) reads pixels at [i] and [i + 1]. i 294 3rdparty/libwebp/enc/backward_references.c int maxlen = pix_count - i; i 298 3rdparty/libwebp/enc/backward_references.c HashChainFindCopy(hash_chain, i, xsize, argb, maxlen, i 308 3rdparty/libwebp/enc/backward_references.c HashChainInsert(hash_chain, &argb[i], i); i 309 3rdparty/libwebp/enc/backward_references.c if (i < pix_count - 2) { // FindCopy(i+1,..) reads [i + 1] and [i + 2]. i 310 3rdparty/libwebp/enc/backward_references.c int maxlen = pix_count - (i + 1); i 314 3rdparty/libwebp/enc/backward_references.c HashChainFindCopy(hash_chain, i + 1, xsize, argb, maxlen, i 318 3rdparty/libwebp/enc/backward_references.c const uint32_t pixel = argb[i]; i 328 3rdparty/libwebp/enc/backward_references.c i++; // Backward reference to be done for next pixel. i 339 3rdparty/libwebp/enc/backward_references.c VP8LColorCacheInsert(&hashers, argb[i + k]); i 344 3rdparty/libwebp/enc/backward_references.c const int last = (len < pix_count - 1 - i) ? len : pix_count - 1 - i; i 346 3rdparty/libwebp/enc/backward_references.c HashChainInsert(hash_chain, &argb[i + k], i + k); i 349 3rdparty/libwebp/enc/backward_references.c i += len; i 351 3rdparty/libwebp/enc/backward_references.c const uint32_t pixel = argb[i]; i 361 3rdparty/libwebp/enc/backward_references.c if (i + 1 < pix_count) { i 362 3rdparty/libwebp/enc/backward_references.c HashChainInsert(hash_chain, &argb[i], i); i 364 3rdparty/libwebp/enc/backward_references.c ++i; i 393 3rdparty/libwebp/enc/backward_references.c int i; i 394 3rdparty/libwebp/enc/backward_references.c for (i = 0; i < num_symbols; ++i) { i 395 3rdparty/libwebp/enc/backward_references.c sum += population_counts[i]; i 396 3rdparty/libwebp/enc/backward_references.c if (population_counts[i] > 0) { i 404 3rdparty/libwebp/enc/backward_references.c for (i = 0; i < num_symbols; ++i) { i 405 3rdparty/libwebp/enc/backward_references.c output[i] = logsum - VP8LFastLog2(population_counts[i]); i 477 3rdparty/libwebp/enc/backward_references.c int i; i 508 3rdparty/libwebp/enc/backward_references.c for (i = 0; i < pix_count; ++i) cost[i] = 1e38f; i 515 3rdparty/libwebp/enc/backward_references.c for (i = 0; i < pix_count; ++i) { i 518 3rdparty/libwebp/enc/backward_references.c if (i > 0) { i 519 3rdparty/libwebp/enc/backward_references.c prev_cost = cost[i - 1]; i 524 3rdparty/libwebp/enc/backward_references.c if (i < pix_count - 1) { // FindCopy reads pixels at [i] and [i + 1]. i 526 3rdparty/libwebp/enc/backward_references.c if (maxlen > pix_count - i) { i 527 3rdparty/libwebp/enc/backward_references.c maxlen = pix_count - i; i 529 3rdparty/libwebp/enc/backward_references.c HashChainFindCopy(hash_chain, i, xsize, argb, maxlen, i 540 3rdparty/libwebp/enc/backward_references.c if (cost[i + k] > cost_val) { i 541 3rdparty/libwebp/enc/backward_references.c cost[i + k] = (float)cost_val; i 542 3rdparty/libwebp/enc/backward_references.c dist_array[i + k] = k + 1; i 553 3rdparty/libwebp/enc/backward_references.c VP8LColorCacheInsert(&hashers, argb[i + k]); i 558 3rdparty/libwebp/enc/backward_references.c const int last = (len + i < pix_count - 1) ? len + i i 560 3rdparty/libwebp/enc/backward_references.c for (k = i; k < last; ++k) { i 565 3rdparty/libwebp/enc/backward_references.c i += len - 1; // for loop does ++i, thus -1 here. i 570 3rdparty/libwebp/enc/backward_references.c if (i < pix_count - 1) { i 571 3rdparty/libwebp/enc/backward_references.c HashChainInsert(hash_chain, &argb[i], i); i 576 3rdparty/libwebp/enc/backward_references.c if (use_color_cache && VP8LColorCacheContains(&hashers, argb[i])) { i 577 3rdparty/libwebp/enc/backward_references.c const int ix = VP8LColorCacheGetIndex(&hashers, argb[i]); i 580 3rdparty/libwebp/enc/backward_references.c cost_val += GetLiteralCost(cost_model, argb[i]) * mul1; i 582 3rdparty/libwebp/enc/backward_references.c if (cost[i] > cost_val) { i 583 3rdparty/libwebp/enc/backward_references.c cost[i] = (float)cost_val; i 584 3rdparty/libwebp/enc/backward_references.c dist_array[i] = 1; // only one is inserted. i 586 3rdparty/libwebp/enc/backward_references.c if (use_color_cache) VP8LColorCacheInsert(&hashers, argb[i]); i 628 3rdparty/libwebp/enc/backward_references.c int i = 0; i 655 3rdparty/libwebp/enc/backward_references.c HashChainFindCopy(hash_chain, i, xsize, argb, maxlen, i 662 3rdparty/libwebp/enc/backward_references.c VP8LColorCacheInsert(&hashers, argb[i + k]); i 666 3rdparty/libwebp/enc/backward_references.c const int last = (len < pix_count - 1 - i) ? len : pix_count - 1 - i; i 668 3rdparty/libwebp/enc/backward_references.c HashChainInsert(hash_chain, &argb[i + k], i + k); i 671 3rdparty/libwebp/enc/backward_references.c i += len; i 673 3rdparty/libwebp/enc/backward_references.c if (use_color_cache && VP8LColorCacheContains(&hashers, argb[i])) { i 675 3rdparty/libwebp/enc/backward_references.c const int idx = VP8LColorCacheGetIndex(&hashers, argb[i]); i 678 3rdparty/libwebp/enc/backward_references.c refs->refs[size] = PixOrCopyCreateLiteral(argb[i]); i 680 3rdparty/libwebp/enc/backward_references.c if (use_color_cache) VP8LColorCacheInsert(&hashers, argb[i]); i 681 3rdparty/libwebp/enc/backward_references.c if (i + 1 < pix_count) { i 682 3rdparty/libwebp/enc/backward_references.c HashChainInsert(hash_chain, &argb[i], i); i 684 3rdparty/libwebp/enc/backward_references.c ++i; i 730 3rdparty/libwebp/enc/backward_references.c int i; i 731 3rdparty/libwebp/enc/backward_references.c for (i = 0; i < refs->size; ++i) { i 732 3rdparty/libwebp/enc/backward_references.c if (PixOrCopyIsCopy(&refs->refs[i])) { i 733 3rdparty/libwebp/enc/backward_references.c const int dist = refs->refs[i].argb_or_distance; i 735 3rdparty/libwebp/enc/backward_references.c refs->refs[i].argb_or_distance = transformed_dist; i 824 3rdparty/libwebp/enc/backward_references.c int i; i 835 3rdparty/libwebp/enc/backward_references.c for (i = 0; i < refs->size; ++i) { i 836 3rdparty/libwebp/enc/backward_references.c const PixOrCopy* const v = &refs->refs[i]; i 58 3rdparty/libwebp/enc/backward_references.h int i; i 61 3rdparty/libwebp/enc/backward_references.h for (i = 4; i >= 0; --i) { i 62 3rdparty/libwebp/enc/backward_references.h const int shift = (1 << i); i 343 3rdparty/libwebp/enc/cost.c int i; i 344 3rdparty/libwebp/enc/cost.c for (i = 2; pattern; ++i) { i 346 3rdparty/libwebp/enc/cost.c cost += VP8BitCost(bits & 1, probas[i]); i 31 3rdparty/libwebp/enc/filter.c int i; i 32 3rdparty/libwebp/enc/filter.c for (i = -255; i <= 255; ++i) { i 33 3rdparty/libwebp/enc/filter.c abs0[255 + i] = (i < 0) ? -i : i; i 34 3rdparty/libwebp/enc/filter.c abs1[255 + i] = abs0[255 + i] >> 1; i 36 3rdparty/libwebp/enc/filter.c for (i = -1020; i <= 1020; ++i) { i 37 3rdparty/libwebp/enc/filter.c sclip1[1020 + i] = (i < -128) ? -128 : (i > 127) ? 127 : i; i 39 3rdparty/libwebp/enc/filter.c for (i = -112; i <= 112; ++i) { i 40 3rdparty/libwebp/enc/filter.c sclip2[112 + i] = (i < -16) ? -16 : (i > 15) ? 15 : i; i 42 3rdparty/libwebp/enc/filter.c for (i = -255; i <= 255 + 255; ++i) { i 43 3rdparty/libwebp/enc/filter.c clip1[255 + i] = (i < 0) ? 0 : (i > 255) ? 255 : i; i 101 3rdparty/libwebp/enc/filter.c int i; i 102 3rdparty/libwebp/enc/filter.c for (i = 0; i < 16; ++i) { i 103 3rdparty/libwebp/enc/filter.c if (needs_filter(p + i, stride, thresh)) { i 104 3rdparty/libwebp/enc/filter.c do_filter2(p + i, stride); i 110 3rdparty/libwebp/enc/filter.c int i; i 111 3rdparty/libwebp/enc/filter.c for (i = 0; i < 16; ++i) { i 112 3rdparty/libwebp/enc/filter.c if (needs_filter(p + i * stride, 1, thresh)) { i 113 3rdparty/libwebp/enc/filter.c do_filter2(p + i * stride, 1); i 343 3rdparty/libwebp/enc/filter.c int s, i; i 348 3rdparty/libwebp/enc/filter.c for (i = 0; i < MAX_LF_LEVELS; i++) { i 349 3rdparty/libwebp/enc/filter.c (*it->lf_stats_)[s][i] = 0; i 395 3rdparty/libwebp/enc/filter.c int i, best_level = 0; i 398 3rdparty/libwebp/enc/filter.c for (i = 1; i < MAX_LF_LEVELS; i++) { i 399 3rdparty/libwebp/enc/filter.c const double v = (*it->lf_stats_)[s][i]; i 402 3rdparty/libwebp/enc/filter.c best_level = i; i 154 3rdparty/libwebp/enc/frame.c int i; i 155 3rdparty/libwebp/enc/frame.c for (i = 0; (pattern >>= 1) != 0; ++i) { i 156 3rdparty/libwebp/enc/frame.c const int mask = 2 << i; i 157 3rdparty/libwebp/enc/frame.c if (pattern & 1) Record(!!(bits & mask), s + 3 + i); i 839 3rdparty/libwebp/enc/frame.c int i, s; i 840 3rdparty/libwebp/enc/frame.c for (i = 0; i <= 2; ++i) { i 842 3rdparty/libwebp/enc/frame.c enc->residual_bytes_[i][s] = (int)((it->bit_count_[s][i] + 7) >> 3); i 35 3rdparty/libwebp/enc/histogram.c int i; i 36 3rdparty/libwebp/enc/histogram.c for (i = 0; i < refs->size; ++i) { i 37 3rdparty/libwebp/enc/histogram.c VP8LHistogramAddSinglePixOrCopy(histo, &refs->refs[i]); i 57 3rdparty/libwebp/enc/histogram.c int i; i 73 3rdparty/libwebp/enc/histogram.c for (i = 0; i < size; ++i) { i 74 3rdparty/libwebp/enc/histogram.c set->histograms[i] = bulk + i; i 75 3rdparty/libwebp/enc/histogram.c VP8LHistogramInit(set->histograms[i], cache_bits); i 108 3rdparty/libwebp/enc/histogram.c int i; i 110 3rdparty/libwebp/enc/histogram.c for (i = 0; i < n; ++i) { i 111 3rdparty/libwebp/enc/histogram.c if (array[i] != 0) { i 112 3rdparty/libwebp/enc/histogram.c sum += array[i]; i 114 3rdparty/libwebp/enc/histogram.c retval -= VP8LFastSLog2(array[i]); i 115 3rdparty/libwebp/enc/histogram.c if (max_val < array[i]) { i 116 3rdparty/libwebp/enc/histogram.c max_val = array[i]; i 161 3rdparty/libwebp/enc/histogram.c int i = 0; i 162 3rdparty/libwebp/enc/histogram.c for (; i < length - 1; ++i) { i 164 3rdparty/libwebp/enc/histogram.c if (population[i] == population[i + 1]) { i 170 3rdparty/libwebp/enc/histogram.c if (population[i] == 0) { i 176 3rdparty/libwebp/enc/histogram.c if (population[i] == 0) { i 184 3rdparty/libwebp/enc/histogram.c if (i == length - 1) { i 196 3rdparty/libwebp/enc/histogram.c int i; i 198 3rdparty/libwebp/enc/histogram.c for (i = 2; i < length - 2; ++i) cost += (i >> 1) * population[i + 2]; i 229 3rdparty/libwebp/enc/histogram.c int i; i 230 3rdparty/libwebp/enc/histogram.c for (i = 0; i < PIX_OR_COPY_CODES_MAX; ++i) { i 231 3rdparty/libwebp/enc/histogram.c out->literal_[i] += in->literal_[i]; i 233 3rdparty/libwebp/enc/histogram.c for (i = 0; i < NUM_DISTANCE_CODES; ++i) { i 234 3rdparty/libwebp/enc/histogram.c out->distance_[i] += in->distance_[i]; i 236 3rdparty/libwebp/enc/histogram.c for (i = 0; i < 256; ++i) { i 237 3rdparty/libwebp/enc/histogram.c out->red_[i] += in->red_[i]; i 238 3rdparty/libwebp/enc/histogram.c out->blue_[i] += in->blue_[i]; i 239 3rdparty/libwebp/enc/histogram.c out->alpha_[i] += in->alpha_[i]; i 255 3rdparty/libwebp/enc/histogram.c int i; i 264 3rdparty/libwebp/enc/histogram.c for (i = 0; i < PIX_OR_COPY_CODES_MAX; ++i) { i 265 3rdparty/libwebp/enc/histogram.c out->literal_[i] = a->literal_[i] + b->literal_[i]; i 271 3rdparty/libwebp/enc/histogram.c for (i = 0; i < 256; ++i) out->red_[i] = a->red_[i] + b->red_[i]; i 275 3rdparty/libwebp/enc/histogram.c for (i = 0; i < 256; ++i) out->blue_[i] = a->blue_[i] + b->blue_[i]; i 279 3rdparty/libwebp/enc/histogram.c for (i = 0; i < NUM_DISTANCE_CODES; ++i) { i 280 3rdparty/libwebp/enc/histogram.c out->distance_[i] = a->distance_[i] + b->distance_[i]; i 286 3rdparty/libwebp/enc/histogram.c for (i = 0; i < 256; ++i) out->alpha_[i] = a->alpha_[i] + b->alpha_[i]; i 300 3rdparty/libwebp/enc/histogram.c int i; i 303 3rdparty/libwebp/enc/histogram.c for (i = 0; i < PIX_OR_COPY_CODES_MAX; ++i) { i 304 3rdparty/libwebp/enc/histogram.c tmp[i] = a->literal_[i] + b->literal_[i]; i 312 3rdparty/libwebp/enc/histogram.c for (i = 0; i < 256; ++i) tmp[i] = a->red_[i] + b->red_[i]; i 316 3rdparty/libwebp/enc/histogram.c for (i = 0; i < 256; ++i) tmp[i] = a->blue_[i] + b->blue_[i]; i 320 3rdparty/libwebp/enc/histogram.c for (i = 0; i < NUM_DISTANCE_CODES; ++i) { i 321 3rdparty/libwebp/enc/histogram.c tmp[i] = a->distance_[i] + b->distance_[i]; i 327 3rdparty/libwebp/enc/histogram.c for (i = 0; i < 256; ++i) tmp[i] = a->alpha_[i] + b->alpha_[i]; i 338 3rdparty/libwebp/enc/histogram.c int i; i 343 3rdparty/libwebp/enc/histogram.c for (i = 0; i < backward_refs->size; ++i) { i 344 3rdparty/libwebp/enc/histogram.c const PixOrCopy* const v = &backward_refs->refs[i]; i 367 3rdparty/libwebp/enc/histogram.c int i, iter; i 380 3rdparty/libwebp/enc/histogram.c for (i = 0; i < in->size; ++i) { i 381 3rdparty/libwebp/enc/histogram.c in->histograms[i]->bit_cost_ = VP8LHistogramEstimateBits(in->histograms[i]); i 382 3rdparty/libwebp/enc/histogram.c *out->histograms[i] = *in->histograms[i]; i 455 3rdparty/libwebp/enc/histogram.c int i; i 456 3rdparty/libwebp/enc/histogram.c for (i = 0; i < in->size; ++i) { i 459 3rdparty/libwebp/enc/histogram.c HistogramDistance(in->histograms[i], out->histograms[0], 1.e38); i 463 3rdparty/libwebp/enc/histogram.c HistogramDistance(in->histograms[i], out->histograms[k], best_bits); i 469 3rdparty/libwebp/enc/histogram.c symbols[i] = best_out; i 473 3rdparty/libwebp/enc/histogram.c for (i = 0; i < out->size; ++i) { i 474 3rdparty/libwebp/enc/histogram.c HistogramClear(out->histograms[i]); i 476 3rdparty/libwebp/enc/histogram.c for (i = 0; i < in->size; ++i) { i 477 3rdparty/libwebp/enc/histogram.c HistogramAdd(in->histograms[i], out->histograms[symbols[i]]); i 91 3rdparty/libwebp/enc/iterator.c int i; i 92 3rdparty/libwebp/enc/iterator.c for (i = 0; i < h; ++i) { i 100 3rdparty/libwebp/enc/iterator.c for (i = h; i < size; ++i) { i 255 3rdparty/libwebp/enc/iterator.c int i; i 256 3rdparty/libwebp/enc/iterator.c for (i = 0; i < 16; ++i) { i 257 3rdparty/libwebp/enc/iterator.c enc->y_left_[i] = ysrc[15 + i * BPS]; i 259 3rdparty/libwebp/enc/iterator.c for (i = 0; i < 8; ++i) { i 260 3rdparty/libwebp/enc/iterator.c enc->u_left_[i] = usrc[7 + i * BPS]; i 261 3rdparty/libwebp/enc/iterator.c enc->v_left_[i] = usrc[15 + i * BPS]; i 366 3rdparty/libwebp/enc/iterator.c int i; i 372 3rdparty/libwebp/enc/iterator.c for (i = 0; i < 17; ++i) { // left i 373 3rdparty/libwebp/enc/iterator.c it->i4_boundary_[i] = enc->y_left_[15 - i]; i 375 3rdparty/libwebp/enc/iterator.c for (i = 0; i < 16; ++i) { // top i 376 3rdparty/libwebp/enc/iterator.c it->i4_boundary_[17 + i] = enc->y_top_[it->x_ * 16 + i]; i 380 3rdparty/libwebp/enc/iterator.c for (i = 16; i < 16 + 4; ++i) { i 381 3rdparty/libwebp/enc/iterator.c it->i4_boundary_[17 + i] = enc->y_top_[it->x_ * 16 + i]; i 384 3rdparty/libwebp/enc/iterator.c for (i = 16; i < 16 + 4; ++i) { i 385 3rdparty/libwebp/enc/iterator.c it->i4_boundary_[17 + i] = it->i4_boundary_[17 + 15]; i 395 3rdparty/libwebp/enc/iterator.c int i; i 398 3rdparty/libwebp/enc/iterator.c for (i = 0; i <= 3; ++i) { i 399 3rdparty/libwebp/enc/iterator.c top[-4 + i] = blk[i + 3 * BPS]; // store future top samples i 402 3rdparty/libwebp/enc/iterator.c for (i = 0; i <= 2; ++i) { // store future left samples i 403 3rdparty/libwebp/enc/iterator.c top[i] = blk[3 + (2 - i) * BPS]; i 406 3rdparty/libwebp/enc/iterator.c for (i = 0; i <= 3; ++i) { i 407 3rdparty/libwebp/enc/iterator.c top[i] = top[i + 4]; i 937 3rdparty/libwebp/enc/picture.c int i, j; i 940 3rdparty/libwebp/enc/picture.c for (i = x_0; i < x_1; ++i) { i 941 3rdparty/libwebp/enc/picture.c const double sse = (double)(s[i] - value) * (s[i] - value); i 144 3rdparty/libwebp/enc/quant.c int i; i 146 3rdparty/libwebp/enc/quant.c for (i = 2; i < 16; ++i) { i 147 3rdparty/libwebp/enc/quant.c m->q_[i] = m->q_[1]; i 149 3rdparty/libwebp/enc/quant.c for (i = 0; i < 16; ++i) { i 150 3rdparty/libwebp/enc/quant.c const int j = kZigzag[i]; i 163 3rdparty/libwebp/enc/quant.c int i; i 168 3rdparty/libwebp/enc/quant.c for (i = 0; i < num_segments; ++i) { i 169 3rdparty/libwebp/enc/quant.c VP8SegmentInfo* const m = &enc->dqm_[i]; i 207 3rdparty/libwebp/enc/quant.c int i; i 209 3rdparty/libwebp/enc/quant.c for (i = 0; i < NUM_MB_SEGMENTS; ++i) { i 211 3rdparty/libwebp/enc/quant.c const int level = level0 * 256 * enc->dqm_[i].quant_ / 128; i 212 3rdparty/libwebp/enc/quant.c const int f = level / (256 + enc->dqm_[i].beta_); i 213 3rdparty/libwebp/enc/quant.c enc->dqm_[i].fstrength_ = (f < FSTRENGTH_CUTOFF) ? 0 : (f > 63) ? 63 : f; i 292 3rdparty/libwebp/enc/quant.c int i = enc->mb_w_ * enc->mb_h_; i 293 3rdparty/libwebp/enc/quant.c while (i-- > 0) enc->mb_info_[i].segment_ = map[enc->mb_info_[i].segment_]; i 296 3rdparty/libwebp/enc/quant.c for (i = num_final_segments; i < num_segments; ++i) { i 297 3rdparty/libwebp/enc/quant.c enc->dqm_[i] = enc->dqm_[num_final_segments - 1]; i 303 3rdparty/libwebp/enc/quant.c int i; i 311 3rdparty/libwebp/enc/quant.c for (i = 0; i < num_segments; ++i) { i 314 3rdparty/libwebp/enc/quant.c const double expn = 1. - amp * enc->dqm_[i].alpha_; i 318 3rdparty/libwebp/enc/quant.c enc->dqm_[i].quant_ = clip(q, 0, 127); i 325 3rdparty/libwebp/enc/quant.c for (i = num_segments; i < NUM_MB_SEGMENTS; ++i) { i 326 3rdparty/libwebp/enc/quant.c enc->dqm_[i].quant_ = enc->base_quant_; i 51 3rdparty/libwebp/enc/vp8l.c int i, x, y, key; i 93 3rdparty/libwebp/enc/vp8l.c for (i = 0; i < (int)(sizeof(in_use) / sizeof(in_use[0])); ++i) { i 94 3rdparty/libwebp/enc/vp8l.c if (in_use[i]) { i 95 3rdparty/libwebp/enc/vp8l.c palette[num_colors] = colors[i]; i 185 3rdparty/libwebp/enc/vp8l.c int i, k; i 192 3rdparty/libwebp/enc/vp8l.c for (i = 0; i < histogram_image_size; ++i) { i 193 3rdparty/libwebp/enc/vp8l.c const VP8LHistogram* const histo = histogram_image->histograms[i]; i 194 3rdparty/libwebp/enc/vp8l.c HuffmanTreeCode* const codes = &huffman_codes[5 * i]; i 216 3rdparty/libwebp/enc/vp8l.c for (i = 0; i < 5 * histogram_image_size; ++i) { i 217 3rdparty/libwebp/enc/vp8l.c const int bit_length = huffman_codes[i].num_symbols; i 218 3rdparty/libwebp/enc/vp8l.c huffman_codes[i].codes = codes; i 219 3rdparty/libwebp/enc/vp8l.c huffman_codes[i].code_lengths = lengths; i 226 3rdparty/libwebp/enc/vp8l.c for (i = 0; ok && (i < histogram_image_size); ++i) { i 227 3rdparty/libwebp/enc/vp8l.c HuffmanTreeCode* const codes = &huffman_codes[5 * i]; i 228 3rdparty/libwebp/enc/vp8l.c VP8LHistogram* const histo = histogram_image->histograms[i]; i 253 3rdparty/libwebp/enc/vp8l.c int i; i 262 3rdparty/libwebp/enc/vp8l.c for (i = 0; i < codes_to_store; ++i) { i 263 3rdparty/libwebp/enc/vp8l.c VP8LWriteBits(bw, 3, code_length_bitdepth[kStorageOrder[i]]); i 287 3rdparty/libwebp/enc/vp8l.c int i; i 288 3rdparty/libwebp/enc/vp8l.c for (i = 0; i < num_tokens; ++i) { i 289 3rdparty/libwebp/enc/vp8l.c const int ix = tokens[i].code; i 290 3rdparty/libwebp/enc/vp8l.c const int extra_bits = tokens[i].extra_bits; i 326 3rdparty/libwebp/enc/vp8l.c int i; i 327 3rdparty/libwebp/enc/vp8l.c for (i = 0; i < num_tokens; ++i) { i 328 3rdparty/libwebp/enc/vp8l.c ++histogram[tokens[i].code]; i 343 3rdparty/libwebp/enc/vp8l.c int i = num_tokens; i 344 3rdparty/libwebp/enc/vp8l.c while (i-- > 0) { i 345 3rdparty/libwebp/enc/vp8l.c const int ix = tokens[i].code; i 378 3rdparty/libwebp/enc/vp8l.c int i; i 385 3rdparty/libwebp/enc/vp8l.c for (i = 0; i < huffman_code->num_symbols && count < 3; ++i) { i 386 3rdparty/libwebp/enc/vp8l.c if (huffman_code->code_lengths[i] != 0) { i 387 3rdparty/libwebp/enc/vp8l.c if (count < 2) symbols[count] = i; i 432 3rdparty/libwebp/enc/vp8l.c int i; i 433 3rdparty/libwebp/enc/vp8l.c for (i = 0; i < refs->size; ++i) { i 434 3rdparty/libwebp/enc/vp8l.c const PixOrCopy* const v = &refs->refs[i]; i 475 3rdparty/libwebp/enc/vp8l.c int i; i 500 3rdparty/libwebp/enc/vp8l.c for (i = 0; i < 5; ++i) { i 501 3rdparty/libwebp/enc/vp8l.c HuffmanTreeCode* const codes = &huffman_codes[i]; i 587 3rdparty/libwebp/enc/vp8l.c uint32_t i; i 589 3rdparty/libwebp/enc/vp8l.c for (i = 0; i < histogram_image_xysize; ++i) { i 590 3rdparty/libwebp/enc/vp8l.c const int symbol_index = histogram_symbols[i] & 0xffff; i 591 3rdparty/libwebp/enc/vp8l.c histogram_argb[i] = 0xff000000 | (symbol_index << 8); i 610 3rdparty/libwebp/enc/vp8l.c int i; i 611 3rdparty/libwebp/enc/vp8l.c for (i = 0; i < 5 * histogram_image_size; ++i) { i 612 3rdparty/libwebp/enc/vp8l.c HuffmanTreeCode* const codes = &huffman_codes[i]; i 644 3rdparty/libwebp/enc/vp8l.c int i; i 651 3rdparty/libwebp/enc/vp8l.c for (i = 0; i < width * height; ++i) { i 652 3rdparty/libwebp/enc/vp8l.c const uint32_t c = argb[i]; i 659 3rdparty/libwebp/enc/vp8l.c for (i = 0; i < width * height; ++i) { i 660 3rdparty/libwebp/enc/vp8l.c const uint32_t c = argb[i]; i 820 3rdparty/libwebp/enc/vp8l.c int i, x, y; i 822 3rdparty/libwebp/enc/vp8l.c for (i = 0; i < palette_size; ++i) { i 823 3rdparty/libwebp/enc/vp8l.c if ((palette[i] & 0xffff00ffu) != 0) { i 831 3rdparty/libwebp/enc/vp8l.c for (i = 0; i < palette_size; ++i) { i 832 3rdparty/libwebp/enc/vp8l.c const int color = (palette[i] >> 8) & 0xff; i 833 3rdparty/libwebp/enc/vp8l.c inv_palette[color] = i; i 852 3rdparty/libwebp/enc/vp8l.c for (i = 0; i < palette_size; ++i) { i 853 3rdparty/libwebp/enc/vp8l.c if (pix == palette[i]) { i 854 3rdparty/libwebp/enc/vp8l.c last_idx = i; i 875 3rdparty/libwebp/enc/vp8l.c int i; i 909 3rdparty/libwebp/enc/vp8l.c for (i = palette_size - 1; i >= 1; --i) { i 910 3rdparty/libwebp/enc/vp8l.c palette[i] = VP8LSubPixels(palette[i], palette[i - 1]); i 86 3rdparty/libwebp/enc/webpenc.c int i; i 89 3rdparty/libwebp/enc/webpenc.c for (i = -1; i < 4 * enc->mb_w_; ++i) { i 90 3rdparty/libwebp/enc/webpenc.c top[i] = B_DC_PRED; i 92 3rdparty/libwebp/enc/webpenc.c for (i = 0; i < 4 * enc->mb_h_; ++i) { i 93 3rdparty/libwebp/enc/webpenc.c left[i * enc->preds_w_] = B_DC_PRED; i 320 3rdparty/libwebp/enc/webpenc.c int i, s; i 321 3rdparty/libwebp/enc/webpenc.c for (i = 0; i < NUM_MB_SEGMENTS; ++i) { i 322 3rdparty/libwebp/enc/webpenc.c stats->segment_level[i] = enc->dqm_[i].fstrength_; i 323 3rdparty/libwebp/enc/webpenc.c stats->segment_quant[i] = enc->dqm_[i].quant_; i 325 3rdparty/libwebp/enc/webpenc.c stats->residual_bytes[s][i] = enc->residual_bytes_[s][i]; i 330 3rdparty/libwebp/enc/webpenc.c for (i = 0; i < 3; ++i) { i 331 3rdparty/libwebp/enc/webpenc.c stats->block_count[i] = enc->block_count_[i]; i 71 3rdparty/libwebp/mux/muxinternal.c int i; i 72 3rdparty/libwebp/mux/muxinternal.c for (i = 0; kChunks[i].tag != NIL_TAG; ++i) { i 73 3rdparty/libwebp/mux/muxinternal.c if (tag == kChunks[i].tag) return i; i 79 3rdparty/libwebp/mux/muxinternal.c int i; i 80 3rdparty/libwebp/mux/muxinternal.c for (i = 0; kChunks[i].tag != NIL_TAG; ++i) { i 81 3rdparty/libwebp/mux/muxinternal.c if (tag == kChunks[i].tag) return kChunks[i].id; i 443 3rdparty/libwebp/mux/muxread.c int i; i 444 3rdparty/libwebp/mux/muxread.c for (i = 0; kChunks[i].id != WEBP_CHUNK_NIL; ++i) { i 445 3rdparty/libwebp/mux/muxread.c if (id == kChunks[i].id) return i; i 130 3rdparty/libwebp/utils/bit_reader.c size_t i; i 142 3rdparty/libwebp/utils/bit_reader.c for (i = 0; i < sizeof(br->val_) && i < br->len_; ++i) { i 143 3rdparty/libwebp/utils/bit_reader.c br->val_ |= ((vp8l_val_t)br->buf_[br->pos_]) << (8 * i); i 35 3rdparty/libwebp/utils/filters.c int i; i 37 3rdparty/libwebp/utils/filters.c for (i = 0; i < length; ++i) dst[i] = src[i] + pred[i]; i 39 3rdparty/libwebp/utils/filters.c for (i = 0; i < length; ++i) dst[i] = src[i] - pred[i]; i 166 3rdparty/libwebp/utils/filters.c int i, j; i 174 3rdparty/libwebp/utils/filters.c for (i = 2; i < width - 1; i += 2) { i 175 3rdparty/libwebp/utils/filters.c const int diff0 = SDIFF(p[i], mean); i 176 3rdparty/libwebp/utils/filters.c const int diff1 = SDIFF(p[i], p[i - 1]); i 177 3rdparty/libwebp/utils/filters.c const int diff2 = SDIFF(p[i], p[i - width]); i 179 3rdparty/libwebp/utils/filters.c GradientPredictor(p[i - 1], p[i - width], p[i - width - 1]); i 180 3rdparty/libwebp/utils/filters.c const int diff3 = SDIFF(p[i], grad_pred); i 185 3rdparty/libwebp/utils/filters.c mean = (3 * mean + p[i] + 2) >> 2; i 193 3rdparty/libwebp/utils/filters.c for (i = 0; i < SMAX; ++i) { i 194 3rdparty/libwebp/utils/filters.c if (bins[filter][i] > 0) { i 195 3rdparty/libwebp/utils/filters.c score += i; i 210 3rdparty/libwebp/utils/huffman.c int i; i 221 3rdparty/libwebp/utils/huffman.c for (i = 0; i < num_symbols; ++i) { i 222 3rdparty/libwebp/utils/huffman.c if (codes[i] != NON_EXISTENT_SYMBOL) { i 223 3rdparty/libwebp/utils/huffman.c if (symbols[i] < 0 || symbols[i] >= max_symbol) { i 226 3rdparty/libwebp/utils/huffman.c if (!TreeAddSymbol(tree, symbols[i], codes[i], code_lengths[i])) { i 34 3rdparty/libwebp/utils/huffman_encode.c int i; i 56 3rdparty/libwebp/utils/huffman_encode.c for (i = 0; i < length + 1; ++i) { i 57 3rdparty/libwebp/utils/huffman_encode.c if (i == length || counts[i] != symbol) { i 62 3rdparty/libwebp/utils/huffman_encode.c good_for_rle[i - k - 1] = 1; i 66 3rdparty/libwebp/utils/huffman_encode.c if (i != length) { i 67 3rdparty/libwebp/utils/huffman_encode.c symbol = counts[i]; i 79 3rdparty/libwebp/utils/huffman_encode.c for (i = 0; i < length + 1; ++i) { i 80 3rdparty/libwebp/utils/huffman_encode.c if (i == length || good_for_rle[i] || i 81 3rdparty/libwebp/utils/huffman_encode.c (i != 0 && good_for_rle[i - 1]) || i 82 3rdparty/libwebp/utils/huffman_encode.c !ValuesShouldBeCollapsedToStrideAverage(counts[i], limit)) { i 97 3rdparty/libwebp/utils/huffman_encode.c counts[i - k - 1] = count; i 102 3rdparty/libwebp/utils/huffman_encode.c if (i < length - 3) { i 105 3rdparty/libwebp/utils/huffman_encode.c limit = (counts[i] + counts[i + 1] + i 106 3rdparty/libwebp/utils/huffman_encode.c counts[i + 2] + counts[i + 3] + 2) / 4; i 107 3rdparty/libwebp/utils/huffman_encode.c } else if (i < length) { i 108 3rdparty/libwebp/utils/huffman_encode.c limit = counts[i]; i 114 3rdparty/libwebp/utils/huffman_encode.c if (i != length) { i 115 3rdparty/libwebp/utils/huffman_encode.c sum += counts[i]; i 185 3rdparty/libwebp/utils/huffman_encode.c int i; i 187 3rdparty/libwebp/utils/huffman_encode.c for (i = 0; i < histogram_size; ++i) { i 188 3rdparty/libwebp/utils/huffman_encode.c if (histogram[i] != 0) { i 294 3rdparty/libwebp/utils/huffman_encode.c int i; i 295 3rdparty/libwebp/utils/huffman_encode.c for (i = 0; i < repetitions; ++i) { i 320 3rdparty/libwebp/utils/huffman_encode.c int i; i 321 3rdparty/libwebp/utils/huffman_encode.c for (i = 0; i < repetitions; ++i) { i 353 3rdparty/libwebp/utils/huffman_encode.c int i = 0; i 355 3rdparty/libwebp/utils/huffman_encode.c while (i < depth_size) { i 356 3rdparty/libwebp/utils/huffman_encode.c const int value = tree->code_lengths[i]; i 357 3rdparty/libwebp/utils/huffman_encode.c int k = i + 1; i 360 3rdparty/libwebp/utils/huffman_encode.c runs = k - i; i 367 3rdparty/libwebp/utils/huffman_encode.c i += runs; i 384 3rdparty/libwebp/utils/huffman_encode.c int i = 0; i 385 3rdparty/libwebp/utils/huffman_encode.c while (i < num_bits) { i 386 3rdparty/libwebp/utils/huffman_encode.c i += 4; i 387 3rdparty/libwebp/utils/huffman_encode.c retval |= kReversedBits[bits & 0xf] << (MAX_ALLOWED_CODE_LENGTH + 1 - i); i 397 3rdparty/libwebp/utils/huffman_encode.c int i; i 404 3rdparty/libwebp/utils/huffman_encode.c for (i = 0; i < len; ++i) { i 405 3rdparty/libwebp/utils/huffman_encode.c const int code_length = tree->code_lengths[i]; i 413 3rdparty/libwebp/utils/huffman_encode.c for (i = 1; i <= MAX_ALLOWED_CODE_LENGTH; ++i) { i 414 3rdparty/libwebp/utils/huffman_encode.c code = (code + depth_count[i - 1]) << 1; i 415 3rdparty/libwebp/utils/huffman_encode.c next_code[i] = code; i 418 3rdparty/libwebp/utils/huffman_encode.c for (i = 0; i < len; ++i) { i 419 3rdparty/libwebp/utils/huffman_encode.c const int code_length = tree->code_lengths[i]; i 420 3rdparty/libwebp/utils/huffman_encode.c tree->codes[i] = ReverseBits(code_length, next_code[code_length]++); i 38 3rdparty/libwebp/utils/quant_levels.c int i, num_levels_in, iter; i 68 3rdparty/libwebp/utils/quant_levels.c for (i = 0; i < num_levels; ++i) { i 69 3rdparty/libwebp/utils/quant_levels.c inv_q_level[i] = min_s + (double)(max_s - min_s) * i / (num_levels - 1); i 55 3rdparty/openexr/Half/eLut.cpp for (int i = 0; i < 0x100; i++) i 57 3rdparty/openexr/Half/eLut.cpp int e = (i & 0x0ff) - (127 - 15); i 65 3rdparty/openexr/Half/eLut.cpp eLut[i] = 0; i 66 3rdparty/openexr/Half/eLut.cpp eLut[i | 0x100] = 0; i 74 3rdparty/openexr/Half/eLut.cpp eLut[i] = (e << 10); i 75 3rdparty/openexr/Half/eLut.cpp eLut[i | 0x100] = ((e << 10) | 0x8000); i 99 3rdparty/openexr/Half/eLut.cpp for (int i = 0; i < tableSize; i++) i 101 3rdparty/openexr/Half/eLut.cpp cout << setw (5) << eLut[i] << ", "; i 103 3rdparty/openexr/Half/eLut.cpp if (i % 8 == 7) i 107 3rdparty/openexr/Half/eLut.cpp if (i < tableSize - 1) i 73 3rdparty/openexr/Half/half.cpp for (int i = 0; i < 10; i++) i 86 3rdparty/openexr/Half/half.cpp half::convert (int i) i 98 3rdparty/openexr/Half/half.cpp register int s = (i >> 16) & 0x00008000; i 99 3rdparty/openexr/Half/half.cpp register int e = ((i >> 23) & 0x000000ff) - (127 - 15); i 100 3rdparty/openexr/Half/half.cpp register int m = i & 0x007fffff; i 253 3rdparty/openexr/Half/half.cpp for (int i = 15; i >= 0; i--) i 255 3rdparty/openexr/Half/half.cpp os << (((b >> i) & 1)? '1': '0'); i 257 3rdparty/openexr/Half/half.cpp if (i == 15 || i == 10) i 269 3rdparty/openexr/Half/half.cpp for (int i = 31; i >= 0; i--) i 271 3rdparty/openexr/Half/half.cpp os << (((x.i >> i) & 1)? '1': '0'); i 273 3rdparty/openexr/Half/half.cpp if (i == 31 || i == 23) i 284 3rdparty/openexr/Half/half.cpp for (int i = 15, j = 0; i >= 0; i--, j++) i 286 3rdparty/openexr/Half/half.cpp c[j] = (((b >> i) & 1)? '1': '0'); i 288 3rdparty/openexr/Half/half.cpp if (i == 15 || i == 10) i 302 3rdparty/openexr/Half/half.cpp for (int i = 31, j = 0; i >= 0; i--, j++) i 304 3rdparty/openexr/Half/half.cpp c[j] = (((x.i >> i) & 1)? '1': '0'); i 306 3rdparty/openexr/Half/half.cpp if (i == 31 || i == 23) i 219 3rdparty/openexr/Half/half.h unsigned int i; i 225 3rdparty/openexr/Half/half.h static short convert (int i); i 451 3rdparty/openexr/Half/half.h _h = (x.i >> 16); i 471 3rdparty/openexr/Half/half.h register int e = (x.i >> 23) & 0x000001ff; i 482 3rdparty/openexr/Half/half.h register int m = x.i & 0x007fffff; i 491 3rdparty/openexr/Half/half.h _h = convert (x.i); i 153 3rdparty/openexr/Half/halfFunction.h for (int i = 0; i < (1 << 16); i++) i 156 3rdparty/openexr/Half/halfFunction.h x.setBits (i); i 159 3rdparty/openexr/Half/halfFunction.h _lut[i] = nanValue; i 161 3rdparty/openexr/Half/halfFunction.h _lut[i] = x.isNegative()? negInfValue: posInfValue; i 163 3rdparty/openexr/Half/halfFunction.h _lut[i] = defaultValue; i 165 3rdparty/openexr/Half/halfFunction.h _lut[i] = f (x); i 149 3rdparty/openexr/Half/toFloat.cpp for (int i = 0; i < iMax; i++) i 151 3rdparty/openexr/Half/toFloat.cpp cout << "{0x" << setfill ('0') << setw (8) << halfToFloat (i) << "}, "; i 153 3rdparty/openexr/Half/toFloat.cpp if (i % 4 == 3) i 157 3rdparty/openexr/Half/toFloat.cpp if (i < iMax - 1) i 146 3rdparty/openexr/IlmImf/ImfAttribute.cpp TypeMap::const_iterator i = tMap.find (typeName); i 148 3rdparty/openexr/IlmImf/ImfAttribute.cpp if (i == tMap.end()) i 152 3rdparty/openexr/IlmImf/ImfAttribute.cpp return (i->second)(); i 137 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp for (int i = 0; i < 16; ++i) i 138 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp s[i] = expTable[s[i]]; i 145 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp for (int i = 0; i < 16; ++i) i 146 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp s[i] = logTable[s[i]]; i 226 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp for (int i = 0; i < 16; ++i) i 228 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp if ((s[i] & 0x7c00) == 0x7c00) i 229 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp t[i] = 0x8000; i 230 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp else if (s[i] & 0x8000) i 231 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp t[i] = ~s[i]; i 233 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp t[i] = s[i] | 0x8000; i 242 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp for (int i = 0; i < 16; ++i) i 243 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp if (tMax < t[i]) i 244 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp tMax = t[i]; i 273 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp for (int i = 0; i < 16; ++i) i 274 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp d[i] = shiftAndRound (tMax - t[i], shift); i 302 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp for (int i = 1; i < 15; ++i) i 304 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp if (rMin > r[i]) i 305 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp rMin = r[i]; i 307 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp if (rMax < r[i]) i 308 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp rMax = r[i]; i 402 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp for (int i = 0; i < 16; ++i) i 404 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp if (s[i] & 0x8000) i 405 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp s[i] &= 0x7fff; i 407 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp s[i] = ~s[i]; i 431 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp for (int i = 1; i < 16; ++i) i 432 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp s[i] = s[0]; i 520 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp int i = 0; i 524 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp ++c, ++i) i 526 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp _channelData[i].ys = c.channel().ySampling; i 527 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp _channelData[i].type = c.channel().type; i 528 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp _channelData[i].pLinear = c.channel().pLinear; i 529 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp _channelData[i].size = i 659 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp int i = 0; i 663 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp ++c, ++i) i 665 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp ChannelData &cd = _channelData[i]; i 687 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp for (int i = 0; i < _numChans; ++i) i 689 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp ChannelData &cd = _channelData[i]; i 722 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp for (int i = 0; i < _numChans; ++i) i 724 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp ChannelData &cd = _channelData[i]; i 749 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp for (int i = 1; i < _numChans; ++i) i 750 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp assert (_channelData[i-1].end == _channelData[i].start); i 767 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp for (int i = 0; i < _numChans; ++i) i 769 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp ChannelData &cd = _channelData[i]; i 822 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp for (int i = 0; i < 4; ++i) i 824 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp int j = min (i, n - 1); i 826 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp s[i + 0] = row0[j]; i 827 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp s[i + 4] = row1[j]; i 828 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp s[i + 8] = row2[j]; i 829 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp s[i + 12] = row3[j]; i 892 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp int i = 0; i 896 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp ++c, ++i) i 898 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp ChannelData &cd = _channelData[i]; i 909 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp for (int i = 0; i < _numChans; ++i) i 911 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp ChannelData &cd = _channelData[i]; i 1004 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp for (int i = 0; i < _numChans; ++i) i 1006 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp ChannelData &cd = _channelData[i]; i 1033 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp for (int i = 0; i < _numChans; ++i) i 1035 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp ChannelData &cd = _channelData[i]; i 1054 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp for (int i = 1; i < _numChans; ++i) i 1055 3rdparty/openexr/IlmImf/ImfB44Compressor.cpp assert (_channelData[i-1].end == _channelData[i].start); i 166 3rdparty/openexr/IlmImf/ImfCRgbaFile.cpp for (int i = 0; i < n; ++i) i 167 3rdparty/openexr/IlmImf/ImfCRgbaFile.cpp h[i] = half(f[i]).bits(); i 181 3rdparty/openexr/IlmImf/ImfCRgbaFile.cpp for (int i = 0; i < n; ++i) i 182 3rdparty/openexr/IlmImf/ImfCRgbaFile.cpp f[i] = float (*((half *)(h + i))); i 94 3rdparty/openexr/IlmImf/ImfChannelList.cpp ChannelMap::iterator i = _map.find (name); i 96 3rdparty/openexr/IlmImf/ImfChannelList.cpp if (i == _map.end()) i 99 3rdparty/openexr/IlmImf/ImfChannelList.cpp return i->second; i 106 3rdparty/openexr/IlmImf/ImfChannelList.cpp ChannelMap::const_iterator i = _map.find (name); i 108 3rdparty/openexr/IlmImf/ImfChannelList.cpp if (i == _map.end()) i 111 3rdparty/openexr/IlmImf/ImfChannelList.cpp return i->second; i 132 3rdparty/openexr/IlmImf/ImfChannelList.cpp ChannelMap::iterator i = _map.find (name); i 133 3rdparty/openexr/IlmImf/ImfChannelList.cpp return (i == _map.end())? 0: &i->second; i 140 3rdparty/openexr/IlmImf/ImfChannelList.cpp ChannelMap::const_iterator i = _map.find (name); i 141 3rdparty/openexr/IlmImf/ImfChannelList.cpp return (i == _map.end())? 0: &i->second; i 220 3rdparty/openexr/IlmImf/ImfChannelList.cpp for (ConstIterator i = begin(); i != end(); ++i) i 222 3rdparty/openexr/IlmImf/ImfChannelList.cpp string layerName = i.name(); i 305 3rdparty/openexr/IlmImf/ImfChannelList.cpp ConstIterator i = begin(); i 308 3rdparty/openexr/IlmImf/ImfChannelList.cpp while (i != end() && j != other.end()) i 310 3rdparty/openexr/IlmImf/ImfChannelList.cpp if (!(i.channel() == j.channel())) i 313 3rdparty/openexr/IlmImf/ImfChannelList.cpp ++i; i 317 3rdparty/openexr/IlmImf/ImfChannelList.cpp return i == end() && j == other.end(); i 275 3rdparty/openexr/IlmImf/ImfChannelList.h Iterator (const ChannelList::ChannelMap::iterator &i); i 296 3rdparty/openexr/IlmImf/ImfChannelList.h ConstIterator (const ChannelList::ChannelMap::const_iterator &i); i 326 3rdparty/openexr/IlmImf/ImfChannelList.h ChannelList::Iterator::Iterator (const ChannelList::ChannelMap::iterator &i): i 327 3rdparty/openexr/IlmImf/ImfChannelList.h _i (i) i 372 3rdparty/openexr/IlmImf/ImfChannelList.h (const ChannelList::ChannelMap::const_iterator &i): _i (i) i 53 3rdparty/openexr/IlmImf/ImfChannelListAttribute.cpp for (int i = 0; i < N; ++i) { i 54 3rdparty/openexr/IlmImf/ImfChannelListAttribute.cpp if (str[i] == '\0') i 77 3rdparty/openexr/IlmImf/ImfChannelListAttribute.cpp for (ChannelList::ConstIterator i = _value.begin(); i 78 3rdparty/openexr/IlmImf/ImfChannelListAttribute.cpp i != _value.end(); i 79 3rdparty/openexr/IlmImf/ImfChannelListAttribute.cpp ++i) i 85 3rdparty/openexr/IlmImf/ImfChannelListAttribute.cpp Xdr::write <StreamIO> (os, i.name()); i 91 3rdparty/openexr/IlmImf/ImfChannelListAttribute.cpp Xdr::write <StreamIO> (os, int (i.channel().type)); i 92 3rdparty/openexr/IlmImf/ImfChannelListAttribute.cpp Xdr::write <StreamIO> (os, i.channel().pLinear); i 94 3rdparty/openexr/IlmImf/ImfChannelListAttribute.cpp Xdr::write <StreamIO> (os, i.channel().xSampling); i 95 3rdparty/openexr/IlmImf/ImfChannelListAttribute.cpp Xdr::write <StreamIO> (os, i.channel().ySampling); i 52 3rdparty/openexr/IlmImf/ImfConvert.cpp union {float f; int i;} u; i 54 3rdparty/openexr/IlmImf/ImfConvert.cpp return (u.i & 0x80000000) != 0; i 61 3rdparty/openexr/IlmImf/ImfConvert.cpp union {float f; int i;} u; i 63 3rdparty/openexr/IlmImf/ImfConvert.cpp return (u.i & 0x7fffffff) > 0x7f800000; i 70 3rdparty/openexr/IlmImf/ImfConvert.cpp union {float f; int i;} u; i 72 3rdparty/openexr/IlmImf/ImfConvert.cpp return (u.i & 0x7fffffff) == 0x7f800000; i 79 3rdparty/openexr/IlmImf/ImfConvert.cpp union {float f; int i;} u; i 81 3rdparty/openexr/IlmImf/ImfConvert.cpp return (u.i & 0x7f800000) != 0x7f800000; i 99 3rdparty/openexr/IlmImf/ImfFrameBuffer.cpp SliceMap::iterator i = _map.find (name); i 101 3rdparty/openexr/IlmImf/ImfFrameBuffer.cpp if (i == _map.end()) i 107 3rdparty/openexr/IlmImf/ImfFrameBuffer.cpp return i->second; i 114 3rdparty/openexr/IlmImf/ImfFrameBuffer.cpp SliceMap::const_iterator i = _map.find (name); i 116 3rdparty/openexr/IlmImf/ImfFrameBuffer.cpp if (i == _map.end()) i 122 3rdparty/openexr/IlmImf/ImfFrameBuffer.cpp return i->second; i 143 3rdparty/openexr/IlmImf/ImfFrameBuffer.cpp SliceMap::iterator i = _map.find (name); i 144 3rdparty/openexr/IlmImf/ImfFrameBuffer.cpp return (i == _map.end())? 0: &i->second; i 151 3rdparty/openexr/IlmImf/ImfFrameBuffer.cpp SliceMap::const_iterator i = _map.find (name); i 152 3rdparty/openexr/IlmImf/ImfFrameBuffer.cpp return (i == _map.end())? 0: &i->second; i 225 3rdparty/openexr/IlmImf/ImfFrameBuffer.h Iterator (const FrameBuffer::SliceMap::iterator &i); i 246 3rdparty/openexr/IlmImf/ImfFrameBuffer.h ConstIterator (const FrameBuffer::SliceMap::const_iterator &i); i 276 3rdparty/openexr/IlmImf/ImfFrameBuffer.h FrameBuffer::Iterator::Iterator (const FrameBuffer::SliceMap::iterator &i): i 277 3rdparty/openexr/IlmImf/ImfFrameBuffer.h _i (i) i 322 3rdparty/openexr/IlmImf/ImfFrameBuffer.h (const FrameBuffer::SliceMap::const_iterator &i): _i (i) i 128 3rdparty/openexr/IlmImf/ImfHeader.cpp for (Header::ConstIterator i = header.begin(); i 129 3rdparty/openexr/IlmImf/ImfHeader.cpp i != header.end(); i 130 3rdparty/openexr/IlmImf/ImfHeader.cpp ++i) i 132 3rdparty/openexr/IlmImf/ImfHeader.cpp if (strlen (i.name()) >= 32 || strlen (i.attribute().typeName()) >= 32) i 138 3rdparty/openexr/IlmImf/ImfHeader.cpp for (ChannelList::ConstIterator i = channels.begin(); i 139 3rdparty/openexr/IlmImf/ImfHeader.cpp i != channels.end(); i 140 3rdparty/openexr/IlmImf/ImfHeader.cpp ++i) i 142 3rdparty/openexr/IlmImf/ImfHeader.cpp if (strlen (i.name()) >= 32) i 152 3rdparty/openexr/IlmImf/ImfHeader.cpp for (int i = 0; i < N; ++i) { i 153 3rdparty/openexr/IlmImf/ImfHeader.cpp if (str[i] == '\0') i 241 3rdparty/openexr/IlmImf/ImfHeader.cpp for (AttributeMap::const_iterator i = other._map.begin(); i 242 3rdparty/openexr/IlmImf/ImfHeader.cpp i != other._map.end(); i 243 3rdparty/openexr/IlmImf/ImfHeader.cpp ++i) i 245 3rdparty/openexr/IlmImf/ImfHeader.cpp insert (*i->first, *i->second); i 252 3rdparty/openexr/IlmImf/ImfHeader.cpp for (AttributeMap::iterator i = _map.begin(); i 253 3rdparty/openexr/IlmImf/ImfHeader.cpp i != _map.end(); i 254 3rdparty/openexr/IlmImf/ImfHeader.cpp ++i) i 256 3rdparty/openexr/IlmImf/ImfHeader.cpp delete i->second; i 266 3rdparty/openexr/IlmImf/ImfHeader.cpp for (AttributeMap::iterator i = _map.begin(); i 267 3rdparty/openexr/IlmImf/ImfHeader.cpp i != _map.end(); i 268 3rdparty/openexr/IlmImf/ImfHeader.cpp ++i) i 270 3rdparty/openexr/IlmImf/ImfHeader.cpp delete i->second; i 275 3rdparty/openexr/IlmImf/ImfHeader.cpp for (AttributeMap::const_iterator i = other._map.begin(); i 276 3rdparty/openexr/IlmImf/ImfHeader.cpp i != other._map.end(); i 277 3rdparty/openexr/IlmImf/ImfHeader.cpp ++i) i 279 3rdparty/openexr/IlmImf/ImfHeader.cpp insert (*i->first, *i->second); i 293 3rdparty/openexr/IlmImf/ImfHeader.cpp AttributeMap::iterator i = _map.find (name); i 295 3rdparty/openexr/IlmImf/ImfHeader.cpp if (i == _map.end()) i 311 3rdparty/openexr/IlmImf/ImfHeader.cpp if (strcmp (i->second->typeName(), attribute.typeName())) i 315 3rdparty/openexr/IlmImf/ImfHeader.cpp "type \"" << i->second->typeName() << "\"."); i 318 3rdparty/openexr/IlmImf/ImfHeader.cpp delete i->second; i 319 3rdparty/openexr/IlmImf/ImfHeader.cpp i->second = tmp; i 334 3rdparty/openexr/IlmImf/ImfHeader.cpp AttributeMap::iterator i = _map.find (name); i 336 3rdparty/openexr/IlmImf/ImfHeader.cpp if (i == _map.end()) i 339 3rdparty/openexr/IlmImf/ImfHeader.cpp return *i->second; i 346 3rdparty/openexr/IlmImf/ImfHeader.cpp AttributeMap::const_iterator i = _map.find (name); i 348 3rdparty/openexr/IlmImf/ImfHeader.cpp if (i == _map.end()) i 351 3rdparty/openexr/IlmImf/ImfHeader.cpp return *i->second; i 773 3rdparty/openexr/IlmImf/ImfHeader.cpp for (ChannelList::ConstIterator i = channels.begin(); i 774 3rdparty/openexr/IlmImf/ImfHeader.cpp i != channels.end(); i 775 3rdparty/openexr/IlmImf/ImfHeader.cpp ++i) i 777 3rdparty/openexr/IlmImf/ImfHeader.cpp if (i.channel().type != UINT && i 778 3rdparty/openexr/IlmImf/ImfHeader.cpp i.channel().type != HALF && i 779 3rdparty/openexr/IlmImf/ImfHeader.cpp i.channel().type != FLOAT) i 781 3rdparty/openexr/IlmImf/ImfHeader.cpp THROW (Iex::ArgExc, "Pixel type of \"" << i.name() << "\" " i 785 3rdparty/openexr/IlmImf/ImfHeader.cpp if (i.channel().xSampling != 1) i 788 3rdparty/openexr/IlmImf/ImfHeader.cpp "\"" << i.name() << "\" channel " i 792 3rdparty/openexr/IlmImf/ImfHeader.cpp if (i.channel().ySampling != 1) i 795 3rdparty/openexr/IlmImf/ImfHeader.cpp "\"" << i.name() << "\" channel " i 802 3rdparty/openexr/IlmImf/ImfHeader.cpp for (ChannelList::ConstIterator i = channels.begin(); i 803 3rdparty/openexr/IlmImf/ImfHeader.cpp i != channels.end(); i 804 3rdparty/openexr/IlmImf/ImfHeader.cpp ++i) i 806 3rdparty/openexr/IlmImf/ImfHeader.cpp if (i.channel().type != UINT && i 807 3rdparty/openexr/IlmImf/ImfHeader.cpp i.channel().type != HALF && i 808 3rdparty/openexr/IlmImf/ImfHeader.cpp i.channel().type != FLOAT) i 810 3rdparty/openexr/IlmImf/ImfHeader.cpp THROW (Iex::ArgExc, "Pixel type of \"" << i.name() << "\" " i 814 3rdparty/openexr/IlmImf/ImfHeader.cpp if (i.channel().xSampling < 1) i 817 3rdparty/openexr/IlmImf/ImfHeader.cpp "\"" << i.name() << "\" channel " i 821 3rdparty/openexr/IlmImf/ImfHeader.cpp if (i.channel().ySampling < 1) i 824 3rdparty/openexr/IlmImf/ImfHeader.cpp "\"" << i.name() << "\" channel " i 828 3rdparty/openexr/IlmImf/ImfHeader.cpp if (dataWindow.min.x % i.channel().xSampling) i 833 3rdparty/openexr/IlmImf/ImfHeader.cpp "the \"" << i.name() << "\" channel."); i 836 3rdparty/openexr/IlmImf/ImfHeader.cpp if (dataWindow.min.y % i.channel().ySampling) i 841 3rdparty/openexr/IlmImf/ImfHeader.cpp "the \"" << i.name() << "\" channel."); i 845 3rdparty/openexr/IlmImf/ImfHeader.cpp i.channel().xSampling) i 850 3rdparty/openexr/IlmImf/ImfHeader.cpp "the \"" << i.name() << "\" channel."); i 854 3rdparty/openexr/IlmImf/ImfHeader.cpp i.channel().ySampling) i 859 3rdparty/openexr/IlmImf/ImfHeader.cpp "the \"" << i.name() << "\" channel."); i 912 3rdparty/openexr/IlmImf/ImfHeader.cpp for (ConstIterator i = begin(); i != end(); ++i) i 918 3rdparty/openexr/IlmImf/ImfHeader.cpp Xdr::write <StreamIO> (os, i.name()); i 919 3rdparty/openexr/IlmImf/ImfHeader.cpp Xdr::write <StreamIO> (os, i.attribute().typeName()); i 927 3rdparty/openexr/IlmImf/ImfHeader.cpp i.attribute().writeValueTo (oss, version); i 932 3rdparty/openexr/IlmImf/ImfHeader.cpp if (&i.attribute() == preview) i 1010 3rdparty/openexr/IlmImf/ImfHeader.cpp AttributeMap::iterator i = _map.find (name); i 1012 3rdparty/openexr/IlmImf/ImfHeader.cpp if (i != _map.end()) i 1020 3rdparty/openexr/IlmImf/ImfHeader.cpp if (strncmp (i->second->typeName(), typeName, sizeof (typeName))) i 1024 3rdparty/openexr/IlmImf/ImfHeader.cpp i->second->readValueFrom (is, size, version); i 371 3rdparty/openexr/IlmImf/ImfHeader.h Iterator (const Header::AttributeMap::iterator &i); i 392 3rdparty/openexr/IlmImf/ImfHeader.h ConstIterator (const Header::AttributeMap::const_iterator &i); i 440 3rdparty/openexr/IlmImf/ImfHeader.h Header::Iterator::Iterator (const Header::AttributeMap::iterator &i): _i (i) i 485 3rdparty/openexr/IlmImf/ImfHeader.h (const Header::AttributeMap::const_iterator &i): _i (i) i 595 3rdparty/openexr/IlmImf/ImfHeader.h AttributeMap::iterator i = _map.find (name); i 596 3rdparty/openexr/IlmImf/ImfHeader.h return (i == _map.end())? 0: dynamic_cast <T*> (i->second); i 604 3rdparty/openexr/IlmImf/ImfHeader.h AttributeMap::const_iterator i = _map.find (name); i 605 3rdparty/openexr/IlmImf/ImfHeader.h return (i == _map.end())? 0: dynamic_cast <const T*> (i->second); i 217 3rdparty/openexr/IlmImf/ImfHuf.cpp for (int i = 0; i <= 58; ++i) i 218 3rdparty/openexr/IlmImf/ImfHuf.cpp n[i] = 0; i 220 3rdparty/openexr/IlmImf/ImfHuf.cpp for (int i = 0; i < HUF_ENCSIZE; ++i) i 221 3rdparty/openexr/IlmImf/ImfHuf.cpp n[hcode[i]] += 1; i 231 3rdparty/openexr/IlmImf/ImfHuf.cpp for (int i = 58; i > 0; --i) i 233 3rdparty/openexr/IlmImf/ImfHuf.cpp Int64 nc = ((c + n[i]) >> 1); i 234 3rdparty/openexr/IlmImf/ImfHuf.cpp n[i] = c; i 245 3rdparty/openexr/IlmImf/ImfHuf.cpp for (int i = 0; i < HUF_ENCSIZE; ++i) i 247 3rdparty/openexr/IlmImf/ImfHuf.cpp int l = hcode[i]; i 250 3rdparty/openexr/IlmImf/ImfHuf.cpp hcode[i] = l | (n[l]++ << 6); i 308 3rdparty/openexr/IlmImf/ImfHuf.cpp for (int i = *im; i < HUF_ENCSIZE; i++) i 310 3rdparty/openexr/IlmImf/ImfHuf.cpp hlink[i] = i; i 312 3rdparty/openexr/IlmImf/ImfHuf.cpp if (frq[i]) i 314 3rdparty/openexr/IlmImf/ImfHuf.cpp fHeap[nf] = &frq[i]; i 316 3rdparty/openexr/IlmImf/ImfHuf.cpp *iM = i; i 656 3rdparty/openexr/IlmImf/ImfHuf.cpp for (int i = 0; i < pl->lit - 1; ++i) i 657 3rdparty/openexr/IlmImf/ImfHuf.cpp pl->p[i] = p[i]; i 676 3rdparty/openexr/IlmImf/ImfHuf.cpp for (Int64 i = 1 << (HUF_DECBITS - l); i > 0; i--, pl++) i 703 3rdparty/openexr/IlmImf/ImfHuf.cpp for (int i = 0; i < HUF_DECSIZE; i++) i 705 3rdparty/openexr/IlmImf/ImfHuf.cpp if (hdecod[i].p) i 707 3rdparty/openexr/IlmImf/ImfHuf.cpp delete [] hdecod[i].p; i 708 3rdparty/openexr/IlmImf/ImfHuf.cpp hdecod[i].p = 0; i 767 3rdparty/openexr/IlmImf/ImfHuf.cpp for (int i = 1; i < ni; i++) i 773 3rdparty/openexr/IlmImf/ImfHuf.cpp if (s == in[i] && cs < 255) i 783 3rdparty/openexr/IlmImf/ImfHuf.cpp s = in[i]; i 935 3rdparty/openexr/IlmImf/ImfHuf.cpp int i = (8 - ni) & 7; i 936 3rdparty/openexr/IlmImf/ImfHuf.cpp c >>= i; i 937 3rdparty/openexr/IlmImf/ImfHuf.cpp lc -= i; i 964 3rdparty/openexr/IlmImf/ImfHuf.cpp for (int i = 0; i < HUF_ENCSIZE; ++i) i 965 3rdparty/openexr/IlmImf/ImfHuf.cpp freq[i] = 0; i 967 3rdparty/openexr/IlmImf/ImfHuf.cpp for (int i = 0; i < n; ++i) i 968 3rdparty/openexr/IlmImf/ImfHuf.cpp ++freq[data[i]]; i 973 3rdparty/openexr/IlmImf/ImfHuf.cpp writeUInt (char buf[4], unsigned int i) i 977 3rdparty/openexr/IlmImf/ImfHuf.cpp b[0] = i; i 978 3rdparty/openexr/IlmImf/ImfHuf.cpp b[1] = i >> 8; i 979 3rdparty/openexr/IlmImf/ImfHuf.cpp b[2] = i >> 16; i 980 3rdparty/openexr/IlmImf/ImfHuf.cpp b[3] = i >> 24; i 296 3rdparty/openexr/IlmImf/ImfInputFile.cpp for (size_t i = 0; i < size; ++i) i 297 3rdparty/openexr/IlmImf/ImfInputFile.cpp toPtr[i] = fromPtr[i]; i 433 3rdparty/openexr/IlmImf/ImfInputFile.cpp FrameBuffer::ConstIterator i = oldFrameBuffer.begin(); i 436 3rdparty/openexr/IlmImf/ImfInputFile.cpp while (i != oldFrameBuffer.end() && j != frameBuffer.end()) i 438 3rdparty/openexr/IlmImf/ImfInputFile.cpp if (strcmp (i.name(), j.name()) || i.slice().type != j.slice().type) i 441 3rdparty/openexr/IlmImf/ImfInputFile.cpp ++i; i 445 3rdparty/openexr/IlmImf/ImfInputFile.cpp if (i != oldFrameBuffer.end() || j != frameBuffer.end()) i 117 3rdparty/openexr/IlmImf/ImfMisc.cpp for (int y = dataWindow.min.y, i = 0; y <= dataWindow.max.y; ++y, ++i) i 119 3rdparty/openexr/IlmImf/ImfMisc.cpp bytesPerLine[i] += nBytes; i 124 3rdparty/openexr/IlmImf/ImfMisc.cpp for (int y = dataWindow.min.y, i = 0; y <= dataWindow.max.y; ++y, ++i) i 125 3rdparty/openexr/IlmImf/ImfMisc.cpp if (maxBytesPerLine < bytesPerLine[i]) i 126 3rdparty/openexr/IlmImf/ImfMisc.cpp maxBytesPerLine = bytesPerLine[i]; i 141 3rdparty/openexr/IlmImf/ImfMisc.cpp for (int i = 0; i < bytesPerLine.size(); ++i) i 143 3rdparty/openexr/IlmImf/ImfMisc.cpp if (i % linesInLineBuffer == 0) i 146 3rdparty/openexr/IlmImf/ImfMisc.cpp offsetInLineBuffer[i] = offset; i 147 3rdparty/openexr/IlmImf/ImfMisc.cpp offset += bytesPerLine[i]; i 394 3rdparty/openexr/IlmImf/ImfMisc.cpp for (size_t i = 0; i < sizeof (unsigned int); ++i) i 395 3rdparty/openexr/IlmImf/ImfMisc.cpp writePtr[i] = readPtr[i]; i 419 3rdparty/openexr/IlmImf/ImfMisc.cpp for (size_t i = 0; i < sizeof (float); ++i) i 420 3rdparty/openexr/IlmImf/ImfMisc.cpp ((char *)&f)[i] = readPtr[i]; i 440 3rdparty/openexr/IlmImf/ImfMisc.cpp for (size_t i = 0; i < sizeof (unsigned int); ++i) i 441 3rdparty/openexr/IlmImf/ImfMisc.cpp ((char *)&ui)[i] = readPtr[i]; i 465 3rdparty/openexr/IlmImf/ImfMisc.cpp for (size_t i = 0; i < sizeof (float); ++i) i 466 3rdparty/openexr/IlmImf/ImfMisc.cpp ((char *)&f)[i] = readPtr[i]; i 486 3rdparty/openexr/IlmImf/ImfMisc.cpp for (size_t i = 0; i < sizeof (unsigned int); ++i) i 487 3rdparty/openexr/IlmImf/ImfMisc.cpp ((char *)&ui)[i] = readPtr[i]; i 510 3rdparty/openexr/IlmImf/ImfMisc.cpp for (size_t i = 0; i < sizeof (float); ++i) i 511 3rdparty/openexr/IlmImf/ImfMisc.cpp writePtr[i] = readPtr[i]; i 665 3rdparty/openexr/IlmImf/ImfMisc.cpp for (size_t i = 0; i < sizeof (unsigned int); ++i) i 666 3rdparty/openexr/IlmImf/ImfMisc.cpp *writePtr++ = readPtr[i]; i 686 3rdparty/openexr/IlmImf/ImfMisc.cpp for (size_t i = 0; i < sizeof (float); ++i) i 687 3rdparty/openexr/IlmImf/ImfMisc.cpp *writePtr++ = readPtr[i]; i 755 3rdparty/openexr/IlmImf/ImfMisc.cpp for (size_t i = 0; i < sizeof (ui); ++i) i 756 3rdparty/openexr/IlmImf/ImfMisc.cpp *writePtr++ = ((char *) &ui)[i]; i 775 3rdparty/openexr/IlmImf/ImfMisc.cpp for (size_t i = 0; i < sizeof (f); ++i) i 776 3rdparty/openexr/IlmImf/ImfMisc.cpp *writePtr++ = ((char *) &f)[i]; i 104 3rdparty/openexr/IlmImf/ImfMultiView.cpp for (int i = 0; i < multiView.size(); ++i) i 106 3rdparty/openexr/IlmImf/ImfMultiView.cpp if (multiView[i] == view) i 107 3rdparty/openexr/IlmImf/ImfMultiView.cpp return i; i 184 3rdparty/openexr/IlmImf/ImfMultiView.cpp for (ChannelList::ConstIterator i = channelList.begin(); i 185 3rdparty/openexr/IlmImf/ImfMultiView.cpp i != channelList.end(); i 186 3rdparty/openexr/IlmImf/ImfMultiView.cpp ++i) i 192 3rdparty/openexr/IlmImf/ImfMultiView.cpp string view = viewFromChannelName (i.name(), multiView); i 200 3rdparty/openexr/IlmImf/ImfMultiView.cpp q.insert (i.name(), i.channel()); i 291 3rdparty/openexr/IlmImf/ImfMultiView.cpp for(int i = 0; i < size1; ++i) i 293 3rdparty/openexr/IlmImf/ImfMultiView.cpp if (i != size1 - 2 && chan1[i] != chan2[i]) i 313 3rdparty/openexr/IlmImf/ImfMultiView.cpp for (ChannelList::ConstIterator i=channelList.begin(); i 314 3rdparty/openexr/IlmImf/ImfMultiView.cpp i != channelList.end(); i 315 3rdparty/openexr/IlmImf/ImfMultiView.cpp ++i) i 317 3rdparty/openexr/IlmImf/ImfMultiView.cpp if (i.name() == channelName || i 318 3rdparty/openexr/IlmImf/ImfMultiView.cpp areCounterparts (i.name(), channelName, multiView)) i 320 3rdparty/openexr/IlmImf/ImfMultiView.cpp q.insert (i.name(), i.channel()); i 339 3rdparty/openexr/IlmImf/ImfMultiView.cpp for (ChannelList::ConstIterator i=channelList.begin(); i 340 3rdparty/openexr/IlmImf/ImfMultiView.cpp i != channelList.end(); i 341 3rdparty/openexr/IlmImf/ImfMultiView.cpp ++i) i 343 3rdparty/openexr/IlmImf/ImfMultiView.cpp if (viewFromChannelName (i.name(), multiView) == otherViewName && i 344 3rdparty/openexr/IlmImf/ImfMultiView.cpp areCounterparts (i.name(), channelName, multiView)) i 346 3rdparty/openexr/IlmImf/ImfMultiView.cpp return i.name(); i 357 3rdparty/openexr/IlmImf/ImfMultiView.cpp int i) i 368 3rdparty/openexr/IlmImf/ImfMultiView.cpp if (s.size() == 1 && i == 0) i 389 3rdparty/openexr/IlmImf/ImfMultiView.cpp newName += multiView[i] + "." + s[j]; i 160 3rdparty/openexr/IlmImf/ImfMultiView.h int i); i 231 3rdparty/openexr/IlmImf/ImfOutputFile.cpp for (size_t i = 0; i < lineBuffers.size(); i++) i 232 3rdparty/openexr/IlmImf/ImfOutputFile.cpp delete lineBuffers[i]; i 254 3rdparty/openexr/IlmImf/ImfOutputFile.cpp for (unsigned int i = 0; i < lineOffsets.size(); i++) i 255 3rdparty/openexr/IlmImf/ImfOutputFile.cpp Xdr::write <StreamIO> (os, lineOffsets[i]); i 365 3rdparty/openexr/IlmImf/ImfOutputFile.cpp for (unsigned int i = 0; i < ofd->slices.size(); ++i) i 373 3rdparty/openexr/IlmImf/ImfOutputFile.cpp const OutSliceInfo &slice = ofd->slices[i]; i 512 3rdparty/openexr/IlmImf/ImfOutputFile.cpp for (unsigned int i = 0; i < _ofd->slices.size(); ++i) i 519 3rdparty/openexr/IlmImf/ImfOutputFile.cpp const OutSliceInfo &slice = _ofd->slices[i]; i 727 3rdparty/openexr/IlmImf/ImfOutputFile.cpp for (size_t i = 0; i < _data->lineBuffers.size(); ++i) i 729 3rdparty/openexr/IlmImf/ImfOutputFile.cpp _data->lineBuffers[i] = i 740 3rdparty/openexr/IlmImf/ImfOutputFile.cpp for (size_t i = 0; i < _data->lineBuffers.size(); i++) i 741 3rdparty/openexr/IlmImf/ImfOutputFile.cpp _data->lineBuffers[i]->buffer.resizeErase(_data->lineBufferSize); i 817 3rdparty/openexr/IlmImf/ImfOutputFile.cpp for (ChannelList::ConstIterator i = channels.begin(); i 818 3rdparty/openexr/IlmImf/ImfOutputFile.cpp i != channels.end(); i 819 3rdparty/openexr/IlmImf/ImfOutputFile.cpp ++i) i 821 3rdparty/openexr/IlmImf/ImfOutputFile.cpp FrameBuffer::ConstIterator j = frameBuffer.find (i.name()); i 826 3rdparty/openexr/IlmImf/ImfOutputFile.cpp if (i.channel().type != j.slice().type) i 828 3rdparty/openexr/IlmImf/ImfOutputFile.cpp THROW (Iex::ArgExc, "Pixel type of \"" << i.name() << "\" channel " i 834 3rdparty/openexr/IlmImf/ImfOutputFile.cpp if (i.channel().xSampling != j.slice().xSampling || i 835 3rdparty/openexr/IlmImf/ImfOutputFile.cpp i.channel().ySampling != j.slice().ySampling) i 838 3rdparty/openexr/IlmImf/ImfOutputFile.cpp "of \"" << i.name() << "\" channel " i 851 3rdparty/openexr/IlmImf/ImfOutputFile.cpp for (ChannelList::ConstIterator i = channels.begin(); i 852 3rdparty/openexr/IlmImf/ImfOutputFile.cpp i != channels.end(); i 853 3rdparty/openexr/IlmImf/ImfOutputFile.cpp ++i) i 855 3rdparty/openexr/IlmImf/ImfOutputFile.cpp FrameBuffer::ConstIterator j = frameBuffer.find (i.name()); i 864 3rdparty/openexr/IlmImf/ImfOutputFile.cpp slices.push_back (OutSliceInfo (i.channel().type, i 868 3rdparty/openexr/IlmImf/ImfOutputFile.cpp i.channel().xSampling, i 869 3rdparty/openexr/IlmImf/ImfOutputFile.cpp i.channel().ySampling, i 960 3rdparty/openexr/IlmImf/ImfOutputFile.cpp for (int i = 0; i < numTasks; i++) i 963 3rdparty/openexr/IlmImf/ImfOutputFile.cpp (new LineBufferTask (&taskGroup, _data, first + i, i 983 3rdparty/openexr/IlmImf/ImfOutputFile.cpp for (int i = 0; i < numTasks; i++) i 986 3rdparty/openexr/IlmImf/ImfOutputFile.cpp (new LineBufferTask (&taskGroup, _data, first - i, i 1108 3rdparty/openexr/IlmImf/ImfOutputFile.cpp for (int i = 0; i < _data->lineBuffers.size(); ++i) i 1110 3rdparty/openexr/IlmImf/ImfOutputFile.cpp LineBuffer *lineBuffer = _data->lineBuffers[i]; i 1241 3rdparty/openexr/IlmImf/ImfOutputFile.cpp for (int i = 0; i < numPixels; ++i) i 1242 3rdparty/openexr/IlmImf/ImfOutputFile.cpp pixels[i] = newPixels[i]; i 1283 3rdparty/openexr/IlmImf/ImfOutputFile.cpp for (int i = 0; i < length; ++i) i 82 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp for (int i = 0; i < BITMAP_SIZE; ++i) i 83 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp bitmap[i] = 0; i 85 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp for (int i = 0; i < nData; ++i) i 86 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp bitmap[data[i] >> 3] |= (1 << (data[i] & 7)); i 94 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp for (int i = 0; i < BITMAP_SIZE; ++i) i 96 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp if (bitmap[i]) i 98 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp if (minNonZero > i) i 99 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp minNonZero = i; i 100 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp if (maxNonZero < i) i 101 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp maxNonZero = i; i 113 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp for (int i = 0; i < USHORT_RANGE; ++i) i 115 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp if ((i == 0) || (bitmap[i >> 3] & (1 << (i & 7)))) i 116 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp lut[i] = k++; i 118 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp lut[i] = 0; i 131 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp for (int i = 0; i < USHORT_RANGE; ++i) i 133 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp if ((i == 0) || (bitmap[i >> 3] & (1 << (i & 7)))) i 134 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp lut[k++] = i; i 151 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp for (int i = 0; i < nData; ++i) i 152 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp data[i] = lut[data[i]]; i 344 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp int i = 0; i 348 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp ++c, ++i) i 350 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp ChannelData &cd = _channelData[i]; i 372 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp for (int i = 0; i < _numChans; ++i) i 374 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp ChannelData &cd = _channelData[i]; i 395 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp for (int i = 0; i < _numChans; ++i) i 397 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp ChannelData &cd = _channelData[i]; i 412 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp for (int i = 1; i < _numChans; ++i) i 413 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp assert (_channelData[i-1].end == _channelData[i].start); i 455 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp for (int i = 0; i < _numChans; ++i) i 457 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp ChannelData &cd = _channelData[i]; i 520 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp int i = 0; i 524 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp ++c, ++i) i 526 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp ChannelData &cd = _channelData[i]; i 581 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp for (int i = 0; i < _numChans; ++i) i 583 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp ChannelData &cd = _channelData[i]; i 614 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp for (int i = 0; i < _numChans; ++i) i 616 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp ChannelData &cd = _channelData[i]; i 637 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp for (int i = 0; i < _numChans; ++i) i 639 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp ChannelData &cd = _channelData[i]; i 654 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp for (int i = 1; i < _numChans; ++i) i 655 3rdparty/openexr/IlmImf/ImfPizCompressor.cpp assert (_channelData[i-1].end == _channelData[i].start); i 60 3rdparty/openexr/IlmImf/ImfPreviewImage.cpp for (unsigned int i = 0; i < _width * _height; ++i) i 61 3rdparty/openexr/IlmImf/ImfPreviewImage.cpp _pixels[i] = pixels[i]; i 65 3rdparty/openexr/IlmImf/ImfPreviewImage.cpp for (unsigned int i = 0; i < _width * _height; ++i) i 66 3rdparty/openexr/IlmImf/ImfPreviewImage.cpp _pixels[i] = PreviewRgba(); i 76 3rdparty/openexr/IlmImf/ImfPreviewImage.cpp for (unsigned int i = 0; i < _width * _height; ++i) i 77 3rdparty/openexr/IlmImf/ImfPreviewImage.cpp _pixels[i] = other._pixels[i]; i 96 3rdparty/openexr/IlmImf/ImfPreviewImage.cpp for (unsigned int i = 0; i < _width * _height; ++i) i 97 3rdparty/openexr/IlmImf/ImfPreviewImage.cpp _pixels[i] = other._pixels[i]; i 66 3rdparty/openexr/IlmImf/ImfPreviewImageAttribute.cpp for (int i = 0; i < numPixels; ++i) i 68 3rdparty/openexr/IlmImf/ImfPreviewImageAttribute.cpp Xdr::write <StreamIO> (os, pixels[i].r); i 69 3rdparty/openexr/IlmImf/ImfPreviewImageAttribute.cpp Xdr::write <StreamIO> (os, pixels[i].g); i 70 3rdparty/openexr/IlmImf/ImfPreviewImageAttribute.cpp Xdr::write <StreamIO> (os, pixels[i].b); i 71 3rdparty/openexr/IlmImf/ImfPreviewImageAttribute.cpp Xdr::write <StreamIO> (os, pixels[i].a); i 90 3rdparty/openexr/IlmImf/ImfPreviewImageAttribute.cpp for (int i = 0; i < numPixels; ++i) i 92 3rdparty/openexr/IlmImf/ImfPreviewImageAttribute.cpp Xdr::read <StreamIO> (is, pixels[i].r); i 93 3rdparty/openexr/IlmImf/ImfPreviewImageAttribute.cpp Xdr::read <StreamIO> (is, pixels[i].g); i 94 3rdparty/openexr/IlmImf/ImfPreviewImageAttribute.cpp Xdr::read <StreamIO> (is, pixels[i].b); i 95 3rdparty/openexr/IlmImf/ImfPreviewImageAttribute.cpp Xdr::read <StreamIO> (is, pixels[i].a); i 96 3rdparty/openexr/IlmImf/ImfPxr24Compressor.cpp unsigned int i; i 106 3rdparty/openexr/IlmImf/ImfPxr24Compressor.cpp unsigned int s = u.i & 0x80000000; i 107 3rdparty/openexr/IlmImf/ImfPxr24Compressor.cpp unsigned int e = u.i & 0x7f800000; i 108 3rdparty/openexr/IlmImf/ImfPxr24Compressor.cpp unsigned int m = u.i & 0x007fffff; i 109 3rdparty/openexr/IlmImf/ImfPxr24Compressor.cpp unsigned int i; i 125 3rdparty/openexr/IlmImf/ImfPxr24Compressor.cpp i = (e >> 8) | m | (m == 0); i 133 3rdparty/openexr/IlmImf/ImfPxr24Compressor.cpp i = e >> 8; i 142 3rdparty/openexr/IlmImf/ImfPxr24Compressor.cpp i = ((e | m) + (m & 0x00000080)) >> 8; i 144 3rdparty/openexr/IlmImf/ImfPxr24Compressor.cpp if (i >= 0x7f8000) i 153 3rdparty/openexr/IlmImf/ImfPxr24Compressor.cpp i = (e | m) >> 8; i 157 3rdparty/openexr/IlmImf/ImfPxr24Compressor.cpp return (s >> 8) | i; i 299 3rdparty/openexr/IlmImf/ImfPxr24Compressor.cpp for (ChannelList::ConstIterator i = _channels.begin(); i 300 3rdparty/openexr/IlmImf/ImfPxr24Compressor.cpp i != _channels.end(); i 301 3rdparty/openexr/IlmImf/ImfPxr24Compressor.cpp ++i) i 303 3rdparty/openexr/IlmImf/ImfPxr24Compressor.cpp const Channel &c = i.channel(); i 444 3rdparty/openexr/IlmImf/ImfPxr24Compressor.cpp for (ChannelList::ConstIterator i = _channels.begin(); i 445 3rdparty/openexr/IlmImf/ImfPxr24Compressor.cpp i != _channels.end(); i 446 3rdparty/openexr/IlmImf/ImfPxr24Compressor.cpp ++i) i 448 3rdparty/openexr/IlmImf/ImfPxr24Compressor.cpp const Channel &c = i.channel(); i 104 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp int i = 0; i 107 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp i |= WRITE_R; i 110 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp i |= WRITE_G; i 113 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp i |= WRITE_B; i 116 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp i |= WRITE_A; i 119 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp i |= WRITE_Y; i 123 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp i |= WRITE_C; i 125 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp return RgbaChannels (i); i 173 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp int i = LOG2_CACHE_LINE_SIZE + 2; i 175 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp while ((size >> i) > 1) i 176 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp ++i; i 178 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp if (size > (1 << (i + 1)) - 64) i 179 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp return 64 + ((1 << (i + 1)) - size); i 181 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp if (size < (1 << i) + 64) i 182 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp return 64 + ((1 << i) - size); i 266 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp for (int i = 0; i < N; ++i) i 267 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp _buf[i] = _bufBase + (i * (_width + pad)); i 372 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp for (int i = 0; i < numScanLines; ++i) i 407 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp for (int i = 0; i < numScanLines; ++i) i 506 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp for (int i = 0; i < N2; ++i) i 508 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp _tmpBuf[i] = _tmpBuf[N2]; i 509 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp _tmpBuf[_width + N2 + i] = _tmpBuf[_width + N2 - 2]; i 519 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp for (int i = 0; i < N - 1; ++i) i 520 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp _buf[i] = _buf[i + 1]; i 870 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp for (int i = 0; i < N + 2; ++i) i 871 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp _buf1[i] = _bufBase + (i * (_width + pad)); i 873 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp for (int i = 0; i < 3; ++i) i 874 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp _buf2[i] = _bufBase + ((i + N + 2) * (_width + pad)); i 1021 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp for (int i = n - 1; i >= 0; --i) i 1022 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp readYCAScanLine (yMin + i, _buf1[i]); i 1028 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp for (int i = 0; i < n; ++i) i 1030 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp if ((scanLine + i) & 1) i 1032 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp YCAtoRGBA (_yw, _width, _buf1[N2 + i], _buf2[i]); i 1036 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp reconstructChromaVert (_width, _buf1 + i, _buf2[i]); i 1037 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp YCAtoRGBA (_yw, _width, _buf2[i], _buf2[i]); i 1048 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp for (int i = n - 1; i >= 0; --i) i 1049 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp readYCAScanLine (yMax - i, _buf1[N + 1 - i]); i 1055 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp for (int i = 2; i > 2 - n; --i) i 1057 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp if ((scanLine + i) & 1) i 1059 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp YCAtoRGBA (_yw, _width, _buf1[N2 + i], _buf2[i]); i 1063 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp reconstructChromaVert (_width, _buf1 + i, _buf2[i]); i 1064 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp YCAtoRGBA (_yw, _width, _buf2[i], _buf2[i]); i 1072 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp for (int i = 0; i < _width; ++i) i 1073 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp _fbBase[_fbYStride * scanLine + _fbXStride * (i + _xMin)] = _tmpBuf[i]; i 1086 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp for (int i = 0; i < N + 2; ++i) i 1087 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp tmp[i] = _buf1[i]; i 1089 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp for (int i = 0; i < N + 2; ++i) i 1090 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp _buf1[i] = tmp[(i + d) % (N + 2)]; i 1101 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp for (int i = 0; i < 3; ++i) i 1102 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp tmp[i] = _buf2[i]; i 1104 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp for (int i = 0; i < 3; ++i) i 1105 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp _buf2[i] = tmp[(i + d) % 3]; i 1134 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp for (int i = 0; i < _width; ++i) i 1136 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp _tmpBuf[i + N2].r = 0; i 1137 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp _tmpBuf[i + N2].b = 0; i 1156 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp for (int i = 0; i < N2; ++i) i 1158 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp _tmpBuf[i] = _tmpBuf[N2]; i 1159 3rdparty/openexr/IlmImf/ImfRgbaFile.cpp _tmpBuf[_width + N2 + i] = _tmpBuf[_width + N2 - 2]; i 71 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp for (int i = 0; i < n; ++i) i 73 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp Rgba in = rgbaIn[i]; i 74 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp Rgba &out = ycaOut[i]; i 143 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp for (int i = begin, j = 0; i < end; ++i, ++j) i 147 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaOut[j].r = ycaIn[i - 13].r * 0.001064f + i 148 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i - 11].r * -0.003771f + i 149 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i - 9].r * 0.009801f + i 150 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i - 7].r * -0.021586f + i 151 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i - 5].r * 0.043978f + i 152 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i - 3].r * -0.093067f + i 153 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i - 1].r * 0.313659f + i 154 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i ].r * 0.499846f + i 155 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i + 1].r * 0.313659f + i 156 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i + 3].r * -0.093067f + i 157 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i + 5].r * 0.043978f + i 158 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i + 7].r * -0.021586f + i 159 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i + 9].r * 0.009801f + i 160 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i + 11].r * -0.003771f + i 161 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i + 13].r * 0.001064f; i 163 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaOut[j].b = ycaIn[i - 13].b * 0.001064f + i 164 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i - 11].b * -0.003771f + i 165 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i - 9].b * 0.009801f + i 166 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i - 7].b * -0.021586f + i 167 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i - 5].b * 0.043978f + i 168 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i - 3].b * -0.093067f + i 169 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i - 1].b * 0.313659f + i 170 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i ].b * 0.499846f + i 171 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i + 1].b * 0.313659f + i 172 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i + 3].b * -0.093067f + i 173 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i + 5].b * 0.043978f + i 174 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i + 7].b * -0.021586f + i 175 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i + 9].b * 0.009801f + i 176 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i + 11].b * -0.003771f + i 177 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i + 13].b * 0.001064f; i 180 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaOut[j].g = ycaIn[i].g; i 181 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaOut[j].a = ycaIn[i].a; i 191 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp for (int i = 0; i < n; ++i) i 193 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp if ((i & 1) == 0) i 195 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaOut[i].r = ycaIn[ 0][i].r * 0.001064f + i 196 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[ 2][i].r * -0.003771f + i 197 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[ 4][i].r * 0.009801f + i 198 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[ 6][i].r * -0.021586f + i 199 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[ 8][i].r * 0.043978f + i 200 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[10][i].r * -0.093067f + i 201 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[12][i].r * 0.313659f + i 202 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[13][i].r * 0.499846f + i 203 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[14][i].r * 0.313659f + i 204 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[16][i].r * -0.093067f + i 205 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[18][i].r * 0.043978f + i 206 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[20][i].r * -0.021586f + i 207 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[22][i].r * 0.009801f + i 208 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[24][i].r * -0.003771f + i 209 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[26][i].r * 0.001064f; i 211 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaOut[i].b = ycaIn[ 0][i].b * 0.001064f + i 212 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[ 2][i].b * -0.003771f + i 213 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[ 4][i].b * 0.009801f + i 214 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[ 6][i].b * -0.021586f + i 215 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[ 8][i].b * 0.043978f + i 216 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[10][i].b * -0.093067f + i 217 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[12][i].b * 0.313659f + i 218 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[13][i].b * 0.499846f + i 219 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[14][i].b * 0.313659f + i 220 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[16][i].b * -0.093067f + i 221 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[18][i].b * 0.043978f + i 222 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[20][i].b * -0.021586f + i 223 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[22][i].b * 0.009801f + i 224 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[24][i].b * -0.003771f + i 225 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[26][i].b * 0.001064f; i 228 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaOut[i].g = ycaIn[13][i].g; i 229 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaOut[i].a = ycaIn[13][i].a; i 241 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp for (int i = 0; i < n; ++i) i 243 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaOut[i].g = ycaIn[i].g.round (roundY); i 244 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaOut[i].a = ycaIn[i].a; i 246 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp if ((i & 1) == 0) i 248 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaOut[i].r = ycaIn[i].r.round (roundC); i 249 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaOut[i].b = ycaIn[i].b.round (roundC); i 267 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp for (int i = begin, j = 0; i < end; ++i, ++j) i 271 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaOut[j].r = ycaIn[i - 13].r * 0.002128f + i 272 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i - 11].r * -0.007540f + i 273 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i - 9].r * 0.019597f + i 274 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i - 7].r * -0.043159f + i 275 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i - 5].r * 0.087929f + i 276 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i - 3].r * -0.186077f + i 277 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i - 1].r * 0.627123f + i 278 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i + 1].r * 0.627123f + i 279 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i + 3].r * -0.186077f + i 280 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i + 5].r * 0.087929f + i 281 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i + 7].r * -0.043159f + i 282 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i + 9].r * 0.019597f + i 283 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i + 11].r * -0.007540f + i 284 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i + 13].r * 0.002128f; i 286 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaOut[j].b = ycaIn[i - 13].b * 0.002128f + i 287 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i - 11].b * -0.007540f + i 288 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i - 9].b * 0.019597f + i 289 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i - 7].b * -0.043159f + i 290 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i - 5].b * 0.087929f + i 291 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i - 3].b * -0.186077f + i 292 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i - 1].b * 0.627123f + i 293 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i + 1].b * 0.627123f + i 294 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i + 3].b * -0.186077f + i 295 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i + 5].b * 0.087929f + i 296 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i + 7].b * -0.043159f + i 297 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i + 9].b * 0.019597f + i 298 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i + 11].b * -0.007540f + i 299 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[i + 13].b * 0.002128f; i 303 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaOut[j].r = ycaIn[i].r; i 304 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaOut[j].b = ycaIn[i].b; i 307 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaOut[j].g = ycaIn[i].g; i 308 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaOut[j].a = ycaIn[i].a; i 318 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp for (int i = 0; i < n; ++i) i 320 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaOut[i].r = ycaIn[ 0][i].r * 0.002128f + i 321 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[ 2][i].r * -0.007540f + i 322 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[ 4][i].r * 0.019597f + i 323 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[ 6][i].r * -0.043159f + i 324 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[ 8][i].r * 0.087929f + i 325 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[10][i].r * -0.186077f + i 326 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[12][i].r * 0.627123f + i 327 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[14][i].r * 0.627123f + i 328 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[16][i].r * -0.186077f + i 329 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[18][i].r * 0.087929f + i 330 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[20][i].r * -0.043159f + i 331 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[22][i].r * 0.019597f + i 332 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[24][i].r * -0.007540f + i 333 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[26][i].r * 0.002128f; i 335 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaOut[i].b = ycaIn[ 0][i].b * 0.002128f + i 336 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[ 2][i].b * -0.007540f + i 337 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[ 4][i].b * 0.019597f + i 338 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[ 6][i].b * -0.043159f + i 339 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[ 8][i].b * 0.087929f + i 340 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[10][i].b * -0.186077f + i 341 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[12][i].b * 0.627123f + i 342 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[14][i].b * 0.627123f + i 343 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[16][i].b * -0.186077f + i 344 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[18][i].b * 0.087929f + i 345 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[20][i].b * -0.043159f + i 346 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[22][i].b * 0.019597f + i 347 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[24][i].b * -0.007540f + i 348 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaIn[26][i].b * 0.002128f; i 350 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaOut[i].g = ycaIn[13][i].g; i 351 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp ycaOut[i].a = ycaIn[13][i].a; i 362 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp for (int i = 0; i < n; ++i) i 364 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp const Rgba &in = ycaIn[i]; i 365 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp Rgba &out = rgbaOut[i]; i 451 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp for (int i = 0; i < n; ++i) i 459 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp if (i < n - 1) i 461 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp neighborA2 = saturation (rgbaIn[0][i + 1]); i 462 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp neighborB2 = saturation (rgbaIn[2][i + 1]); i 474 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp const Rgba &in = rgbaIn[1][i]; i 475 3rdparty/openexr/IlmImf/ImfRgbaYca.cpp Rgba &out = rgbaOut[i]; i 228 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp for (size_t i = 0; i < lineBuffers.size(); i++) i 229 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp delete lineBuffers[i]; i 252 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp for (unsigned int i = 0; i < lineOffsets.size(); i++) i 265 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp lineOffsets[i] = lineOffset; i 267 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp lineOffsets[lineOffsets.size() - i - 1] = lineOffset; i 291 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp for (unsigned int i = 0; i < lineOffsets.size(); i++) i 293 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp Xdr::read <StreamIO> (is, lineOffsets[i]); i 298 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp for (unsigned int i = 0; i < lineOffsets.size(); i++) i 300 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp if (lineOffsets[i] <= 0) i 458 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp for (int i = _lineBuffer->minY - _ifd->minY; i 459 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp i <= maxY - _ifd->minY; i 460 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp ++i) i 462 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp uncompressedSize += (int) _ifd->bytesPerLine[i]; i 516 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp for (unsigned int i = 0; i < _ifd->slices.size(); ++i) i 523 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp const InSliceInfo &slice = _ifd->slices[i]; i 685 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp for (size_t i = 0; i < _data->lineBuffers.size(); i++) i 687 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp _data->lineBuffers[i] = new LineBuffer (newCompressor i 699 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp for (size_t i = 0; i < _data->lineBuffers.size(); i++) i 700 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp _data->lineBuffers[i]->buffer = new char[_data->lineBufferSize]; i 729 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp for (size_t i = 0; i < _data->lineBuffers.size(); i++) i 730 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp delete [] _data->lineBuffers[i]->buffer; i 773 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp ChannelList::ConstIterator i = channels.find (j.name()); i 775 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp if (i == channels.end()) i 778 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp if (i.channel().xSampling != j.slice().xSampling || i 779 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp i.channel().ySampling != j.slice().ySampling) i 781 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp "of \"" << i.name() << "\" channel " i 792 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp ChannelList::ConstIterator i = channels.begin(); i 798 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp while (i != channels.end() && strcmp (i.name(), j.name()) < 0) i 806 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp slices.push_back (InSliceInfo (i.channel().type, i 807 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp i.channel().type, i 811 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp i.channel().xSampling, i 812 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp i.channel().ySampling, i 816 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp ++i; i 821 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp if (i == channels.end() || strcmp (i.name(), j.name()) > 0) i 833 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp i.channel().type, i 843 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp if (i != channels.end() && !fill) i 844 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp ++i; i 962 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp for (int i = 0; i < _data->lineBuffers.size(); ++i) i 964 3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp LineBuffer *lineBuffer = _data->lineBuffers[i]; i 63 3rdparty/openexr/IlmImf/ImfStringAttribute.cpp for (int i = 0; i < size; i++) i 64 3rdparty/openexr/IlmImf/ImfStringAttribute.cpp Xdr::write <StreamIO> (os, _value[i]); i 74 3rdparty/openexr/IlmImf/ImfStringAttribute.cpp for (int i = 0; i < size; i++) i 75 3rdparty/openexr/IlmImf/ImfStringAttribute.cpp Xdr::read <StreamIO> (is, _value[i]); i 62 3rdparty/openexr/IlmImf/ImfStringVectorAttribute.cpp for (int i = 0; i < size; i++) i 64 3rdparty/openexr/IlmImf/ImfStringVectorAttribute.cpp int strSize = _value[i].size(); i 66 3rdparty/openexr/IlmImf/ImfStringVectorAttribute.cpp Xdr::write <StreamIO> (os, &_value[i][0], strSize); i 263 3rdparty/openexr/IlmImf/ImfTiledInputFile.cpp for (size_t i = 0; i < tileBuffers.size(); i++) i 264 3rdparty/openexr/IlmImf/ImfTiledInputFile.cpp delete tileBuffers[i]; i 510 3rdparty/openexr/IlmImf/ImfTiledInputFile.cpp for (unsigned int i = 0; i < _ifd->slices.size(); ++i) i 512 3rdparty/openexr/IlmImf/ImfTiledInputFile.cpp const TInSliceInfo &slice = _ifd->slices[i]; i 753 3rdparty/openexr/IlmImf/ImfTiledInputFile.cpp for (size_t i = 0; i < _data->tileBuffers.size(); i++) i 755 3rdparty/openexr/IlmImf/ImfTiledInputFile.cpp _data->tileBuffers[i] = new TileBuffer (newTileCompressor i 762 3rdparty/openexr/IlmImf/ImfTiledInputFile.cpp _data->tileBuffers[i]->buffer = new char [_data->tileBufferSize]; i 780 3rdparty/openexr/IlmImf/ImfTiledInputFile.cpp for (size_t i = 0; i < _data->tileBuffers.size(); i++) i 781 3rdparty/openexr/IlmImf/ImfTiledInputFile.cpp delete [] _data->tileBuffers[i]->buffer; i 828 3rdparty/openexr/IlmImf/ImfTiledInputFile.cpp ChannelList::ConstIterator i = channels.find (j.name()); i 830 3rdparty/openexr/IlmImf/ImfTiledInputFile.cpp if (i == channels.end()) i 833 3rdparty/openexr/IlmImf/ImfTiledInputFile.cpp if (i.channel().xSampling != j.slice().xSampling || i 834 3rdparty/openexr/IlmImf/ImfTiledInputFile.cpp i.channel().ySampling != j.slice().ySampling) i 836 3rdparty/openexr/IlmImf/ImfTiledInputFile.cpp "of \"" << i.name() << "\" channel " i 847 3rdparty/openexr/IlmImf/ImfTiledInputFile.cpp ChannelList::ConstIterator i = channels.begin(); i 853 3rdparty/openexr/IlmImf/ImfTiledInputFile.cpp while (i != channels.end() && strcmp (i.name(), j.name()) < 0) i 861 3rdparty/openexr/IlmImf/ImfTiledInputFile.cpp slices.push_back (TInSliceInfo (i.channel().type, i 862 3rdparty/openexr/IlmImf/ImfTiledInputFile.cpp i.channel().type, i 869 3rdparty/openexr/IlmImf/ImfTiledInputFile.cpp ++i; i 874 3rdparty/openexr/IlmImf/ImfTiledInputFile.cpp if (i == channels.end() || strcmp (i.name(), j.name()) > 0) i 885 3rdparty/openexr/IlmImf/ImfTiledInputFile.cpp fill? j.slice().type: i.channel().type, i 895 3rdparty/openexr/IlmImf/ImfTiledInputFile.cpp if (i != channels.end() && !fill) i 896 3rdparty/openexr/IlmImf/ImfTiledInputFile.cpp ++i; i 899 3rdparty/openexr/IlmImf/ImfTiledInputFile.cpp while (i != channels.end()) i 907 3rdparty/openexr/IlmImf/ImfTiledInputFile.cpp slices.push_back (TInSliceInfo (i.channel().type, i 908 3rdparty/openexr/IlmImf/ImfTiledInputFile.cpp i.channel().type, i 915 3rdparty/openexr/IlmImf/ImfTiledInputFile.cpp ++i; i 1029 3rdparty/openexr/IlmImf/ImfTiledInputFile.cpp for (int i = 0; i < _data->tileBuffers.size(); ++i) i 1031 3rdparty/openexr/IlmImf/ImfTiledInputFile.cpp TileBuffer *tileBuffer = _data->tileBuffers[i]; i 266 3rdparty/openexr/IlmImf/ImfTiledMisc.cpp for (int i = 0; i < numLevels; i++) i 268 3rdparty/openexr/IlmImf/ImfTiledMisc.cpp numTiles[i] = (levelSize (min, max, i, rmode) + size - 1) / size; i 312 3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp for (TileMap::iterator i = tileMap.begin(); i != tileMap.end(); ++i) i 313 3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp delete i->second; i 315 3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp for (size_t i = 0; i < tileBuffers.size(); i++) i 316 3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp delete tileBuffers[i]; i 534 3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp TileMap::iterator i = ofd->tileMap.find (ofd->nextTileToWrite); i 541 3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp while(i != ofd->tileMap.end()) i 548 3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp i->first.dx, i->first.dy, i 549 3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp i->first.lx, i->first.ly, i 550 3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp i->second->pixelData, i 551 3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp i->second->pixelDataSize); i 553 3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp delete i->second; i 554 3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp ofd->tileMap.erase (i); i 561 3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp i = ofd->tileMap.find (ofd->nextTileToWrite); i 614 3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp for (unsigned int i = 0; i < ofd->slices.size(); ++i) i 616 3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp const TOutSliceInfo &slice = ofd->slices[i]; i 729 3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp for (unsigned int i = 0; i < _ofd->slices.size(); ++i) i 731 3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp const TOutSliceInfo &slice = _ofd->slices[i]; i 941 3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp for (size_t i = 0; i < _data->tileBuffers.size(); i++) i 943 3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp _data->tileBuffers[i] = new TileBuffer (newTileCompressor i 949 3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp _data->tileBuffers[i]->buffer.resizeErase(_data->tileBufferSize); i 1022 3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp for (ChannelList::ConstIterator i = channels.begin(); i 1023 3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp i != channels.end(); i 1024 3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp ++i) i 1026 3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp FrameBuffer::ConstIterator j = frameBuffer.find (i.name()); i 1031 3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp if (i.channel().type != j.slice().type) i 1032 3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp THROW (Iex::ArgExc, "Pixel type of \"" << i.name() << "\" channel " i 1048 3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp for (ChannelList::ConstIterator i = channels.begin(); i 1049 3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp i != channels.end(); i 1050 3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp ++i) i 1052 3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp FrameBuffer::ConstIterator j = frameBuffer.find (i.name()); i 1061 3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp slices.push_back (TOutSliceInfo (i.channel().type, i 1268 3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp for (int i = 0; i < _data->tileBuffers.size(); ++i) i 1270 3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp TileBuffer *tileBuffer = _data->tileBuffers[i]; i 1402 3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp for (int i = 0; i < numAllTiles; ++i) i 1641 3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp for (int i = 0; i < numPixels; ++i) i 1642 3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp pixels[i] = newPixels[i]; i 1689 3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp for (int i = 0; i < length; ++i) i 107 3rdparty/openexr/IlmImf/ImfTiledRgbaFile.cpp int i = 0; i 110 3rdparty/openexr/IlmImf/ImfTiledRgbaFile.cpp i |= WRITE_R; i 113 3rdparty/openexr/IlmImf/ImfTiledRgbaFile.cpp i |= WRITE_G; i 116 3rdparty/openexr/IlmImf/ImfTiledRgbaFile.cpp i |= WRITE_B; i 119 3rdparty/openexr/IlmImf/ImfTiledRgbaFile.cpp i |= WRITE_A; i 122 3rdparty/openexr/IlmImf/ImfTiledRgbaFile.cpp i |= WRITE_Y; i 124 3rdparty/openexr/IlmImf/ImfTiledRgbaFile.cpp return RgbaChannels (i); i 522 3rdparty/openexr/IlmImf/ImfXdr.h union {unsigned int i; float f;} u; i 527 3rdparty/openexr/IlmImf/ImfXdr.h b[0] = (unsigned char) (u.i); i 528 3rdparty/openexr/IlmImf/ImfXdr.h b[1] = (unsigned char) (u.i >> 8); i 529 3rdparty/openexr/IlmImf/ImfXdr.h b[2] = (unsigned char) (u.i >> 16); i 530 3rdparty/openexr/IlmImf/ImfXdr.h b[3] = (unsigned char) (u.i >> 24); i 540 3rdparty/openexr/IlmImf/ImfXdr.h union {Int64 i; double d;} u; i 545 3rdparty/openexr/IlmImf/ImfXdr.h b[0] = (unsigned char) (u.i); i 546 3rdparty/openexr/IlmImf/ImfXdr.h b[1] = (unsigned char) (u.i >> 8); i 547 3rdparty/openexr/IlmImf/ImfXdr.h b[2] = (unsigned char) (u.i >> 16); i 548 3rdparty/openexr/IlmImf/ImfXdr.h b[3] = (unsigned char) (u.i >> 24); i 549 3rdparty/openexr/IlmImf/ImfXdr.h b[4] = (unsigned char) (u.i >> 32); i 550 3rdparty/openexr/IlmImf/ImfXdr.h b[5] = (unsigned char) (u.i >> 40); i 551 3rdparty/openexr/IlmImf/ImfXdr.h b[6] = (unsigned char) (u.i >> 48); i 552 3rdparty/openexr/IlmImf/ImfXdr.h b[7] = (unsigned char) (u.i >> 56); i 597 3rdparty/openexr/IlmImf/ImfXdr.h for (int i = 0; i < n; i++) i 808 3rdparty/openexr/IlmImf/ImfXdr.h union {unsigned int i; float f;} u; i 810 3rdparty/openexr/IlmImf/ImfXdr.h u.i = (b[0] & 0x000000ff) | i 827 3rdparty/openexr/IlmImf/ImfXdr.h union {Int64 i; double d;} u; i 829 3rdparty/openexr/IlmImf/ImfXdr.h u.i = ((Int64) b[0] & 0x00000000000000ffULL) | i 83 3rdparty/openexr/IlmImf/b44ExpLogTable.cpp for (int i = 0; i < iMax; i++) i 86 3rdparty/openexr/IlmImf/b44ExpLogTable.cpp h.setBits (i); i 97 3rdparty/openexr/IlmImf/b44ExpLogTable.cpp if (i % 8 == 7) i 101 3rdparty/openexr/IlmImf/b44ExpLogTable.cpp if (i < iMax - 1) i 112 3rdparty/openexr/IlmImf/b44ExpLogTable.cpp for (int i = 0; i < iMax; i++) i 115 3rdparty/openexr/IlmImf/b44ExpLogTable.cpp h.setBits (i); i 124 3rdparty/openexr/IlmImf/b44ExpLogTable.cpp if (i % 8 == 7) i 128 3rdparty/openexr/IlmImf/b44ExpLogTable.cpp if (i < iMax - 1) i 244 3rdparty/openexr/IlmThread/IlmThreadPool.cpp for (size_t i = 0; i < numThreads; i++) i 254 3rdparty/openexr/IlmThread/IlmThreadPool.cpp for (list<WorkerThread*>::iterator i = threads.begin(); i 255 3rdparty/openexr/IlmThread/IlmThreadPool.cpp i != threads.end(); i 256 3rdparty/openexr/IlmThread/IlmThreadPool.cpp ++i) i 258 3rdparty/openexr/IlmThread/IlmThreadPool.cpp delete (*i); i 203 3rdparty/openexr/Imath/ImathBox.h for (unsigned int i = 0; i < min.dimensions(); i++) i 205 3rdparty/openexr/Imath/ImathBox.h if (point[i] < min[i]) i 206 3rdparty/openexr/Imath/ImathBox.h min[i] = point[i]; i 208 3rdparty/openexr/Imath/ImathBox.h if (point[i] > max[i]) i 209 3rdparty/openexr/Imath/ImathBox.h max[i] = point[i]; i 218 3rdparty/openexr/Imath/ImathBox.h for (unsigned int i = 0; i < min.dimensions(); i++) i 220 3rdparty/openexr/Imath/ImathBox.h if (box.min[i] < min[i]) i 221 3rdparty/openexr/Imath/ImathBox.h min[i] = box.min[i]; i 223 3rdparty/openexr/Imath/ImathBox.h if (box.max[i] > max[i]) i 224 3rdparty/openexr/Imath/ImathBox.h max[i] = box.max[i]; i 233 3rdparty/openexr/Imath/ImathBox.h for (unsigned int i = 0; i < min.dimensions(); i++) i 235 3rdparty/openexr/Imath/ImathBox.h if (point[i] < min[i] || point[i] > max[i]) i 247 3rdparty/openexr/Imath/ImathBox.h for (unsigned int i = 0; i < min.dimensions(); i++) i 249 3rdparty/openexr/Imath/ImathBox.h if (box.max[i] < min[i] || box.min[i] > max[i]) i 280 3rdparty/openexr/Imath/ImathBox.h for (unsigned int i = 0; i < min.dimensions(); i++) i 282 3rdparty/openexr/Imath/ImathBox.h if (max[i] < min[i]) i 293 3rdparty/openexr/Imath/ImathBox.h for (unsigned int i = 0; i < min.dimensions(); i++) i 295 3rdparty/openexr/Imath/ImathBox.h if (min[i] != T::baseTypeMin() || max[i] != T::baseTypeMax()) i 307 3rdparty/openexr/Imath/ImathBox.h for (unsigned int i = 0; i < min.dimensions(); i++) i 309 3rdparty/openexr/Imath/ImathBox.h if (max[i] <= min[i]) i 324 3rdparty/openexr/Imath/ImathBox.h for (unsigned int i = 1; i < min.dimensions(); i++) i 326 3rdparty/openexr/Imath/ImathBox.h if (s[i] > s[major]) i 327 3rdparty/openexr/Imath/ImathBox.h major = i; i 97 3rdparty/openexr/Imath/ImathBoxAlgo.h for (int i = 0; i < int (box.min.dimensions()); i++) i 99 3rdparty/openexr/Imath/ImathBoxAlgo.h if (p[i] < box.min[i]) i 100 3rdparty/openexr/Imath/ImathBoxAlgo.h q[i] = box.min[i]; i 101 3rdparty/openexr/Imath/ImathBoxAlgo.h else if (p[i] > box.max[i]) i 102 3rdparty/openexr/Imath/ImathBoxAlgo.h q[i] = box.max[i]; i 104 3rdparty/openexr/Imath/ImathBoxAlgo.h q[i] = p[i]; i 192 3rdparty/openexr/Imath/ImathBoxAlgo.h for (int i = 0; i < 3; i++) i 194 3rdparty/openexr/Imath/ImathBoxAlgo.h newBox.min[i] = newBox.max[i] = (S) m[3][i]; i 200 3rdparty/openexr/Imath/ImathBoxAlgo.h a = (S) m[j][i] * box.min[j]; i 201 3rdparty/openexr/Imath/ImathBoxAlgo.h b = (S) m[j][i] * box.max[j]; i 205 3rdparty/openexr/Imath/ImathBoxAlgo.h newBox.min[i] += a; i 206 3rdparty/openexr/Imath/ImathBoxAlgo.h newBox.max[i] += b; i 210 3rdparty/openexr/Imath/ImathBoxAlgo.h newBox.min[i] += b; i 211 3rdparty/openexr/Imath/ImathBoxAlgo.h newBox.max[i] += a; i 238 3rdparty/openexr/Imath/ImathBoxAlgo.h for (int i = 0; i < 8; i++) i 239 3rdparty/openexr/Imath/ImathBoxAlgo.h newBox.extendBy (points[i] * m); i 276 3rdparty/openexr/Imath/ImathBoxAlgo.h for (int i = 0; i < 3; i++) i 278 3rdparty/openexr/Imath/ImathBoxAlgo.h result.min[i] = result.max[i] = (S) m[3][i]; i 284 3rdparty/openexr/Imath/ImathBoxAlgo.h a = (S) m[j][i] * box.min[j]; i 285 3rdparty/openexr/Imath/ImathBoxAlgo.h b = (S) m[j][i] * box.max[j]; i 289 3rdparty/openexr/Imath/ImathBoxAlgo.h result.min[i] += a; i 290 3rdparty/openexr/Imath/ImathBoxAlgo.h result.max[i] += b; i 294 3rdparty/openexr/Imath/ImathBoxAlgo.h result.min[i] += b; i 295 3rdparty/openexr/Imath/ImathBoxAlgo.h result.max[i] += a; i 320 3rdparty/openexr/Imath/ImathBoxAlgo.h for (int i = 0; i < 8; i++) i 321 3rdparty/openexr/Imath/ImathBoxAlgo.h result.extendBy (points[i] * m); i 349 3rdparty/openexr/Imath/ImathBoxAlgo.h for (int i = 0; i < 3; i++) i 351 3rdparty/openexr/Imath/ImathBoxAlgo.h newBox.min[i] = newBox.max[i] = (S) m[3][i]; i 357 3rdparty/openexr/Imath/ImathBoxAlgo.h a = (S) m[j][i] * box.min[j]; i 358 3rdparty/openexr/Imath/ImathBoxAlgo.h b = (S) m[j][i] * box.max[j]; i 362 3rdparty/openexr/Imath/ImathBoxAlgo.h newBox.min[i] += a; i 363 3rdparty/openexr/Imath/ImathBoxAlgo.h newBox.max[i] += b; i 367 3rdparty/openexr/Imath/ImathBoxAlgo.h newBox.min[i] += b; i 368 3rdparty/openexr/Imath/ImathBoxAlgo.h newBox.max[i] += a; i 409 3rdparty/openexr/Imath/ImathBoxAlgo.h for (int i = 0; i < 3; i++) i 411 3rdparty/openexr/Imath/ImathBoxAlgo.h result.min[i] = result.max[i] = (S) m[3][i]; i 417 3rdparty/openexr/Imath/ImathBoxAlgo.h a = (S) m[j][i] * box.min[j]; i 418 3rdparty/openexr/Imath/ImathBoxAlgo.h b = (S) m[j][i] * box.max[j]; i 422 3rdparty/openexr/Imath/ImathBoxAlgo.h result.min[i] += a; i 423 3rdparty/openexr/Imath/ImathBoxAlgo.h result.max[i] += b; i 427 3rdparty/openexr/Imath/ImathBoxAlgo.h result.min[i] += b; i 428 3rdparty/openexr/Imath/ImathBoxAlgo.h result.max[i] += a; i 130 3rdparty/openexr/Imath/ImathColor.h T & operator [] (int i); i 131 3rdparty/openexr/Imath/ImathColor.h const T & operator [] (int i) const; i 445 3rdparty/openexr/Imath/ImathColor.h Color4<T>::operator [] (int i) i 447 3rdparty/openexr/Imath/ImathColor.h return (&r)[i]; i 452 3rdparty/openexr/Imath/ImathColor.h Color4<T>::operator [] (int i) const i 454 3rdparty/openexr/Imath/ImathColor.h return (&r)[i]; i 59 3rdparty/openexr/Imath/ImathColorAlgo.cpp int i = int(Math<double>::floor(hue)); i 60 3rdparty/openexr/Imath/ImathColorAlgo.cpp double f = hue-i; i 65 3rdparty/openexr/Imath/ImathColorAlgo.cpp switch (i) i 91 3rdparty/openexr/Imath/ImathColorAlgo.cpp int i = int(Math<double>::floor(hue)); i 92 3rdparty/openexr/Imath/ImathColorAlgo.cpp double f = hue-i; i 97 3rdparty/openexr/Imath/ImathColorAlgo.cpp switch (i) i 222 3rdparty/openexr/Imath/ImathEuler.h Euler(T i, T j, T k, Order o = Default, InputLayout l = IJKLayout); i 279 3rdparty/openexr/Imath/ImathEuler.h void angleOrder(int &i, int &j, int &k) const; i 286 3rdparty/openexr/Imath/ImathEuler.h void angleMapping(int &i, int &j, int &k) const; i 353 3rdparty/openexr/Imath/ImathEuler.h Euler<T>::angleOrder(int &i, int &j, int &k) const i 355 3rdparty/openexr/Imath/ImathEuler.h i = _initialAxis; i 356 3rdparty/openexr/Imath/ImathEuler.h j = _parityEven ? (i+1)%3 : (i > 0 ? i-1 : 2); i 357 3rdparty/openexr/Imath/ImathEuler.h k = _parityEven ? (i > 0 ? i-1 : 2) : (i+1)%3; i 362 3rdparty/openexr/Imath/ImathEuler.h Euler<T>::angleMapping(int &i, int &j, int &k) const i 369 3rdparty/openexr/Imath/ImathEuler.h i = m[0]; i 378 3rdparty/openexr/Imath/ImathEuler.h int i,j,k; i 379 3rdparty/openexr/Imath/ImathEuler.h angleMapping(i,j,k); i 380 3rdparty/openexr/Imath/ImathEuler.h (*this)[i] = v.x; i 389 3rdparty/openexr/Imath/ImathEuler.h int i,j,k; i 390 3rdparty/openexr/Imath/ImathEuler.h angleMapping(i,j,k); i 391 3rdparty/openexr/Imath/ImathEuler.h return Vec3<T>((*this)[i],(*this)[j],(*this)[k]); i 472 3rdparty/openexr/Imath/ImathEuler.h int i,j,k; i 473 3rdparty/openexr/Imath/ImathEuler.h angleOrder(i,j,k); i 481 3rdparty/openexr/Imath/ImathEuler.h x = Math<T>::atan2 (M[j][i], M[k][i]); i 490 3rdparty/openexr/Imath/ImathEuler.h r[i] = (_parityEven? -x: x); i 503 3rdparty/openexr/Imath/ImathEuler.h T sy = Math<T>::sqrt (N[j][i]*N[j][i] + N[k][i]*N[k][i]); i 504 3rdparty/openexr/Imath/ImathEuler.h y = Math<T>::atan2 (sy, N[i][i]); i 522 3rdparty/openexr/Imath/ImathEuler.h r[i] = (_parityEven? -x: x); i 535 3rdparty/openexr/Imath/ImathEuler.h T cy = Math<T>::sqrt (N[i][i]*N[i][i] + N[i][j]*N[i][j]); i 536 3rdparty/openexr/Imath/ImathEuler.h y = Math<T>::atan2 (-N[i][k], cy); i 537 3rdparty/openexr/Imath/ImathEuler.h z = Math<T>::atan2 (-N[j][i], N[j][j]); i 554 3rdparty/openexr/Imath/ImathEuler.h int i,j,k; i 555 3rdparty/openexr/Imath/ImathEuler.h angleOrder(i,j,k); i 563 3rdparty/openexr/Imath/ImathEuler.h x = Math<T>::atan2 (M[j][i], M[k][i]); i 572 3rdparty/openexr/Imath/ImathEuler.h r[i] = (_parityEven? -x: x); i 582 3rdparty/openexr/Imath/ImathEuler.h T sy = Math<T>::sqrt (N[j][i]*N[j][i] + N[k][i]*N[k][i]); i 583 3rdparty/openexr/Imath/ImathEuler.h y = Math<T>::atan2 (sy, N[i][i]); i 601 3rdparty/openexr/Imath/ImathEuler.h r[i] = (_parityEven? -x: x); i 611 3rdparty/openexr/Imath/ImathEuler.h T cy = Math<T>::sqrt (N[i][i]*N[i][i] + N[i][j]*N[i][j]); i 612 3rdparty/openexr/Imath/ImathEuler.h y = Math<T>::atan2 (-N[i][k], cy); i 613 3rdparty/openexr/Imath/ImathEuler.h z = Math<T>::atan2 (-N[j][i], N[j][j]); i 630 3rdparty/openexr/Imath/ImathEuler.h int i,j,k; i 631 3rdparty/openexr/Imath/ImathEuler.h angleOrder(i,j,k); i 656 3rdparty/openexr/Imath/ImathEuler.h M[i][i] = cj; M[j][i] = sj*si; M[k][i] = sj*ci; i 657 3rdparty/openexr/Imath/ImathEuler.h M[i][j] = sj*sh; M[j][j] = -cj*ss+cc; M[k][j] = -cj*cs-sc; i 658 3rdparty/openexr/Imath/ImathEuler.h M[i][k] = -sj*ch; M[j][k] = cj*sc+cs; M[k][k] = cj*cc-ss; i 662 3rdparty/openexr/Imath/ImathEuler.h M[i][i] = cj*ch; M[j][i] = sj*sc-cs; M[k][i] = sj*cc+ss; i 663 3rdparty/openexr/Imath/ImathEuler.h M[i][j] = cj*sh; M[j][j] = sj*ss+cc; M[k][j] = sj*cs-sc; i 664 3rdparty/openexr/Imath/ImathEuler.h M[i][k] = -sj; M[j][k] = cj*si; M[k][k] = cj*ci; i 673 3rdparty/openexr/Imath/ImathEuler.h int i,j,k; i 674 3rdparty/openexr/Imath/ImathEuler.h angleOrder(i,j,k); i 699 3rdparty/openexr/Imath/ImathEuler.h M[i][i] = cj; M[j][i] = sj*si; M[k][i] = sj*ci; i 700 3rdparty/openexr/Imath/ImathEuler.h M[i][j] = sj*sh; M[j][j] = -cj*ss+cc; M[k][j] = -cj*cs-sc; i 701 3rdparty/openexr/Imath/ImathEuler.h M[i][k] = -sj*ch; M[j][k] = cj*sc+cs; M[k][k] = cj*cc-ss; i 705 3rdparty/openexr/Imath/ImathEuler.h M[i][i] = cj*ch; M[j][i] = sj*sc-cs; M[k][i] = sj*cc+ss; i 706 3rdparty/openexr/Imath/ImathEuler.h M[i][j] = cj*sh; M[j][j] = sj*ss+cc; M[k][j] = sj*cs-sc; i 707 3rdparty/openexr/Imath/ImathEuler.h M[i][k] = -sj; M[j][k] = cj*si; M[k][k] = cj*ci; i 717 3rdparty/openexr/Imath/ImathEuler.h int i,j,k; i 718 3rdparty/openexr/Imath/ImathEuler.h angleOrder(i,j,k); i 746 3rdparty/openexr/Imath/ImathEuler.h a[i] = cj*(cs + sc); i 753 3rdparty/openexr/Imath/ImathEuler.h a[i] = cj*sc - sj*cs, i 833 3rdparty/openexr/Imath/ImathEuler.h int i,j,k; i 834 3rdparty/openexr/Imath/ImathEuler.h euler.angleOrder(i,j,k); i 836 3rdparty/openexr/Imath/ImathEuler.h if ( euler.initialRepeated() ) k = i; i 842 3rdparty/openexr/Imath/ImathEuler.h << a[i] << a[j] << a[k] << r << ")"; i 872 3rdparty/openexr/Imath/ImathEuler.h int i,j,k; i 874 3rdparty/openexr/Imath/ImathEuler.h e.angleOrder(i,j,k); i 879 3rdparty/openexr/Imath/ImathEuler.h otherXyzRot[i] = M_PI+xyzRot[i]; i 99 3rdparty/openexr/Imath/ImathFrame.h int i = fabs( t[0] ) < fabs( t[1] ) ? 0 : 1; i 100 3rdparty/openexr/Imath/ImathFrame.h if( fabs( t[2] ) < fabs( t[i] )) i = 2; i 102 3rdparty/openexr/Imath/ImathFrame.h Vec3<T> v( 0.0, 0.0, 0.0 ); v[i] = 1.0; i 199 3rdparty/openexr/Imath/ImathFrustumTest.h for (int i = 0; i < 2; ++i) i 201 3rdparty/openexr/Imath/ImathFrustumTest.h int index = i * 3; i 203 3rdparty/openexr/Imath/ImathFrustumTest.h planeNormX[i] = Vec3<T>(frustumPlanes[index + 0].normal.x, i 206 3rdparty/openexr/Imath/ImathFrustumTest.h planeNormY[i] = Vec3<T>(frustumPlanes[index + 0].normal.y, i 209 3rdparty/openexr/Imath/ImathFrustumTest.h planeNormZ[i] = Vec3<T>(frustumPlanes[index + 0].normal.z, i 213 3rdparty/openexr/Imath/ImathFrustumTest.h planeNormAbsX[i] = Vec3<T>(Imath::abs(planeNormX[i].x), i 214 3rdparty/openexr/Imath/ImathFrustumTest.h Imath::abs(planeNormX[i].y), i 215 3rdparty/openexr/Imath/ImathFrustumTest.h Imath::abs(planeNormX[i].z)); i 216 3rdparty/openexr/Imath/ImathFrustumTest.h planeNormAbsY[i] = Vec3<T>(Imath::abs(planeNormY[i].x), i 217 3rdparty/openexr/Imath/ImathFrustumTest.h Imath::abs(planeNormY[i].y), i 218 3rdparty/openexr/Imath/ImathFrustumTest.h Imath::abs(planeNormY[i].z)); i 219 3rdparty/openexr/Imath/ImathFrustumTest.h planeNormAbsZ[i] = Vec3<T>(Imath::abs(planeNormZ[i].x), i 220 3rdparty/openexr/Imath/ImathFrustumTest.h Imath::abs(planeNormZ[i].y), i 221 3rdparty/openexr/Imath/ImathFrustumTest.h Imath::abs(planeNormZ[i].z)); i 223 3rdparty/openexr/Imath/ImathFrustumTest.h planeOffsetVec[i] = Vec3<T>(frustumPlanes[index + 0].distance, i 44 3rdparty/openexr/Imath/ImathFun.cpp union {float f; int i;} u; i 47 3rdparty/openexr/Imath/ImathFun.cpp if ((u.i & 0x7f800000) == 0x7f800000) i 51 3rdparty/openexr/Imath/ImathFun.cpp else if (u.i == 0x00000000 || u.i == 0x80000000) i 55 3rdparty/openexr/Imath/ImathFun.cpp u.i = 0x00000001; i 57 3rdparty/openexr/Imath/ImathFun.cpp else if (u.i > 0) i 63 3rdparty/openexr/Imath/ImathFun.cpp ++u.i; i 69 3rdparty/openexr/Imath/ImathFun.cpp --u.i; i 79 3rdparty/openexr/Imath/ImathFun.cpp union {float f; int i;} u; i 82 3rdparty/openexr/Imath/ImathFun.cpp if ((u.i & 0x7f800000) == 0x7f800000) i 86 3rdparty/openexr/Imath/ImathFun.cpp else if (u.i == 0x00000000 || u.i == 0x80000000) i 90 3rdparty/openexr/Imath/ImathFun.cpp u.i = 0x80000001; i 92 3rdparty/openexr/Imath/ImathFun.cpp else if (u.i > 0) i 96 3rdparty/openexr/Imath/ImathFun.cpp --u.i; i 104 3rdparty/openexr/Imath/ImathFun.cpp ++u.i; i 114 3rdparty/openexr/Imath/ImathFun.cpp union {double d; Int64 i;} u; i 117 3rdparty/openexr/Imath/ImathFun.cpp if ((u.i & 0x7ff0000000000000LL) == 0x7ff0000000000000LL) i 121 3rdparty/openexr/Imath/ImathFun.cpp else if (u.i == 0x0000000000000000LL || u.i == 0x8000000000000000LL) i 125 3rdparty/openexr/Imath/ImathFun.cpp u.i = 0x0000000000000001LL; i 127 3rdparty/openexr/Imath/ImathFun.cpp else if (u.i > 0) i 133 3rdparty/openexr/Imath/ImathFun.cpp ++u.i; i 139 3rdparty/openexr/Imath/ImathFun.cpp --u.i; i 149 3rdparty/openexr/Imath/ImathFun.cpp union {double d; Int64 i;} u; i 152 3rdparty/openexr/Imath/ImathFun.cpp if ((u.i & 0x7ff0000000000000LL) == 0x7ff0000000000000LL) i 156 3rdparty/openexr/Imath/ImathFun.cpp else if (u.i == 0x0000000000000000LL || u.i == 0x8000000000000000LL) i 160 3rdparty/openexr/Imath/ImathFun.cpp u.i = 0x8000000000000001LL; i 162 3rdparty/openexr/Imath/ImathFun.cpp else if (u.i > 0) i 166 3rdparty/openexr/Imath/ImathFun.cpp --u.i; i 174 3rdparty/openexr/Imath/ImathFun.cpp ++u.i; i 249 3rdparty/openexr/Imath/ImathFun.h union {float f; int i;} u; i 252 3rdparty/openexr/Imath/ImathFun.h return (u.i & 0x7f800000) != 0x7f800000; i 258 3rdparty/openexr/Imath/ImathFun.h union {double d; Int64 i;} u; i 261 3rdparty/openexr/Imath/ImathFun.h return (u.i & 0x7ff0000000000000LL) != 0x7ff0000000000000LL; i 78 3rdparty/openexr/Imath/ImathMatrix.h T * operator [] (int i); i 79 3rdparty/openexr/Imath/ImathMatrix.h const T * operator [] (int i) const; i 103 3rdparty/openexr/Imath/ImathMatrix.h Matrix33 (T a, T b, T c, T d, T e, T f, T g, T h, T i); i 438 3rdparty/openexr/Imath/ImathMatrix.h T * operator [] (int i); i 439 3rdparty/openexr/Imath/ImathMatrix.h const T * operator [] (int i) const; i 467 3rdparty/openexr/Imath/ImathMatrix.h T i, T j, T k, T l, T m, T n, T o, T p); i 882 3rdparty/openexr/Imath/ImathMatrix.h Matrix33<T>::operator [] (int i) i 884 3rdparty/openexr/Imath/ImathMatrix.h return x[i]; i 889 3rdparty/openexr/Imath/ImathMatrix.h Matrix33<T>::operator [] (int i) const i 891 3rdparty/openexr/Imath/ImathMatrix.h return x[i]; i 928 3rdparty/openexr/Imath/ImathMatrix.h Matrix33<T>::Matrix33 (T a, T b, T c, T d, T e, T f, T g, T h, T i) i 938 3rdparty/openexr/Imath/ImathMatrix.h x[2][2] = i; i 1119 3rdparty/openexr/Imath/ImathMatrix.h for (int i = 0; i < 3; i++) i 1121 3rdparty/openexr/Imath/ImathMatrix.h if (!Imath::equalWithAbsError ((*this)[i][j], m[i][j], e)) i 1131 3rdparty/openexr/Imath/ImathMatrix.h for (int i = 0; i < 3; i++) i 1133 3rdparty/openexr/Imath/ImathMatrix.h if (!Imath::equalWithRelError ((*this)[i][j], m[i][j], e)) i 1314 3rdparty/openexr/Imath/ImathMatrix.h for (int i = 0; i < 3; i++) i 1317 3rdparty/openexr/Imath/ImathMatrix.h tmp.x[i][j] += x[i][k] * v.x[k][j]; i 1329 3rdparty/openexr/Imath/ImathMatrix.h for (int i = 0; i < 3; i++) i 1332 3rdparty/openexr/Imath/ImathMatrix.h tmp.x[i][j] += x[i][k] * v.x[k][j]; i 1442 3rdparty/openexr/Imath/ImathMatrix.h int i, j, k; i 1448 3rdparty/openexr/Imath/ImathMatrix.h for (i = 0; i < 2 ; i++) i 1450 3rdparty/openexr/Imath/ImathMatrix.h int pivot = i; i 1452 3rdparty/openexr/Imath/ImathMatrix.h T pivotsize = t[i][i]; i 1457 3rdparty/openexr/Imath/ImathMatrix.h for (j = i + 1; j < 3; j++) i 1459 3rdparty/openexr/Imath/ImathMatrix.h T tmp = t[j][i]; i 1479 3rdparty/openexr/Imath/ImathMatrix.h if (pivot != i) i 1485 3rdparty/openexr/Imath/ImathMatrix.h tmp = t[i][j]; i 1486 3rdparty/openexr/Imath/ImathMatrix.h t[i][j] = t[pivot][j]; i 1489 3rdparty/openexr/Imath/ImathMatrix.h tmp = s[i][j]; i 1490 3rdparty/openexr/Imath/ImathMatrix.h s[i][j] = s[pivot][j]; i 1495 3rdparty/openexr/Imath/ImathMatrix.h for (j = i + 1; j < 3; j++) i 1497 3rdparty/openexr/Imath/ImathMatrix.h T f = t[j][i] / t[i][i]; i 1501 3rdparty/openexr/Imath/ImathMatrix.h t[j][k] -= f * t[i][k]; i 1502 3rdparty/openexr/Imath/ImathMatrix.h s[j][k] -= f * s[i][k]; i 1509 3rdparty/openexr/Imath/ImathMatrix.h for (i = 2; i >= 0; --i) i 1513 3rdparty/openexr/Imath/ImathMatrix.h if ((f = t[i][i]) == 0) i 1523 3rdparty/openexr/Imath/ImathMatrix.h t[i][j] /= f; i 1524 3rdparty/openexr/Imath/ImathMatrix.h s[i][j] /= f; i 1527 3rdparty/openexr/Imath/ImathMatrix.h for (j = 0; j < i; j++) i 1529 3rdparty/openexr/Imath/ImathMatrix.h f = t[j][i]; i 1533 3rdparty/openexr/Imath/ImathMatrix.h t[j][k] -= f * t[i][k]; i 1534 3rdparty/openexr/Imath/ImathMatrix.h s[j][k] -= f * s[i][k]; i 1572 3rdparty/openexr/Imath/ImathMatrix.h for (int i = 0; i < 3; ++i) i 1576 3rdparty/openexr/Imath/ImathMatrix.h s[i][j] /= r; i 1584 3rdparty/openexr/Imath/ImathMatrix.h for (int i = 0; i < 3; ++i) i 1588 3rdparty/openexr/Imath/ImathMatrix.h if (mr > Imath::abs (s[i][j])) i 1590 3rdparty/openexr/Imath/ImathMatrix.h s[i][j] /= r; i 1623 3rdparty/openexr/Imath/ImathMatrix.h for (int i = 0; i < 2; ++i) i 1627 3rdparty/openexr/Imath/ImathMatrix.h s[i][j] /= r; i 1635 3rdparty/openexr/Imath/ImathMatrix.h for (int i = 0; i < 2; ++i) i 1639 3rdparty/openexr/Imath/ImathMatrix.h if (mr > Imath::abs (s[i][j])) i 1641 3rdparty/openexr/Imath/ImathMatrix.h s[i][j] /= r; i 1887 3rdparty/openexr/Imath/ImathMatrix.h Matrix44<T>::operator [] (int i) i 1889 3rdparty/openexr/Imath/ImathMatrix.h return x[i]; i 1894 3rdparty/openexr/Imath/ImathMatrix.h Matrix44<T>::operator [] (int i) const i 1896 3rdparty/openexr/Imath/ImathMatrix.h return x[i]; i 1942 3rdparty/openexr/Imath/ImathMatrix.h T i, T j, T k, T l, T m, T n, T o, T p) i 1952 3rdparty/openexr/Imath/ImathMatrix.h x[2][0] = i; i 2243 3rdparty/openexr/Imath/ImathMatrix.h for (int i = 0; i < 4; i++) i 2245 3rdparty/openexr/Imath/ImathMatrix.h if (!Imath::equalWithAbsError ((*this)[i][j], m[i][j], e)) i 2255 3rdparty/openexr/Imath/ImathMatrix.h for (int i = 0; i < 4; i++) i 2257 3rdparty/openexr/Imath/ImathMatrix.h if (!Imath::equalWithRelError ((*this)[i][j], m[i][j], e)) i 2711 3rdparty/openexr/Imath/ImathMatrix.h int i, j, k; i 2717 3rdparty/openexr/Imath/ImathMatrix.h for (i = 0; i < 3 ; i++) i 2719 3rdparty/openexr/Imath/ImathMatrix.h int pivot = i; i 2721 3rdparty/openexr/Imath/ImathMatrix.h T pivotsize = t[i][i]; i 2726 3rdparty/openexr/Imath/ImathMatrix.h for (j = i + 1; j < 4; j++) i 2728 3rdparty/openexr/Imath/ImathMatrix.h T tmp = t[j][i]; i 2748 3rdparty/openexr/Imath/ImathMatrix.h if (pivot != i) i 2754 3rdparty/openexr/Imath/ImathMatrix.h tmp = t[i][j]; i 2755 3rdparty/openexr/Imath/ImathMatrix.h t[i][j] = t[pivot][j]; i 2758 3rdparty/openexr/Imath/ImathMatrix.h tmp = s[i][j]; i 2759 3rdparty/openexr/Imath/ImathMatrix.h s[i][j] = s[pivot][j]; i 2764 3rdparty/openexr/Imath/ImathMatrix.h for (j = i + 1; j < 4; j++) i 2766 3rdparty/openexr/Imath/ImathMatrix.h T f = t[j][i] / t[i][i]; i 2770 3rdparty/openexr/Imath/ImathMatrix.h t[j][k] -= f * t[i][k]; i 2771 3rdparty/openexr/Imath/ImathMatrix.h s[j][k] -= f * s[i][k]; i 2778 3rdparty/openexr/Imath/ImathMatrix.h for (i = 3; i >= 0; --i) i 2782 3rdparty/openexr/Imath/ImathMatrix.h if ((f = t[i][i]) == 0) i 2792 3rdparty/openexr/Imath/ImathMatrix.h t[i][j] /= f; i 2793 3rdparty/openexr/Imath/ImathMatrix.h s[i][j] /= f; i 2796 3rdparty/openexr/Imath/ImathMatrix.h for (j = 0; j < i; j++) i 2798 3rdparty/openexr/Imath/ImathMatrix.h f = t[j][i]; i 2802 3rdparty/openexr/Imath/ImathMatrix.h t[j][k] -= f * t[i][k]; i 2803 3rdparty/openexr/Imath/ImathMatrix.h s[j][k] -= f * s[i][k]; i 2850 3rdparty/openexr/Imath/ImathMatrix.h for (int i = 0; i < 3; ++i) i 2854 3rdparty/openexr/Imath/ImathMatrix.h s[i][j] /= r; i 2862 3rdparty/openexr/Imath/ImathMatrix.h for (int i = 0; i < 3; ++i) i 2866 3rdparty/openexr/Imath/ImathMatrix.h if (mr > Imath::abs (s[i][j])) i 2868 3rdparty/openexr/Imath/ImathMatrix.h s[i][j] /= r; i 3213 3rdparty/openexr/Imath/ImathMatrix.h for (int i=0; i < 4; i++) i 3215 3rdparty/openexr/Imath/ImathMatrix.h x[2][i] += h[1] * x[0][i] + h[2] * x[1][i]; i 3216 3rdparty/openexr/Imath/ImathMatrix.h x[1][i] += h[0] * x[0][i]; i 3229 3rdparty/openexr/Imath/ImathMatrix.h for (int i=0; i < 4; i++) i 3231 3rdparty/openexr/Imath/ImathMatrix.h x[0][i] = P[0][i] + h.yx * P[1][i] + h.zx * P[2][i]; i 3232 3rdparty/openexr/Imath/ImathMatrix.h x[1][i] = h.xy * P[0][i] + P[1][i] + h.zy * P[2][i]; i 3233 3rdparty/openexr/Imath/ImathMatrix.h x[2][i] = h.xz * P[0][i] + h.yz * P[1][i] + P[2][i]; i 118 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp for (int i = 0; i < numPoints; ++i) i 120 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp Acenter += (V3d) A[i]; i 121 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp Bcenter += (V3d) B[i]; i 127 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp for (int i = 0; i < numPoints; ++i) i 129 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp const double w = weights[i]; i 132 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp Acenter += w * (V3d) A[i]; i 133 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp Bcenter += w * (V3d) B[i]; i 155 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp for (int i = 0; i < numPoints; ++i) i 156 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp C += outerProduct ((V3d) B[i] - Bcenter, (V3d) A[i] - Acenter); i 160 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp for (int i = 0; i < numPoints; ++i) i 162 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp const double w = weights[i]; i 163 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp C += outerProduct (w * ((V3d) B[i] - Bcenter), (V3d) A[i] - Acenter); i 200 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp for (int i = 0; i < numPoints; ++i) i 201 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp traceATA += ((V3d) A[i] - Acenter).length2(); i 205 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp for (int i = 0; i < numPoints; ++i) i 206 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp traceATA += ((double) weights[i]) * ((V3d) A[i] - Acenter).length2(); i 210 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp for (int i = 0; i < 3; ++i) i 212 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp traceBATQ += Qt[j][i] * C[i][j]; i 276 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp for (int i = 0; i < 3; ++i) i 278 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp const T tau1 = A[i][j]; i 279 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp const T tau2 = A[i][k]; i 280 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp A[i][j] = c * tau1 - s * tau2; i 281 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp A[i][k] = s * tau1 + c * tau2; i 293 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp for (int i = 0; i < 4; ++i) i 295 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp const T tau1 = A[i][j]; i 296 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp const T tau2 = A[i][k]; i 297 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp A[i][j] = c * tau1 - s * tau2; i 298 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp A[i][k] = s * tau1 + c * tau2; i 622 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp for (int i = 0; i < 3; ++i) i 623 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp std::swap (A[i][j], A[i][k]); i 645 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp for (int i = 0; i < 4; ++i) i 649 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp if (i != j) i 650 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp result = std::max (result, std::abs (A[i][j])); i 723 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp for (int i = 0; i < 3; ++i) i 725 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp if (S[i] < 0) i 729 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp S[i] = -S[i]; i 731 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp U[j][i] = -U[j][i]; i 737 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp for (int i = 0; i < 2; ++i) i 739 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp for (int j = 0; j < (2 - i); ++j) i 769 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp for (int i = 0; i < 3; ++i) i 770 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp U[i][2] = -U[i][2]; i 776 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp for (int i = 0; i < 3; ++i) i 777 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp V[i][2] = -V[i][2]; i 825 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp for (int i = 0; i < 4; ++i) i 827 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp if (S[i] < 0) i 831 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp S[i] = -S[i]; i 833 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp U[j][i] = -U[j][i]; i 838 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp for (int i = 1; i < 4; ++i) i 840 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp const Imath::Vec4<T> uCol (U[0][i], U[1][i], U[2][i], U[3][i]); i 841 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp const Imath::Vec4<T> vCol (V[0][i], V[1][i], V[2][i], V[3][i]); i 842 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp const T sVal = S[i]; i 844 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp int j = i - 1; i 881 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp for (int i = 0; i < 4; ++i) i 882 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp U[i][3] = -U[i][3]; i 888 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp for (int i = 0; i < 4; ++i) i 889 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp V[i][3] = -V[i][3]; i 958 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp for (unsigned int i = 0; i < TM::dimensions(); ++i) i 960 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp const T nu1 = A[i][j]; i 961 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp const T nu2 = A[i][k]; i 962 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp A[i][j] -= s * (nu2 + tau * nu1); i 963 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp A[i][k] += s * (nu1 - tau * nu2); i 1093 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp for (unsigned int i = 0; i < TM::dimensions(); ++i) i 1094 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp for (unsigned int j = i+1; j < TM::dimensions(); ++j) i 1095 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp result = std::max (result, std::abs (A[i][j])); i 1110 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp for(int i = 0; i < 3; ++i) { i 1111 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp S[i] = A[i][i]; i 1133 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp for(int i = 0; i < 3; ++i) { i 1134 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp A[i][i] = S[i] += Z[i]; i 1151 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp for(int i = 0; i < 4; ++i) { i 1152 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp S[i] = A[i][i]; i 1170 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp for(int i = 0; i < 4; ++i) { i 1171 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp A[i][i] = S[i] += Z[i]; i 1188 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp for(unsigned int i = 1; i < TV::dimensions(); ++i) i 1190 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp if(std::abs(S[i]) > std::abs(S[maxIdx])) i 1191 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp maxIdx = i; i 1194 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp for(unsigned int i = 0; i < TV::dimensions(); ++i) i 1195 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp V[i] = MV[i][maxIdx]; i 1207 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp for(unsigned int i = 1; i < TV::dimensions(); ++i) i 1209 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp if(std::abs(S[i]) < std::abs(S[minIdx])) i 1210 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp minIdx = i; i 1213 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp for(unsigned int i = 0; i < TV::dimensions(); ++i) i 1214 3rdparty/openexr/Imath/ImathMatrixAlgo.cpp V[i] = MV[i][minIdx]; i 493 3rdparty/openexr/Imath/ImathMatrixAlgo.h for (int i=0; i < 3; i++) i 495 3rdparty/openexr/Imath/ImathMatrixAlgo.h if (Imath::abs (row[i][j]) > maxVal) i 496 3rdparty/openexr/Imath/ImathMatrixAlgo.h maxVal = Imath::abs (row[i][j]); i 508 3rdparty/openexr/Imath/ImathMatrixAlgo.h for (int i=0; i < 3; i++) i 509 3rdparty/openexr/Imath/ImathMatrixAlgo.h if (! checkForZeroScaleInRow (maxVal, row[i], exc)) i 512 3rdparty/openexr/Imath/ImathMatrixAlgo.h row[i] /= maxVal; i 566 3rdparty/openexr/Imath/ImathMatrixAlgo.h for (int i=0; i < 3; i++) i 568 3rdparty/openexr/Imath/ImathMatrixAlgo.h scl[i] *= -1; i 569 3rdparty/openexr/Imath/ImathMatrixAlgo.h row[i] *= -1; i 574 3rdparty/openexr/Imath/ImathMatrixAlgo.h for (int i=0; i < 3; i++) i 576 3rdparty/openexr/Imath/ImathMatrixAlgo.h mat[i][0] = row[i][0]; i 577 3rdparty/openexr/Imath/ImathMatrixAlgo.h mat[i][1] = row[i][1]; i 578 3rdparty/openexr/Imath/ImathMatrixAlgo.h mat[i][2] = row[i][2]; i 598 3rdparty/openexr/Imath/ImathMatrixAlgo.h Vec3<T> i (mat[0][0], mat[0][1], mat[0][2]); i 602 3rdparty/openexr/Imath/ImathMatrixAlgo.h i.normalize(); i 606 3rdparty/openexr/Imath/ImathMatrixAlgo.h Matrix44<T> M (i[0], i[1], i[2], 0, i 645 3rdparty/openexr/Imath/ImathMatrixAlgo.h Vec3<T> i (mat[0][0], mat[0][1], mat[0][2]); i 649 3rdparty/openexr/Imath/ImathMatrixAlgo.h i.normalize(); i 653 3rdparty/openexr/Imath/ImathMatrixAlgo.h Matrix44<T> M (i[0], i[1], i[2], 0, i 692 3rdparty/openexr/Imath/ImathMatrixAlgo.h int i, j, k; i 710 3rdparty/openexr/Imath/ImathMatrixAlgo.h i = 0; i 712 3rdparty/openexr/Imath/ImathMatrixAlgo.h i=1; i 713 3rdparty/openexr/Imath/ImathMatrixAlgo.h if (mat[2][2] > mat[i][i]) i 714 3rdparty/openexr/Imath/ImathMatrixAlgo.h i=2; i 716 3rdparty/openexr/Imath/ImathMatrixAlgo.h j = nxt[i]; i 718 3rdparty/openexr/Imath/ImathMatrixAlgo.h s = Math<T>::sqrt ((mat[i][i] - (mat[j][j] + mat[k][k])) + T(1.0)); i 720 3rdparty/openexr/Imath/ImathMatrixAlgo.h q[i] = s * T(0.5); i 725 3rdparty/openexr/Imath/ImathMatrixAlgo.h q[j] = (mat[i][j] + mat[j][i]) * s; i 726 3rdparty/openexr/Imath/ImathMatrixAlgo.h q[k] = (mat[i][k] + mat[k][i]) * s; i 800 3rdparty/openexr/Imath/ImathMatrixAlgo.h for (int i = 0; i < 3; i++) i 802 3rdparty/openexr/Imath/ImathMatrixAlgo.h if ((abs (scl) < 1 && abs (row[i]) >= limits<T>::max() * abs (scl))) i 1167 3rdparty/openexr/Imath/ImathMatrixAlgo.h for (int i=0; i < 2; i++) i 1169 3rdparty/openexr/Imath/ImathMatrixAlgo.h if (Imath::abs (row[i][j]) > maxVal) i 1170 3rdparty/openexr/Imath/ImathMatrixAlgo.h maxVal = Imath::abs (row[i][j]); i 1182 3rdparty/openexr/Imath/ImathMatrixAlgo.h for (int i=0; i < 2; i++) i 1183 3rdparty/openexr/Imath/ImathMatrixAlgo.h if (! checkForZeroScaleInRow (maxVal, row[i], exc)) i 1186 3rdparty/openexr/Imath/ImathMatrixAlgo.h row[i] /= maxVal; i 1233 3rdparty/openexr/Imath/ImathMatrixAlgo.h for (int i=0; i < 2; i++) i 1235 3rdparty/openexr/Imath/ImathMatrixAlgo.h mat[i][0] = row[i][0]; i 1236 3rdparty/openexr/Imath/ImathMatrixAlgo.h mat[i][1] = row[i][1]; i 1253 3rdparty/openexr/Imath/ImathMatrixAlgo.h Vec2<T> i (mat[0][0], mat[0][1]); i 1256 3rdparty/openexr/Imath/ImathMatrixAlgo.h i.normalize(); i 1263 3rdparty/openexr/Imath/ImathMatrixAlgo.h rot = - Math<T>::atan2 (j[0], i[0]); i 1297 3rdparty/openexr/Imath/ImathMatrixAlgo.h for (int i = 0; i < 2; i++) i 1299 3rdparty/openexr/Imath/ImathMatrixAlgo.h if ((abs (scl) < 1 && abs (row[i]) >= limits<T>::max() * abs (scl))) i 88 3rdparty/openexr/Imath/ImathQuat.h Quat (T s, T i, T j, T k); i 247 3rdparty/openexr/Imath/ImathQuat.h Quat<T>::Quat (T s, T i, T j, T k): r (s), v (i, j, k) i 122 3rdparty/openexr/Imath/ImathRandom.cpp union {double d; Int64 i;} u; i 124 3rdparty/openexr/Imath/ImathRandom.cpp u.i = (Int64 (0x3ff) << 52) | // sign and exponent i 189 3rdparty/openexr/Imath/ImathRandom.cpp union {float f; unsigned int i;} u; i 191 3rdparty/openexr/Imath/ImathRandom.cpp u.i = 0x3f800000 | (_state & 0x7fffff); i 340 3rdparty/openexr/Imath/ImathRandom.h for (unsigned int i = 0; i < Vec::dimensions(); i++) i 341 3rdparty/openexr/Imath/ImathRandom.h v[i] = (typename Vec::BaseType) rand.nextf (-1, 1); i 358 3rdparty/openexr/Imath/ImathRandom.h for (unsigned int i = 0; i < Vec::dimensions(); i++) i 359 3rdparty/openexr/Imath/ImathRandom.h v[i] = (typename Vec::BaseType) rand.nextf (-1, 1); i 69 3rdparty/openexr/Imath/ImathShear.h T & operator [] (int i); i 70 3rdparty/openexr/Imath/ImathShear.h const T & operator [] (int i) const; i 255 3rdparty/openexr/Imath/ImathShear.h Shear6<T>::operator [] (int i) i 257 3rdparty/openexr/Imath/ImathShear.h return (&xy)[i]; i 262 3rdparty/openexr/Imath/ImathShear.h Shear6<T>::operator [] (int i) const i 264 3rdparty/openexr/Imath/ImathShear.h return (&xy)[i]; i 463 3rdparty/openexr/Imath/ImathShear.h for (int i = 0; i < 6; i++) i 464 3rdparty/openexr/Imath/ImathShear.h if (!Imath::equalWithAbsError ((*this)[i], h[i], e)) i 474 3rdparty/openexr/Imath/ImathShear.h for (int i = 0; i < 6; i++) i 475 3rdparty/openexr/Imath/ImathShear.h if (!Imath::equalWithRelError ((*this)[i], h[i], e)) i 61 3rdparty/openexr/Imath/ImathVec.cpp for (int i = 0; i < 2; i ++) i 63 3rdparty/openexr/Imath/ImathVec.cpp if (v[i] != 0) i 71 3rdparty/openexr/Imath/ImathVec.cpp axis = i; i 84 3rdparty/openexr/Imath/ImathVec.cpp for (int i = 0; i < 3; i ++) i 86 3rdparty/openexr/Imath/ImathVec.cpp if (v[i] != 0) i 94 3rdparty/openexr/Imath/ImathVec.cpp axis = i; i 107 3rdparty/openexr/Imath/ImathVec.cpp for (int i = 0; i < 4; i ++) i 109 3rdparty/openexr/Imath/ImathVec.cpp if (v[i] != 0) i 117 3rdparty/openexr/Imath/ImathVec.cpp axis = i; i 78 3rdparty/openexr/Imath/ImathVec.h T & operator [] (int i); i 79 3rdparty/openexr/Imath/ImathVec.h const T & operator [] (int i) const; i 276 3rdparty/openexr/Imath/ImathVec.h T & operator [] (int i); i 277 3rdparty/openexr/Imath/ImathVec.h const T & operator [] (int i) const; i 489 3rdparty/openexr/Imath/ImathVec.h T & operator [] (int i); i 490 3rdparty/openexr/Imath/ImathVec.h const T & operator [] (int i) const; i 853 3rdparty/openexr/Imath/ImathVec.h Vec2<T>::operator [] (int i) i 855 3rdparty/openexr/Imath/ImathVec.h return (&x)[i]; i 860 3rdparty/openexr/Imath/ImathVec.h Vec2<T>::operator [] (int i) const i 862 3rdparty/openexr/Imath/ImathVec.h return (&x)[i]; i 983 3rdparty/openexr/Imath/ImathVec.h for (int i = 0; i < 2; i++) i 984 3rdparty/openexr/Imath/ImathVec.h if (!Imath::equalWithAbsError ((*this)[i], v[i], e)) i 994 3rdparty/openexr/Imath/ImathVec.h for (int i = 0; i < 2; i++) i 995 3rdparty/openexr/Imath/ImathVec.h if (!Imath::equalWithRelError ((*this)[i], v[i], e)) i 1274 3rdparty/openexr/Imath/ImathVec.h Vec3<T>::operator [] (int i) i 1276 3rdparty/openexr/Imath/ImathVec.h return (&x)[i]; i 1281 3rdparty/openexr/Imath/ImathVec.h Vec3<T>::operator [] (int i) const i 1283 3rdparty/openexr/Imath/ImathVec.h return (&x)[i]; i 1446 3rdparty/openexr/Imath/ImathVec.h for (int i = 0; i < 3; i++) i 1447 3rdparty/openexr/Imath/ImathVec.h if (!Imath::equalWithAbsError ((*this)[i], v[i], e)) i 1457 3rdparty/openexr/Imath/ImathVec.h for (int i = 0; i < 3; i++) i 1458 3rdparty/openexr/Imath/ImathVec.h if (!Imath::equalWithRelError ((*this)[i], v[i], e)) i 1768 3rdparty/openexr/Imath/ImathVec.h Vec4<T>::operator [] (int i) i 1770 3rdparty/openexr/Imath/ImathVec.h return (&x)[i]; i 1775 3rdparty/openexr/Imath/ImathVec.h Vec4<T>::operator [] (int i) const i 1777 3rdparty/openexr/Imath/ImathVec.h return (&x)[i]; i 1867 3rdparty/openexr/Imath/ImathVec.h for (int i = 0; i < 4; i++) i 1868 3rdparty/openexr/Imath/ImathVec.h if (!Imath::equalWithAbsError ((*this)[i], v[i], e)) i 1878 3rdparty/openexr/Imath/ImathVec.h for (int i = 0; i < 4; i++) i 1879 3rdparty/openexr/Imath/ImathVec.h if (!Imath::equalWithRelError ((*this)[i], v[i], e)) i 18 3rdparty/zlib/adler32.c #define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;} i 19 3rdparty/zlib/adler32.c #define DO2(buf,i) DO1(buf,i); DO1(buf,i+1); i 20 3rdparty/zlib/adler32.c #define DO4(buf,i) DO2(buf,i); DO2(buf,i+2); i 21 3rdparty/zlib/adler32.c #define DO8(buf,i) DO4(buf,i); DO4(buf,i+4); i 324 3rdparty/zlib/trees.c # define SEPARATOR(i, last, width) \ i 325 3rdparty/zlib/trees.c ((i) == (last)? "\n};\n\n" : \ i 326 3rdparty/zlib/trees.c ((i) % (width) == (width)-1 ? ",\n" : ", ")) i 331 3rdparty/zlib/trees.c int i; i 338 3rdparty/zlib/trees.c for (i = 0; i < L_CODES+2; i++) { i 339 3rdparty/zlib/trees.c fprintf(header, "{{%3u},{%3u}}%s", static_ltree[i].Code, i 340 3rdparty/zlib/trees.c static_ltree[i].Len, SEPARATOR(i, L_CODES+1, 5)); i 344 3rdparty/zlib/trees.c for (i = 0; i < D_CODES; i++) { i 345 3rdparty/zlib/trees.c fprintf(header, "{{%2u},{%2u}}%s", static_dtree[i].Code, i 346 3rdparty/zlib/trees.c static_dtree[i].Len, SEPARATOR(i, D_CODES-1, 5)); i 350 3rdparty/zlib/trees.c for (i = 0; i < DIST_CODE_LEN; i++) { i 351 3rdparty/zlib/trees.c fprintf(header, "%2u%s", _dist_code[i], i 352 3rdparty/zlib/trees.c SEPARATOR(i, DIST_CODE_LEN-1, 20)); i 357 3rdparty/zlib/trees.c for (i = 0; i < MAX_MATCH-MIN_MATCH+1; i++) { i 358 3rdparty/zlib/trees.c fprintf(header, "%2u%s", _length_code[i], i 359 3rdparty/zlib/trees.c SEPARATOR(i, MAX_MATCH-MIN_MATCH, 20)); i 363 3rdparty/zlib/trees.c for (i = 0; i < LENGTH_CODES; i++) { i 364 3rdparty/zlib/trees.c fprintf(header, "%1u%s", base_length[i], i 365 3rdparty/zlib/trees.c SEPARATOR(i, LENGTH_CODES-1, 20)); i 369 3rdparty/zlib/trees.c for (i = 0; i < D_CODES; i++) { i 370 3rdparty/zlib/trees.c fprintf(header, "%5u%s", base_dist[i], i 371 3rdparty/zlib/trees.c SEPARATOR(i, D_CODES-1, 10)); i 169 apps/annotation/opencv_annotation.cpp for(int i = 1; i < argc; ++i ) i 171 apps/annotation/opencv_annotation.cpp if( !strcmp( argv[i], "-images" ) ) i 173 apps/annotation/opencv_annotation.cpp image_folder = argv[++i]; i 175 apps/annotation/opencv_annotation.cpp else if( !strcmp( argv[i], "-annotations" ) ) i 177 apps/annotation/opencv_annotation.cpp annotations = argv[++i]; i 192 apps/annotation/opencv_annotation.cpp for (size_t i = 0; i < filenames.size(); i++){ i 194 apps/annotation/opencv_annotation.cpp Mat current_image = imread(filenames[i]); i 202 apps/annotation/opencv_annotation.cpp output << filenames[i] << output_stream.str(); i 60 apps/createsamples/createsamples.cpp int i = 0; i 102 apps/createsamples/createsamples.cpp for( i = 1; i < argc; ++i ) i 104 apps/createsamples/createsamples.cpp if( !strcmp( argv[i], "-info" ) ) i 106 apps/createsamples/createsamples.cpp infoname = argv[++i]; i 108 apps/createsamples/createsamples.cpp else if( !strcmp( argv[i], "-img" ) ) i 110 apps/createsamples/createsamples.cpp imagename = argv[++i]; i 112 apps/createsamples/createsamples.cpp else if( !strcmp( argv[i], "-vec" ) ) i 114 apps/createsamples/createsamples.cpp vecname = argv[++i]; i 116 apps/createsamples/createsamples.cpp else if( !strcmp( argv[i], "-bg" ) ) i 118 apps/createsamples/createsamples.cpp bgfilename = argv[++i]; i 120 apps/createsamples/createsamples.cpp else if( !strcmp( argv[i], "-num" ) ) i 122 apps/createsamples/createsamples.cpp num = atoi( argv[++i] ); i 124 apps/createsamples/createsamples.cpp else if( !strcmp( argv[i], "-bgcolor" ) ) i 126 apps/createsamples/createsamples.cpp bgcolor = atoi( argv[++i] ); i 128 apps/createsamples/createsamples.cpp else if( !strcmp( argv[i], "-bgthresh" ) ) i 130 apps/createsamples/createsamples.cpp bgthreshold = atoi( argv[++i] ); i 132 apps/createsamples/createsamples.cpp else if( !strcmp( argv[i], "-inv" ) ) i 136 apps/createsamples/createsamples.cpp else if( !strcmp( argv[i], "-randinv" ) ) i 140 apps/createsamples/createsamples.cpp else if( !strcmp( argv[i], "-maxidev" ) ) i 142 apps/createsamples/createsamples.cpp maxintensitydev = atoi( argv[++i] ); i 144 apps/createsamples/createsamples.cpp else if( !strcmp( argv[i], "-maxxangle" ) ) i 146 apps/createsamples/createsamples.cpp maxxangle = atof( argv[++i] ); i 148 apps/createsamples/createsamples.cpp else if( !strcmp( argv[i], "-maxyangle" ) ) i 150 apps/createsamples/createsamples.cpp maxyangle = atof( argv[++i] ); i 152 apps/createsamples/createsamples.cpp else if( !strcmp( argv[i], "-maxzangle" ) ) i 154 apps/createsamples/createsamples.cpp maxzangle = atof( argv[++i] ); i 156 apps/createsamples/createsamples.cpp else if( !strcmp( argv[i], "-show" ) ) i 159 apps/createsamples/createsamples.cpp if( i+1 < argc && strlen( argv[i+1] ) > 0 && argv[i+1][0] != '-' ) i 162 apps/createsamples/createsamples.cpp d = strtod( argv[i+1], 0 ); i 164 apps/createsamples/createsamples.cpp ++i; i 167 apps/createsamples/createsamples.cpp else if( !strcmp( argv[i], "-w" ) ) i 169 apps/createsamples/createsamples.cpp width = atoi( argv[++i] ); i 171 apps/createsamples/createsamples.cpp else if( !strcmp( argv[i], "-h" ) ) i 173 apps/createsamples/createsamples.cpp height = atoi( argv[++i] ); i 193 apps/createsamples/utility.cpp int i; i 194 apps/createsamples/utility.cpp for( i = 0; i < 4; ++i ) i 196 apps/createsamples/utility.cpp a[i][0] = quad[i][0]; a[i][1] = quad[i][1]; a[i][2] = 1; i 197 apps/createsamples/utility.cpp a[i][3] = a[i][4] = a[i][5] = a[i][6] = a[i][7] = 0; i 198 apps/createsamples/utility.cpp b[i] = 0; i 200 apps/createsamples/utility.cpp for( i = 4; i < 8; ++i ) i 202 apps/createsamples/utility.cpp a[i][3] = quad[i-4][0]; a[i][4] = quad[i-4][1]; a[i][5] = 1; i 203 apps/createsamples/utility.cpp a[i][0] = a[i][1] = a[i][2] = a[i][6] = a[i][7] = 0; i 204 apps/createsamples/utility.cpp b[i] = 0; i 265 apps/createsamples/utility.cpp int i; i 290 apps/createsamples/utility.cpp for( i = 0; i < 4; ++i ) i 292 apps/createsamples/utility.cpp int ni = i + 1; if( ni == 4 ) ni = 0; i 293 apps/createsamples/utility.cpp int pi = i - 1; if( pi == -1 ) pi = 3; i 295 apps/createsamples/utility.cpp d = (quad[i][0] - quad[pi][0])*(quad[ni][1] - quad[i][1]) - i 296 apps/createsamples/utility.cpp (quad[i][1] - quad[pi][1])*(quad[ni][0] - quad[i][0]); i 316 apps/createsamples/utility.cpp for( i = 1; i < 4; ++i ) i 318 apps/createsamples/utility.cpp if( (quad[i][1] < quad[left][1]) || i 319 apps/createsamples/utility.cpp ((quad[i][1] == quad[left][1]) && (quad[i][0] < quad[left][0])) ) i 321 apps/createsamples/utility.cpp left = i; i 329 apps/createsamples/utility.cpp for( i = left; i < 4; ++i ) i 331 apps/createsamples/utility.cpp q[i-left][0] = quad[i][0]; i 332 apps/createsamples/utility.cpp q[i-left][1] = quad[i][1]; i 334 apps/createsamples/utility.cpp for( i = 0; i < left; ++i ) i 336 apps/createsamples/utility.cpp q[4-left+i][0] = quad[i][0]; i 337 apps/createsamples/utility.cpp q[4-left+i][1] = quad[i][1]; i 342 apps/createsamples/utility.cpp for( i = left; i >= 0; --i ) i 344 apps/createsamples/utility.cpp q[left-i][0] = quad[i][0]; i 345 apps/createsamples/utility.cpp q[left-i][1] = quad[i][1]; i 347 apps/createsamples/utility.cpp for( i = 3; i > left; --i ) i 349 apps/createsamples/utility.cpp q[4+left-i][0] = quad[i][0]; i 350 apps/createsamples/utility.cpp q[4+left-i][1] = quad[i][1]; i 495 apps/createsamples/utility.cpp int i; i 539 apps/createsamples/utility.cpp for( i = 0; i < 4; i++ ) i 541 apps/createsamples/utility.cpp rotVectData[0] = quad[i][0]; i 542 apps/createsamples/utility.cpp rotVectData[1] = quad[i][1]; i 545 apps/createsamples/utility.cpp quad[i][0] = vectData[0] * d / (d + vectData[2]) + halfw; i 546 apps/createsamples/utility.cpp quad[i][1] = vectData[1] * d / (d + vectData[2]) + halfh; i 975 apps/createsamples/utility.cpp int i = 0; i 995 apps/createsamples/utility.cpp for( i = 0; i < data->count; i++ ) i 1230 apps/createsamples/utility.cpp int i; i 1249 apps/createsamples/utility.cpp for( i = 0; i < count; i++ ) i 1283 apps/createsamples/utility.cpp if( i % 500 == 0 ) i 1285 apps/createsamples/utility.cpp printf( "\r%3d%%", 100 * i / count ); i 1337 apps/createsamples/utility.cpp int i; i 1366 apps/createsamples/utility.cpp for( i = 0; i < count; i++ ) i 1391 apps/createsamples/utility.cpp (i + 1), x, y, width, height ); i 1431 apps/createsamples/utility.cpp int i; i 1515 apps/createsamples/utility.cpp for( i = 0; (i < count) && (total < num); i++, total++ ) i 1607 apps/createsamples/utility.cpp int i; i 1668 apps/createsamples/utility.cpp for( i = 0; i < file.count; i++ ) i 108 apps/traincascade/HOGfeatures.cpp for (int i = 0; i < N_CELLS; i++) i 110 apps/traincascade/HOGfeatures.cpp rect[i] = Rect(0, 0, 0, 0); i 121 apps/traincascade/HOGfeatures.cpp for (int i = 0; i < N_CELLS; i++) i 123 apps/traincascade/HOGfeatures.cpp CV_SUM_OFFSETS(fastRect[i].p0, fastRect[i].p1, fastRect[i].p2, fastRect[i].p3, rect[i], offset); i 130 apps/traincascade/HOGfeatures.cpp for( int i = 0; i < N_CELLS; i++ ) i 132 apps/traincascade/HOGfeatures.cpp fs << "[:" << rect[i].x << rect[i].y << rect[i].width << rect[i].height << "]"; i 124 apps/traincascade/boost.cpp int i, idx_total, idx_selected = 0, step, type, prev = INT_MIN, is_sorted = 1; i 137 apps/traincascade/boost.cpp srci = idx_arr->data.i; i 152 apps/traincascade/boost.cpp for( i = 0; i < idx_total; i++ ) i 153 apps/traincascade/boost.cpp idx_selected += srcb[i*step] != 0; i 166 apps/traincascade/boost.cpp for( i = 0; i < idx_total; i++ ) i 168 apps/traincascade/boost.cpp int val = srci[i*step]; i 183 apps/traincascade/boost.cpp dsti = idx->data.i; i 187 apps/traincascade/boost.cpp for( i = 0; i < idx_total; i++ ) i 188 apps/traincascade/boost.cpp if( srcb[i*step] ) i 189 apps/traincascade/boost.cpp *dsti++ = i; i 193 apps/traincascade/boost.cpp for( i = 0; i < idx_total; i++ ) i 194 apps/traincascade/boost.cpp dsti[i] = srci[i*step]; i 204 apps/traincascade/boost.cpp for( i = 1; i < idx_total; i++ ) i 205 apps/traincascade/boost.cpp if( dsti[i] <= dsti[i-1] ) i 361 apps/traincascade/boost.cpp const int* sidx = isubsample_idx->data.i; i 362 apps/traincascade/boost.cpp for( int i = 0; i < sample_count; i++ ) i 364 apps/traincascade/boost.cpp if( sidx[i] != i ) i 379 apps/traincascade/boost.cpp int i; i 386 apps/traincascade/boost.cpp for( i = 0; i < var_count; i++ ) i 387 apps/traincascade/boost.cpp root->num_valid[i] = data_root->num_valid[i]; i 395 apps/traincascade/boost.cpp int* sidx = isubsample_idx->data.i; i 405 apps/traincascade/boost.cpp co = subsample_co->data.i; i 406 apps/traincascade/boost.cpp for( int i = 0; i < count; i++ ) i 407 apps/traincascade/boost.cpp co[sidx[i]*2]++; i 408 apps/traincascade/boost.cpp for( int i = 0; i < sample_count; i++ ) i 410 apps/traincascade/boost.cpp if( co[i*2] ) i 412 apps/traincascade/boost.cpp co[i*2+1] = cur_ofs; i 413 apps/traincascade/boost.cpp cur_ofs += co[i*2]; i 416 apps/traincascade/boost.cpp co[i*2+1] = -1; i 441 apps/traincascade/boost.cpp for( int i = 0; i < num_valid; i++ ) i 443 apps/traincascade/boost.cpp idx = src_idx[i]; i 452 apps/traincascade/boost.cpp int* idst_idx = buf->data.i + root->buf_idx*get_length_subbuf() + i 454 apps/traincascade/boost.cpp for( int i = 0; i < num_valid; i++ ) i 456 apps/traincascade/boost.cpp idx = src_idx[i]; i 471 apps/traincascade/boost.cpp for( int i = 0; i < count; i++ ) i 472 apps/traincascade/boost.cpp udst[i] = (unsigned short)src_lbls[sidx[i]]; i 476 apps/traincascade/boost.cpp int* idst = buf->data.i + root->buf_idx*get_length_subbuf() + i 478 apps/traincascade/boost.cpp for( int i = 0; i < count; i++ ) i 479 apps/traincascade/boost.cpp idst[i] = src_lbls[sidx[i]]; i 488 apps/traincascade/boost.cpp for( int i = 0; i < count; i++ ) i 489 apps/traincascade/boost.cpp sample_idx_dst[i] = (unsigned short)sample_idx_src[sidx[i]]; i 493 apps/traincascade/boost.cpp int* sample_idx_dst = buf->data.i + root->buf_idx*get_length_subbuf() + i 495 apps/traincascade/boost.cpp for( int i = 0; i < count; i++ ) i 496 apps/traincascade/boost.cpp sample_idx_dst[i] = sample_idx_src[sidx[i]]; i 529 apps/traincascade/boost.cpp var_type->data.i[vi] = vi; i 538 apps/traincascade/boost.cpp var_type->data.i[vi-1] = -vi; i 541 apps/traincascade/boost.cpp var_type->data.i[var_count] = cat_var_count; i 542 apps/traincascade/boost.cpp var_type->data.i[var_count+1] = cat_var_count+1; i 616 apps/traincascade/boost.cpp var_type->data.i[vi] = vi; i 625 apps/traincascade/boost.cpp var_type->data.i[vi-1] = -vi; i 628 apps/traincascade/boost.cpp var_type->data.i[var_count] = cat_var_count; i 629 apps/traincascade/boost.cpp var_type->data.i[var_count+1] = cat_var_count+1; i 682 apps/traincascade/boost.cpp idst = buf->data.i + (size_t)work_var_count*sample_count; i 694 apps/traincascade/boost.cpp cat_count->data.i[vi] = max_c_count; i 696 apps/traincascade/boost.cpp cat_count->data.i[cat_var_count] = 2; i 750 apps/traincascade/boost.cpp *sortedIndices = buf->data.i + n->buf_idx*get_length_subbuf() + (size_t)vi*sample_count + n->offset; i 755 apps/traincascade/boost.cpp for( int i = 0; i < nodeSampleCount; i++ ) i 756 apps/traincascade/boost.cpp sortedIndicesBuf[i] = shortIndices[i]; i 763 apps/traincascade/boost.cpp for( int i = 0; i < nodeSampleCount; i++ ) i 765 apps/traincascade/boost.cpp int idx = (*sortedIndices)[i]; i 767 apps/traincascade/boost.cpp ordValuesBuf[i] = valCache.at<float>( vi, idx); i 772 apps/traincascade/boost.cpp for( int i = 0; i < nodeSampleCount; i++ ) i 774 apps/traincascade/boost.cpp int idx = (*sortedIndices)[i]; i 776 apps/traincascade/boost.cpp ordValuesBuf[i] = (*featureEvaluator)( vi, idx); i 787 apps/traincascade/boost.cpp for( int i = 0; i < nodeSampleCount; i++ ) i 789 apps/traincascade/boost.cpp sortedIndicesBuf[i] = i; i 790 apps/traincascade/boost.cpp sampleValues[i] = valCache.at<float>( vi, sampleIndices[i] ); i 795 apps/traincascade/boost.cpp for( int i = 0; i < nodeSampleCount; i++ ) i 797 apps/traincascade/boost.cpp sortedIndicesBuf[i] = i; i 798 apps/traincascade/boost.cpp sampleValues[i] = (*featureEvaluator)( vi, sampleIndices[i]); i 802 apps/traincascade/boost.cpp for( int i = 0; i < nodeSampleCount; i++ ) i 803 apps/traincascade/boost.cpp ordValuesBuf[i] = (&sampleValues[0])[sortedIndicesBuf[i]]; i 818 apps/traincascade/boost.cpp for( int i = 0; i < nodeSampleCount; i++ ) i 819 apps/traincascade/boost.cpp catValuesBuf[i] = (int) valCache.at<float>( vi, sampleIndices[i]); i 825 apps/traincascade/boost.cpp for( int i = 0; i < nodeSampleCount; i++ ) i 826 apps/traincascade/boost.cpp catValuesBuf[i] = (int)(*featureEvaluator)( vi, sampleIndices[i] ); i 852 apps/traincascade/boost.cpp idst = _buf->data.i; i 890 apps/traincascade/boost.cpp idst = _buf->data.i; i 1028 apps/traincascade/boost.cpp for( int i = 0; i < subsetN; i++ ) i 1029 apps/traincascade/boost.cpp fs << tempNode->split->subset[i]; i 1062 apps/traincascade/boost.cpp for( size_t i = 0; i < rnode.size()/step; i++ ) i 1121 apps/traincascade/boost.cpp int* newIdx = data->split_buf->data.i; i 1132 apps/traincascade/boost.cpp for( int i = nl = nr = 0; i < n; i++ ) i 1134 apps/traincascade/boost.cpp int d = dir[i]; i 1136 apps/traincascade/boost.cpp newIdx[i] = (nl & (d-1)) | (nr & -d); // d ? ri : li i 1163 apps/traincascade/boost.cpp for(int i = 0; i < n; i++) i 1164 apps/traincascade/boost.cpp tempBuf[i] = src_sorted_idx[i]; i 1174 apps/traincascade/boost.cpp for( int i = 0; i < n1; i++ ) i 1176 apps/traincascade/boost.cpp int idx = tempBuf[i]; i 1195 apps/traincascade/boost.cpp ldst = buf->data.i + left->buf_idx*length_buf_row + i 1197 apps/traincascade/boost.cpp rdst = buf->data.i + right->buf_idx*length_buf_row + i 1201 apps/traincascade/boost.cpp for( int i = 0; i < n1; i++ ) i 1203 apps/traincascade/boost.cpp int idx = tempBuf[i]; i 1225 apps/traincascade/boost.cpp for(int i = 0; i < n; i++) i 1226 apps/traincascade/boost.cpp tempBuf[i] = src_lbls[i]; i 1235 apps/traincascade/boost.cpp for( int i = 0; i < n; i++ ) i 1237 apps/traincascade/boost.cpp int idx = tempBuf[i]; i 1238 apps/traincascade/boost.cpp if (dir[i]) i 1253 apps/traincascade/boost.cpp int *ldst = buf->data.i + left->buf_idx*length_buf_row + i 1255 apps/traincascade/boost.cpp int *rdst = buf->data.i + right->buf_idx*length_buf_row + i 1258 apps/traincascade/boost.cpp for( int i = 0; i < n; i++ ) i 1260 apps/traincascade/boost.cpp int idx = tempBuf[i]; i 1261 apps/traincascade/boost.cpp if (dir[i]) i 1278 apps/traincascade/boost.cpp for(int i = 0; i < n; i++) i 1279 apps/traincascade/boost.cpp tempBuf[i] = sampleIdx_src[i]; i 1287 apps/traincascade/boost.cpp for (int i = 0; i < n; i++) i 1289 apps/traincascade/boost.cpp unsigned short idx = (unsigned short)tempBuf[i]; i 1290 apps/traincascade/boost.cpp if (dir[i]) i 1304 apps/traincascade/boost.cpp int* ldst = buf->data.i + left->buf_idx*length_buf_row + i 1306 apps/traincascade/boost.cpp int* rdst = buf->data.i + right->buf_idx*length_buf_row + i 1308 apps/traincascade/boost.cpp for (int i = 0; i < n; i++) i 1310 apps/traincascade/boost.cpp int idx = tempBuf[i]; i 1311 apps/traincascade/boost.cpp if (dir[i]) i 1410 apps/traincascade/boost.cpp for( int i = 0; i < weak->total; i++ ) i 1477 apps/traincascade/boost.cpp for( int i = 0; i < n; i++ ) i 1480 apps/traincascade/boost.cpp orig_response->data.i[i] = classLabels[i]*2 - 1; i 1483 apps/traincascade/boost.cpp subsample_mask->data.ptr[i] = (uchar)1; i 1485 apps/traincascade/boost.cpp weights->data.db[i] = w0*p[classLabels[i]]; i 1488 apps/traincascade/boost.cpp labels[i] = (unsigned short)i; i 1493 apps/traincascade/boost.cpp int* labels = buf->data.i + data->data_root->buf_idx*length_buf_row + i 1496 apps/traincascade/boost.cpp for( int i = 0; i < n; i++ ) i 1499 apps/traincascade/boost.cpp orig_response->data.i[i] = classLabels[i]*2 - 1; i 1500 apps/traincascade/boost.cpp subsample_mask->data.ptr[i] = (uchar)1; i 1501 apps/traincascade/boost.cpp weights->data.db[i] = w0*p[classLabels[i]]; i 1502 apps/traincascade/boost.cpp labels[i] = i; i 1510 apps/traincascade/boost.cpp for( int i = 0; i < n; i++ ) i 1512 apps/traincascade/boost.cpp sum_response->data.db[i] = 0; i 1513 apps/traincascade/boost.cpp fdata[sampleIdx[i]*step] = orig_response->data.i[i] > 0 ? 2.f : -2.f; i 1522 apps/traincascade/boost.cpp for( int i = 0; i < n; i++ ) i 1523 apps/traincascade/boost.cpp fdata[sampleIdx[i]*step] = (float)orig_response->data.i[i]; i 1538 apps/traincascade/boost.cpp for( int i = 0; i < n; i++ ) i 1539 apps/traincascade/boost.cpp if( subsample_mask->data.ptr[i] ) i 1541 apps/traincascade/boost.cpp weak_eval->data.db[i] = ((CvCascadeBoostTree*)tree)->predict( i )->value; i 1557 apps/traincascade/boost.cpp for( int i = 0; i < n; i++ ) i 1559 apps/traincascade/boost.cpp double w = weights->data.db[i]; i 1561 apps/traincascade/boost.cpp err += w*(weak_eval->data.db[i] != orig_response->data.i[i]); i 1570 apps/traincascade/boost.cpp for( int i = 0; i < n; i++ ) i 1572 apps/traincascade/boost.cpp double w = weights->data.db[i]* i 1573 apps/traincascade/boost.cpp scale[weak_eval->data.db[i] != orig_response->data.i[i]]; i 1575 apps/traincascade/boost.cpp weights->data.db[i] = w; i 1586 apps/traincascade/boost.cpp for( int i = 0; i < n; i++ ) i 1587 apps/traincascade/boost.cpp weak_eval->data.db[i] *= -orig_response->data.i[i]; i 1591 apps/traincascade/boost.cpp for( int i = 0; i < n; i++ ) i 1593 apps/traincascade/boost.cpp double w = weights->data.db[i]*weak_eval->data.db[i]; i 1595 apps/traincascade/boost.cpp weights->data.db[i] = w; i 1613 apps/traincascade/boost.cpp for( int i = 0; i < n; i++ ) i 1615 apps/traincascade/boost.cpp double s = sum_response->data.db[i] + 0.5*weak_eval->data.db[i]; i 1616 apps/traincascade/boost.cpp sum_response->data.db[i] = s; i 1617 apps/traincascade/boost.cpp weak_eval->data.db[i] = -2*s; i 1622 apps/traincascade/boost.cpp for( int i = 0; i < n; i++ ) i 1624 apps/traincascade/boost.cpp double p = 1./(1. + weak_eval->data.db[i]); i 1627 apps/traincascade/boost.cpp weights->data.db[i] = w; i 1629 apps/traincascade/boost.cpp if( orig_response->data.i[i] > 0 ) i 1632 apps/traincascade/boost.cpp fdata[sampleIdx[i]*step] = (float)min(z, lbZMax); i 1637 apps/traincascade/boost.cpp fdata[sampleIdx[i]*step] = (float)-min(z, lbZMax); i 1648 apps/traincascade/boost.cpp for( int i = 0; i < n; i++ ) i 1649 apps/traincascade/boost.cpp weak_eval->data.db[i] *= -orig_response->data.i[i]; i 1653 apps/traincascade/boost.cpp for( int i = 0; i < n; i++ ) i 1655 apps/traincascade/boost.cpp double w = weights->data.db[i] * weak_eval->data.db[i]; i 1656 apps/traincascade/boost.cpp weights->data.db[i] = w; i 1666 apps/traincascade/boost.cpp for( int i = 0; i < n; ++i ) i 1667 apps/traincascade/boost.cpp weights->data.db[i] *= sumW; i 1677 apps/traincascade/boost.cpp for( int i = 0; i < sCount; i++ ) i 1678 apps/traincascade/boost.cpp if( ((CvCascadeBoostTrainData*)data)->featureEvaluator->getCls( i ) == 1.0F ) i 1679 apps/traincascade/boost.cpp eval[numPos++] = predict( i, true ); i 1687 apps/traincascade/boost.cpp for( int i = thresholdIdx - 1; i >= 0; i--) i 1688 apps/traincascade/boost.cpp if ( abs( eval[i] - threshold) < FLT_EPSILON ) i 1692 apps/traincascade/boost.cpp for( int i = 0; i < sCount; i++ ) i 1694 apps/traincascade/boost.cpp if( ((CvCascadeBoostTrainData*)data)->featureEvaluator->getCls( i ) == 0.0F ) i 1697 apps/traincascade/boost.cpp if( predict( i ) ) i 71 apps/traincascade/cascadeclassifier.cpp for( int i = 0; i < (int)(sizeof(stageTypes)/sizeof(stageTypes[0])); i++ ) i 73 apps/traincascade/cascadeclassifier.cpp cout << (i ? " | " : "") << stageTypes[i]; i 74 apps/traincascade/cascadeclassifier.cpp if ( i == defaultStageType ) i 80 apps/traincascade/cascadeclassifier.cpp for( int i = 0; i < (int)(sizeof(featureTypes)/sizeof(featureTypes[0])); i++ ) i 82 apps/traincascade/cascadeclassifier.cpp cout << (i ? ", " : "") << featureTypes[i]; i 83 apps/traincascade/cascadeclassifier.cpp if ( i == defaultStageType ) i 104 apps/traincascade/cascadeclassifier.cpp for( int i = 0; i < (int)(sizeof(stageTypes)/sizeof(stageTypes[0])); i++ ) i 105 apps/traincascade/cascadeclassifier.cpp if( !val.compare( stageTypes[i] ) ) i 106 apps/traincascade/cascadeclassifier.cpp stageType = i; i 110 apps/traincascade/cascadeclassifier.cpp for( int i = 0; i < (int)(sizeof(featureTypes)/sizeof(featureTypes[0])); i++ ) i 111 apps/traincascade/cascadeclassifier.cpp if( !val.compare( featureTypes[i] ) ) i 112 apps/traincascade/cascadeclassifier.cpp featureType = i; i 204 apps/traincascade/cascadeclassifier.cpp for( int i = startNumStages; i < numStages; i++ ) i 206 apps/traincascade/cascadeclassifier.cpp cout << endl << "===== TRAINING " << i << "-stage =====" << endl; i 239 apps/traincascade/cascadeclassifier.cpp if( i == 0) i 255 apps/traincascade/cascadeclassifier.cpp sprintf(buf, "%s%d", "stage", i ); i 324 apps/traincascade/cascadeclassifier.cpp for( int i = first; i < first + count; i++ ) i 334 apps/traincascade/cascadeclassifier.cpp featureEvaluator->setImage( img, isPositive ? 1 : 0, i ); i 335 apps/traincascade/cascadeclassifier.cpp if( predict( i ) == 1.0F ) i 361 apps/traincascade/cascadeclassifier.cpp int i = 0; i 364 apps/traincascade/cascadeclassifier.cpp it != stageClassifiers.end(); it++, i++ ) i 366 apps/traincascade/cascadeclassifier.cpp sprintf( cmnt, "stage %d", i ); i 399 apps/traincascade/cascadeclassifier.cpp for( int i = 0; i < min( (int)rnode.size(), numStages ); i++, it++ ) i 54 apps/traincascade/imagestorage.cpp for( size_t i = 0; i < count; i++ ) i 366 apps/traincascade/old_ml.hpp typedef bool (CvSVMSolver::*SelectWorkingSet)( int& i, int& j ); i 367 apps/traincascade/old_ml.hpp typedef float* (CvSVMSolver::*GetRow)( int i, float* row, float* dst, bool existed ); i 403 apps/traincascade/old_ml.hpp virtual float* get_row_base( int i, bool* _existed ); i 404 apps/traincascade/old_ml.hpp virtual float* get_row( int i, float* dst ); i 436 apps/traincascade/old_ml.hpp virtual bool select_working_set( int& i, int& j ); i 437 apps/traincascade/old_ml.hpp virtual bool select_working_set_nu_svm( int& i, int& j ); i 441 apps/traincascade/old_ml.hpp virtual float* get_row_svc( int i, float* row, float* dst, bool existed ); i 442 apps/traincascade/old_ml.hpp virtual float* get_row_one_class( int i, float* row, float* dst, bool existed ); i 443 apps/traincascade/old_ml.hpp virtual float* get_row_svr( int i, float* row, float* dst, bool existed ); i 516 apps/traincascade/old_ml.hpp virtual const float* get_support_vector(int i) const; i 570 apps/traincascade/old_ml.hpp int* i; i 959 apps/traincascade/old_ml.hpp CvForestTree* get_tree(int i) const; i 172 apps/traincascade/old_ml_boost.cpp int i, count = node->sample_count; i 175 apps/traincascade/old_ml_boost.cpp for( i = 0; i < count; i++ ) i 176 apps/traincascade/old_ml_boost.cpp weak_eval[labels[i]] = value; i 186 apps/traincascade/old_ml_boost.cpp int i, n = node->sample_count, vi = node->split->var_idx; i 198 apps/traincascade/old_ml_boost.cpp for( i = 0; i < n; i++ ) i 200 apps/traincascade/old_ml_boost.cpp int idx = ((cat_labels[i] == 65535) && data->is_buf_16u) ? -1 : cat_labels[i]; i 201 apps/traincascade/old_ml_boost.cpp double w = weights[i]; i 204 apps/traincascade/old_ml_boost.cpp dir[i] = (char)d; i 225 apps/traincascade/old_ml_boost.cpp for( i = 0; i <= split_point; i++ ) i 227 apps/traincascade/old_ml_boost.cpp int idx = sorted_indices[i]; i 233 apps/traincascade/old_ml_boost.cpp for( ; i < n1; i++ ) i 235 apps/traincascade/old_ml_boost.cpp int idx = sorted_indices[i]; i 241 apps/traincascade/old_ml_boost.cpp for( ; i < n; i++ ) i 242 apps/traincascade/old_ml_boost.cpp dir[sorted_indices[i]] = (char)0; i 274 apps/traincascade/old_ml_boost.cpp int i, best_i = -1; i 280 apps/traincascade/old_ml_boost.cpp for( i = n1; i < n; i++ ) i 282 apps/traincascade/old_ml_boost.cpp int idx = sorted_indices[i]; i 295 apps/traincascade/old_ml_boost.cpp for( i = 0; i < n1 - 1; i++ ) i 297 apps/traincascade/old_ml_boost.cpp int idx = sorted_indices[i]; i 307 apps/traincascade/old_ml_boost.cpp if( values[i] + epsilon < values[i+1] ) i 313 apps/traincascade/old_ml_boost.cpp best_i = i; i 320 apps/traincascade/old_ml_boost.cpp for( i = 0; i < n1 - 1; i++ ) i 322 apps/traincascade/old_ml_boost.cpp int idx = sorted_indices[i]; i 328 apps/traincascade/old_ml_boost.cpp if( values[i] + epsilon < values[i+1] ) i 335 apps/traincascade/old_ml_boost.cpp best_i = i; i 366 apps/traincascade/old_ml_boost.cpp int mi = data->cat_count->data.i[ci]; i 384 apps/traincascade/old_ml_boost.cpp int i, j, k, idx; i 396 apps/traincascade/old_ml_boost.cpp for( i = 0; i < n; i++ ) i 398 apps/traincascade/old_ml_boost.cpp double w = weights[i]; i 399 apps/traincascade/old_ml_boost.cpp j = ((cat_labels[i] == 65535) && data->is_buf_16u) ? -1 : cat_labels[i]; i 400 apps/traincascade/old_ml_boost.cpp k = responses[i]; i 472 apps/traincascade/old_ml_boost.cpp for( i = 0; i <= best_subset; i++ ) i 474 apps/traincascade/old_ml_boost.cpp idx = (int)(dbl_ptr[i] - cjk) >> 1; i 504 apps/traincascade/old_ml_boost.cpp int i, best_i = -1; i 509 apps/traincascade/old_ml_boost.cpp for( i = n1; i < n; i++ ) i 511 apps/traincascade/old_ml_boost.cpp int idx = indices[i]; i 518 apps/traincascade/old_ml_boost.cpp for( i = 0; i < n1 - 1; i++ ) i 520 apps/traincascade/old_ml_boost.cpp int idx = indices[i]; i 526 apps/traincascade/old_ml_boost.cpp if( values[i] + epsilon < values[i+1] ) i 532 apps/traincascade/old_ml_boost.cpp best_i = i; i 557 apps/traincascade/old_ml_boost.cpp int mi = data->cat_count->data.i[ci]; i 575 apps/traincascade/old_ml_boost.cpp int i, best_subset = -1, subset_i; i 577 apps/traincascade/old_ml_boost.cpp for( i = -1; i < mi; i++ ) i 578 apps/traincascade/old_ml_boost.cpp sum[i] = counts[i] = 0; i 581 apps/traincascade/old_ml_boost.cpp for( i = 0; i < n; i++ ) i 583 apps/traincascade/old_ml_boost.cpp int idx = ((cat_labels[i] == 65535) && data->is_buf_16u) ? -1 : cat_labels[i]; i 584 apps/traincascade/old_ml_boost.cpp double w = weights[i]; i 585 apps/traincascade/old_ml_boost.cpp double s = sum[idx] + responses[i]*w; i 592 apps/traincascade/old_ml_boost.cpp for( i = 0; i < mi; i++ ) i 594 apps/traincascade/old_ml_boost.cpp R += counts[i]; i 595 apps/traincascade/old_ml_boost.cpp rsum += sum[i]; i 596 apps/traincascade/old_ml_boost.cpp sum[i] = fabs(counts[i]) > DBL_EPSILON ? sum[i]/counts[i] : 0; i 597 apps/traincascade/old_ml_boost.cpp sum_ptr[i] = sum + i; i 604 apps/traincascade/old_ml_boost.cpp for( i = 0; i < mi; i++ ) i 605 apps/traincascade/old_ml_boost.cpp sum[i] *= counts[i]; i 637 apps/traincascade/old_ml_boost.cpp for( i = 0; i <= best_subset; i++ ) i 639 apps/traincascade/old_ml_boost.cpp int idx = (int)(sum_ptr[i] - sum); i 670 apps/traincascade/old_ml_boost.cpp int i, best_i = -1, best_inversed = 0; i 677 apps/traincascade/old_ml_boost.cpp for( i = 0; i < n1; i++ ) i 679 apps/traincascade/old_ml_boost.cpp int idx = indices[i]; i 692 apps/traincascade/old_ml_boost.cpp for( i = 0; i < n1 - 1; i++ ) i 694 apps/traincascade/old_ml_boost.cpp int idx = indices[i]; i 701 apps/traincascade/old_ml_boost.cpp if( LL + RR > best_val && values[i] + epsilon < values[i+1] ) i 704 apps/traincascade/old_ml_boost.cpp best_i = i; best_inversed = 0; i 710 apps/traincascade/old_ml_boost.cpp if( RL + LR > best_val && values[i] + epsilon < values[i+1] ) i 713 apps/traincascade/old_ml_boost.cpp best_i = i; best_inversed = 1; i 730 apps/traincascade/old_ml_boost.cpp int i, mi = data->cat_count->data.i[data->get_var_type(vi)]; i 749 apps/traincascade/old_ml_boost.cpp for( i = -1; i < mi; i++ ) i 750 apps/traincascade/old_ml_boost.cpp lc[i] = rc[i] = 0; i 754 apps/traincascade/old_ml_boost.cpp for( i = 0; i < n; i++ ) i 756 apps/traincascade/old_ml_boost.cpp int idx = ((cat_labels[i] == 65535) && data->is_buf_16u) ? -1 : cat_labels[i]; i 757 apps/traincascade/old_ml_boost.cpp double w = weights[i]; i 758 apps/traincascade/old_ml_boost.cpp int d = dir[i]; i 764 apps/traincascade/old_ml_boost.cpp for( i = 0; i < mi; i++ ) i 766 apps/traincascade/old_ml_boost.cpp double sum = lc[i]; i 767 apps/traincascade/old_ml_boost.cpp double sum_abs = rc[i]; i 768 apps/traincascade/old_ml_boost.cpp lc[i] = (sum_abs - sum) * 0.5; i 769 apps/traincascade/old_ml_boost.cpp rc[i] = (sum_abs + sum) * 0.5; i 774 apps/traincascade/old_ml_boost.cpp for( i = 0; i < mi; i++ ) i 776 apps/traincascade/old_ml_boost.cpp double lval = lc[i], rval = rc[i]; i 779 apps/traincascade/old_ml_boost.cpp split->subset[i >> 5] |= 1 << (i & 31); i 797 apps/traincascade/old_ml_boost.cpp int i, n = node->sample_count; i 811 apps/traincascade/old_ml_boost.cpp int* cls_count = data->counts->data.i; i 815 apps/traincascade/old_ml_boost.cpp for( i = 0; i < n; i++ ) i 817 apps/traincascade/old_ml_boost.cpp int idx = labels[i]; i 819 apps/traincascade/old_ml_boost.cpp int r = _responses[i]; i 822 apps/traincascade/old_ml_boost.cpp subtree_weights[i] = w; i 853 apps/traincascade/old_ml_boost.cpp for( i = 0; i < n; i++ ) i 855 apps/traincascade/old_ml_boost.cpp int idx = labels[i]; i 857 apps/traincascade/old_ml_boost.cpp double t = values[i]; i 859 apps/traincascade/old_ml_boost.cpp subtree_weights[i] = w; i 918 apps/traincascade/old_ml_boost.cpp int i, count = cvSliceLength( slice, weak ); i 923 apps/traincascade/old_ml_boost.cpp for( i = 0; i < count; i++ ) i 1034 apps/traincascade/old_ml_boost.cpp int i; i 1065 apps/traincascade/old_ml_boost.cpp for( i = 0; i < params.weak_count; i++ ) i 1134 apps/traincascade/old_ml_boost.cpp int i, n = data->sample_count; i 1192 apps/traincascade/old_ml_boost.cpp for( i = 0; i < n; i++ ) i 1193 apps/traincascade/old_ml_boost.cpp c1 += class_labels[i]; i 1204 apps/traincascade/old_ml_boost.cpp for( i = 0; i < n; i++ ) i 1207 apps/traincascade/old_ml_boost.cpp orig_response->data.i[i] = class_labels[i]*2 - 1; i 1210 apps/traincascade/old_ml_boost.cpp subsample_mask->data.ptr[i] = (uchar)1; i 1212 apps/traincascade/old_ml_boost.cpp weights->data.db[i] = w0*p[class_labels[i]]; i 1215 apps/traincascade/old_ml_boost.cpp labels[i] = (unsigned short)i; i 1220 apps/traincascade/old_ml_boost.cpp int* labels = dtree_data_buf->data.i + data->data_root->buf_idx*length_buf_row + i 1223 apps/traincascade/old_ml_boost.cpp for( i = 0; i < n; i++ ) i 1226 apps/traincascade/old_ml_boost.cpp orig_response->data.i[i] = class_labels[i]*2 - 1; i 1229 apps/traincascade/old_ml_boost.cpp subsample_mask->data.ptr[i] = (uchar)1; i 1231 apps/traincascade/old_ml_boost.cpp weights->data.db[i] = w0*p[class_labels[i]]; i 1234 apps/traincascade/old_ml_boost.cpp labels[i] = i; i 1242 apps/traincascade/old_ml_boost.cpp for( i = 0; i < n; i++ ) i 1244 apps/traincascade/old_ml_boost.cpp sum_response->data.db[i] = 0; i 1245 apps/traincascade/old_ml_boost.cpp fdata[sample_idx[i]*step] = orig_response->data.i[i] > 0 ? 2.f : -2.f; i 1254 apps/traincascade/old_ml_boost.cpp for( i = 0; i < n; i++ ) i 1255 apps/traincascade/old_ml_boost.cpp fdata[sample_idx[i]*step] = (float)orig_response->data.i[i]; i 1281 apps/traincascade/old_ml_boost.cpp for( i = 0; i < n; i++ ) i 1282 apps/traincascade/old_ml_boost.cpp if( subsample_mask->data.ptr[i] ) i 1288 apps/traincascade/old_ml_boost.cpp weak_eval->data.db[i] = tree->predict( &_sample, &_mask, true )->value; i 1304 apps/traincascade/old_ml_boost.cpp for( i = 0; i < n; i++ ) i 1306 apps/traincascade/old_ml_boost.cpp double w = weights->data.db[i]; i 1308 apps/traincascade/old_ml_boost.cpp err += w*(weak_eval->data.db[i] != orig_response->data.i[i]); i 1317 apps/traincascade/old_ml_boost.cpp for( i = 0; i < n; i++ ) i 1319 apps/traincascade/old_ml_boost.cpp double w = weights->data.db[i]* i 1320 apps/traincascade/old_ml_boost.cpp scale[weak_eval->data.db[i] != orig_response->data.i[i]]; i 1322 apps/traincascade/old_ml_boost.cpp weights->data.db[i] = w; i 1333 apps/traincascade/old_ml_boost.cpp for( i = 0; i < n; i++ ) i 1334 apps/traincascade/old_ml_boost.cpp weak_eval->data.db[i] *= -orig_response->data.i[i]; i 1338 apps/traincascade/old_ml_boost.cpp for( i = 0; i < n; i++ ) i 1340 apps/traincascade/old_ml_boost.cpp double w = weights->data.db[i]*weak_eval->data.db[i]; i 1342 apps/traincascade/old_ml_boost.cpp weights->data.db[i] = w; i 1366 apps/traincascade/old_ml_boost.cpp for( i = 0; i < n; i++ ) i 1368 apps/traincascade/old_ml_boost.cpp double s = sum_response->data.db[i] + 0.5*weak_eval->data.db[i]; i 1369 apps/traincascade/old_ml_boost.cpp sum_response->data.db[i] = s; i 1370 apps/traincascade/old_ml_boost.cpp weak_eval->data.db[i] = -2*s; i 1375 apps/traincascade/old_ml_boost.cpp for( i = 0; i < n; i++ ) i 1377 apps/traincascade/old_ml_boost.cpp double p = 1./(1. + weak_eval->data.db[i]); i 1380 apps/traincascade/old_ml_boost.cpp weights->data.db[i] = w; i 1382 apps/traincascade/old_ml_boost.cpp if( orig_response->data.i[i] > 0 ) i 1385 apps/traincascade/old_ml_boost.cpp fdata[sample_idx[i]*step] = (float)MIN(z, lb_z_max); i 1390 apps/traincascade/old_ml_boost.cpp fdata[sample_idx[i]*step] = (float)-MIN(z, lb_z_max); i 1401 apps/traincascade/old_ml_boost.cpp for( i = 0; i < n; i++ ) i 1402 apps/traincascade/old_ml_boost.cpp weak_eval->data.db[i] *= -orig_response->data.i[i]; i 1406 apps/traincascade/old_ml_boost.cpp for( i = 0; i < n; i++ ) i 1408 apps/traincascade/old_ml_boost.cpp double w = weights->data.db[i] * weak_eval->data.db[i]; i 1409 apps/traincascade/old_ml_boost.cpp weights->data.db[i] = w; i 1419 apps/traincascade/old_ml_boost.cpp for( i = 0; i < n; ++i ) i 1420 apps/traincascade/old_ml_boost.cpp weights->data.db[i] *= sumw; i 1434 apps/traincascade/old_ml_boost.cpp int i, count = data->sample_count, nz_count = 0; i 1449 apps/traincascade/old_ml_boost.cpp for( i = 0; i < count; i++ ) i 1451 apps/traincascade/old_ml_boost.cpp double w = weak_eval->data.db[i]; i 1457 apps/traincascade/old_ml_boost.cpp threshold = i < count ? weak_eval->data.db[i] : DBL_MAX; i 1459 apps/traincascade/old_ml_boost.cpp for( i = 0; i < count; i++ ) i 1461 apps/traincascade/old_ml_boost.cpp double w = weights->data.db[i]; i 1463 apps/traincascade/old_ml_boost.cpp subsample_mask->data.ptr[i] = (uchar)f; i 1490 apps/traincascade/old_ml_boost.cpp int i, j, nactive_vars; i 1502 apps/traincascade/old_ml_boost.cpp for( i = 0; i < weak->total; i++ ) i 1541 apps/traincascade/old_ml_boost.cpp for( i = j = 0; i < data->var_count; i++ ) i 1543 apps/traincascade/old_ml_boost.cpp if( mask->data.ptr[i] ) i 1545 apps/traincascade/old_ml_boost.cpp active_vars->data.i[j] = i; i 1546 apps/traincascade/old_ml_boost.cpp active_vars_abs->data.i[j] = data->var_idx ? data->var_idx->data.i[i] : i; i 1547 apps/traincascade/old_ml_boost.cpp inv_map->data.i[i] = j; i 1548 apps/traincascade/old_ml_boost.cpp if( data->var_type->data.i[i] >= 0 ) i 1557 apps/traincascade/old_ml_boost.cpp for( i = 0; i < weak->total; i++ ) i 1569 apps/traincascade/old_ml_boost.cpp split->condensed_idx = inv_map->data.i[split->var_idx]; i 1634 apps/traincascade/old_ml_boost.cpp int i, weak_count = cvSliceLength( slice, weak ); i 1654 apps/traincascade/old_ml_boost.cpp const int* vtype = data->var_type->data.i; i 1655 apps/traincascade/old_ml_boost.cpp const int* cmap = data->cat_map->data.i; i 1656 apps/traincascade/old_ml_boost.cpp const int* cofs = data->cat_ofs->data.i; i 1671 apps/traincascade/old_ml_boost.cpp const int* vidx = active_vars->data.i; i 1672 apps/traincascade/old_ml_boost.cpp const int* vidx_abs = active_vars_abs->data.i; i 1690 apps/traincascade/old_ml_boost.cpp for( i = 0; i < var_count; i++ ) i 1692 apps/traincascade/old_ml_boost.cpp int idx = vidx[i], idx_abs = vidx_abs[i]; i 1728 apps/traincascade/old_ml_boost.cpp dst_sample[i] = val; i 1729 apps/traincascade/old_ml_boost.cpp dst_mask[i] = m; i 1748 apps/traincascade/old_ml_boost.cpp for( i = 0; i < weak_count; i++ ) i 1770 apps/traincascade/old_ml_boost.cpp const int* avars = active_vars->data.i; i 1774 apps/traincascade/old_ml_boost.cpp for( i = 0; i < weak_count; i++ ) i 1811 apps/traincascade/old_ml_boost.cpp weak_responses->data.fl[i*wstep] = (float)node->value; i 1838 apps/traincascade/old_ml_boost.cpp int* sidx = sample_idx ? sample_idx->data.i : 0; i 1852 apps/traincascade/old_ml_boost.cpp for( int i = 0; i < sample_count; i++ ) i 1855 apps/traincascade/old_ml_boost.cpp int si = sidx ? sidx[i] : i; i 1861 apps/traincascade/old_ml_boost.cpp pred_resp[i] = r; i 1869 apps/traincascade/old_ml_boost.cpp for( int i = 0; i < sample_count; i++ ) i 1872 apps/traincascade/old_ml_boost.cpp int si = sidx ? sidx[i] : i; i 1878 apps/traincascade/old_ml_boost.cpp pred_resp[i] = r; i 1991 apps/traincascade/old_ml_boost.cpp int i, ntrees; i 2013 apps/traincascade/old_ml_boost.cpp for( i = 0; i < ntrees; i++ ) i 2034 apps/traincascade/old_ml_boost.cpp int i; i 2046 apps/traincascade/old_ml_boost.cpp for( i = 0; i < weak->total; i++ ) i 172 apps/traincascade/old_ml_data.cpp for( int i = 0; i < header_lines_number; i++ ) i 227 apps/traincascade/old_ml_data.cpp for (int i = 0; i < cols_count-1; i++) i 229 apps/traincascade/old_ml_data.cpp str_to_flt_elem( token, el_ptr[i], type); i 230 apps/traincascade/old_ml_data.cpp var_types_ptr[i] |= type; i 254 apps/traincascade/old_ml_data.cpp for(int i = 0; i < seq->total; i++ ) i 257 apps/traincascade/old_ml_data.cpp float* ddata = values->data.fl + cols_count*i; i 258 apps/traincascade/old_ml_data.cpp uchar* dm = missing->data.ptr + cols_count*i; i 482 apps/traincascade/old_ml_data.cpp for (int i = b1; i <= b2; i++) i 484 apps/traincascade/old_ml_data.cpp if ( var_types->data.ptr[i] == CV_VAR_CATEGORICAL) i 486 apps/traincascade/old_ml_data.cpp var_types->data.ptr[i] = CV_VAR_ORDERED; i 527 apps/traincascade/old_ml_data.cpp for (int i = b1; i <= b2; i++) i 528 apps/traincascade/old_ml_data.cpp var_types->data.ptr[i] = CV_VAR_CATEGORICAL; i 573 apps/traincascade/old_ml_data.cpp for( int i = 0; i < var_types->cols; i++) i 575 apps/traincascade/old_ml_data.cpp if (i == response_idx || !var_idx_mask->data.ptr[i]) continue; i 576 apps/traincascade/old_ml_data.cpp *var_types_out_ptr = var_types->data.ptr[i]; i 660 apps/traincascade/old_ml_data.cpp for (int i = 0; i < sample_count; i++ ) i 661 apps/traincascade/old_ml_data.cpp sample_idx[i] = i; i 716 apps/traincascade/old_ml_data.cpp for (int i = 0; i < n; i++) i 752 apps/traincascade/old_ml_data.cpp vidx = var_idx_out->data.i; i 754 apps/traincascade/old_ml_data.cpp for(int i = 0; i < var_idx_mask->cols; i++) i 755 apps/traincascade/old_ml_data.cpp if ( var_idx_mask->data.ptr[i] ) i 757 apps/traincascade/old_ml_data.cpp *vidx = i; i 129 apps/traincascade/old_ml_inner_functions.cpp int i, j, k; i 132 apps/traincascade/old_ml_inner_functions.cpp for( i = 0; i < dim; i++ ) i 134 apps/traincascade/old_ml_inner_functions.cpp for( j = 0; j < i; j++ ) i 135 apps/traincascade/old_ml_inner_functions.cpp CV_MAT_ELEM(*S, float, i, j) = 0; i 138 apps/traincascade/old_ml_inner_functions.cpp for( k = 0; k < i; k++ ) i 139 apps/traincascade/old_ml_inner_functions.cpp sum += CV_MAT_ELEM(*S, float, k, i) * CV_MAT_ELEM(*S, float, k, i); i 141 apps/traincascade/old_ml_inner_functions.cpp CV_MAT_ELEM(*S, float, i, i) = (float)sqrt(CV_MAT_ELEM(*A, float, i, i) - sum); i 143 apps/traincascade/old_ml_inner_functions.cpp for( j = i + 1; j < dim; j++ ) i 146 apps/traincascade/old_ml_inner_functions.cpp for( k = 0; k < i; k++ ) i 147 apps/traincascade/old_ml_inner_functions.cpp sum += CV_MAT_ELEM(*S, float, k, i) * CV_MAT_ELEM(*S, float, k, j); i 149 apps/traincascade/old_ml_inner_functions.cpp CV_MAT_ELEM(*S, float, i, j) = i 150 apps/traincascade/old_ml_inner_functions.cpp (CV_MAT_ELEM(*A, float, i, j) - sum) / CV_MAT_ELEM(*S, float, i, i); i 171 apps/traincascade/old_ml_inner_functions.cpp int i; i 172 apps/traincascade/old_ml_inner_functions.cpp for( i = 0; i < amount; i++ ) i 174 apps/traincascade/old_ml_inner_functions.cpp cvGetRow(sample, vect, i); i 190 apps/traincascade/old_ml_inner_functions.cpp int i, j; i 196 apps/traincascade/old_ml_inner_functions.cpp for( i = 1; i < len; i++ ) i 197 apps/traincascade/old_ml_inner_functions.cpp knots[i] = knots[i - 1] + probs[i]; i 199 apps/traincascade/old_ml_inner_functions.cpp for( i = 0; i < amount; i++ ) i 202 apps/traincascade/old_ml_inner_functions.cpp if ( CV_MAT_ELEM(*univals, float, 0, i) <= knots[j] ) i 204 apps/traincascade/old_ml_inner_functions.cpp sample[i] = j; i 223 apps/traincascade/old_ml_inner_functions.cpp int i, clss; i 240 apps/traincascade/old_ml_inner_functions.cpp for( i = 0; i < clsnum; i++ ) i 242 apps/traincascade/old_ml_inner_functions.cpp utmats[i] = cvCreateMat(dim, dim, CV_32FC1); i 243 apps/traincascade/old_ml_inner_functions.cpp cvChol(covs[i], utmats[i]); i 246 apps/traincascade/old_ml_inner_functions.cpp for( i = 0; i < amount; i++ ) i 248 apps/traincascade/old_ml_inner_functions.cpp CV_MAT_ELEM(*classes, float, 0, i) = (float)sample_clsnum[i]; i 249 apps/traincascade/old_ml_inner_functions.cpp cvGetRow(sample, vect, i); i 250 apps/traincascade/old_ml_inner_functions.cpp clss = sample_clsnum[i]; i 256 apps/traincascade/old_ml_inner_functions.cpp for( i = 0; i < clsnum; i++ ) i 257 apps/traincascade/old_ml_inner_functions.cpp cvReleaseMat(&utmats[i]); i 276 apps/traincascade/old_ml_inner_functions.cpp int i; i 304 apps/traincascade/old_ml_inner_functions.cpp for (i = 0; i < dim; i++) i 306 apps/traincascade/old_ml_inner_functions.cpp CV_CALL(cvGetCol (data, &data_comp, i)); i 308 apps/traincascade/old_ml_inner_functions.cpp CV_CALL(cvGetCol (centers, ¢ers_comp, i)); i 400 apps/traincascade/old_ml_inner_functions.cpp int i, idx_total, idx_selected = 0, step, type, prev = INT_MIN, is_sorted = 1; i 413 apps/traincascade/old_ml_inner_functions.cpp srci = idx_arr->data.i; i 428 apps/traincascade/old_ml_inner_functions.cpp for( i = 0; i < idx_total; i++ ) i 429 apps/traincascade/old_ml_inner_functions.cpp idx_selected += srcb[i*step] != 0; i 442 apps/traincascade/old_ml_inner_functions.cpp for( i = 0; i < idx_total; i++ ) i 444 apps/traincascade/old_ml_inner_functions.cpp int val = srci[i*step]; i 459 apps/traincascade/old_ml_inner_functions.cpp dsti = idx->data.i; i 463 apps/traincascade/old_ml_inner_functions.cpp for( i = 0; i < idx_total; i++ ) i 464 apps/traincascade/old_ml_inner_functions.cpp if( srcb[i*step] ) i 465 apps/traincascade/old_ml_inner_functions.cpp *dsti++ = i; i 469 apps/traincascade/old_ml_inner_functions.cpp for( i = 0; i < idx_total; i++ ) i 470 apps/traincascade/old_ml_inner_functions.cpp dsti[i] = srci[i*step]; i 480 apps/traincascade/old_ml_inner_functions.cpp for( i = 1; i < idx_total; i++ ) i 481 apps/traincascade/old_ml_inner_functions.cpp if( dsti[i] <= dsti[i-1] ) i 507 apps/traincascade/old_ml_inner_functions.cpp int i, tm_size, tm_step; i 546 apps/traincascade/old_ml_inner_functions.cpp for( i = 0; i < var_count; i++ ) i 549 apps/traincascade/old_ml_inner_functions.cpp assert( (unsigned)/*idx*/i < (unsigned)tm_size ); i 550 apps/traincascade/old_ml_inner_functions.cpp dst[i] = (uchar)(src[/*idx*/i*tm_step] != 0); i 568 apps/traincascade/old_ml_inner_functions.cpp int i, r_type, r_step; i 602 apps/traincascade/old_ml_inner_functions.cpp map = sample_idx->data.i; i 612 apps/traincascade/old_ml_inner_functions.cpp for( i = 0; i < sample_count; i++ ) i 614 apps/traincascade/old_ml_inner_functions.cpp int idx = map ? map[i] : i; i 616 apps/traincascade/old_ml_inner_functions.cpp dst[i] = src[idx*r_step]; i 621 apps/traincascade/old_ml_inner_functions.cpp const int* src = responses->data.i; i 622 apps/traincascade/old_ml_inner_functions.cpp for( i = 0; i < sample_count; i++ ) i 624 apps/traincascade/old_ml_inner_functions.cpp int idx = map ? map[i] : i; i 626 apps/traincascade/old_ml_inner_functions.cpp dst[i] = (float)src[idx*r_step]; i 653 apps/traincascade/old_ml_inner_functions.cpp int i, r_type, r_step; i 686 apps/traincascade/old_ml_inner_functions.cpp map = sample_idx->data.i; i 697 apps/traincascade/old_ml_inner_functions.cpp srci = responses->data.i; i 699 apps/traincascade/old_ml_inner_functions.cpp dst = out_responses->data.i; i 701 apps/traincascade/old_ml_inner_functions.cpp for( i = 0; i < sample_count; i++ ) i 703 apps/traincascade/old_ml_inner_functions.cpp int idx = map ? map[i] : i; i 706 apps/traincascade/old_ml_inner_functions.cpp dst[i] = srci[idx*r_step]; i 717 apps/traincascade/old_ml_inner_functions.cpp dst[i] = ri; i 719 apps/traincascade/old_ml_inner_functions.cpp response_ptr[i] = dst + i; i 725 apps/traincascade/old_ml_inner_functions.cpp for( i = 1; i < sample_count; i++ ) i 726 apps/traincascade/old_ml_inner_functions.cpp cls_count += *response_ptr[i] != *response_ptr[i-1]; i 736 apps/traincascade/old_ml_inner_functions.cpp cls_counts = (*class_counts)->data.i; i 742 apps/traincascade/old_ml_inner_functions.cpp cls_map = (*out_response_map)->data.i; i 744 apps/traincascade/old_ml_inner_functions.cpp for( i = 0, prev_i = -1; i < sample_count; i++ ) i 746 apps/traincascade/old_ml_inner_functions.cpp int cur_cls = *response_ptr[i]; i 750 apps/traincascade/old_ml_inner_functions.cpp cls_counts[cls_count] = i - prev_i; i 752 apps/traincascade/old_ml_inner_functions.cpp prev_i = i; i 754 apps/traincascade/old_ml_inner_functions.cpp *response_ptr[i] = cls_count; i 758 apps/traincascade/old_ml_inner_functions.cpp cls_counts[cls_count] = i - prev_i; i 780 apps/traincascade/old_ml_inner_functions.cpp int i, j, var_count, sample_count, s_step, v_step; i 806 apps/traincascade/old_ml_inner_functions.cpp s_idx = sample_idx ? sample_idx->data.i : 0; i 807 apps/traincascade/old_ml_inner_functions.cpp v_idx = var_idx ? var_idx->data.i : 0; i 811 apps/traincascade/old_ml_inner_functions.cpp for( i = 0; i < sample_count; i++ ) i 812 apps/traincascade/old_ml_inner_functions.cpp samples[i] = (float*)(data + (s_idx ? s_idx[i] : i)*s_step); i 818 apps/traincascade/old_ml_inner_functions.cpp CV_SWAP( s_step, v_step, i ); i 820 apps/traincascade/old_ml_inner_functions.cpp for( i = 0; i < sample_count; i++ ) i 822 apps/traincascade/old_ml_inner_functions.cpp float* dst = samples[i] = samples[0] + i*var_count; i 823 apps/traincascade/old_ml_inner_functions.cpp const float* src = data + (s_idx ? s_idx[i] : i)*s_step; i 1036 apps/traincascade/old_ml_inner_functions.cpp int i, k = 0, sample_count; i 1047 apps/traincascade/old_ml_inner_functions.cpp for( i = 0; i < sample_count; i++ ) i 1049 apps/traincascade/old_ml_inner_functions.cpp pairs[i].sample = samples[i]; i 1050 apps/traincascade/old_ml_inner_functions.cpp pairs[i].mask = (mask) ? (mask[i]) : 0; i 1051 apps/traincascade/old_ml_inner_functions.cpp pairs[i].response = classes->data.i[i]; i 1052 apps/traincascade/old_ml_inner_functions.cpp pairs[i].index = i; i 1053 apps/traincascade/old_ml_inner_functions.cpp assert( classes->data.i[i] >= 0 ); i 1060 apps/traincascade/old_ml_inner_functions.cpp for( i = 0; i < sample_count; i++ ) i 1062 apps/traincascade/old_ml_inner_functions.cpp samples[i] = pairs[i].sample; i 1064 apps/traincascade/old_ml_inner_functions.cpp mask[i] = pairs[i].mask; i 1065 apps/traincascade/old_ml_inner_functions.cpp classes->data.i[i] = pairs[i].response; i 1067 apps/traincascade/old_ml_inner_functions.cpp if( pairs[i].response != pairs[i+1].response ) i 1068 apps/traincascade/old_ml_inner_functions.cpp class_ranges[++k] = i+1; i 1095 apps/traincascade/old_ml_inner_functions.cpp int i, dims_selected; i 1157 apps/traincascade/old_ml_inner_functions.cpp for( i = 0; i < dims_selected; i++ ) i 1158 apps/traincascade/old_ml_inner_functions.cpp row_sample[i] = sample_data[sample_step*i]; i 1161 apps/traincascade/old_ml_inner_functions.cpp int* comp = comp_idx->data.i; i 1162 apps/traincascade/old_ml_inner_functions.cpp for( i = 0; i < dims_selected; i++ ) i 1163 apps/traincascade/old_ml_inner_functions.cpp row_sample[i] = sample_data[sample_step*comp[i]]; i 1175 apps/traincascade/old_ml_inner_functions.cpp for( i = dims_selected - 1; i >= 0; i-- ) i 1177 apps/traincascade/old_ml_inner_functions.cpp dst[i].idx = i; i 1178 apps/traincascade/old_ml_inner_functions.cpp dst[i].val = src[i]; i 1196 apps/traincascade/old_ml_inner_functions.cpp for( i = 0; i < dims_selected; i++ ) i 1197 apps/traincascade/old_ml_inner_functions.cpp inverse_comp_idx[comp_idx->data.i[i]] = i; i 1264 apps/traincascade/old_ml_inner_functions.cpp int i, j; i 1291 apps/traincascade/old_ml_inner_functions.cpp for( i = 0; i < size.height; i++, src += src_step ) i 1292 apps/traincascade/old_ml_inner_functions.cpp *(int*)(dst + dst_step*(idx ? idx[i] : i)) = *(int*)src; i 1294 apps/traincascade/old_ml_inner_functions.cpp for( i = 0; i < size.height; i++, src += src_step ) i 1295 apps/traincascade/old_ml_inner_functions.cpp memcpy( dst + dst_step*(idx ? idx[i] : i), src, full_width ); i 1298 apps/traincascade/old_ml_inner_functions.cpp for( i = 0; i < size.height; i++, src += src_step ) i 1300 apps/traincascade/old_ml_inner_functions.cpp uchar* _dst = dst + dst_step*(idx ? idx[i] : i); i 1309 apps/traincascade/old_ml_inner_functions.cpp for( i = 0; i < size.height; i++, src += src_step ) i 1311 apps/traincascade/old_ml_inner_functions.cpp uchar* _dst = dst + dst_step*(idx ? idx[i] : i); i 1321 apps/traincascade/old_ml_inner_functions.cpp for( i = 0; i < size.height; i++, src += src_step ) i 1323 apps/traincascade/old_ml_inner_functions.cpp uchar* _dst = dst + dst_step*(idx ? idx[i] : i); i 1392 apps/traincascade/old_ml_inner_functions.cpp cvSize( 1, samples_selected ), sample_idx ? sample_idx->data.i : 0 )); i 1397 apps/traincascade/old_ml_inner_functions.cpp int i; i 1412 apps/traincascade/old_ml_inner_functions.cpp for( i = 0; i < centers->rows; i++ ) i 1413 apps/traincascade/old_ml_inner_functions.cpp CV_CALL( icvConvertDataToSparse( centers->data.ptr + i*centers->step, 0, centers->type, i 1414 apps/traincascade/old_ml_inner_functions.cpp dst_centers->data.ptr + i*dst_centers->step, 0, dst_centers->type, i 1415 apps/traincascade/old_ml_inner_functions.cpp cvSize( 1, dims_selected ), comp_idx ? comp_idx->data.i : 0 )); i 1436 apps/traincascade/old_ml_inner_functions.cpp sample_idx ? sample_idx->data.i : 0 )); i 1458 apps/traincascade/old_ml_inner_functions.cpp int i; i 1560 apps/traincascade/old_ml_inner_functions.cpp for( i = 0; i < samples_selected; i++ ) i 1561 apps/traincascade/old_ml_inner_functions.cpp sample_idx_buffer->data.ptr[sample_idx->data.i[i*sample_idx_step]] = 1; i 1568 apps/traincascade/old_ml_inner_functions.cpp for( i = 0; i < samples_selected; i++ ) i 1570 apps/traincascade/old_ml_inner_functions.cpp if( sample_idx && sample_idx->data.ptr[i*sample_idx_step] == 0 ) i 1572 apps/traincascade/old_ml_inner_functions.cpp CV_CALL( sparse_rows[i] = cvCreateSparseMat( 1, &dims_all, type )); i 1574 apps/traincascade/old_ml_inner_functions.cpp storage = sparse_rows[i]->heap->storage; i 1579 apps/traincascade/old_ml_inner_functions.cpp int elem_size = sparse_rows[i]->heap->elem_size; i 1580 apps/traincascade/old_ml_inner_functions.cpp cvReleaseMemStorage( &sparse_rows[i]->heap->storage ); i 1581 apps/traincascade/old_ml_inner_functions.cpp sparse_rows[i]->heap = cvCreateSet( 0, sizeof(CvSet), elem_size, storage ); i 1601 apps/traincascade/old_ml_inner_functions.cpp for( i = 0; i < samples_selected; i++ ) i 1603 apps/traincascade/old_ml_inner_functions.cpp int idx = i; i 1610 apps/traincascade/old_ml_inner_functions.cpp idx = sample_idx->data.i[i*sample_idx_step]; i 1615 apps/traincascade/old_ml_inner_functions.cpp sample_idx->data.ptr[i*sample_idx_step] == 0 ) i 1641 apps/traincascade/old_ml_inner_functions.cpp predict_output->data.i[idx*predict_output_step] = cvRound(response); i 1649 apps/traincascade/old_ml_inner_functions.cpp int i; i 1650 apps/traincascade/old_ml_inner_functions.cpp for( i = 0; i < samples_selected; i++ ) i 1651 apps/traincascade/old_ml_inner_functions.cpp if( sparse_rows[i] ) i 1653 apps/traincascade/old_ml_inner_functions.cpp sparse_rows[i]->heap->storage = 0; i 1654 apps/traincascade/old_ml_inner_functions.cpp cvReleaseSparseMat( &sparse_rows[i] ); i 1677 apps/traincascade/old_ml_inner_functions.cpp int i,j; i 1696 apps/traincascade/old_ml_inner_functions.cpp first = new_response_map->data.i; i 1699 apps/traincascade/old_ml_inner_functions.cpp for (i = 0; i < new_n; i++) i 1700 apps/traincascade/old_ml_inner_functions.cpp new_data[i] = first + i; i 1703 apps/traincascade/old_ml_inner_functions.cpp first = old_response_map->data.i; i 1706 apps/traincascade/old_ml_inner_functions.cpp for (i = 0; i < old_n; i++) i 1707 apps/traincascade/old_ml_inner_functions.cpp old_data[i] = first + i; i 1711 apps/traincascade/old_ml_inner_functions.cpp for (i = 0, j = 0, out_n = 0; i < old_n && j < new_n; out_n++) i 1713 apps/traincascade/old_ml_inner_functions.cpp if (*old_data[i] == *new_data[j]) i 1715 apps/traincascade/old_ml_inner_functions.cpp i++; i 1718 apps/traincascade/old_ml_inner_functions.cpp else if (*old_data[i] < *new_data[j]) i 1719 apps/traincascade/old_ml_inner_functions.cpp i++; i 1723 apps/traincascade/old_ml_inner_functions.cpp out_n += old_n - i + new_n - j; i 1727 apps/traincascade/old_ml_inner_functions.cpp out_data = (*out_response_map)->data.i; i 1731 apps/traincascade/old_ml_inner_functions.cpp for (i = 0, j = 0; i < old_n && j < new_n; ) i 1733 apps/traincascade/old_ml_inner_functions.cpp if (*old_data[i] == *new_data[j]) i 1735 apps/traincascade/old_ml_inner_functions.cpp *new_data[j] = (int)(old_data[i] - first); i 1736 apps/traincascade/old_ml_inner_functions.cpp i++; i 1739 apps/traincascade/old_ml_inner_functions.cpp else if (*old_data[i] < *new_data[j]) i 1740 apps/traincascade/old_ml_inner_functions.cpp i++; i 1757 apps/traincascade/old_ml_inner_functions.cpp responses = _responses->data.i; i 1758 apps/traincascade/old_ml_inner_functions.cpp first = new_response_map->data.i; i 1759 apps/traincascade/old_ml_inner_functions.cpp for (i = 0; i < samples; i++) i 1761 apps/traincascade/old_ml_inner_functions.cpp responses[i] = first[responses[i]]; i 1781 apps/traincascade/old_ml_inner_functions.cpp int i; i 1789 apps/traincascade/old_ml_inner_functions.cpp for( i = 1; i < num_of_clusters; i++ ) i 1791 apps/traincascade/old_ml_inner_functions.cpp prob = prob_vector[i]; i 1795 apps/traincascade/old_ml_inner_functions.cpp max_prob_loc = i; i 1801 apps/traincascade/old_ml_inner_functions.cpp for( i = 0; i < num_of_clusters; i++ ) i 1802 apps/traincascade/old_ml_inner_functions.cpp prob_vector[i] /= sum; i 1823 apps/traincascade/old_ml_inner_functions.cpp int i, j; i 1835 apps/traincascade/old_ml_inner_functions.cpp for( i = 0; i < nsamples; i++ ) i 1837 apps/traincascade/old_ml_inner_functions.cpp labels->data.i[i] = icvGetNumberOfCluster( probs->data.db + i*probs->cols, i 1839 apps/traincascade/old_ml_inner_functions.cpp counts->data.i[labels->data.i[i] + 1]++; i 1848 apps/traincascade/old_ml_inner_functions.cpp if( counts->data.i[j+1] ) // j-th class is not empty i 1853 apps/traincascade/old_ml_inner_functions.cpp for( i = 0; i < nsamples; i++, probs_data++ ) i 1855 apps/traincascade/old_ml_inner_functions.cpp int label = labels->data.i[i]; i 1857 apps/traincascade/old_ml_inner_functions.cpp if( counts->data.i[label+1] == 0 || i 1858 apps/traincascade/old_ml_inner_functions.cpp (counts->data.i[label+1] <= 1 && label != -1) ) i 1864 apps/traincascade/old_ml_inner_functions.cpp maxprob_loc = i; i 1869 apps/traincascade/old_ml_inner_functions.cpp counts->data.i[labels->data.i[maxprob_loc] + 1]--; i 1870 apps/traincascade/old_ml_inner_functions.cpp labels->data.i[maxprob_loc] = j; i 1871 apps/traincascade/old_ml_inner_functions.cpp counts->data.i[j + 1]++; i 228 apps/traincascade/old_ml_precomp.hpp int i, offset = dims; \ i 235 apps/traincascade/old_ml_precomp.hpp for( i = 0; i < nsamples; i++, a.data.ptr += offset ) \ i 237 apps/traincascade/old_ml_precomp.hpp b.data.fl = (float*)array[i]; \ i 142 apps/traincascade/old_ml_tree.cpp bool operator()(const CvPair16u32s& a, const CvPair16u32s& b) const { return *a.i < *b.i; } i 169 apps/traincascade/old_ml_tree.cpp int vi, i, size; i 247 apps/traincascade/old_ml_tree.cpp sidx = sample_indices->data.i; i 254 apps/traincascade/old_ml_tree.cpp vidx = var_idx->data.i; i 286 apps/traincascade/old_ml_tree.cpp var_type->data.i[vi] = vt == CV_VAR_CATEGORICAL ? cat_var_count++ : ord_var_count--; i 294 apps/traincascade/old_ml_tree.cpp var_type->data.i[var_count] = cat_var_count; i 295 apps/traincascade/old_ml_tree.cpp var_type->data.i[var_count+1] = cat_var_count+1; i 403 apps/traincascade/old_ml_tree.cpp idata = _train_data->data.i + vi0*dv_step; i 415 apps/traincascade/old_ml_tree.cpp idata = _responses->data.i; i 429 apps/traincascade/old_ml_tree.cpp idst = buf->data.i + (size_t)vi*sample_count; i 432 apps/traincascade/old_ml_tree.cpp for( i = 0; i < sample_count; i++ ) i 434 apps/traincascade/old_ml_tree.cpp int val = INT_MAX, si = sidx ? sidx[i] : i; i 446 apps/traincascade/old_ml_tree.cpp "variable is not an integer", i, vi ); i 454 apps/traincascade/old_ml_tree.cpp "variable is too large", i, vi ); i 461 apps/traincascade/old_ml_tree.cpp _idst[i] = val; i 462 apps/traincascade/old_ml_tree.cpp pair16u32s_ptr[i].u = udst + i; i 463 apps/traincascade/old_ml_tree.cpp pair16u32s_ptr[i].i = _idst + i; i 467 apps/traincascade/old_ml_tree.cpp idst[i] = val; i 468 apps/traincascade/old_ml_tree.cpp int_ptr[i] = idst + i; i 477 apps/traincascade/old_ml_tree.cpp for( i = 1; i < num_valid; i++ ) i 478 apps/traincascade/old_ml_tree.cpp if (*pair16u32s_ptr[i].i != *pair16u32s_ptr[i-1].i) i 485 apps/traincascade/old_ml_tree.cpp for( i = 1; i < num_valid; i++ ) i 486 apps/traincascade/old_ml_tree.cpp c_count += *int_ptr[i] != *int_ptr[i-1]; i 491 apps/traincascade/old_ml_tree.cpp cat_count->data.i[ci] = c_count; i 492 apps/traincascade/old_ml_tree.cpp cat_ofs->data.i[ci] = total_c_count; i 500 apps/traincascade/old_ml_tree.cpp for( i = 0; i < total_c_count; i++ ) i 501 apps/traincascade/old_ml_tree.cpp cat_map->data.i[i] = tmp_map->data.i[i]; i 505 apps/traincascade/old_ml_tree.cpp c_map = cat_map->data.i + total_c_count; i 512 apps/traincascade/old_ml_tree.cpp prev_label = ~*pair16u32s_ptr[0].i; i 513 apps/traincascade/old_ml_tree.cpp for( i = 0; i < num_valid; i++ ) i 515 apps/traincascade/old_ml_tree.cpp int cur_label = *pair16u32s_ptr[i].i; i 518 apps/traincascade/old_ml_tree.cpp *pair16u32s_ptr[i].u = (unsigned short)c_count; i 521 apps/traincascade/old_ml_tree.cpp for( ; i < sample_count; i++ ) i 522 apps/traincascade/old_ml_tree.cpp *pair16u32s_ptr[i].u = 65535; i 528 apps/traincascade/old_ml_tree.cpp for( i = 0; i < num_valid; i++ ) i 530 apps/traincascade/old_ml_tree.cpp int cur_label = *int_ptr[i]; i 533 apps/traincascade/old_ml_tree.cpp *int_ptr[i] = c_count; i 536 apps/traincascade/old_ml_tree.cpp for( ; i < sample_count; i++ ) i 537 apps/traincascade/old_ml_tree.cpp *int_ptr[i] = -1; i 545 apps/traincascade/old_ml_tree.cpp idst = buf->data.i + (size_t)vi*sample_count; i 547 apps/traincascade/old_ml_tree.cpp for( i = 0; i < sample_count; i++ ) i 550 apps/traincascade/old_ml_tree.cpp int si = sidx ? sidx[i] : i; i 561 apps/traincascade/old_ml_tree.cpp "variable (=%g) is too large", i, vi, val ); i 568 apps/traincascade/old_ml_tree.cpp udst[i] = (unsigned short)i; // TODO: memory corruption may be here i 570 apps/traincascade/old_ml_tree.cpp idst[i] = i; i 571 apps/traincascade/old_ml_tree.cpp _fdst[i] = val; i 588 apps/traincascade/old_ml_tree.cpp idst = buf->data.i + (size_t)work_var_count*sample_count; i 590 apps/traincascade/old_ml_tree.cpp for (i = 0; i < sample_count; i++) i 593 apps/traincascade/old_ml_tree.cpp udst[i] = sidx ? (unsigned short)sidx[i] : (unsigned short)i; i 595 apps/traincascade/old_ml_tree.cpp idst[i] = sidx ? sidx[i] : i; i 606 apps/traincascade/old_ml_tree.cpp for( i = vi = 0; i < sample_count; i++ ) i 608 apps/traincascade/old_ml_tree.cpp usdst[i] = (unsigned short)vi++; i 612 apps/traincascade/old_ml_tree.cpp for( i = 0; i < sample_count; i++ ) i 622 apps/traincascade/old_ml_tree.cpp idst2 = buf->data.i + (size_t)(get_work_var_count()-1)*sample_count; i 623 apps/traincascade/old_ml_tree.cpp for( i = vi = 0; i < sample_count; i++ ) i 625 apps/traincascade/old_ml_tree.cpp idst2[i] = vi++; i 629 apps/traincascade/old_ml_tree.cpp for( i = 0; i < sample_count; i++ ) i 651 apps/traincascade/old_ml_tree.cpp for( i = 0; i < m; i++ ) i 653 apps/traincascade/old_ml_tree.cpp double val = have_priors ? params.priors[i] : 1.; i 656 apps/traincascade/old_ml_tree.cpp priors->data.db[i] = val; i 716 apps/traincascade/old_ml_tree.cpp const int* sidx = isubsample_idx->data.i; i 717 apps/traincascade/old_ml_tree.cpp for( int i = 0; i < sample_count; i++ ) i 719 apps/traincascade/old_ml_tree.cpp if( sidx[i] != i ) i 734 apps/traincascade/old_ml_tree.cpp int i; i 741 apps/traincascade/old_ml_tree.cpp for( i = 0; i < var_count; i++ ) i 742 apps/traincascade/old_ml_tree.cpp root->num_valid[i] = data_root->num_valid[i]; i 750 apps/traincascade/old_ml_tree.cpp int* sidx = isubsample_idx->data.i; i 753 apps/traincascade/old_ml_tree.cpp int vi, i; i 761 apps/traincascade/old_ml_tree.cpp co = subsample_co->data.i; i 762 apps/traincascade/old_ml_tree.cpp for( i = 0; i < count; i++ ) i 763 apps/traincascade/old_ml_tree.cpp co[sidx[i]*2]++; i 764 apps/traincascade/old_ml_tree.cpp for( i = 0; i < sample_count; i++ ) i 766 apps/traincascade/old_ml_tree.cpp if( co[i*2] ) i 768 apps/traincascade/old_ml_tree.cpp co[i*2+1] = cur_ofs; i 769 apps/traincascade/old_ml_tree.cpp cur_ofs += co[i*2]; i 772 apps/traincascade/old_ml_tree.cpp co[i*2+1] = -1; i 789 apps/traincascade/old_ml_tree.cpp for( i = 0; i < count; i++ ) i 791 apps/traincascade/old_ml_tree.cpp int val = src[sidx[i]]; i 792 apps/traincascade/old_ml_tree.cpp udst[i] = (unsigned short)val; i 798 apps/traincascade/old_ml_tree.cpp int* idst = buf->data.i + root->buf_idx*get_length_subbuf() + i 800 apps/traincascade/old_ml_tree.cpp for( i = 0; i < count; i++ ) i 802 apps/traincascade/old_ml_tree.cpp int val = src[sidx[i]]; i 803 apps/traincascade/old_ml_tree.cpp idst[i] = val; i 826 apps/traincascade/old_ml_tree.cpp for( i = 0; i < num_valid; i++ ) i 828 apps/traincascade/old_ml_tree.cpp idx = src_idx[i]; i 837 apps/traincascade/old_ml_tree.cpp for( ; i < sample_count; i++ ) i 839 apps/traincascade/old_ml_tree.cpp idx = src_idx[i]; i 848 apps/traincascade/old_ml_tree.cpp int* idst_idx = buf->data.i + root->buf_idx*get_length_subbuf() + i 850 apps/traincascade/old_ml_tree.cpp for( i = 0; i < num_valid; i++ ) i 852 apps/traincascade/old_ml_tree.cpp idx = src_idx[i]; i 861 apps/traincascade/old_ml_tree.cpp for( ; i < sample_count; i++ ) i 863 apps/traincascade/old_ml_tree.cpp idx = src_idx[i]; i 878 apps/traincascade/old_ml_tree.cpp for (i = 0; i < count; i++) i 879 apps/traincascade/old_ml_tree.cpp sample_idx_dst[i] = (unsigned short)sample_idx_src[sidx[i]]; i 883 apps/traincascade/old_ml_tree.cpp int* sample_idx_dst = buf->data.i + root->buf_idx*get_length_subbuf() + i 885 apps/traincascade/old_ml_tree.cpp for (i = 0; i < count; i++) i 886 apps/traincascade/old_ml_tree.cpp sample_idx_dst[i] = sample_idx_src[sidx[i]]; i 910 apps/traincascade/old_ml_tree.cpp int i, vi, total = sample_count, count = total, cur_ofs = 0; i 918 apps/traincascade/old_ml_tree.cpp sidx = subsample_idx->data.i; i 920 apps/traincascade/old_ml_tree.cpp co = subsample_co->data.i; i 923 apps/traincascade/old_ml_tree.cpp for( i = 0; i < count; i++ ) i 924 apps/traincascade/old_ml_tree.cpp co[sidx[i]*2]++; i 925 apps/traincascade/old_ml_tree.cpp for( i = 0; i < total; i++ ) i 927 apps/traincascade/old_ml_tree.cpp int count_i = co[i*2]; i 930 apps/traincascade/old_ml_tree.cpp co[i*2+1] = cur_ofs*var_count; i 948 apps/traincascade/old_ml_tree.cpp for( i = 0; i < count; i++, dst += var_count ) i 950 apps/traincascade/old_ml_tree.cpp int idx = sidx ? sidx[i] : i; i 972 apps/traincascade/old_ml_tree.cpp for( i = 0; i < count1; i++ ) i 974 apps/traincascade/old_ml_tree.cpp int idx = src_idx[i]; i 985 apps/traincascade/old_ml_tree.cpp float val = src_val[i]; i 1003 apps/traincascade/old_ml_tree.cpp for( i = 0; i < count; i++ ) i 1005 apps/traincascade/old_ml_tree.cpp int idx = sidx ? sidx[i] : i; i 1007 apps/traincascade/old_ml_tree.cpp cat_map->data.i[cat_ofs->data.i[cat_var_count]+src[idx]]; i 1008 apps/traincascade/old_ml_tree.cpp _responses[i] = (float)val; i 1016 apps/traincascade/old_ml_tree.cpp for( i = 0; i < count; i++ ) i 1018 apps/traincascade/old_ml_tree.cpp int idx = sidx ? sidx[i] : i; i 1019 apps/traincascade/old_ml_tree.cpp _responses[i] = _values[idx]; i 1093 apps/traincascade/old_ml_tree.cpp int i, n = (max_c_count + 31)/32; i 1099 apps/traincascade/old_ml_tree.cpp for( i = 0; i < n; i++ ) i 1100 apps/traincascade/old_ml_tree.cpp split->subset[i] = 0; i 1175 apps/traincascade/old_ml_tree.cpp return is_classifier ? cat_count->data.i[cat_var_count] : 0; i 1181 apps/traincascade/old_ml_tree.cpp return var_type->data.i[vi]; i 1187 apps/traincascade/old_ml_tree.cpp int vidx = var_idx ? var_idx->data.i[vi] : vi; i 1194 apps/traincascade/old_ml_tree.cpp *sorted_indices = buf->data.i + n->buf_idx*get_length_subbuf() + i 1199 apps/traincascade/old_ml_tree.cpp for( int i = 0; i < node_sample_count; i++ ) i 1200 apps/traincascade/old_ml_tree.cpp sorted_indices_buf[i] = short_indices[i]; i 1206 apps/traincascade/old_ml_tree.cpp for( int i = 0; i < node_sample_count && i 1207 apps/traincascade/old_ml_tree.cpp ((((*sorted_indices)[i] >= 0) && !is_buf_16u) || (((*sorted_indices)[i] != 65535) && is_buf_16u)); i++ ) i 1209 apps/traincascade/old_ml_tree.cpp int idx = (*sorted_indices)[i]; i 1211 apps/traincascade/old_ml_tree.cpp ord_values_buf[i] = *(train_data->data.fl + idx * td_step + vidx); i 1215 apps/traincascade/old_ml_tree.cpp for( int i = 0; i < node_sample_count && i 1216 apps/traincascade/old_ml_tree.cpp ((((*sorted_indices)[i] >= 0) && !is_buf_16u) || (((*sorted_indices)[i] != 65535) && is_buf_16u)); i++ ) i 1218 apps/traincascade/old_ml_tree.cpp int idx = (*sorted_indices)[i]; i 1220 apps/traincascade/old_ml_tree.cpp ord_values_buf[i] = *(train_data->data.fl + vidx* td_step + idx); i 1245 apps/traincascade/old_ml_tree.cpp for( int i = 0; i < _sample_count && i 1246 apps/traincascade/old_ml_tree.cpp (((indices[i] >= 0) && !is_buf_16u) || ((indices[i] != 65535) && is_buf_16u)); i++ ) i 1248 apps/traincascade/old_ml_tree.cpp int idx = indices[i]; i 1249 apps/traincascade/old_ml_tree.cpp values_buf[i] = *(responses->data.fl + idx * r_step); i 1268 apps/traincascade/old_ml_tree.cpp cat_values = buf->data.i + n->buf_idx*get_length_subbuf() + i 1273 apps/traincascade/old_ml_tree.cpp for( int i = 0; i < n->sample_count; i++ ) i 1274 apps/traincascade/old_ml_tree.cpp cat_values_buf[i] = short_values[i]; i 1337 apps/traincascade/old_ml_tree.cpp cvWriteInt( fs, 0, var_type->data.i[vi] >= 0 ); i 1415 apps/traincascade/old_ml_tree.cpp if( (unsigned)var_idx->data.i[vi] >= (unsigned)var_all ) i 1427 apps/traincascade/old_ml_tree.cpp var_type->data.i[0] = vartype_node->data.i ? cat_var_count++ : ord_var_count--; i 1439 apps/traincascade/old_ml_tree.cpp if( CV_NODE_TYPE(n->tag) != CV_NODE_INT || (n->data.i & ~1) ) i 1441 apps/traincascade/old_ml_tree.cpp var_type->data.i[vi] = n->data.i ? cat_var_count++ : ord_var_count--; i 1445 apps/traincascade/old_ml_tree.cpp var_type->data.i[var_count] = cat_var_count; i 1468 apps/traincascade/old_ml_tree.cpp cat_ofs->data.i[0] = 0; i 1473 apps/traincascade/old_ml_tree.cpp int val = cat_count->data.i[vi]; i 1477 apps/traincascade/old_ml_tree.cpp cat_ofs->data.i[vi+1] = total_c_count += val; i 1684 apps/traincascade/old_ml_tree.cpp int i, n = node->sample_count, vi; i 1698 apps/traincascade/old_ml_tree.cpp int* cls_count = data->counts->data.i; i 1700 apps/traincascade/old_ml_tree.cpp for( i = 0; i < m; i++ ) i 1701 apps/traincascade/old_ml_tree.cpp nz += cls_count[i] != 0; i 1775 apps/traincascade/old_ml_tree.cpp int i, n = node->sample_count, vi = node->split->var_idx; i 1790 apps/traincascade/old_ml_tree.cpp for( i = 0; i < n; i++ ) i 1792 apps/traincascade/old_ml_tree.cpp int idx = labels[i]; i 1796 apps/traincascade/old_ml_tree.cpp dir[i] = (char)d; i 1809 apps/traincascade/old_ml_tree.cpp for( i = 0; i < n; i++ ) i 1811 apps/traincascade/old_ml_tree.cpp int idx = labels[i]; i 1812 apps/traincascade/old_ml_tree.cpp double w = priors[responses[i]]; i 1815 apps/traincascade/old_ml_tree.cpp dir[i] = (char)d; i 1838 apps/traincascade/old_ml_tree.cpp for( i = 0; i <= split_point; i++ ) i 1839 apps/traincascade/old_ml_tree.cpp dir[sorted[i]] = (char)-1; i 1840 apps/traincascade/old_ml_tree.cpp for( ; i < n1; i++ ) i 1841 apps/traincascade/old_ml_tree.cpp dir[sorted[i]] = (char)1; i 1842 apps/traincascade/old_ml_tree.cpp for( ; i < n; i++ ) i 1843 apps/traincascade/old_ml_tree.cpp dir[sorted[i]] = (char)0; i 1855 apps/traincascade/old_ml_tree.cpp for( i = 0; i <= split_point; i++ ) i 1857 apps/traincascade/old_ml_tree.cpp int idx = sorted[i]; i 1863 apps/traincascade/old_ml_tree.cpp for( ; i < n1; i++ ) i 1865 apps/traincascade/old_ml_tree.cpp int idx = sorted[i]; i 1871 apps/traincascade/old_ml_tree.cpp for( ; i < n; i++ ) i 1872 apps/traincascade/old_ml_tree.cpp dir[sorted[i]] = (char)0; i 1997 apps/traincascade/old_ml_tree.cpp const int* rc0 = data->counts->data.i; i 2000 apps/traincascade/old_ml_tree.cpp int i, best_i = -1; i 2005 apps/traincascade/old_ml_tree.cpp for( i = 0; i < m; i++ ) i 2007 apps/traincascade/old_ml_tree.cpp lc[i] = 0; i 2008 apps/traincascade/old_ml_tree.cpp rc[i] = rc0[i]; i 2012 apps/traincascade/old_ml_tree.cpp for( i = n1; i < n; i++ ) i 2014 apps/traincascade/old_ml_tree.cpp rc[responses[sorted_indices[i]]]--; i 2021 apps/traincascade/old_ml_tree.cpp for( i = 0; i < m; i++ ) i 2022 apps/traincascade/old_ml_tree.cpp rsum2 += (double)rc[i]*rc[i]; i 2024 apps/traincascade/old_ml_tree.cpp for( i = 0; i < n1 - 1; i++ ) i 2026 apps/traincascade/old_ml_tree.cpp int idx = responses[sorted_indices[i]]; i 2034 apps/traincascade/old_ml_tree.cpp if( values[i] + epsilon < values[i+1] ) i 2040 apps/traincascade/old_ml_tree.cpp best_i = i; i 2048 apps/traincascade/old_ml_tree.cpp for( i = 0; i < m; i++ ) i 2050 apps/traincascade/old_ml_tree.cpp double wv = rc[i]*priors[i]; i 2055 apps/traincascade/old_ml_tree.cpp for( i = 0; i < n1 - 1; i++ ) i 2057 apps/traincascade/old_ml_tree.cpp int idx = responses[sorted_indices[i]]; i 2066 apps/traincascade/old_ml_tree.cpp if( values[i] + epsilon < values[i+1] ) i 2072 apps/traincascade/old_ml_tree.cpp best_i = i; i 2097 apps/traincascade/old_ml_tree.cpp int i, j, idx; i 2104 apps/traincascade/old_ml_tree.cpp for( i = 0; i < n; i++ ) i 2107 apps/traincascade/old_ml_tree.cpp const int* v = vectors + i*m; i 2108 apps/traincascade/old_ml_tree.cpp labels[i] = i < k ? i : r->uniform(0, k); i 2113 apps/traincascade/old_ml_tree.cpp v_weights[i] = sum ? 1./sum : 0.; i 2116 apps/traincascade/old_ml_tree.cpp for( i = 0; i < n; i++ ) i 2126 apps/traincascade/old_ml_tree.cpp for( i = 0; i < k; i++ ) i 2129 apps/traincascade/old_ml_tree.cpp csums[i*m + j] = 0; i 2132 apps/traincascade/old_ml_tree.cpp for( i = 0; i < n; i++ ) i 2134 apps/traincascade/old_ml_tree.cpp const int* v = vectors + i*m; i 2135 apps/traincascade/old_ml_tree.cpp int* s = csums + labels[i]*m; i 2147 apps/traincascade/old_ml_tree.cpp for( i = 0; i < k; i++ ) i 2149 apps/traincascade/old_ml_tree.cpp const int* s = csums + i*m; i 2153 apps/traincascade/old_ml_tree.cpp c_weights[i] = sum ? 1./sum : 0; i 2157 apps/traincascade/old_ml_tree.cpp for( i = 0; i < n; i++ ) i 2159 apps/traincascade/old_ml_tree.cpp const int* v = vectors + i*m; i 2160 apps/traincascade/old_ml_tree.cpp double alpha = v_weights[i]; i 2180 apps/traincascade/old_ml_tree.cpp if( min_idx != labels[i] ) i 2182 apps/traincascade/old_ml_tree.cpp labels[i] = min_idx; i 2194 apps/traincascade/old_ml_tree.cpp int _mi = data->cat_count->data.i[ci], mi = _mi; i 2219 apps/traincascade/old_ml_tree.cpp int i, j, k, idx; i 2231 apps/traincascade/old_ml_tree.cpp for( i = 0; i < n; i++ ) i 2233 apps/traincascade/old_ml_tree.cpp j = ( labels[i] == 65535 && data->is_buf_16u) ? -1 : labels[i]; i 2234 apps/traincascade/old_ml_tree.cpp k = responses[i]; i 2296 apps/traincascade/old_ml_tree.cpp idx += (u.i >> 23) - 127; i 2357 apps/traincascade/old_ml_tree.cpp for( i = 0; i <= best_subset; i++ ) i 2359 apps/traincascade/old_ml_tree.cpp idx = (int)(int_ptr[i] - cjk) >> 1; i 2365 apps/traincascade/old_ml_tree.cpp for( i = 0; i < _mi; i++ ) i 2367 apps/traincascade/old_ml_tree.cpp idx = cluster_labels ? cluster_labels[i] : i; i 2369 apps/traincascade/old_ml_tree.cpp split->subset[i >> 5] |= 1 << (i & 31); i 2396 apps/traincascade/old_ml_tree.cpp int i, best_i = -1; i 2401 apps/traincascade/old_ml_tree.cpp for( i = n1; i < n; i++ ) i 2402 apps/traincascade/old_ml_tree.cpp rsum -= responses[sorted_indices[i]]; i 2405 apps/traincascade/old_ml_tree.cpp for( i = 0; i < n1 - 1; i++ ) i 2407 apps/traincascade/old_ml_tree.cpp float t = responses[sorted_indices[i]]; i 2412 apps/traincascade/old_ml_tree.cpp if( values[i] + epsilon < values[i+1] ) i 2418 apps/traincascade/old_ml_tree.cpp best_i = i; i 2440 apps/traincascade/old_ml_tree.cpp int mi = data->cat_count->data.i[ci]; i 2457 apps/traincascade/old_ml_tree.cpp int i, L = 0, R = 0; i 2461 apps/traincascade/old_ml_tree.cpp for( i = -1; i < mi; i++ ) i 2462 apps/traincascade/old_ml_tree.cpp sum[i] = counts[i] = 0; i 2465 apps/traincascade/old_ml_tree.cpp for( i = 0; i < n; i++ ) i 2467 apps/traincascade/old_ml_tree.cpp int idx = ( (labels[i] == 65535) && data->is_buf_16u ) ? -1 : labels[i]; i 2468 apps/traincascade/old_ml_tree.cpp double s = sum[idx] + responses[i]; i 2475 apps/traincascade/old_ml_tree.cpp for( i = 0; i < mi; i++ ) i 2477 apps/traincascade/old_ml_tree.cpp R += counts[i]; i 2478 apps/traincascade/old_ml_tree.cpp rsum += sum[i]; i 2479 apps/traincascade/old_ml_tree.cpp sum[i] /= MAX(counts[i],1); i 2480 apps/traincascade/old_ml_tree.cpp sum_ptr[i] = sum + i; i 2487 apps/traincascade/old_ml_tree.cpp for( i = 0; i < mi; i++ ) i 2488 apps/traincascade/old_ml_tree.cpp sum[i] *= counts[i]; i 2520 apps/traincascade/old_ml_tree.cpp for( i = 0; i <= best_subset; i++ ) i 2522 apps/traincascade/old_ml_tree.cpp int idx = (int)(sum_ptr[i] - sum); i 2548 apps/traincascade/old_ml_tree.cpp int i, best_i = -1, best_inversed = 0; i 2557 apps/traincascade/old_ml_tree.cpp for( i = 0; i < n1; i++ ) i 2559 apps/traincascade/old_ml_tree.cpp int d = dir[sorted_indices[i]]; i 2570 apps/traincascade/old_ml_tree.cpp for( i = 0; i < n1 - 1; i++ ) i 2572 apps/traincascade/old_ml_tree.cpp int d = dir[sorted_indices[i]]; i 2577 apps/traincascade/old_ml_tree.cpp if( LL + RR > _best_val && values[i] + epsilon < values[i+1] ) i 2580 apps/traincascade/old_ml_tree.cpp best_i = i; best_inversed = 0; i 2586 apps/traincascade/old_ml_tree.cpp if( RL + LR > _best_val && values[i] + epsilon < values[i+1] ) i 2589 apps/traincascade/old_ml_tree.cpp best_i = i; best_inversed = 1; i 2605 apps/traincascade/old_ml_tree.cpp for( i = 0; i < n1; i++ ) i 2607 apps/traincascade/old_ml_tree.cpp int idx = sorted_indices[i]; i 2620 apps/traincascade/old_ml_tree.cpp for( i = 0; i < n1 - 1; i++ ) i 2622 apps/traincascade/old_ml_tree.cpp int idx = sorted_indices[i]; i 2629 apps/traincascade/old_ml_tree.cpp if( LL + RR > best_val && values[i] + epsilon < values[i+1] ) i 2632 apps/traincascade/old_ml_tree.cpp best_i = i; best_inversed = 0; i 2638 apps/traincascade/old_ml_tree.cpp if( RL + LR > best_val && values[i] + epsilon < values[i+1] ) i 2641 apps/traincascade/old_ml_tree.cpp best_i = i; best_inversed = 1; i 2655 apps/traincascade/old_ml_tree.cpp int i, mi = data->cat_count->data.i[data->get_var_type(vi)], l_win = 0; i 2675 apps/traincascade/old_ml_tree.cpp for( i = -1; i < mi; i++ ) i 2676 apps/traincascade/old_ml_tree.cpp lc[i] = rc[i] = 0; i 2685 apps/traincascade/old_ml_tree.cpp for( i = -1; i < mi; i++ ) i 2686 apps/traincascade/old_ml_tree.cpp _lc[i] = _rc[i] = 0; i 2688 apps/traincascade/old_ml_tree.cpp for( i = 0; i < n; i++ ) i 2690 apps/traincascade/old_ml_tree.cpp int idx = ( (labels[i] == 65535) && (data->is_buf_16u) ) ? -1 : labels[i]; i 2691 apps/traincascade/old_ml_tree.cpp int d = dir[i]; i 2697 apps/traincascade/old_ml_tree.cpp for( i = 0; i < mi; i++ ) i 2699 apps/traincascade/old_ml_tree.cpp int sum = _lc[i]; i 2700 apps/traincascade/old_ml_tree.cpp int sum_abs = _rc[i]; i 2701 apps/traincascade/old_ml_tree.cpp lc[i] = (sum_abs - sum) >> 1; i 2702 apps/traincascade/old_ml_tree.cpp rc[i] = (sum_abs + sum) >> 1; i 2711 apps/traincascade/old_ml_tree.cpp for( i = 0; i < n; i++ ) i 2713 apps/traincascade/old_ml_tree.cpp int idx = ( (labels[i] == 65535) && (data->is_buf_16u) ) ? -1 : labels[i]; i 2714 apps/traincascade/old_ml_tree.cpp double w = priors[responses[i]]; i 2715 apps/traincascade/old_ml_tree.cpp int d = dir[i]; i 2721 apps/traincascade/old_ml_tree.cpp for( i = 0; i < mi; i++ ) i 2723 apps/traincascade/old_ml_tree.cpp double sum = lc[i]; i 2724 apps/traincascade/old_ml_tree.cpp double sum_abs = rc[i]; i 2725 apps/traincascade/old_ml_tree.cpp lc[i] = (sum_abs - sum) * 0.5; i 2726 apps/traincascade/old_ml_tree.cpp rc[i] = (sum_abs + sum) * 0.5; i 2732 apps/traincascade/old_ml_tree.cpp for( i = 0; i < mi; i++ ) i 2734 apps/traincascade/old_ml_tree.cpp double lval = lc[i], rval = rc[i]; i 2737 apps/traincascade/old_ml_tree.cpp split->subset[i >> 5] |= 1 << (i & 31); i 2755 apps/traincascade/old_ml_tree.cpp int i, j, k, n = node->sample_count, cv_n = data->params.cv_folds; i 2778 apps/traincascade/old_ml_tree.cpp int* cls_count = data->counts->data.i; i 2791 apps/traincascade/old_ml_tree.cpp for( i = 0; i < n; i++ ) i 2792 apps/traincascade/old_ml_tree.cpp cls_count[responses[i]]++; i 2800 apps/traincascade/old_ml_tree.cpp for( i = 0; i < n; i++ ) i 2802 apps/traincascade/old_ml_tree.cpp j = cv_labels[i]; k = responses[i]; i 2838 apps/traincascade/old_ml_tree.cpp node->value = data->cat_map->data.i[ i 2839 apps/traincascade/old_ml_tree.cpp data->cat_ofs->data.i[data->cat_var_count] + max_k]; i 2891 apps/traincascade/old_ml_tree.cpp for( i = 0; i < n; i++ ) i 2893 apps/traincascade/old_ml_tree.cpp double t = values[i]; i 2910 apps/traincascade/old_ml_tree.cpp for( i = 0; i < n; i++ ) i 2912 apps/traincascade/old_ml_tree.cpp j = cv_labels[i]; i 2913 apps/traincascade/old_ml_tree.cpp double t = values[i]; i 2948 apps/traincascade/old_ml_tree.cpp int vi, i, n = node->sample_count, nl, nr, d0 = 0, d1 = -1; i 2968 apps/traincascade/old_ml_tree.cpp for( i = 0; i < n; i++ ) i 2970 apps/traincascade/old_ml_tree.cpp int idx = labels[i]; i 2971 apps/traincascade/old_ml_tree.cpp if( !dir[i] && ( ((idx >= 0)&&(!data->is_buf_16u)) || ((idx != 65535)&&(data->is_buf_16u)) )) i 2975 apps/traincascade/old_ml_tree.cpp dir[i] = (char)((d ^ inversed_mask) - inversed_mask); i 2994 apps/traincascade/old_ml_tree.cpp for( i = 0; i < n1; i++ ) i 2996 apps/traincascade/old_ml_tree.cpp int idx = sorted_indices[i]; i 2999 apps/traincascade/old_ml_tree.cpp int d = i <= split_point ? -1 : 1; i 3012 apps/traincascade/old_ml_tree.cpp for( i = nr = 0; i < n; i++ ) i 3013 apps/traincascade/old_ml_tree.cpp nr += dir[i] > 0; i 3019 apps/traincascade/old_ml_tree.cpp for( i = 0; i < n; i++ ) i 3021 apps/traincascade/old_ml_tree.cpp int d = dir[i]; i 3029 apps/traincascade/old_ml_tree.cpp dir[i] = (char)d; // remap (-1,1) to (0,1) i 3036 apps/traincascade/old_ml_tree.cpp int vi, i, n = node->sample_count, nl, nr, scount = data->sample_count; i 3039 apps/traincascade/old_ml_tree.cpp int* new_idx = data->split_buf->data.i; i 3049 apps/traincascade/old_ml_tree.cpp for( i = nl = nr = 0; i < n; i++ ) i 3051 apps/traincascade/old_ml_tree.cpp int d = dir[i]; i 3053 apps/traincascade/old_ml_tree.cpp new_idx[i] = (nl & (d-1)) | (nr & -d); // d ? ri : li i 3082 apps/traincascade/old_ml_tree.cpp for(i = 0; i < n; i++) i 3083 apps/traincascade/old_ml_tree.cpp temp_buf[i] = src_sorted_idx[i]; i 3094 apps/traincascade/old_ml_tree.cpp for( i = 0; i < n1; i++ ) i 3096 apps/traincascade/old_ml_tree.cpp int idx = temp_buf[i]; i 3115 apps/traincascade/old_ml_tree.cpp for( ; i < n; i++ ) i 3117 apps/traincascade/old_ml_tree.cpp int idx = temp_buf[i]; i 3135 apps/traincascade/old_ml_tree.cpp ldst0 = ldst = buf->data.i + left->buf_idx*length_buf_row + i 3137 apps/traincascade/old_ml_tree.cpp rdst0 = rdst = buf->data.i + right->buf_idx*length_buf_row + i 3141 apps/traincascade/old_ml_tree.cpp for( i = 0; i < n1; i++ ) i 3143 apps/traincascade/old_ml_tree.cpp int idx = temp_buf[i]; i 3162 apps/traincascade/old_ml_tree.cpp for( ; i < n; i++ ) i 3164 apps/traincascade/old_ml_tree.cpp int idx = temp_buf[i]; i 3193 apps/traincascade/old_ml_tree.cpp for(i = 0; i < n; i++) i 3194 apps/traincascade/old_ml_tree.cpp temp_buf[i] = src_lbls[i]; i 3203 apps/traincascade/old_ml_tree.cpp for( i = 0; i < n; i++ ) i 3205 apps/traincascade/old_ml_tree.cpp int d = dir[i]; i 3206 apps/traincascade/old_ml_tree.cpp int idx = temp_buf[i]; i 3228 apps/traincascade/old_ml_tree.cpp int *ldst = buf->data.i + left->buf_idx*length_buf_row + i 3230 apps/traincascade/old_ml_tree.cpp int *rdst = buf->data.i + right->buf_idx*length_buf_row + i 3233 apps/traincascade/old_ml_tree.cpp for( i = 0; i < n; i++ ) i 3235 apps/traincascade/old_ml_tree.cpp int d = dir[i]; i 3236 apps/traincascade/old_ml_tree.cpp int idx = temp_buf[i]; i 3264 apps/traincascade/old_ml_tree.cpp for(i = 0; i < n; i++) i 3265 apps/traincascade/old_ml_tree.cpp temp_buf[i] = sample_idx_src[i]; i 3274 apps/traincascade/old_ml_tree.cpp for (i = 0; i < n; i++) i 3276 apps/traincascade/old_ml_tree.cpp int d = dir[i]; i 3277 apps/traincascade/old_ml_tree.cpp unsigned short idx = (unsigned short)temp_buf[i]; i 3292 apps/traincascade/old_ml_tree.cpp int* ldst = buf->data.i + left->buf_idx*length_buf_row + i 3294 apps/traincascade/old_ml_tree.cpp int* rdst = buf->data.i + right->buf_idx*length_buf_row + i 3296 apps/traincascade/old_ml_tree.cpp for (i = 0; i < n; i++) i 3298 apps/traincascade/old_ml_tree.cpp int d = dir[i]; i 3299 apps/traincascade/old_ml_tree.cpp int idx = temp_buf[i]; i 3325 apps/traincascade/old_ml_tree.cpp int* sidx = sample_idx ? sample_idx->data.i : 0; i 3340 apps/traincascade/old_ml_tree.cpp for( int i = 0; i < sample_count; i++ ) i 3343 apps/traincascade/old_ml_tree.cpp int si = sidx ? sidx[i] : i; i 3349 apps/traincascade/old_ml_tree.cpp pred_resp[i] = r; i 3357 apps/traincascade/old_ml_tree.cpp for( int i = 0; i < sample_count; i++ ) i 3360 apps/traincascade/old_ml_tree.cpp int si = sidx ? sidx[i] : i; i 3366 apps/traincascade/old_ml_tree.cpp pred_resp[i] = r; i 3623 apps/traincascade/old_ml_tree.cpp int i, mstep = 0; i 3645 apps/traincascade/old_ml_tree.cpp for( i = 0; i < n; i++ ) i 3646 apps/traincascade/old_ml_tree.cpp catbuf[i] = -1; i 3659 apps/traincascade/old_ml_tree.cpp const int* vtype = data->var_type->data.i; i 3660 apps/traincascade/old_ml_tree.cpp const int* vidx = data->var_idx && !preprocessed_input ? data->var_idx->data.i : 0; i 3661 apps/traincascade/old_ml_tree.cpp const int* cmap = data->cat_map ? data->cat_map->data.i : 0; i 3662 apps/traincascade/old_ml_tree.cpp const int* cofs = data->cat_ofs ? data->cat_ofs->data.i : 0; i 3672 apps/traincascade/old_ml_tree.cpp i = vidx ? vidx[vi] : vi; i 3673 apps/traincascade/old_ml_tree.cpp float val = sample[(size_t)i*step]; i 3674 apps/traincascade/old_ml_tree.cpp if( m && m[(size_t)i*mstep] ) i 3796 apps/traincascade/old_ml_tree.cpp int i, n = data->cat_count->data.i[ci], to_right = 0, default_dir; i 3797 apps/traincascade/old_ml_tree.cpp for( i = 0; i < n; i++ ) i 3798 apps/traincascade/old_ml_tree.cpp to_right += CV_DTREE_CAT_DIR(i,split->subset) > 0; i 3807 apps/traincascade/old_ml_tree.cpp for( i = 0; i < n; i++ ) i 3809 apps/traincascade/old_ml_tree.cpp int dir = CV_DTREE_CAT_DIR(i,split->subset); i 3811 apps/traincascade/old_ml_tree.cpp cvWriteInt( fs, 0, i ); i 3946 apps/traincascade/old_ml_tree.cpp int i, n = data->cat_count->data.i[ci], inversed = 0, val; i 3963 apps/traincascade/old_ml_tree.cpp val = inseq->data.i; i 3973 apps/traincascade/old_ml_tree.cpp for( i = 0; i < reader.seq->total; i++ ) i 3976 apps/traincascade/old_ml_tree.cpp val = inode->data.i; i 3988 apps/traincascade/old_ml_tree.cpp for( i = 0; i < (n + 31) >> 5; i++ ) i 3989 apps/traincascade/old_ml_tree.cpp split->subset[i] ^= -1; i 4023 apps/traincascade/old_ml_tree.cpp int i, depth; i 4055 apps/traincascade/old_ml_tree.cpp for( i = 0; i < reader.seq->total; i++ ) i 4083 apps/traincascade/old_ml_tree.cpp int i; i 4088 apps/traincascade/old_ml_tree.cpp for( i = 0; i < reader.seq->total; i++ ) i 48 apps/traincascade/traincascade.cpp for( int i = 1; i < argc; i++ ) i 51 apps/traincascade/traincascade.cpp if( !strcmp( argv[i], "-data" ) ) i 53 apps/traincascade/traincascade.cpp cascadeDirName = argv[++i]; i 55 apps/traincascade/traincascade.cpp else if( !strcmp( argv[i], "-vec" ) ) i 57 apps/traincascade/traincascade.cpp vecName = argv[++i]; i 59 apps/traincascade/traincascade.cpp else if( !strcmp( argv[i], "-bg" ) ) i 61 apps/traincascade/traincascade.cpp bgName = argv[++i]; i 63 apps/traincascade/traincascade.cpp else if( !strcmp( argv[i], "-numPos" ) ) i 65 apps/traincascade/traincascade.cpp numPos = atoi( argv[++i] ); i 67 apps/traincascade/traincascade.cpp else if( !strcmp( argv[i], "-numNeg" ) ) i 69 apps/traincascade/traincascade.cpp numNeg = atoi( argv[++i] ); i 71 apps/traincascade/traincascade.cpp else if( !strcmp( argv[i], "-numStages" ) ) i 73 apps/traincascade/traincascade.cpp numStages = atoi( argv[++i] ); i 75 apps/traincascade/traincascade.cpp else if( !strcmp( argv[i], "-precalcValBufSize" ) ) i 77 apps/traincascade/traincascade.cpp precalcValBufSize = atoi( argv[++i] ); i 79 apps/traincascade/traincascade.cpp else if( !strcmp( argv[i], "-precalcIdxBufSize" ) ) i 81 apps/traincascade/traincascade.cpp precalcIdxBufSize = atoi( argv[++i] ); i 83 apps/traincascade/traincascade.cpp else if( !strcmp( argv[i], "-baseFormatSave" ) ) i 87 apps/traincascade/traincascade.cpp else if( !strcmp( argv[i], "-numThreads" ) ) i 89 apps/traincascade/traincascade.cpp numThreads = atoi(argv[++i]); i 91 apps/traincascade/traincascade.cpp else if( !strcmp( argv[i], "-acceptanceRatioBreakValue" ) ) i 93 apps/traincascade/traincascade.cpp acceptanceRatioBreakValue = atof(argv[++i]); i 95 apps/traincascade/traincascade.cpp else if ( cascadeParams.scanAttr( argv[i], argv[i+1] ) ) { i++; } i 96 apps/traincascade/traincascade.cpp else if ( stageParams.scanAttr( argv[i], argv[i+1] ) ) { i++; } i 101 apps/traincascade/traincascade.cpp set = featureParams[fi]->scanAttr(argv[i], argv[i+1]); i 104 apps/traincascade/traincascade.cpp i++; i 200 modules/calib3d/misc/java/test/Calib3dTest.java for (int i = 0; i < 5; i++) i 202 modules/calib3d/misc/java/test/Calib3dTest.java Point pt = new Point(size * (2 * i + 1) / 10, size * (2 * j + 1) / 10); i 225 modules/calib3d/misc/java/test/Calib3dTest.java for (int i = 0; i < 3; i++) i 227 modules/calib3d/misc/java/test/Calib3dTest.java Point pt = new Point(offsetx + (2 * i + j % 2) * step, offsety + step * j); i 245 modules/calib3d/misc/java/test/Calib3dTest.java for (int i = 0; i < minFundamentalMatPoints; i++) { i 248 modules/calib3d/misc/java/test/Calib3dTest.java pts.put(i, 0, x, y); //add(new Point(x, y)); i 282 modules/calib3d/misc/java/test/Calib3dTest.java for (int i = 0; i < NUM; i++) { i 285 modules/calib3d/misc/java/test/Calib3dTest.java originalPoints.put(i, 0, x, y); i 286 modules/calib3d/misc/java/test/Calib3dTest.java transformedPoints.put(i, 0, y, x); i 364 modules/calib3d/misc/java/test/Calib3dTest.java for (int i = 0; i < matSize; i++) i 366 modules/calib3d/misc/java/test/Calib3dTest.java disp[i * matSize + j] = i - j; i 380 modules/calib3d/misc/java/test/Calib3dTest.java for (int i = 0; i < matSize; i++) i 382 modules/calib3d/misc/java/test/Calib3dTest.java _truth[(i * matSize + j) * 3 + 0] = i; i 383 modules/calib3d/misc/java/test/Calib3dTest.java _truth[(i * matSize + j) * 3 + 1] = j; i 384 modules/calib3d/misc/java/test/Calib3dTest.java _truth[(i * matSize + j) * 3 + 2] = i - j; i 398 modules/calib3d/misc/java/test/Calib3dTest.java for (int i = 0; i < matSize; i++) i 400 modules/calib3d/misc/java/test/Calib3dTest.java disp[i * matSize + j] = i - j; i 415 modules/calib3d/misc/java/test/Calib3dTest.java for (int i = 0; i < matSize; i++) i 417 modules/calib3d/misc/java/test/Calib3dTest.java _truth[(i * matSize + j) * 3 + 0] = i; i 418 modules/calib3d/misc/java/test/Calib3dTest.java _truth[(i * matSize + j) * 3 + 1] = j; i 419 modules/calib3d/misc/java/test/Calib3dTest.java _truth[(i * matSize + j) * 3 + 2] = i - j; i 434 modules/calib3d/misc/java/test/Calib3dTest.java for (int i = 0; i < matSize; i++) i 436 modules/calib3d/misc/java/test/Calib3dTest.java disp[i * matSize + j] = i - j; i 450 modules/calib3d/misc/java/test/Calib3dTest.java for (short i = 0; i < matSize; i++) i 452 modules/calib3d/misc/java/test/Calib3dTest.java _truth[(i * matSize + j) * 3 + 0] = i; i 453 modules/calib3d/misc/java/test/Calib3dTest.java _truth[(i * matSize + j) * 3 + 1] = j; i 454 modules/calib3d/misc/java/test/Calib3dTest.java _truth[(i * matSize + j) * 3 + 2] = (short) (i - j); i 513 modules/calib3d/misc/java/test/Calib3dTest.java for (int i = 0; i < minPnpPointsNum; i++) { i 516 modules/calib3d/misc/java/test/Calib3dTest.java points2d.put(i, 0, x, y); //add(new Point(x, y)); i 517 modules/calib3d/misc/java/test/Calib3dTest.java points3d.put(i, 0, 0, y, x); // add(new Point3(0, y, x)); i 121 modules/calib3d/src/calibinit.cpp for( int i = 0; i < 4; i++ ) i 123 modules/calib3d/src/calibinit.cpp if( neighbors[i] ) i 125 modules/calib3d/src/calibinit.cpp float dx = neighbors[i]->pt.x - pt.x; i 126 modules/calib3d/src/calibinit.cpp float dy = neighbors[i]->pt.y - pt.y; i 198 modules/calib3d/src/calibinit.cpp int i, j; i 208 modules/calib3d/src/calibinit.cpp for( i = 0, j = 0; j < count; j++ ) i 212 modules/calib3d/src/calibinit.cpp CV_MAT_ELEM( *xy, float, i*2+1, 2 ) = CV_MAT_ELEM( *xy, float, i*2, 0 ) = pts2[j].x; i 213 modules/calib3d/src/calibinit.cpp CV_MAT_ELEM( *xy, float, i*2+1, 3 ) = CV_MAT_ELEM( *xy, float, i*2, 1 ) = pts2[j].y; i 214 modules/calib3d/src/calibinit.cpp CV_MAT_ELEM( *xy, float, i*2, 2 ) = CV_MAT_ELEM( *xy, float, i*2, 3 ) = CV_MAT_ELEM( *xy, float, i*2, 5 ) = \ i 215 modules/calib3d/src/calibinit.cpp CV_MAT_ELEM( *xy, float, i*2+1, 0 ) = CV_MAT_ELEM( *xy, float, i*2+1, 1 ) = CV_MAT_ELEM( *xy, float, i*2+1, 4 ) = 0; i 216 modules/calib3d/src/calibinit.cpp CV_MAT_ELEM( *xy, float, i*2, 4 ) = CV_MAT_ELEM( *xy, float, i*2+1, 5 ) = 1; i 217 modules/calib3d/src/calibinit.cpp CV_MAT_ELEM( *uv, float, i*2, 0 ) = pts1[j].x; i 218 modules/calib3d/src/calibinit.cpp CV_MAT_ELEM( *uv, float, i*2+1, 0 ) = pts1[j].y; i 219 modules/calib3d/src/calibinit.cpp i++; i 382 modules/calib3d/src/calibinit.cpp for(int i = 0; i < quad_count; i++ ) i 388 modules/calib3d/src/calibinit.cpp pt1 = quads[i].corners[k]->pt; i 389 modules/calib3d/src/calibinit.cpp pt2 = quads[i].corners[(k+1)%4]->pt; i 436 modules/calib3d/src/calibinit.cpp for(int i = 0; i < quad_count; i++ ) i 438 modules/calib3d/src/calibinit.cpp if (quads[i].group_idx == group_idx) i 443 modules/calib3d/src/calibinit.cpp if (quads[i].ordered) i 445 modules/calib3d/src/calibinit.cpp pt1 = quads[i].corners[k]->pt; i 446 modules/calib3d/src/calibinit.cpp pt2 = quads[i].corners[(k+1)%4]->pt; i 476 modules/calib3d/src/calibinit.cpp for(int i = 0; i < n; i++ ) i 479 modules/calib3d/src/calibinit.cpp float avgi = corner_group[i]->meanDist(&ni); i 488 modules/calib3d/src/calibinit.cpp for(int i = 0; i < n; i++ ) i 489 modules/calib3d/src/calibinit.cpp out_corners[i] = corner_group[i]->pt; i 530 modules/calib3d/src/calibinit.cpp for(int i = 0; i < n/2; i++ ) i 533 modules/calib3d/src/calibinit.cpp CV_SWAP(out_corners[i], out_corners[n-i-1], temp); i 585 modules/calib3d/src/calibinit.cpp int i, j, k; i 589 modules/calib3d/src/calibinit.cpp for( i = 0; i < (k == 0 ? pattern_size.height : pattern_size.width); i++ ) i 591 modules/calib3d/src/calibinit.cpp CvPoint2D32f a = k == 0 ? corners[i*pattern_size.width] : corners[i]; i 592 modules/calib3d/src/calibinit.cpp CvPoint2D32f b = k == 0 ? corners[(i+1)*pattern_size.width-1] : i 593 modules/calib3d/src/calibinit.cpp corners[(pattern_size.height-1)*pattern_size.width + i]; i 599 modules/calib3d/src/calibinit.cpp CvPoint2D32f c = k == 0 ? corners[i*pattern_size.width + j] : i 600 modules/calib3d/src/calibinit.cpp corners[j*pattern_size.width + i]; i 634 modules/calib3d/src/calibinit.cpp for (int i=0; i<quad_count; i++) i 636 modules/calib3d/src/calibinit.cpp if (quads[i]->count == 4) i 638 modules/calib3d/src/calibinit.cpp start = quads[i]; i 675 modules/calib3d/src/calibinit.cpp for(int i = 0; i < 4; i++ ) i 677 modules/calib3d/src/calibinit.cpp CvCBQuad *neighbor = q->neighbors[i]; i 678 modules/calib3d/src/calibinit.cpp switch(i) // adjust col, row for this quad i 694 modules/calib3d/src/calibinit.cpp icvOrderQuad(neighbor, q->corners[i], (i+2)%4); // set in order i 703 modules/calib3d/src/calibinit.cpp for (int i=col_min; i<=col_max; i++) i 704 modules/calib3d/src/calibinit.cpp PRINTF("HIST[%d] = %d\n", i, col_hist[i]); i 766 modules/calib3d/src/calibinit.cpp for (int i=0; i<quad_count; i++) i 768 modules/calib3d/src/calibinit.cpp if (quads[i]->count == 4) i 770 modules/calib3d/src/calibinit.cpp int col = quads[i]->col; i 771 modules/calib3d/src/calibinit.cpp int row = quads[i]->row; i 785 modules/calib3d/src/calibinit.cpp CvCBQuad *neighbor = quads[i]->neighbors[j]; i 793 modules/calib3d/src/calibinit.cpp icvOrderQuad(neighbor, quads[i]->corners[j], (j+2)%4); i 807 modules/calib3d/src/calibinit.cpp for (int i=0; i<quad_count; i++) i 809 modules/calib3d/src/calibinit.cpp if (quads[i]->count < 4 && quads[i]->ordered) i 811 modules/calib3d/src/calibinit.cpp int added = icvAddOuterQuad(quads[i],quads,quad_count,all_quads,*all_count,corners); i 824 modules/calib3d/src/calibinit.cpp for (int i=quad_count-1; i>=0; i--) // eliminate any quad not connected to i 827 modules/calib3d/src/calibinit.cpp if (quads[i]->ordered == false) i 832 modules/calib3d/src/calibinit.cpp if (quads[i]->neighbors[j] && quads[i]->neighbors[j]->ordered) i 837 modules/calib3d/src/calibinit.cpp PRINTF("Removing quad %d\n", i); i 838 modules/calib3d/src/calibinit.cpp icvRemoveQuadFromGroup(quads,rcount,quads[i]); i 862 modules/calib3d/src/calibinit.cpp for (int i=0; i<4; i++) // find no-neighbor corners i 864 modules/calib3d/src/calibinit.cpp if (!quad->neighbors[i]) // ok, create and add neighbor i 866 modules/calib3d/src/calibinit.cpp int j = (i+2)%4; i 875 modules/calib3d/src/calibinit.cpp quad->neighbors[i] = q; i 885 modules/calib3d/src/calibinit.cpp CvPoint2D32f pt = quad->corners[i]->pt; i 900 modules/calib3d/src/calibinit.cpp q->corners[j] = quad->corners[i]; i 903 modules/calib3d/src/calibinit.cpp if (quad->neighbors[(i+3)%4] && i 904 modules/calib3d/src/calibinit.cpp quad->neighbors[(i+3)%4]->ordered && i 905 modules/calib3d/src/calibinit.cpp quad->neighbors[(i+3)%4]->neighbors[i] && i 906 modules/calib3d/src/calibinit.cpp quad->neighbors[(i+3)%4]->neighbors[i]->ordered ) i 908 modules/calib3d/src/calibinit.cpp CvCBQuad *qn = quad->neighbors[(i+3)%4]->neighbors[i]; i 911 modules/calib3d/src/calibinit.cpp qn->neighbors[(i+1)%4] = q; i 914 modules/calib3d/src/calibinit.cpp q->corners[(j+1)%4] = qn->corners[(i+1)%4]; i 931 modules/calib3d/src/calibinit.cpp for (int i=0; i<count; i++) i 934 modules/calib3d/src/calibinit.cpp if (quads[i]->ordered) i 935 modules/calib3d/src/calibinit.cpp PRINTF("index: %d cur: %d\n", col, quads[i]->col); i 937 modules/calib3d/src/calibinit.cpp if (quads[i]->ordered && quads[i]->col == col) i 941 modules/calib3d/src/calibinit.cpp if (quads[i]->neighbors[1]) i 943 modules/calib3d/src/calibinit.cpp icvRemoveQuadFromGroup(quads,rcount,quads[i]->neighbors[1]); i 946 modules/calib3d/src/calibinit.cpp if (quads[i]->neighbors[2]) i 948 modules/calib3d/src/calibinit.cpp icvRemoveQuadFromGroup(quads,rcount,quads[i]->neighbors[2]); i 954 modules/calib3d/src/calibinit.cpp if (quads[i]->neighbors[0]) i 956 modules/calib3d/src/calibinit.cpp icvRemoveQuadFromGroup(quads,rcount,quads[i]->neighbors[0]); i 959 modules/calib3d/src/calibinit.cpp if (quads[i]->neighbors[3]) i 961 modules/calib3d/src/calibinit.cpp icvRemoveQuadFromGroup(quads,rcount,quads[i]->neighbors[3]); i 974 modules/calib3d/src/calibinit.cpp int i, rcount = count; i 976 modules/calib3d/src/calibinit.cpp for (i=0; i<count; i++) i 979 modules/calib3d/src/calibinit.cpp if (quads[i]->ordered) i 980 modules/calib3d/src/calibinit.cpp PRINTF("index: %d cur: %d\n", row, quads[i]->row); i 982 modules/calib3d/src/calibinit.cpp if (quads[i]->ordered && quads[i]->row == row) i 986 modules/calib3d/src/calibinit.cpp if (quads[i]->neighbors[2]) i 988 modules/calib3d/src/calibinit.cpp icvRemoveQuadFromGroup(quads,rcount,quads[i]->neighbors[2]); i 991 modules/calib3d/src/calibinit.cpp if (quads[i]->neighbors[3]) i 993 modules/calib3d/src/calibinit.cpp icvRemoveQuadFromGroup(quads,rcount,quads[i]->neighbors[3]); i 999 modules/calib3d/src/calibinit.cpp if (quads[i]->neighbors[0]) i 1001 modules/calib3d/src/calibinit.cpp icvRemoveQuadFromGroup(quads,rcount,quads[i]->neighbors[0]); i 1004 modules/calib3d/src/calibinit.cpp if (quads[i]->neighbors[1]) i 1006 modules/calib3d/src/calibinit.cpp icvRemoveQuadFromGroup(quads,rcount,quads[i]->neighbors[1]); i 1024 modules/calib3d/src/calibinit.cpp int i, j; i 1026 modules/calib3d/src/calibinit.cpp for(i = 0; i < count; i++ ) i 1028 modules/calib3d/src/calibinit.cpp CvCBQuad *q = quads[i]; i 1048 modules/calib3d/src/calibinit.cpp for(i = 0; i < count; i++ ) i 1050 modules/calib3d/src/calibinit.cpp CvCBQuad *q = quads[i]; i 1053 modules/calib3d/src/calibinit.cpp quads[i] = quads[count-1]; i 1082 modules/calib3d/src/calibinit.cpp for (int i=3; i>0; i--) i 1084 modules/calib3d/src/calibinit.cpp quad->corners[i] = quad->corners[i-1]; i 1085 modules/calib3d/src/calibinit.cpp quad->neighbors[i] = quad->neighbors[i-1]; i 1100 modules/calib3d/src/calibinit.cpp int i, j, k; i 1113 modules/calib3d/src/calibinit.cpp for( i = 0; i < quad_count; i++ ) i 1116 modules/calib3d/src/calibinit.cpp CvCBQuad* q = quad_group[i]; i 1128 modules/calib3d/src/calibinit.cpp centers[i] = ci; i 1170 modules/calib3d/src/calibinit.cpp for( i = 0; i < quad_count; i++ ) i 1172 modules/calib3d/src/calibinit.cpp CvCBQuad *q = quad_group[i]; i 1208 modules/calib3d/src/calibinit.cpp int i, count = 0; i 1211 modules/calib3d/src/calibinit.cpp for( i = 0; i < quad_count; i++ ) i 1213 modules/calib3d/src/calibinit.cpp if( quad[i].count > 0 && quad[i].group_idx < 0) i 1218 modules/calib3d/src/calibinit.cpp if( i < quad_count ) i 1220 modules/calib3d/src/calibinit.cpp CvCBQuad* q = &quad[i]; i 1229 modules/calib3d/src/calibinit.cpp for( i = 0; i < 4; i++ ) i 1231 modules/calib3d/src/calibinit.cpp CvCBQuad *neighbor = q->neighbors[i]; i 1257 modules/calib3d/src/calibinit.cpp int i, out_corner_count = 0, corner_count = 0; i 1267 modules/calib3d/src/calibinit.cpp for( i = 0; i < quad_count; i++ ) i 1269 modules/calib3d/src/calibinit.cpp CvCBQuad* q = quad_group[i]; i 1317 modules/calib3d/src/calibinit.cpp for( i = 0; i < corner_count; i++ ) i 1319 modules/calib3d/src/calibinit.cpp int n = corners[i]->count; i 1324 modules/calib3d/src/calibinit.cpp if( corners[i]->row == ROW1 ) i 1325 modules/calib3d/src/calibinit.cpp first = corners[i]; i 1326 modules/calib3d/src/calibinit.cpp else if( !first2 && corners[i]->row == ROW2 ) i 1327 modules/calib3d/src/calibinit.cpp first2 = corners[i]; i 1402 modules/calib3d/src/calibinit.cpp for( i = 1; ; i++ ) i 1410 modules/calib3d/src/calibinit.cpp cur->row = i; i 1413 modules/calib3d/src/calibinit.cpp if( cur->count == 2 + (i < height-1) && j > 0 ) i 1423 modules/calib3d/src/calibinit.cpp if( c && c->row > i ) i 1427 modules/calib3d/src/calibinit.cpp if( c->neighbors[kk] && c->neighbors[kk]->row == i-1 ) i 1458 modules/calib3d/src/calibinit.cpp for( i = 0; i < height; i++ ) i 1460 modules/calib3d/src/calibinit.cpp out_corners[i*width + j] = corners[j*height + i]; i 1471 modules/calib3d/src/calibinit.cpp for( i = 0; i < height; i++ ) i 1473 modules/calib3d/src/calibinit.cpp CV_SWAP( out_corners[i*width+j], out_corners[i*width+width-j-1], c ); i 1478 modules/calib3d/src/calibinit.cpp for( i = 0; i < height/2; i++ ) i 1479 modules/calib3d/src/calibinit.cpp CV_SWAP( out_corners[i*width+j], out_corners[(height - i - 1)*width+j], c ); i 1491 modules/calib3d/src/calibinit.cpp for( i = 0; i < corner_count; i++ ) i 1492 modules/calib3d/src/calibinit.cpp out_corners[i] = corners[i]; i 1510 modules/calib3d/src/calibinit.cpp int idx, i, k, j; i 1524 modules/calib3d/src/calibinit.cpp for( i = 0; i < 4; i++ ) i 1532 modules/calib3d/src/calibinit.cpp if( cur_quad->neighbors[i] ) i 1535 modules/calib3d/src/calibinit.cpp pt = cur_quad->corners[i]->pt; i 1634 modules/calib3d/src/calibinit.cpp cur_quad->neighbors[i] = closest_quad; i 1635 modules/calib3d/src/calibinit.cpp cur_quad->corners[i] = closest_corner; i 1667 modules/calib3d/src/calibinit.cpp int i, idx, min_size; i 1717 modules/calib3d/src/calibinit.cpp for( i = 0; i < 4; i++ ) i 1718 modules/calib3d/src/calibinit.cpp pt[i] = *(CvPoint*)cvGetSeqElem(dst_contour, i); i 1772 modules/calib3d/src/calibinit.cpp for( i = 0; i < 4; i++ ) i 1774 modules/calib3d/src/calibinit.cpp CvPoint2D32f pt = cvPointTo32f(*(CvPoint*)cvGetSeqElem(src_contour, i)); i 1775 modules/calib3d/src/calibinit.cpp CvCBCorner* corner = &(*out_corners)[quad_count*4 + i]; i 1779 modules/calib3d/src/calibinit.cpp q->corners[i] = corner; i 1782 modules/calib3d/src/calibinit.cpp for( i = 0; i < 4; i++ ) i 1784 modules/calib3d/src/calibinit.cpp float dx = q->corners[i]->pt.x - q->corners[(i+1)&3]->pt.x; i 1785 modules/calib3d/src/calibinit.cpp float dy = q->corners[i]->pt.y - q->corners[(i+1)&3]->pt.y; i 1804 modules/calib3d/src/calibinit.cpp int i; i 1844 modules/calib3d/src/calibinit.cpp for( i = 0; i < count; i++ ) i 1847 modules/calib3d/src/calibinit.cpp pt.x = cvRound(corners[i].x*(1 << shift)); i 1848 modules/calib3d/src/calibinit.cpp pt.y = cvRound(corners[i].y*(1 << shift)); i 1872 modules/calib3d/src/calibinit.cpp for( y = 0, i = 0; y < pattern_size.height; y++ ) i 1882 modules/calib3d/src/calibinit.cpp for( x = 0; x < pattern_size.width; x++, i++ ) i 1885 modules/calib3d/src/calibinit.cpp pt.x = cvRound(corners[i].x*(1 << shift)); i 1886 modules/calib3d/src/calibinit.cpp pt.y = cvRound(corners[i].y*(1 << shift)); i 1888 modules/calib3d/src/calibinit.cpp if( i != 0 ) i 1957 modules/calib3d/src/calibinit.cpp for (size_t i = 0; i < keypoints.size(); i++) i 1959 modules/calib3d/src/calibinit.cpp points.push_back (keypoints[i].pt); i 1985 modules/calib3d/src/calibinit.cpp for (int i = 0; i < attempts; i++) i 2020 modules/calib3d/src/calibinit.cpp if (i != 0) i 2031 modules/calib3d/src/calibinit.cpp if (i != attempts - 1) i 63 modules/calib3d/src/calibration.cpp int i, j, M, N, L; i 90 modules/calib3d/src/calibration.cpp for( i = 0; i < M*N; i++ ) i 92 modules/calib3d/src/calibration.cpp int i1 = i / N, i2 = i % N; i 96 modules/calib3d/src/calibration.cpp float* dcda = (float*)(dABdA->data.ptr + dABdA->step*i); i 107 modules/calib3d/src/calibration.cpp float* dcdb = (float*)(dABdB->data.ptr + dABdB->step*i); i 119 modules/calib3d/src/calibration.cpp for( i = 0; i < M*N; i++ ) i 121 modules/calib3d/src/calibration.cpp int i1 = i / N, i2 = i % N; i 125 modules/calib3d/src/calibration.cpp double* dcda = (double*)(dABdA->data.ptr + dABdA->step*i); i 136 modules/calib3d/src/calibration.cpp double* dcdb = (double*)(dABdB->data.ptr + dABdB->step*i); i 254 modules/calib3d/src/calibration.cpp int i, k; i 354 modules/calib3d/src/calibration.cpp for( i = 0; i < 3; i++ ) i 356 modules/calib3d/src/calibration.cpp double ri = i == 0 ? rx : i == 1 ? ry : rz; i 360 modules/calib3d/src/calibration.cpp J[i*9+k] = a0*I[k] + a1*rrt[k] + a2*drrt[i*9+k] + i 361 modules/calib3d/src/calibration.cpp a3*_r_x_[k] + a4*d_r_x_[i*9+k]; i 541 modules/calib3d/src/calibration.cpp int i, j, count; i 749 modules/calib3d/src/calibration.cpp for( i = 0; i < count; i++ ) i 751 modules/calib3d/src/calibration.cpp double X = M[i].x, Y = M[i].y, Z = M[i].z; i 772 modules/calib3d/src/calibration.cpp m[i].x = xd*fx + cx; i 773 modules/calib3d/src/calibration.cpp m[i].y = yd*fy + cy; i 931 modules/calib3d/src/calibration.cpp int i, count; i 1007 modules/calib3d/src/calibration.cpp for( i = 0; i < count; i++ ) i 1011 modules/calib3d/src/calibration.cpp const double* src = matM->data.db + i*3; i 1012 modules/calib3d/src/calibration.cpp double* dst = _Mxy->data.db + i*2; i 1061 modules/calib3d/src/calibration.cpp for( i = 0; i < count; i++, L += 24 ) i 1063 modules/calib3d/src/calibration.cpp double x = -mn[i].x, y = -mn[i].y; i 1064 modules/calib3d/src/calibration.cpp L[0] = L[16] = M[i].x; i 1065 modules/calib3d/src/calibration.cpp L[1] = L[17] = M[i].y; i 1066 modules/calib3d/src/calibration.cpp L[2] = L[18] = M[i].z; i 1070 modules/calib3d/src/calibration.cpp L[8] = x*M[i].x; i 1071 modules/calib3d/src/calibration.cpp L[9] = x*M[i].y; i 1072 modules/calib3d/src/calibration.cpp L[10] = x*M[i].z; i 1074 modules/calib3d/src/calibration.cpp L[20] = y*M[i].x; i 1075 modules/calib3d/src/calibration.cpp L[21] = y*M[i].y; i 1076 modules/calib3d/src/calibration.cpp L[22] = y*M[i].z; i 1145 modules/calib3d/src/calibration.cpp int i, j, pos, nimages, ni = 0; i 1172 modules/calib3d/src/calibration.cpp for( i = 0, pos = 0; i < nimages; i++, pos += ni ) i 1174 modules/calib3d/src/calibration.cpp double* Ap = matA->data.db + i*4; i 1175 modules/calib3d/src/calibration.cpp double* bp = _b->data.db + i*2; i 1176 modules/calib3d/src/calibration.cpp ni = npoints->data.i[i]; i 1184 modules/calib3d/src/calibration.cpp memcpy( _allH->data.db + i*9, H, sizeof(H) ); i 1241 modules/calib3d/src/calibration.cpp int i, nimages, maxPoints = 0, ni = 0, pos, total = 0, nparams, npstep, cn; i 1300 modules/calib3d/src/calibration.cpp for( i = 0; i < nimages; i++ ) i 1302 modules/calib3d/src/calibration.cpp ni = npoints->data.i[i*npstep]; i 1306 modules/calib3d/src/calibration.cpp sprintf( buf, "The number of points in the view #%d is < 4", i ); i 1370 modules/calib3d/src/calibration.cpp for( i = 0; i < total; i++ ) i 1371 modules/calib3d/src/calibration.cpp ((CvPoint3D64f*)matM->data.db)[i].z = 0.; i 1431 modules/calib3d/src/calibration.cpp for( i = 0, pos = 0; i < nimages; i++, pos += ni ) i 1434 modules/calib3d/src/calibration.cpp ni = npoints->data.i[i*npstep]; i 1436 modules/calib3d/src/calibration.cpp cvGetRows( solver.param, &_ri, NINTRINSIC + i*6, NINTRINSIC + i*6 + 3 ); i 1437 modules/calib3d/src/calibration.cpp cvGetRows( solver.param, &_ti, NINTRINSIC + i*6 + 3, NINTRINSIC + i*6 + 6 ); i 1470 modules/calib3d/src/calibration.cpp for( i = 0, pos = 0; i < nimages; i++, pos += ni ) i 1473 modules/calib3d/src/calibration.cpp ni = npoints->data.i[i*npstep]; i 1475 modules/calib3d/src/calibration.cpp cvGetRows( solver.param, &_ri, NINTRINSIC + i*6, NINTRINSIC + i*6 + 3 ); i 1476 modules/calib3d/src/calibration.cpp cvGetRows( solver.param, &_ti, NINTRINSIC + i*6 + 3, NINTRINSIC + i*6 + 6 ); i 1506 modules/calib3d/src/calibration.cpp cvGetSubRect( _JtJ, &_part, cvRect(NINTRINSIC+i*6,NINTRINSIC+i*6,6,6) ); i 1509 modules/calib3d/src/calibration.cpp cvGetSubRect( _JtJ, &_part, cvRect(NINTRINSIC+i*6,0,6,NINTRINSIC) ); i 1515 modules/calib3d/src/calibration.cpp cvGetRows( _JtErr, &_part, NINTRINSIC + i*6, NINTRINSIC + (i+1)*6 ); i 1530 modules/calib3d/src/calibration.cpp for( i = 0; i < nimages; i++ ) i 1535 modules/calib3d/src/calibration.cpp src = cvMat( 3, 1, CV_64F, solver.param->data.db + NINTRINSIC + i*6 ); i 1539 modules/calib3d/src/calibration.cpp rvecs->data.ptr + rvecs->step*i ); i 1546 modules/calib3d/src/calibration.cpp rvecs->data.ptr + i*CV_ELEM_SIZE(rvecs->type) : i 1547 modules/calib3d/src/calibration.cpp rvecs->data.ptr + rvecs->step*i ); i 1553 modules/calib3d/src/calibration.cpp src = cvMat( 3, 1, CV_64F, solver.param->data.db + NINTRINSIC + i*6 + 3 ); i 1555 modules/calib3d/src/calibration.cpp tvecs->data.ptr + i*CV_ELEM_SIZE(tvecs->type) : i 1556 modules/calib3d/src/calibration.cpp tvecs->data.ptr + tvecs->step*i ); i 1652 modules/calib3d/src/calibration.cpp int i, k, p, ni = 0, ofs, nimages, pointsTotal, maxPoints = 0; i 1671 modules/calib3d/src/calibration.cpp for( i = 0, pointsTotal = 0; i < nimages; i++ ) i 1673 modules/calib3d/src/calibration.cpp maxPoints = MAX(maxPoints, npoints->data.i[i]); i 1674 modules/calib3d/src/calibration.cpp pointsTotal += npoints->data.i[i]; i 1798 modules/calib3d/src/calibration.cpp for( i = ofs = 0; i < nimages; ofs += ni, i++ ) i 1800 modules/calib3d/src/calibration.cpp ni = npoints->data.i[i]; i 1820 modules/calib3d/src/calibration.cpp solver.param->data.db[(i+1)*6] = _om[0][0]; i 1821 modules/calib3d/src/calibration.cpp solver.param->data.db[(i+1)*6 + 1] = _om[0][1]; i 1822 modules/calib3d/src/calibration.cpp solver.param->data.db[(i+1)*6 + 2] = _om[0][2]; i 1823 modules/calib3d/src/calibration.cpp solver.param->data.db[(i+1)*6 + 3] = t[0][0]; i 1824 modules/calib3d/src/calibration.cpp solver.param->data.db[(i+1)*6 + 4] = t[0][1]; i 1825 modules/calib3d/src/calibration.cpp solver.param->data.db[(i+1)*6 + 5] = t[0][2]; i 1831 modules/calib3d/src/calibration.cpp RT0->data.db[i] = t[0][0]; i 1832 modules/calib3d/src/calibration.cpp RT0->data.db[i + nimages] = t[0][1]; i 1833 modules/calib3d/src/calibration.cpp RT0->data.db[i + nimages*2] = t[0][2]; i 1834 modules/calib3d/src/calibration.cpp RT0->data.db[i + nimages*3] = t[1][0]; i 1835 modules/calib3d/src/calibration.cpp RT0->data.db[i + nimages*4] = t[1][1]; i 1836 modules/calib3d/src/calibration.cpp RT0->data.db[i + nimages*5] = t[1][2]; i 1840 modules/calib3d/src/calibration.cpp for( i = 0; i < 6; i++ ) i 1842 modules/calib3d/src/calibration.cpp qsort( RT0->data.db + i*nimages, nimages, CV_ELEM_SIZE(RT0->type), dbCmp ); i 1843 modules/calib3d/src/calibration.cpp solver.param->data.db[i] = nimages % 2 != 0 ? RT0->data.db[i*nimages + nimages/2] : i 1844 modules/calib3d/src/calibration.cpp (RT0->data.db[i*nimages + nimages/2 - 1] + RT0->data.db[i*nimages + nimages/2])*0.5; i 1934 modules/calib3d/src/calibration.cpp for( i = ofs = 0; i < nimages; ofs += ni, i++ ) i 1936 modules/calib3d/src/calibration.cpp ni = npoints->data.i[i]; i 1939 modules/calib3d/src/calibration.cpp om[0] = cvMat(3,1,CV_64F,solver.param->data.db+(i+1)*6); i 1940 modules/calib3d/src/calibration.cpp T[0] = cvMat(3,1,CV_64F,solver.param->data.db+(i+1)*6+3); i 1975 modules/calib3d/src/calibration.cpp int iofs = (nimages+1)*6 + k*NINTRINSIC, eofs = (i+1)*6; i 2161 modules/calib3d/src/calibration.cpp int i, k; i 2214 modules/calib3d/src/calibration.cpp for( i = 0; i < 4; i++ ) i 2216 modules/calib3d/src/calibration.cpp int j = (i<2) ? 0 : 1; i 2217 modules/calib3d/src/calibration.cpp _pts[i].x = (float)((i % 2)*(nx-1)); i 2218 modules/calib3d/src/calibration.cpp _pts[i].y = (float)(j*(ny-1)); i 2438 modules/calib3d/src/calibration.cpp int i, j, npoints; i 2496 modules/calib3d/src/calibration.cpp for( i = j = 0; i < npoints; i++ ) i 2498 modules/calib3d/src/calibration.cpp if( fabs(m1[i].x*lines2[i].x + i 2499 modules/calib3d/src/calibration.cpp m1[i].y*lines2[i].y + i 2500 modules/calib3d/src/calibration.cpp lines2[i].z) <= threshold && i 2501 modules/calib3d/src/calibration.cpp fabs(m2[i].x*lines1[i].x + i 2502 modules/calib3d/src/calibration.cpp m2[i].y*lines1[i].y + i 2503 modules/calib3d/src/calibration.cpp lines1[i].z) <= threshold ) i 2505 modules/calib3d/src/calibration.cpp if( j < i ) i 2507 modules/calib3d/src/calibration.cpp m1[j] = m1[i]; i 2508 modules/calib3d/src/calibration.cpp m2[j] = m2[i]; i 2940 modules/calib3d/src/calibration.cpp int i, k; i 2941 modules/calib3d/src/calibration.cpp for(i = 0; i < 3; i++) i 2943 modules/calib3d/src/calibration.cpp cvmSet(&tmpProjMatr, i, k, cvmGet(projMatr, i, k)); i 2948 modules/calib3d/src/calibration.cpp for(i = 0; i < 4; i++) i 2949 modules/calib3d/src/calibration.cpp cvmSet(posVect, i, 0, cvmGet(&tmpMatrixV, 3, i)); // Solution is last row of V. i 2971 modules/calib3d/src/calibration.cpp int i, j = 0, ni = 0, total = 0; i 2975 modules/calib3d/src/calibration.cpp for( i = 0; i < nimages; i++ ) i 2977 modules/calib3d/src/calibration.cpp ni = objectPoints.getMat(i).checkVector(3, CV_32F); i 2980 modules/calib3d/src/calibration.cpp int ni1 = imagePoints1.getMat(i).checkVector(2, CV_32F); i 3002 modules/calib3d/src/calibration.cpp for( i = 0; i < nimages; i++, j += ni ) i 3004 modules/calib3d/src/calibration.cpp Mat objpt = objectPoints.getMat(i); i 3005 modules/calib3d/src/calibration.cpp Mat imgpt1 = imagePoints1.getMat(i); i 3007 modules/calib3d/src/calibration.cpp npoints.at<int>(i) = ni; i 3013 modules/calib3d/src/calibration.cpp Mat imgpt2 = imagePoints2.getMat(i); i 3228 modules/calib3d/src/calibration.cpp int i; i 3249 modules/calib3d/src/calibration.cpp for( i = 0; i < (int)nimages; i++ ) i 3253 modules/calib3d/src/calibration.cpp _rvecs.create(3, 1, CV_64F, i, true); i 3254 modules/calib3d/src/calibration.cpp Mat rv = _rvecs.getMat(i); i 3255 modules/calib3d/src/calibration.cpp memcpy(rv.ptr(), rvecM.ptr<double>(i), 3*sizeof(double)); i 3259 modules/calib3d/src/calibration.cpp _tvecs.create(3, 1, CV_64F, i, true); i 3260 modules/calib3d/src/calibration.cpp Mat tv = _tvecs.getMat(i); i 3261 modules/calib3d/src/calibration.cpp memcpy(tv.ptr(), tvecM.ptr<double>(i), 3*sizeof(double)); i 3503 modules/calib3d/src/calibration.cpp for( int i = 0; i < (int)std::min(n1, n3); i++ ) i 3505 modules/calib3d/src/calibration.cpp Mat pt1 = _imgpt1_0.getMat(i), pt3 = _imgpt3_0.getMat(i); i 3520 modules/calib3d/src/calibration.cpp for( size_t i = 0; i < n; i++ ) i 3522 modules/calib3d/src/calibration.cpp double y1 = imgpt3[i].y, y2 = imgpt1[i].y; i 88 modules/calib3d/src/checkchessboard.cpp for(size_t i = idx1; i != idx2; i++) i 90 modules/calib3d/src/checkchessboard.cpp counts[pairs[i].second]++; i 171 modules/calib3d/src/checkchessboard.cpp for(size_t i = 0; i < quads.size(); i++) i 173 modules/calib3d/src/checkchessboard.cpp size_t j = i + 1; i 176 modules/calib3d/src/checkchessboard.cpp if(quads[j].first/quads[i].first > 1.0f + size_rel_dev) i 182 modules/calib3d/src/checkchessboard.cpp if(j + 1 > min_quads_count + i) i 186 modules/calib3d/src/checkchessboard.cpp countClasses(quads, i, j, counts); i 62 modules/calib3d/src/circlesgrid.cpp for(size_t i=0; i<points.size(); i++) i 64 modules/calib3d/src/circlesgrid.cpp circle(outImage, points[i], radius, color, thickness); i 88 modules/calib3d/src/circlesgrid.cpp for(int i = 0; i < n; i++) i 90 modules/calib3d/src/circlesgrid.cpp for(j = i+1; j < n; j++) i 92 modules/calib3d/src/circlesgrid.cpp dists.at<float>(i, j) = (float)norm(points[i] - points[j]); i 93 modules/calib3d/src/circlesgrid.cpp distsMask.at<uchar>(i, j) = 255; i 95 modules/calib3d/src/circlesgrid.cpp distsMask.at<uchar>(j, i) = 255;//distsMask.at<uchar>(i, j); i 96 modules/calib3d/src/circlesgrid.cpp dists.at<float>(j, i) = dists.at<float>(i, j); i 101 modules/calib3d/src/circlesgrid.cpp for(size_t i=0; i<points.size(); i++) i 103 modules/calib3d/src/circlesgrid.cpp clusters[i].push_back(i); i 195 modules/calib3d/src/circlesgrid.cpp for(size_t i=0; i<hull2f.size(); i++) i 197 modules/calib3d/src/circlesgrid.cpp Point2f vec1 = hull2f[(i+1) % hull2f.size()] - hull2f[i % hull2f.size()]; i 198 modules/calib3d/src/circlesgrid.cpp Point2f vec2 = hull2f[(i-1 + static_cast<int>(hull2f.size())) % hull2f.size()] - hull2f[i % hull2f.size()]; i 214 modules/calib3d/src/circlesgrid.cpp for(int i=0; i<cornersCount; i++) i 216 modules/calib3d/src/circlesgrid.cpp corners.push_back(hull2f[cornersIndices.at<int>(i, 0)]); i 225 modules/calib3d/src/circlesgrid.cpp int i, j, n = (int)corners.size(); i 242 modules/calib3d/src/circlesgrid.cpp for(i = 0; i < n; i++) i 244 modules/calib3d/src/circlesgrid.cpp for(j = i + 1; j < n; j++) i 246 modules/calib3d/src/circlesgrid.cpp float val = fabs(tangentVectors[i].dot(tangentVectors[j])); i 247 modules/calib3d/src/circlesgrid.cpp cosAngles.at<float>(i, j) = val; i 248 modules/calib3d/src/circlesgrid.cpp cosAngles.at<float>(j, i) = val; i 305 modules/calib3d/src/circlesgrid.cpp for(size_t i=0; i<outsideCorners.size(); i++) i 307 modules/calib3d/src/circlesgrid.cpp centerToCorners.push_back(outsideCorners[i] - center); i 347 modules/calib3d/src/circlesgrid.cpp for(size_t i=0; i<sortedCorners.size()-1; i++) i 349 modules/calib3d/src/circlesgrid.cpp sortedCorners[i] = sortedCorners[i+1]; i 373 modules/calib3d/src/circlesgrid.cpp int i = trueIndices[idx].y; i 377 modules/calib3d/src/circlesgrid.cpp idealPoints.push_back(Point2f((2*j + i % 2)*squareSize, i*squareSize)); i 381 modules/calib3d/src/circlesgrid.cpp idealPoints.push_back(Point2f(j*squareSize, i*squareSize)); i 398 modules/calib3d/src/circlesgrid.cpp for( int i = 0; i < patternSize.height; i++ ) i 404 modules/calib3d/src/circlesgrid.cpp idealPt = Point2f((2*j + i % 2)*squareSize, i*squareSize); i 406 modules/calib3d/src/circlesgrid.cpp idealPt = Point2f(j*squareSize, i*squareSize); i 431 modules/calib3d/src/circlesgrid.cpp for (size_t i = 0; i < n; i++) i 433 modules/calib3d/src/circlesgrid.cpp addVertex(i); i 618 modules/calib3d/src/circlesgrid.cpp for (size_t i = 0; i < rng.getVerticesCount(); i++) i 620 modules/calib3d/src/circlesgrid.cpp Graph::Neighbors neighbors1 = rng.getNeighbors(i); i 626 modules/calib3d/src/circlesgrid.cpp if (i < *it2) i 628 modules/calib3d/src/circlesgrid.cpp Point2f vec1 = keypoints[i] - keypoints[*it1]; i 634 modules/calib3d/src/circlesgrid.cpp vectors.push_back(keypoints[i] - keypoints[*it2]); i 635 modules/calib3d/src/circlesgrid.cpp vectors.push_back(keypoints[*it2] - keypoints[i]); i 644 modules/calib3d/src/circlesgrid.cpp for (size_t i = 0; i < holes.size(); i++) i 646 modules/calib3d/src/circlesgrid.cpp for (size_t j = 0; j < holes[i].size(); j++) i 650 modules/calib3d/src/circlesgrid.cpp if (i != holes.size() - 1 && basisGraphs[k].areVerticesAdjacent(holes[i][j], holes[i + 1][j])) i 652 modules/calib3d/src/circlesgrid.cpp basisGraphs[k].removeEdge(holes[i][j], holes[i + 1][j]); i 655 modules/calib3d/src/circlesgrid.cpp if (j != holes[i].size() - 1 && basisGraphs[k].areVerticesAdjacent(holes[i][j], holes[i][j + 1])) i 657 modules/calib3d/src/circlesgrid.cpp basisGraphs[k].removeEdge(holes[i][j], holes[i][j + 1]); i 674 modules/calib3d/src/circlesgrid.cpp for (size_t i = 0; i < holes.size(); i++) i 676 modules/calib3d/src/circlesgrid.cpp if (holes[i].size() != patternSize.width) i 679 modules/calib3d/src/circlesgrid.cpp for (size_t j = 0; j < holes[i].size(); j++) i 681 modules/calib3d/src/circlesgrid.cpp vertices.insert(holes[i][j]); i 722 modules/calib3d/src/circlesgrid.cpp for (size_t i = 0; i < largeHoles->size(); i++) i 724 modules/calib3d/src/circlesgrid.cpp if (largeHoles->at(i).size() != lw) i 729 modules/calib3d/src/circlesgrid.cpp for (size_t j = 0; j < largeHoles->at(i).size(); j++) i 731 modules/calib3d/src/circlesgrid.cpp vertices.insert(largeHoles->at(i)[j]); i 734 modules/calib3d/src/circlesgrid.cpp if (i < smallHoles->size()) i 736 modules/calib3d/src/circlesgrid.cpp if (smallHoles->at(i).size() != sw) i 741 modules/calib3d/src/circlesgrid.cpp for (size_t j = 0; j < smallHoles->at(i).size(); j++) i 743 modules/calib3d/src/circlesgrid.cpp vertices.insert(smallHoles->at(i)[j]); i 780 modules/calib3d/src/circlesgrid.cpp for (size_t i = h; i < patternSize.height; i++) i 788 modules/calib3d/src/circlesgrid.cpp for (size_t i = w; i < patternSize.width; i++) i 796 modules/calib3d/src/circlesgrid.cpp for (size_t i = 0; i < holesRow.size(); i++) i 797 modules/calib3d/src/circlesgrid.cpp holes[i].push_back(holesRow[i]); i 803 modules/calib3d/src/circlesgrid.cpp for (size_t i = w; i < patternSize.width; i++) i 809 modules/calib3d/src/circlesgrid.cpp for (size_t i = h; i < patternSize.height; i++) i 830 modules/calib3d/src/circlesgrid.cpp for (int i = iStart; i != iEnd; i += iStep) i 834 modules/calib3d/src/circlesgrid.cpp dstPoints.push_back(offset + Point2f(edgeLength * j, edgeLength * i)); i 845 modules/calib3d/src/circlesgrid.cpp for (size_t i = 0; i < keypoints.size(); i++) i 847 modules/calib3d/src/circlesgrid.cpp srcKeypoints.push_back(keypoints[i]); i 856 modules/calib3d/src/circlesgrid.cpp for (size_t i = 0; i < dstKeypoints.size(); i++) i 858 modules/calib3d/src/circlesgrid.cpp Point2f pt = dstKeypoints[i]; i 869 modules/calib3d/src/circlesgrid.cpp for (size_t i = 0; i < keypoints.size(); i++) i 871 modules/calib3d/src/circlesgrid.cpp double dist = norm(pt - keypoints[i]); i 875 modules/calib3d/src/circlesgrid.cpp bestIdx = i; i 904 modules/calib3d/src/circlesgrid.cpp for (size_t i = 0; i < holes[seedLineIdx].size(); i++) i 906 modules/calib3d/src/circlesgrid.cpp Point2f pt = keypoints[holes[seedLineIdx][i]] + basisVec; i 908 modules/calib3d/src/circlesgrid.cpp seeds.push_back(holes[seedLineIdx][i]); i 913 modules/calib3d/src/circlesgrid.cpp for (size_t i = 0; i < holes.size(); i++) i 915 modules/calib3d/src/circlesgrid.cpp Point2f pt = keypoints[holes[i][seedLineIdx]] + basisVec; i 917 modules/calib3d/src/circlesgrid.cpp seeds.push_back(holes[i][seedLineIdx]); i 943 modules/calib3d/src/circlesgrid.cpp for (size_t i = 0; i < newCenters.size(); i++) i 947 modules/calib3d/src/circlesgrid.cpp if (holes[j].end() != std::find(holes[j].begin(), holes[j].end(), newCenters[i])) i 988 modules/calib3d/src/circlesgrid.cpp for (size_t i = 0; i < holes.size(); i++) i 990 modules/calib3d/src/circlesgrid.cpp holes[i].insert(holes[i].begin(), above[i]); i 998 modules/calib3d/src/circlesgrid.cpp for (size_t i = 0; i < holes.size(); i++) i 1000 modules/calib3d/src/circlesgrid.cpp holes[i].insert(holes[i].end(), below[i]); i 1014 modules/calib3d/src/circlesgrid.cpp for (size_t i = 0; i < seeds.size(); i++) i 1016 modules/calib3d/src/circlesgrid.cpp if (seeds[i] < vCount && points[i] < vCount) i 1018 modules/calib3d/src/circlesgrid.cpp if (!basisGraphs[addRow].areVerticesAdjacent(seeds[i], points[i])) i 1028 modules/calib3d/src/circlesgrid.cpp if (points[i] < vCount) i 1034 modules/calib3d/src/circlesgrid.cpp for (size_t i = 1; i < points.size(); i++) i 1036 modules/calib3d/src/circlesgrid.cpp if (points[i - 1] < vCount && points[i] < vCount) i 1038 modules/calib3d/src/circlesgrid.cpp if (!basisGraphs[!addRow].areVerticesAdjacent(points[i - 1], points[i])) i 1069 modules/calib3d/src/circlesgrid.cpp for (size_t i = 0; i < samples.size(); i++) i 1071 modules/calib3d/src/circlesgrid.cpp Rect_<float> rect(samples[i] - Point2f(parameters.densityNeighborhoodSize) * 0.5, i 1080 modules/calib3d/src/circlesgrid.cpp filteredSamples.push_back(samples[i]); i 1100 modules/calib3d/src/circlesgrid.cpp for (int i = 0; i < clustersCount; i++) i 1102 modules/calib3d/src/circlesgrid.cpp int maxIdx = (fabs(centers.at<float> (i, 0)) < fabs(centers.at<float> (i, 1))); i 1103 modules/calib3d/src/circlesgrid.cpp if (centers.at<float> (i, maxIdx) > 0) i 1105 modules/calib3d/src/circlesgrid.cpp Point2f vec(centers.at<float> (i, 0), centers.at<float> (i, 1)); i 1107 modules/calib3d/src/circlesgrid.cpp basisIndices.push_back(i); i 1137 modules/calib3d/src/circlesgrid.cpp for (size_t i = 0; i < basis.size(); i++) i 1139 modules/calib3d/src/circlesgrid.cpp convexHull(Mat(clusters[i]), hulls[i]); i 1143 modules/calib3d/src/circlesgrid.cpp for (size_t i = 0; i < keypoints.size(); i++) i 1147 modules/calib3d/src/circlesgrid.cpp if (i == j) i 1150 modules/calib3d/src/circlesgrid.cpp Point2f vec = keypoints[i] - keypoints[j]; i 1156 modules/calib3d/src/circlesgrid.cpp basisGraphs[k].addEdge(i, j); i 1171 modules/calib3d/src/circlesgrid.cpp for (size_t i = 0; i < keypoints.size(); i++) i 1175 modules/calib3d/src/circlesgrid.cpp if (i == j) i 1178 modules/calib3d/src/circlesgrid.cpp Point2f vec = keypoints[i] - keypoints[j]; i 1184 modules/calib3d/src/circlesgrid.cpp if (k == i || k == j) i 1187 modules/calib3d/src/circlesgrid.cpp double dist1 = norm(keypoints[i] - keypoints[k]); i 1198 modules/calib3d/src/circlesgrid.cpp rng.addEdge(i, j); i 1199 modules/calib3d/src/circlesgrid.cpp vectors.push_back(keypoints[i] - keypoints[j]); i 1202 modules/calib3d/src/circlesgrid.cpp line(*drawImage, keypoints[i], keypoints[j], Scalar(255, 0, 0), 2); i 1203 modules/calib3d/src/circlesgrid.cpp circle(*drawImage, keypoints[i], 3, Scalar(0, 0, 255), -1); i 1216 modules/calib3d/src/circlesgrid.cpp for (int i = 0; i < predecessorMatrix.rows; i++) i 1220 modules/calib3d/src/circlesgrid.cpp int dist = dm.at<int> (i, j); i 1223 modules/calib3d/src/circlesgrid.cpp if (dm.at<int> (i, k) == dist - 1 && dm.at<int> (k, j) == 1) i 1225 modules/calib3d/src/circlesgrid.cpp predecessorMatrix.at<int> (i, j) = k; i 1293 modules/calib3d/src/circlesgrid.cpp for (int i = 0; i < (int)confidences.size(); i++) i 1295 modules/calib3d/src/circlesgrid.cpp if (confidences[i] > maxConf) i 1297 modules/calib3d/src/circlesgrid.cpp maxConf = confidences[i]; i 1298 modules/calib3d/src/circlesgrid.cpp bestPathIdx = i; i 1316 modules/calib3d/src/circlesgrid.cpp for (size_t i = 0; i < basis.size(); i++) i 1318 modules/calib3d/src/circlesgrid.cpp Point2f pt(basis[i]); i 1319 modules/calib3d/src/circlesgrid.cpp line(drawImg, origin, origin + pt, Scalar(0, (double)(i * 255), 0), 2); i 1337 modules/calib3d/src/circlesgrid.cpp for (size_t i = 0; i < basisGraphs.size(); i++) i 1339 modules/calib3d/src/circlesgrid.cpp for (size_t v1 = 0; v1 < basisGraphs[i].getVerticesCount(); v1++) i 1341 modules/calib3d/src/circlesgrid.cpp for (size_t v2 = 0; v2 < basisGraphs[i].getVerticesCount(); v2++) i 1343 modules/calib3d/src/circlesgrid.cpp if (basisGraphs[i].areVerticesAdjacent(v1, v2)) i 1376 modules/calib3d/src/circlesgrid.cpp for (size_t i = 0; i < holes.size(); i++) i 1378 modules/calib3d/src/circlesgrid.cpp for (size_t j = 0; j < holes[i].size(); j++) i 1380 modules/calib3d/src/circlesgrid.cpp if (j != holes[i].size() - 1) i 1381 modules/calib3d/src/circlesgrid.cpp line(drawImage, keypoints[holes[i][j]], keypoints[holes[i][j + 1]], Scalar(255, 0, 0), 2); i 1382 modules/calib3d/src/circlesgrid.cpp if (i != holes.size() - 1) i 1383 modules/calib3d/src/circlesgrid.cpp line(drawImage, keypoints[holes[i][j]], keypoints[holes[i + 1][j]], Scalar(255, 0, 0), 2); i 1386 modules/calib3d/src/circlesgrid.cpp circle(drawImage, keypoints[holes[i][j]], holeRadius, holeColor, holeThickness); i 1403 modules/calib3d/src/circlesgrid.cpp for (size_t i = 0; i < holes.size(); i++) i 1405 modules/calib3d/src/circlesgrid.cpp for (size_t j = 0; j < holes[i].size(); j++) i 1407 modules/calib3d/src/circlesgrid.cpp outHoles.push_back(keypoints[holes[i][j]]); i 1546 modules/calib3d/src/circlesgrid.cpp for (size_t i = 0; i < corner.size(); i++) i 1552 modules/calib3d/src/circlesgrid.cpp if (areSegmentsIntersecting(corner[i], segments[j][k])) i 1576 modules/calib3d/src/circlesgrid.cpp for (size_t i = 0; i < cornersCount; i++) i 1578 modules/calib3d/src/circlesgrid.cpp isInsider[i] = doesIntersectionExist(largeSegments[i], smallSegments); i 267 modules/calib3d/src/compat_ptsetreg.cpp int i, j, nparams = param->rows; i 269 modules/calib3d/src/compat_ptsetreg.cpp for( i = 0; i < nparams; i++ ) i 270 modules/calib3d/src/compat_ptsetreg.cpp if( mask->data.ptr[i] == 0 ) i 272 modules/calib3d/src/compat_ptsetreg.cpp double *row = JtJ->data.db + i*nparams, *col = JtJ->data.db + i; i 275 modules/calib3d/src/compat_ptsetreg.cpp JtErr->data.db[i] = 0; i 282 modules/calib3d/src/compat_ptsetreg.cpp for( i = 0; i < nparams; i++ ) i 283 modules/calib3d/src/compat_ptsetreg.cpp JtJN->data.db[(nparams+1)*i] *= 1. + lambda; i 290 modules/calib3d/src/compat_ptsetreg.cpp for( i = 0; i < nparams; i++ ) i 291 modules/calib3d/src/compat_ptsetreg.cpp param->data.db[i] = prevParam->data.db[i] - (mask->data.ptr[i] ? param->data.db[i] : 0); i 58 modules/calib3d/src/dls.cpp for (int i = 0; i < 3; ++i) i 61 modules/calib3d/src/dls.cpp cv::Mat pp = R_[i] * ( p - cv::repeat(mn, 1, p.cols) ); i 75 modules/calib3d/src/dls.cpp t_est__ = t_est_[j] - C_est_[j] * R_[i] * mn; i 76 modules/calib3d/src/dls.cpp C_est__ = C_est_[j] * R_[i]; i 173 modules/calib3d/src/dls.cpp for (int i = 0; i < N; ++i) i 176 modules/calib3d/src/dls.cpp cv::Mat z_mul = z.col(i)*z.col(i).t(); i 179 modules/calib3d/src/dls.cpp b2 += (z_mul - eye) * C_est_j * pp.col(i); i 220 modules/calib3d/src/dls.cpp for (int i = 0; i < N; ++i) i 222 modules/calib3d/src/dls.cpp z.col(i).copyTo(z_i); i 223 modules/calib3d/src/dls.cpp A += ( z_i*z_i.t() - eye ) * LeftMultVec(pp.col(i)); i 233 modules/calib3d/src/dls.cpp for (int i = 0; i < N; ++i) i 235 modules/calib3d/src/dls.cpp z.col(i).copyTo(z_i); i 236 modules/calib3d/src/dls.cpp ppi_A = LeftMultVec(pp.col(i)) + A; i 305 modules/calib3d/src/dls.cpp for (int i = 0; i < D_mat->rows; ++i) i 307 modules/calib3d/src/dls.cpp const double* Di = D_mat->ptr<double>(i); i 310 modules/calib3d/src/dls.cpp D[i+1][j+1] = Di[j]; i 391 modules/calib3d/src/dls.cpp for (int i = 0; i < 3; ++i) i 393 modules/calib3d/src/dls.cpp mat_.at<double>(i, 3*i + 0) = v.at<double>(0); i 394 modules/calib3d/src/dls.cpp mat_.at<double>(i, 3*i + 1) = v.at<double>(1); i 395 modules/calib3d/src/dls.cpp mat_.at<double>(i, 3*i + 2) = v.at<double>(2); i 630 modules/calib3d/src/dls.cpp for (int i = 0; i < M.cols; ++i) m += M.col(i); i 25 modules/calib3d/src/dls.h for(int i = 0; i < N; i++) i 27 modules/calib3d/src/dls.h p.at<double>(0,i) = opoints.at<OpointType>(i).x; i 28 modules/calib3d/src/dls.h p.at<double>(1,i) = opoints.at<OpointType>(i).y; i 29 modules/calib3d/src/dls.h p.at<double>(2,i) = opoints.at<OpointType>(i).z; i 32 modules/calib3d/src/dls.h mn.at<double>(0) += p.at<double>(0,i); i 33 modules/calib3d/src/dls.h mn.at<double>(1) += p.at<double>(1,i); i 34 modules/calib3d/src/dls.h mn.at<double>(2) += p.at<double>(2,i); i 37 modules/calib3d/src/dls.h double sr = std::pow(ipoints.at<IpointType>(i).x, 2) + i 38 modules/calib3d/src/dls.h std::pow(ipoints.at<IpointType>(i).y, 2) + (double)1; i 41 modules/calib3d/src/dls.h z.at<double>(0,i) = ipoints.at<IpointType>(i).x / sr; i 42 modules/calib3d/src/dls.h z.at<double>(1,i) = ipoints.at<IpointType>(i).y / sr; i 43 modules/calib3d/src/dls.h z.at<double>(2,i) = (double)1 / sr; i 111 modules/calib3d/src/dls.h for (int i = 0; i < m; i++) i 112 modules/calib3d/src/dls.h arr[i] = val; i 120 modules/calib3d/src/dls.h for (int i = 0; i < m; i++) i 121 modules/calib3d/src/dls.h arr[i] = new _Tp[_n]; i 129 modules/calib3d/src/dls.h for (int i = 0; i < m; i++) { i 131 modules/calib3d/src/dls.h arr[i][j] = val; i 173 modules/calib3d/src/dls.h for (int i = 0; i < nn; i++) { i 174 modules/calib3d/src/dls.h if (i < low || i > high) { i 175 modules/calib3d/src/dls.h d[i] = H[i][i]; i 176 modules/calib3d/src/dls.h e[i] = 0.0; i 178 modules/calib3d/src/dls.h for (int j = std::max(i - 1, 0); j < nn; j++) { i 179 modules/calib3d/src/dls.h norm = norm + std::abs(H[i][j]); i 254 modules/calib3d/src/dls.h for (int i = 0; i <= n1; i++) { i 255 modules/calib3d/src/dls.h z = H[i][n1 - 1]; i 256 modules/calib3d/src/dls.h H[i][n1 - 1] = q * z + p * H[i][n1]; i 257 modules/calib3d/src/dls.h H[i][n1] = q * H[i][n1] - p * z; i 262 modules/calib3d/src/dls.h for (int i = low; i <= high; i++) { i 263 modules/calib3d/src/dls.h z = V[i][n1 - 1]; i 264 modules/calib3d/src/dls.h V[i][n1 - 1] = q * z + p * V[i][n1]; i 265 modules/calib3d/src/dls.h V[i][n1] = q * V[i][n1] - p * z; i 297 modules/calib3d/src/dls.h for (int i = low; i <= n1; i++) { i 298 modules/calib3d/src/dls.h H[i][i] -= x; i 316 modules/calib3d/src/dls.h for (int i = low; i <= n1; i++) { i 317 modules/calib3d/src/dls.h H[i][i] -= s; i 350 modules/calib3d/src/dls.h for (int i = m + 2; i <= n1; i++) { i 351 modules/calib3d/src/dls.h H[i][i - 2] = 0.0; i 352 modules/calib3d/src/dls.h if (i > m + 2) { i 353 modules/calib3d/src/dls.h H[i][i - 3] = 0.0; i 406 modules/calib3d/src/dls.h for (int i = 0; i <= std::min(n1, k + 3); i++) { i 407 modules/calib3d/src/dls.h p = x * H[i][k] + y * H[i][k + 1]; i 409 modules/calib3d/src/dls.h p = p + z * H[i][k + 2]; i 410 modules/calib3d/src/dls.h H[i][k + 2] = H[i][k + 2] - p * r; i 412 modules/calib3d/src/dls.h H[i][k] = H[i][k] - p; i 413 modules/calib3d/src/dls.h H[i][k + 1] = H[i][k + 1] - p * q; i 418 modules/calib3d/src/dls.h for (int i = low; i <= high; i++) { i 419 modules/calib3d/src/dls.h p = x * V[i][k] + y * V[i][k + 1]; i 421 modules/calib3d/src/dls.h p = p + z * V[i][k + 2]; i 422 modules/calib3d/src/dls.h V[i][k + 2] = V[i][k + 2] - p * r; i 424 modules/calib3d/src/dls.h V[i][k] = V[i][k] - p; i 425 modules/calib3d/src/dls.h V[i][k + 1] = V[i][k + 1] - p * q; i 447 modules/calib3d/src/dls.h for (int i = n1 - 1; i >= 0; i--) { i 448 modules/calib3d/src/dls.h w = H[i][i] - p; i 451 modules/calib3d/src/dls.h r = r + H[i][j] * H[j][n1]; i 453 modules/calib3d/src/dls.h if (e[i] < 0.0) { i 457 modules/calib3d/src/dls.h l = i; i 458 modules/calib3d/src/dls.h if (e[i] == 0.0) { i 460 modules/calib3d/src/dls.h H[i][n1] = -r / w; i 462 modules/calib3d/src/dls.h H[i][n1] = -r / (eps * norm); i 468 modules/calib3d/src/dls.h x = H[i][i + 1]; i 469 modules/calib3d/src/dls.h y = H[i + 1][i]; i 470 modules/calib3d/src/dls.h q = (d[i] - p) * (d[i] - p) + e[i] * e[i]; i 472 modules/calib3d/src/dls.h H[i][n1] = t; i 474 modules/calib3d/src/dls.h H[i + 1][n1] = (-r - w * t) / x; i 476 modules/calib3d/src/dls.h H[i + 1][n1] = (-s - y * t) / z; i 482 modules/calib3d/src/dls.h t = std::abs(H[i][n1]); i 484 modules/calib3d/src/dls.h for (int j = i; j <= n1; j++) { i 506 modules/calib3d/src/dls.h for (int i = n1 - 2; i >= 0; i--) { i 511 modules/calib3d/src/dls.h ra = ra + H[i][j] * H[j][n1 - 1]; i 512 modules/calib3d/src/dls.h sa = sa + H[i][j] * H[j][n1]; i 514 modules/calib3d/src/dls.h w = H[i][i] - p; i 516 modules/calib3d/src/dls.h if (e[i] < 0.0) { i 521 modules/calib3d/src/dls.h l = i; i 522 modules/calib3d/src/dls.h if (e[i] == 0) { i 524 modules/calib3d/src/dls.h H[i][n1 - 1] = cdivr; i 525 modules/calib3d/src/dls.h H[i][n1] = cdivi; i 530 modules/calib3d/src/dls.h x = H[i][i + 1]; i 531 modules/calib3d/src/dls.h y = H[i + 1][i]; i 532 modules/calib3d/src/dls.h double vr = (d[i] - p) * (d[i] - p) + e[i] * e[i] - q * q; i 533 modules/calib3d/src/dls.h double vi = (d[i] - p) * 2.0 * q; i 540 modules/calib3d/src/dls.h H[i][n1 - 1] = cdivr; i 541 modules/calib3d/src/dls.h H[i][n1] = cdivi; i 543 modules/calib3d/src/dls.h H[i + 1][n1 - 1] = (-ra - w * H[i][n1 - 1] + q i 544 modules/calib3d/src/dls.h * H[i][n1]) / x; i 545 modules/calib3d/src/dls.h H[i + 1][n1] = (-sa - w * H[i][n1] - q * H[i][n1 i 548 modules/calib3d/src/dls.h cdiv(-r - y * H[i][n1 - 1], -s - y * H[i][n1], z, i 550 modules/calib3d/src/dls.h H[i + 1][n1 - 1] = cdivr; i 551 modules/calib3d/src/dls.h H[i + 1][n1] = cdivi; i 557 modules/calib3d/src/dls.h t = std::max(std::abs(H[i][n1 - 1]), std::abs(H[i][n1])); i 559 modules/calib3d/src/dls.h for (int j = i; j <= n1; j++) { i 571 modules/calib3d/src/dls.h for (int i = 0; i < nn; i++) { i 572 modules/calib3d/src/dls.h if (i < low || i > high) { i 573 modules/calib3d/src/dls.h for (int j = i; j < nn; j++) { i 574 modules/calib3d/src/dls.h V[i][j] = H[i][j]; i 582 modules/calib3d/src/dls.h for (int i = low; i <= high; i++) { i 585 modules/calib3d/src/dls.h z = z + V[i][k] * H[k][j]; i 587 modules/calib3d/src/dls.h V[i][j] = z; i 606 modules/calib3d/src/dls.h for (int i = m; i <= high; i++) { i 607 modules/calib3d/src/dls.h scale = scale + std::abs(H[i][m - 1]); i 614 modules/calib3d/src/dls.h for (int i = high; i >= m; i--) { i 615 modules/calib3d/src/dls.h ort[i] = H[i][m - 1] / scale; i 616 modules/calib3d/src/dls.h h += ort[i] * ort[i]; i 630 modules/calib3d/src/dls.h for (int i = high; i >= m; i--) { i 631 modules/calib3d/src/dls.h f += ort[i] * H[i][j]; i 634 modules/calib3d/src/dls.h for (int i = m; i <= high; i++) { i 635 modules/calib3d/src/dls.h H[i][j] -= f * ort[i]; i 639 modules/calib3d/src/dls.h for (int i = 0; i <= high; i++) { i 642 modules/calib3d/src/dls.h f += ort[j] * H[i][j]; i 646 modules/calib3d/src/dls.h H[i][j] -= f * ort[j]; i 656 modules/calib3d/src/dls.h for (int i = 0; i < n; i++) { i 658 modules/calib3d/src/dls.h V[i][j] = (i == j ? 1.0 : 0.0); i 664 modules/calib3d/src/dls.h for (int i = m + 1; i <= high; i++) { i 665 modules/calib3d/src/dls.h ort[i] = H[i][m - 1]; i 669 modules/calib3d/src/dls.h for (int i = m; i <= high; i++) { i 670 modules/calib3d/src/dls.h g += ort[i] * V[i][j]; i 674 modules/calib3d/src/dls.h for (int i = m; i <= high; i++) { i 675 modules/calib3d/src/dls.h V[i][j] += g * ort[i]; i 688 modules/calib3d/src/dls.h for (int i = 0; i < n; i++) { i 689 modules/calib3d/src/dls.h delete[] H[i]; i 690 modules/calib3d/src/dls.h delete[] V[i]; i 709 modules/calib3d/src/dls.h for (int i = 0; i < n; i++) { i 710 modules/calib3d/src/dls.h _eigenvalues.at<double> (0, i) = d[i]; i 714 modules/calib3d/src/dls.h for (int i = 0; i < n; i++) i 716 modules/calib3d/src/dls.h _eigenvectors.at<double> (i, j) = V[i][j]; i 753 modules/calib3d/src/dls.h for (int i = 0; i < tmp.rows; i++) { i 755 modules/calib3d/src/dls.h this->H[i][j] = tmp.at<double>(i, j); i 52 modules/calib3d/src/epnp.cpp for(int i = 0; i < number_of_correspondences; i++) i 54 modules/calib3d/src/epnp.cpp cws[0][j] += pws[3 * i + j]; i 68 modules/calib3d/src/epnp.cpp for(int i = 0; i < number_of_correspondences; i++) i 70 modules/calib3d/src/epnp.cpp PW0->data.db[3 * i + j] = pws[3 * i + j] - cws[0][j]; i 77 modules/calib3d/src/epnp.cpp for(int i = 1; i < 4; i++) { i 78 modules/calib3d/src/epnp.cpp double k = sqrt(dc[i - 1] / number_of_correspondences); i 80 modules/calib3d/src/epnp.cpp cws[i][j] = cws[0][j] + k * uct[3 * (i - 1) + j]; i 90 modules/calib3d/src/epnp.cpp for(int i = 0; i < 3; i++) i 92 modules/calib3d/src/epnp.cpp cc[3 * i + j - 1] = cws[j][i] - cws[0][i]; i 96 modules/calib3d/src/epnp.cpp for(int i = 0; i < number_of_correspondences; i++) { i 97 modules/calib3d/src/epnp.cpp double * pi = &pws[0] + 3 * i; i 98 modules/calib3d/src/epnp.cpp double * a = &alphas[0] + 4 * i; i 115 modules/calib3d/src/epnp.cpp for(int i = 0; i < 4; i++) { i 116 modules/calib3d/src/epnp.cpp M1[3 * i ] = as[i] * fu; i 117 modules/calib3d/src/epnp.cpp M1[3 * i + 1] = 0.0; i 118 modules/calib3d/src/epnp.cpp M1[3 * i + 2] = as[i] * (uc - u); i 120 modules/calib3d/src/epnp.cpp M2[3 * i ] = 0.0; i 121 modules/calib3d/src/epnp.cpp M2[3 * i + 1] = as[i] * fv; i 122 modules/calib3d/src/epnp.cpp M2[3 * i + 2] = as[i] * (vc - v); i 128 modules/calib3d/src/epnp.cpp for(int i = 0; i < 4; i++) i 129 modules/calib3d/src/epnp.cpp ccs[i][0] = ccs[i][1] = ccs[i][2] = 0.0f; i 131 modules/calib3d/src/epnp.cpp for(int i = 0; i < 4; i++) { i 132 modules/calib3d/src/epnp.cpp const double * v = ut + 12 * (11 - i); i 135 modules/calib3d/src/epnp.cpp ccs[j][k] += betas[i] * v[3 * j + k]; i 141 modules/calib3d/src/epnp.cpp for(int i = 0; i < number_of_correspondences; i++) { i 142 modules/calib3d/src/epnp.cpp double * a = &alphas[0] + 4 * i; i 143 modules/calib3d/src/epnp.cpp double * pc = &pcs[0] + 3 * i; i 157 modules/calib3d/src/epnp.cpp for(int i = 0; i < number_of_correspondences; i++) i 158 modules/calib3d/src/epnp.cpp fill_M(M, 2 * i, &alphas[0] + 4 * i, us[2 * i], us[2 * i + 1]); i 202 modules/calib3d/src/epnp.cpp for(int i = 0; i < 3; i++) { i 204 modules/calib3d/src/epnp.cpp R_dst[i][j] = R_src[i][j]; i 205 modules/calib3d/src/epnp.cpp t_dst[i] = t_src[i]; i 229 modules/calib3d/src/epnp.cpp for(int i = 0; i < number_of_correspondences; i++) { i 230 modules/calib3d/src/epnp.cpp const double * pc = &pcs[3 * i]; i 231 modules/calib3d/src/epnp.cpp const double * pw = &pws[3 * i]; i 250 modules/calib3d/src/epnp.cpp for(int i = 0; i < number_of_correspondences; i++) { i 251 modules/calib3d/src/epnp.cpp double * pc = &pcs[3 * i]; i 252 modules/calib3d/src/epnp.cpp double * pw = &pws[3 * i]; i 263 modules/calib3d/src/epnp.cpp for(int i = 0; i < 3; i++) i 265 modules/calib3d/src/epnp.cpp R[i][j] = dot(abt_u + 3 * i, abt_v + 3 * j); i 285 modules/calib3d/src/epnp.cpp for(int i = 0; i < 4; i++) i 287 modules/calib3d/src/epnp.cpp ccs[i][j] = -ccs[i][j]; i 289 modules/calib3d/src/epnp.cpp for(int i = 0; i < number_of_correspondences; i++) { i 290 modules/calib3d/src/epnp.cpp pcs[3 * i ] = -pcs[3 * i]; i 291 modules/calib3d/src/epnp.cpp pcs[3 * i + 1] = -pcs[3 * i + 1]; i 292 modules/calib3d/src/epnp.cpp pcs[3 * i + 2] = -pcs[3 * i + 2]; i 314 modules/calib3d/src/epnp.cpp for(int i = 0; i < number_of_correspondences; i++) { i 315 modules/calib3d/src/epnp.cpp double * pw = &pws[3 * i]; i 321 modules/calib3d/src/epnp.cpp double u = us[2 * i], v = us[2 * i + 1]; i 339 modules/calib3d/src/epnp.cpp for(int i = 0; i < 6; i++) { i 340 modules/calib3d/src/epnp.cpp cvmSet(&L_6x4, i, 0, cvmGet(L_6x10, i, 0)); i 341 modules/calib3d/src/epnp.cpp cvmSet(&L_6x4, i, 1, cvmGet(L_6x10, i, 1)); i 342 modules/calib3d/src/epnp.cpp cvmSet(&L_6x4, i, 2, cvmGet(L_6x10, i, 3)); i 343 modules/calib3d/src/epnp.cpp cvmSet(&L_6x4, i, 3, cvmGet(L_6x10, i, 6)); i 371 modules/calib3d/src/epnp.cpp for(int i = 0; i < 6; i++) { i 372 modules/calib3d/src/epnp.cpp cvmSet(&L_6x3, i, 0, cvmGet(L_6x10, i, 0)); i 373 modules/calib3d/src/epnp.cpp cvmSet(&L_6x3, i, 1, cvmGet(L_6x10, i, 1)); i 374 modules/calib3d/src/epnp.cpp cvmSet(&L_6x3, i, 2, cvmGet(L_6x10, i, 2)); i 403 modules/calib3d/src/epnp.cpp for(int i = 0; i < 6; i++) { i 404 modules/calib3d/src/epnp.cpp cvmSet(&L_6x5, i, 0, cvmGet(L_6x10, i, 0)); i 405 modules/calib3d/src/epnp.cpp cvmSet(&L_6x5, i, 1, cvmGet(L_6x10, i, 1)); i 406 modules/calib3d/src/epnp.cpp cvmSet(&L_6x5, i, 2, cvmGet(L_6x10, i, 2)); i 407 modules/calib3d/src/epnp.cpp cvmSet(&L_6x5, i, 3, cvmGet(L_6x10, i, 3)); i 408 modules/calib3d/src/epnp.cpp cvmSet(&L_6x5, i, 4, cvmGet(L_6x10, i, 4)); i 436 modules/calib3d/src/epnp.cpp for(int i = 0; i < 4; i++) { i 439 modules/calib3d/src/epnp.cpp dv[i][j][0] = v[i][3 * a ] - v[i][3 * b]; i 440 modules/calib3d/src/epnp.cpp dv[i][j][1] = v[i][3 * a + 1] - v[i][3 * b + 1]; i 441 modules/calib3d/src/epnp.cpp dv[i][j][2] = v[i][3 * a + 2] - v[i][3 * b + 2]; i 451 modules/calib3d/src/epnp.cpp for(int i = 0; i < 6; i++) { i 452 modules/calib3d/src/epnp.cpp double * row = l_6x10 + 10 * i; i 454 modules/calib3d/src/epnp.cpp row[0] = dot(dv[0][i], dv[0][i]); i 455 modules/calib3d/src/epnp.cpp row[1] = 2.0f * dot(dv[0][i], dv[1][i]); i 456 modules/calib3d/src/epnp.cpp row[2] = dot(dv[1][i], dv[1][i]); i 457 modules/calib3d/src/epnp.cpp row[3] = 2.0f * dot(dv[0][i], dv[2][i]); i 458 modules/calib3d/src/epnp.cpp row[4] = 2.0f * dot(dv[1][i], dv[2][i]); i 459 modules/calib3d/src/epnp.cpp row[5] = dot(dv[2][i], dv[2][i]); i 460 modules/calib3d/src/epnp.cpp row[6] = 2.0f * dot(dv[0][i], dv[3][i]); i 461 modules/calib3d/src/epnp.cpp row[7] = 2.0f * dot(dv[1][i], dv[3][i]); i 462 modules/calib3d/src/epnp.cpp row[8] = 2.0f * dot(dv[2][i], dv[3][i]); i 463 modules/calib3d/src/epnp.cpp row[9] = dot(dv[3][i], dv[3][i]); i 480 modules/calib3d/src/epnp.cpp for(int i = 0; i < 6; i++) { i 481 modules/calib3d/src/epnp.cpp const double * rowL = l_6x10 + i * 10; i 482 modules/calib3d/src/epnp.cpp double * rowA = A->data.db + i * 4; i 489 modules/calib3d/src/epnp.cpp cvmSet(b, i, 0, rho[i] - i 519 modules/calib3d/src/epnp.cpp for(int i = 0; i < 4; i++) i 520 modules/calib3d/src/epnp.cpp betas[i] += x[i]; i 545 modules/calib3d/src/epnp.cpp for(int i = k + 1; i < nr; i++) i 560 modules/calib3d/src/epnp.cpp for(int i = k; i < nr; i++) i 575 modules/calib3d/src/epnp.cpp for(int i = k; i < nr; i++) i 582 modules/calib3d/src/epnp.cpp for(int i = k; i < nr; i++) i 597 modules/calib3d/src/epnp.cpp for(int i = j; i < nr; i++) i 599 modules/calib3d/src/epnp.cpp tau += *ppAij * pb[i]; i 604 modules/calib3d/src/epnp.cpp for(int i = j; i < nr; i++) i 606 modules/calib3d/src/epnp.cpp pb[i] -= tau * *ppAij; i 615 modules/calib3d/src/epnp.cpp for(int i = nc - 2; i >= 0; i--) i 617 modules/calib3d/src/epnp.cpp double * ppAij = pA + i * nc + (i + 1), sum = 0; i 619 modules/calib3d/src/epnp.cpp for(int j = i + 1; j < nc; j++) i 624 modules/calib3d/src/epnp.cpp pX[i] = (pb[i] - sum) / A2[i]; i 31 modules/calib3d/src/epnp.h for(int i = 0; i < number_of_correspondences; i++) i 33 modules/calib3d/src/epnp.h pws[3 * i ] = opoints.at<OpointType>(i).x; i 34 modules/calib3d/src/epnp.h pws[3 * i + 1] = opoints.at<OpointType>(i).y; i 35 modules/calib3d/src/epnp.h pws[3 * i + 2] = opoints.at<OpointType>(i).z; i 37 modules/calib3d/src/epnp.h us[2 * i ] = ipoints.at<IpointType>(i).x*fu + uc; i 38 modules/calib3d/src/epnp.h us[2 * i + 1] = ipoints.at<IpointType>(i).y*fv + vc; i 120 modules/calib3d/src/fisheye.cpp for(size_t i = 0; i < n; ++i) i 122 modules/calib3d/src/fisheye.cpp Vec3d Xi = objectPoints.depth() == CV_32F ? (Vec3d)Xf[i] : Xd[i]; i 146 modules/calib3d/src/fisheye.cpp xpf[i] = final_point; i 148 modules/calib3d/src/fisheye.cpp xpd[i] = final_point; i 280 modules/calib3d/src/fisheye.cpp for(size_t i = 0; i < n; ++i) i 282 modules/calib3d/src/fisheye.cpp Vec2d x = undistorted.depth() == CV_32F ? (Vec2d)Xf[i] : Xd[i]; i 303 modules/calib3d/src/fisheye.cpp xpf[i] = final_point; i 305 modules/calib3d/src/fisheye.cpp xpd[i] = final_point; i 364 modules/calib3d/src/fisheye.cpp for(size_t i = 0; i < n; i++ ) i 366 modules/calib3d/src/fisheye.cpp Vec2d pi = sdepth == CV_32F ? (Vec2d)srcf[i] : srcd[i]; // image point i 392 modules/calib3d/src/fisheye.cpp dstf[i] = fi; i 394 modules/calib3d/src/fisheye.cpp dstd[i] = fi; i 448 modules/calib3d/src/fisheye.cpp for( int i = 0; i < size.height; ++i) i 450 modules/calib3d/src/fisheye.cpp float* m1f = map1.getMat().ptr<float>(i); i 451 modules/calib3d/src/fisheye.cpp float* m2f = map2.getMat().ptr<float>(i); i 455 modules/calib3d/src/fisheye.cpp double _x = i*iR(0, 1) + iR(0, 2), i 456 modules/calib3d/src/fisheye.cpp _y = i*iR(1, 1) + iR(1, 2), i 457 modules/calib3d/src/fisheye.cpp _w = i*iR(2, 1) + iR(2, 2); i 531 modules/calib3d/src/fisheye.cpp for(int i = 0, k = 0; i < 10; ++i) i 533 modules/calib3d/src/fisheye.cpp pptr[k++] = Vec2d(w/2, 0) - Vec2d(w/8, 0) + Vec2d(w/4/N*i, 0); i 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); i 536 modules/calib3d/src/fisheye.cpp pptr[k++] = Vec2d(0, h/2) - Vec2d(0, h/8) + Vec2d(0, h/4/N*i); i 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); i 550 modules/calib3d/src/fisheye.cpp for(size_t i = 0; i < points.total(); ++i) i 551 modules/calib3d/src/fisheye.cpp pptr[i][1] *= aspect_ratio; i 554 modules/calib3d/src/fisheye.cpp for(size_t i = 0; i < points.total(); ++i) i 556 modules/calib3d/src/fisheye.cpp miny = std::min(miny, pptr[i][1]); i 557 modules/calib3d/src/fisheye.cpp maxy = std::max(maxy, pptr[i][1]); i 558 modules/calib3d/src/fisheye.cpp minx = std::min(minx, pptr[i][0]); i 559 modules/calib3d/src/fisheye.cpp maxx = std::max(maxx, pptr[i][0]); i 564 modules/calib3d/src/fisheye.cpp for(size_t i = 0; i < points.total(); ++i) i 566 modules/calib3d/src/fisheye.cpp if (i % 4 == 0) miny = std::max(miny, pptr[i][1]); i 567 modules/calib3d/src/fisheye.cpp if (i % 4 == 1) maxy = std::min(maxy, pptr[i][1]); i 568 modules/calib3d/src/fisheye.cpp if (i % 4 == 2) minx = std::max(minx, pptr[i][0]); i 569 modules/calib3d/src/fisheye.cpp if (i % 4 == 3) maxx = std::min(maxx, pptr[i][0]); i 799 modules/calib3d/src/fisheye.cpp int i; i 800 modules/calib3d/src/fisheye.cpp for( i = 0; i < (int)objectPoints.total(); i++ ) i 802 modules/calib3d/src/fisheye.cpp rvecs.getMat(i)=omc[i]; i 803 modules/calib3d/src/fisheye.cpp tvecs.getMat(i)=Tc[i]; i 986 modules/calib3d/src/fisheye.cpp for (int i = 0; i < 4 * n_points; i++) i 988 modules/calib3d/src/fisheye.cpp if (fabs(ekk.at<double>(i)) > abs_max) i 990 modules/calib3d/src/fisheye.cpp abs_max = fabs(ekk.at<double>(i)); i 1025 modules/calib3d/src/fisheye.cpp for (size_t i = 0; i < e.total() / 2; i++) i 1027 modules/calib3d/src/fisheye.cpp rms += ptr_e[i][0] * ptr_e[i][0] + ptr_e[i][1] * ptr_e[i][1]; i 1062 modules/calib3d/src/fisheye.cpp for (int i = 0, j = 0; i < (int)cols.size(); i++) i 1064 modules/calib3d/src/fisheye.cpp if (cols[i]) i 1066 modules/calib3d/src/fisheye.cpp src.col(i).copyTo(tmp.col(j++)); i 1072 modules/calib3d/src/fisheye.cpp for (int i = 0, j = 0; i < (int)rows.size(); i++) i 1074 modules/calib3d/src/fisheye.cpp if (rows[i]) i 1076 modules/calib3d/src/fisheye.cpp tmp.row(i).copyTo(tmp1.row(j++)); i 1237 modules/calib3d/src/fisheye.cpp for (int i = 0; i < Np; ++i) i 1241 modules/calib3d/src/fisheye.cpp L.at<double>(2 * i, j) = M.at<double>(j, i); i 1242 modules/calib3d/src/fisheye.cpp L.at<double>(2 * i + 1, j + 3) = M.at<double>(j, i); i 1243 modules/calib3d/src/fisheye.cpp L.at<double>(2 * i, j + 6) = -mn.at<double>(0,i) * M.at<double>(j, i); i 1244 modules/calib3d/src/fisheye.cpp L.at<double>(2 * i + 1, j + 6) = -mn.at<double>(1,i) * M.at<double>(j, i); i 1270 modules/calib3d/src/fisheye.cpp for (int i = 0; i < Np; ++i) i 1274 modules/calib3d/src/fisheye.cpp J.at<double>(2 * i, j) = -MMM.at<double>(j, i); i 1275 modules/calib3d/src/fisheye.cpp J.at<double>(2 * i + 1, j + 3) = -MMM.at<double>(j, i); i 1280 modules/calib3d/src/fisheye.cpp J.at<double>(2 * i, j + 6) = MMM2.at<double>(j, i); i 1281 modules/calib3d/src/fisheye.cpp J.at<double>(2 * i + 1, j + 6) = MMM3.at<double>(j, i); i 1304 modules/calib3d/src/fisheye.cpp for (size_t i = 0; i < imagePoints.total(); ++i) i 1306 modules/calib3d/src/fisheye.cpp ptr_d[i] = (ptr[i] - param.c).mul(Vec2d(1.0 / param.f[0], 1.0 / param.f[1])); i 1307 modules/calib3d/src/fisheye.cpp ptr_d[i][0] = ptr_d[i][0] - param.alpha * ptr_d[i][1]; i 1498 modules/calib3d/src/fisheye.cpp for (size_t i = 0; i < ex.total(); i++) i 1500 modules/calib3d/src/fisheye.cpp rms += ptr_ex[i][0] * ptr_ex[i][0] + ptr_ex[i][1] * ptr_ex[i][1]; i 1522 modules/calib3d/src/fisheye.cpp for (int i = 0; i < q; ++i) i 1526 modules/calib3d/src/fisheye.cpp int ij = j + i * p; i 1530 modules/calib3d/src/fisheye.cpp dABdA.getMat().at<double>(ij, kj) = B.getMat().at<double>(k, i); i 1535 modules/calib3d/src/fisheye.cpp for (int i = 0; i < q; ++i) i 1537 modules/calib3d/src/fisheye.cpp A.getMat().copyTo(dABdB.getMat().rowRange(i * p, i * p + p).colRange(i * n, i * n + n)); i 71 modules/calib3d/src/five-point.cpp for (int i = 0; i < 3; i++) i 73 modules/calib3d/src/five-point.cpp Mat arow1 = A.row(i * 2 + 4) * 1.0; i 74 modules/calib3d/src/five-point.cpp Mat arow2 = A.row(i * 2 + 5) * 1.0; i 86 modules/calib3d/src/five-point.cpp B.row(i) = row1 - row2; i 111 modules/calib3d/src/five-point.cpp for (size_t i = 0; i < roots.size(); i++) i 113 modules/calib3d/src/five-point.cpp if (fabs(roots[i].im) > 1e-10) continue; i 114 modules/calib3d/src/five-point.cpp double z1 = roots[i].re; i 152 modules/calib3d/src/five-point.cpp for (int i = 0; i < 36; i++) i 154 modules/calib3d/src/five-point.cpp ep2[i] = e[i] * e[i]; i 155 modules/calib3d/src/five-point.cpp ep3[i] = ep2[i] * e[i]; i 361 modules/calib3d/src/five-point.cpp for (int i = 0; i < 20; i++) i 363 modules/calib3d/src/five-point.cpp for (int j = 0; j < 10; j++) AA[i + j * 20] = A[perm[i] + j * 20]; i 366 modules/calib3d/src/five-point.cpp for (int i = 0; i < 200; i++) i 368 modules/calib3d/src/five-point.cpp A[i] = AA[i]; i 384 modules/calib3d/src/five-point.cpp for (int i = 0; i < n; i++) i 386 modules/calib3d/src/five-point.cpp Vec3d x1(x1ptr[i].x, x1ptr[i].y, 1.); i 387 modules/calib3d/src/five-point.cpp Vec3d x2(x2ptr[i].x, x2ptr[i].y, 1.); i 397 modules/calib3d/src/five-point.cpp err.at<float>(i) = (float)(x2tEx1 * x2tEx1 / (a + b + c + d)); i 423 modules/calib3d/src/five-point.cpp for( int i = 0; i < npoints; i++ ) i 425 modules/calib3d/src/five-point.cpp points1.at<double>(i, 0) = (points1.at<double>(i, 0) - pp.x)*ifocal; i 426 modules/calib3d/src/five-point.cpp points1.at<double>(i, 1) = (points1.at<double>(i, 1) - pp.y)*ifocal; i 427 modules/calib3d/src/five-point.cpp points2.at<double>(i, 0) = (points2.at<double>(i, 0) - pp.x)*ifocal; i 428 modules/calib3d/src/five-point.cpp points2.at<double>(i, 1) = (points2.at<double>(i, 1) - pp.y)*ifocal; i 52 modules/calib3d/src/fundam.cpp int j, k, i = count-1; i 57 modules/calib3d/src/fundam.cpp for( j = 0; j < i; j++ ) i 59 modules/calib3d/src/fundam.cpp double dx1 = ptr[j].x - ptr[i].x; i 60 modules/calib3d/src/fundam.cpp double dy1 = ptr[j].y - ptr[i].y; i 63 modules/calib3d/src/fundam.cpp double dx2 = ptr[k].x - ptr[i].x; i 64 modules/calib3d/src/fundam.cpp double dy2 = ptr[k].y - ptr[i].y; i 98 modules/calib3d/src/fundam.cpp for( int i = 0; i < 4; i++ ) i 100 modules/calib3d/src/fundam.cpp const int* t = tt[i]; i 116 modules/calib3d/src/fundam.cpp int i, count = m1.checkVector(2); i 128 modules/calib3d/src/fundam.cpp for( i = 0; i < count; i++ ) i 130 modules/calib3d/src/fundam.cpp cm.x += m[i].x; cm.y += m[i].y; i 131 modules/calib3d/src/fundam.cpp cM.x += M[i].x; cM.y += M[i].y; i 139 modules/calib3d/src/fundam.cpp for( i = 0; i < count; i++ ) i 141 modules/calib3d/src/fundam.cpp sm.x += fabs(m[i].x - cm.x); i 142 modules/calib3d/src/fundam.cpp sm.y += fabs(m[i].y - cm.y); i 143 modules/calib3d/src/fundam.cpp sM.x += fabs(M[i].x - cM.x); i 144 modules/calib3d/src/fundam.cpp sM.y += fabs(M[i].y - cM.y); i 159 modules/calib3d/src/fundam.cpp for( i = 0; i < count; i++ ) i 161 modules/calib3d/src/fundam.cpp double x = (m[i].x - cm.x)*sm.x, y = (m[i].y - cm.y)*sm.y; i 162 modules/calib3d/src/fundam.cpp double X = (M[i].x - cM.x)*sM.x, Y = (M[i].y - cM.y)*sM.y; i 183 modules/calib3d/src/fundam.cpp int i, count = m1.checkVector(2); i 192 modules/calib3d/src/fundam.cpp for( i = 0; i < count; i++ ) i 194 modules/calib3d/src/fundam.cpp float ww = 1.f/(Hf[6]*M[i].x + Hf[7]*M[i].y + 1.f); i 195 modules/calib3d/src/fundam.cpp float dx = (Hf[0]*M[i].x + Hf[1]*M[i].y + Hf[2])*ww - m[i].x; i 196 modules/calib3d/src/fundam.cpp float dy = (Hf[3]*M[i].x + Hf[4]*M[i].y + Hf[5])*ww - m[i].y; i 197 modules/calib3d/src/fundam.cpp err[i] = (float)(dx*dx + dy*dy); i 214 modules/calib3d/src/fundam.cpp int i, count = src.checkVector(2); i 231 modules/calib3d/src/fundam.cpp for( i = 0; i < count; i++ ) i 233 modules/calib3d/src/fundam.cpp double Mx = M[i].x, My = M[i].y; i 238 modules/calib3d/src/fundam.cpp errptr[i*2] = xi - m[i].x; i 239 modules/calib3d/src/fundam.cpp errptr[i*2+1] = yi - m[i].y; i 353 modules/calib3d/src/fundam.cpp for( int i = 1; i <= 2; i++ ) i 355 modules/calib3d/src/fundam.cpp Mat& p = i == 1 ? points1 : points2; i 356 modules/calib3d/src/fundam.cpp Mat& m = i == 1 ? src : dst; i 453 modules/calib3d/src/fundam.cpp int i, k, n; i 457 modules/calib3d/src/fundam.cpp for( i = 0; i < 7; i++ ) i 459 modules/calib3d/src/fundam.cpp double x0 = m1[i].x, y0 = m1[i].y; i 460 modules/calib3d/src/fundam.cpp double x1 = m2[i].x, y1 = m2[i].y; i 462 modules/calib3d/src/fundam.cpp a[i*9+0] = x1*x0; i 463 modules/calib3d/src/fundam.cpp a[i*9+1] = x1*y0; i 464 modules/calib3d/src/fundam.cpp a[i*9+2] = x1; i 465 modules/calib3d/src/fundam.cpp a[i*9+3] = y1*x0; i 466 modules/calib3d/src/fundam.cpp a[i*9+4] = y1*y0; i 467 modules/calib3d/src/fundam.cpp a[i*9+5] = y1; i 468 modules/calib3d/src/fundam.cpp a[i*9+6] = x0; i 469 modules/calib3d/src/fundam.cpp a[i*9+7] = y0; i 470 modules/calib3d/src/fundam.cpp a[i*9+8] = 1; i 487 modules/calib3d/src/fundam.cpp for( i = 0; i < 9; i++ ) i 488 modules/calib3d/src/fundam.cpp f1[i] -= f2[i]; i 540 modules/calib3d/src/fundam.cpp for( i = 0; i < 8; i++ ) i 541 modules/calib3d/src/fundam.cpp fmatrix[i] = f1[i]*lambda + f2[i]*mu; i 563 modules/calib3d/src/fundam.cpp int i, j, k, count = _m1.checkVector(2); i 566 modules/calib3d/src/fundam.cpp for( i = 0; i < count; i++ ) i 568 modules/calib3d/src/fundam.cpp double x = m1[i].x, y = m1[i].y; i 571 modules/calib3d/src/fundam.cpp x = m2[i].x, y = m2[i].y; i 582 modules/calib3d/src/fundam.cpp for( i = 0; i < count; i++ ) i 584 modules/calib3d/src/fundam.cpp double x = m1[i].x - m1c.x, y = m1[i].y - m1c.y; i 587 modules/calib3d/src/fundam.cpp x = m2[i].x - m2c.x, y = m2[i].y - m2c.y; i 605 modules/calib3d/src/fundam.cpp for( i = 0; i < count; i++ ) i 607 modules/calib3d/src/fundam.cpp double x1 = (m1[i].x - m1c.x)*scale1; i 608 modules/calib3d/src/fundam.cpp double y1 = (m1[i].y - m1c.y)*scale1; i 609 modules/calib3d/src/fundam.cpp double x2 = (m2[i].x - m2c.x)*scale2; i 610 modules/calib3d/src/fundam.cpp double y2 = (m2[i].y - m2c.y)*scale2; i 619 modules/calib3d/src/fundam.cpp for( i = 0; i < 9; i++ ) i 621 modules/calib3d/src/fundam.cpp if( fabs(w[i]) < DBL_EPSILON ) i 625 modules/calib3d/src/fundam.cpp if( i < 8 ) i 694 modules/calib3d/src/fundam.cpp int i, count = __m1.checkVector(2); i 701 modules/calib3d/src/fundam.cpp for( i = 0; i < count; i++ ) i 705 modules/calib3d/src/fundam.cpp a = F[0]*m1[i].x + F[1]*m1[i].y + F[2]; i 706 modules/calib3d/src/fundam.cpp b = F[3]*m1[i].x + F[4]*m1[i].y + F[5]; i 707 modules/calib3d/src/fundam.cpp c = F[6]*m1[i].x + F[7]*m1[i].y + F[8]; i 710 modules/calib3d/src/fundam.cpp d2 = m2[i].x*a + m2[i].y*b + c; i 712 modules/calib3d/src/fundam.cpp a = F[0]*m2[i].x + F[3]*m2[i].y + F[6]; i 713 modules/calib3d/src/fundam.cpp b = F[1]*m2[i].x + F[4]*m2[i].y + F[7]; i 714 modules/calib3d/src/fundam.cpp c = F[2]*m2[i].x + F[5]*m2[i].y + F[8]; i 717 modules/calib3d/src/fundam.cpp d1 = m1[i].x*a + m1[i].y*b + c; i 719 modules/calib3d/src/fundam.cpp err[i] = (float)std::max(d1*d1*s1, d2*d2*s2); i 734 modules/calib3d/src/fundam.cpp for( int i = 1; i <= 2; i++ ) i 736 modules/calib3d/src/fundam.cpp Mat& p = i == 1 ? points1 : points2; i 737 modules/calib3d/src/fundam.cpp Mat& m = i == 1 ? m1 : m2; i 840 modules/calib3d/src/fundam.cpp for( int i = 0; i < npoints; i++ ) i 842 modules/calib3d/src/fundam.cpp Point2f pt = depth == CV_32F ? ptsf[i] : Point2f((float)ptsi[i].x, (float)ptsi[i].y); i 849 modules/calib3d/src/fundam.cpp dstf[i] = Point3f((float)a, (float)b, (float)c); i 856 modules/calib3d/src/fundam.cpp for( int i = 0; i < npoints; i++ ) i 858 modules/calib3d/src/fundam.cpp Point2d pt = ptsd[i]; i 865 modules/calib3d/src/fundam.cpp dstd[i] = Point3d(a, b, c); i 875 modules/calib3d/src/fundam.cpp int i, npoints = src.checkVector(3), depth = src.depth(), cn = 3; i 901 modules/calib3d/src/fundam.cpp for( i = 0; i < npoints; i++ ) i 903 modules/calib3d/src/fundam.cpp float scale = sptr[i].z != 0 ? 1.f/sptr[i].z : 1.f; i 904 modules/calib3d/src/fundam.cpp dptr[i] = Point2f(sptr[i].x*scale, sptr[i].y*scale); i 911 modules/calib3d/src/fundam.cpp for( i = 0; i < npoints; i++ ) i 913 modules/calib3d/src/fundam.cpp float scale = sptr[i][3] != 0 ? 1.f/sptr[i][3] : 1.f; i 914 modules/calib3d/src/fundam.cpp dptr[i] = Point3f(sptr[i][0]*scale, sptr[i][1]*scale, sptr[i][2]*scale); i 924 modules/calib3d/src/fundam.cpp for( i = 0; i < npoints; i++ ) i 926 modules/calib3d/src/fundam.cpp float scale = sptr[i].z != 0.f ? 1.f/sptr[i].z : 1.f; i 927 modules/calib3d/src/fundam.cpp dptr[i] = Point2f(sptr[i].x*scale, sptr[i].y*scale); i 934 modules/calib3d/src/fundam.cpp for( i = 0; i < npoints; i++ ) i 936 modules/calib3d/src/fundam.cpp float scale = sptr[i][3] != 0.f ? 1.f/sptr[i][3] : 1.f; i 937 modules/calib3d/src/fundam.cpp dptr[i] = Point3f(sptr[i][0]*scale, sptr[i][1]*scale, sptr[i][2]*scale); i 947 modules/calib3d/src/fundam.cpp for( i = 0; i < npoints; i++ ) i 949 modules/calib3d/src/fundam.cpp double scale = sptr[i].z != 0. ? 1./sptr[i].z : 1.; i 950 modules/calib3d/src/fundam.cpp dptr[i] = Point2d(sptr[i].x*scale, sptr[i].y*scale); i 957 modules/calib3d/src/fundam.cpp for( i = 0; i < npoints; i++ ) i 959 modules/calib3d/src/fundam.cpp double scale = sptr[i][3] != 0.f ? 1./sptr[i][3] : 1.; i 960 modules/calib3d/src/fundam.cpp dptr[i] = Point3d(sptr[i][0]*scale, sptr[i][1]*scale, sptr[i][2]*scale); i 974 modules/calib3d/src/fundam.cpp int i, npoints = src.checkVector(2), depth = src.depth(), cn = 2; i 1000 modules/calib3d/src/fundam.cpp for( i = 0; i < npoints; i++ ) i 1001 modules/calib3d/src/fundam.cpp dptr[i] = Point3i(sptr[i].x, sptr[i].y, 1); i 1007 modules/calib3d/src/fundam.cpp for( i = 0; i < npoints; i++ ) i 1008 modules/calib3d/src/fundam.cpp dptr[i] = Vec4i(sptr[i].x, sptr[i].y, sptr[i].z, 1); i 1017 modules/calib3d/src/fundam.cpp for( i = 0; i < npoints; i++ ) i 1018 modules/calib3d/src/fundam.cpp dptr[i] = Point3f(sptr[i].x, sptr[i].y, 1.f); i 1024 modules/calib3d/src/fundam.cpp for( i = 0; i < npoints; i++ ) i 1025 modules/calib3d/src/fundam.cpp dptr[i] = Vec4f(sptr[i].x, sptr[i].y, sptr[i].z, 1.f); i 1034 modules/calib3d/src/fundam.cpp for( i = 0; i < npoints; i++ ) i 1035 modules/calib3d/src/fundam.cpp dptr[i] = Point3d(sptr[i].x, sptr[i].y, 1.); i 1041 modules/calib3d/src/fundam.cpp for( i = 0; i < npoints; i++ ) i 1042 modules/calib3d/src/fundam.cpp dptr[i] = Vec4d(sptr[i].x, sptr[i].y, sptr[i].z, 1.); i 118 modules/calib3d/src/levmarq.cpp int i, iter = 0; i 131 modules/calib3d/src/levmarq.cpp for( i = 0; i < lx; i++ ) i 132 modules/calib3d/src/levmarq.cpp Ap.at<double>(i, i) += lambda*D.at<double>(i); i 159 modules/calib3d/src/levmarq.cpp for( i = 0; i < lx; i++ ) i 160 modules/calib3d/src/levmarq.cpp maxval = std::max(maxval, std::abs(Ap.at<double>(i,i))); i 73 modules/calib3d/src/p3p.cpp for(int i = 0; i < n; i++) { i 74 modules/calib3d/src/p3p.cpp double X3p = Rs[i][0][0] * X3 + Rs[i][0][1] * Y3 + Rs[i][0][2] * Z3 + ts[i][0]; i 75 modules/calib3d/src/p3p.cpp double Y3p = Rs[i][1][0] * X3 + Rs[i][1][1] * Y3 + Rs[i][1][2] * Z3 + ts[i][1]; i 76 modules/calib3d/src/p3p.cpp double Z3p = Rs[i][2][0] * X3 + Rs[i][2][1] * Y3 + Rs[i][2][2] * Z3 + ts[i][2]; i 80 modules/calib3d/src/p3p.cpp if (i == 0 || min_reproj > reproj) { i 81 modules/calib3d/src/p3p.cpp ns = i; i 86 modules/calib3d/src/p3p.cpp for(int i = 0; i < 3; i++) { i 88 modules/calib3d/src/p3p.cpp R[i][j] = Rs[ns][i][j]; i 89 modules/calib3d/src/p3p.cpp t[i] = ts[ns][i]; i 133 modules/calib3d/src/p3p.cpp for(int i = 0; i < n; i++) { i 136 modules/calib3d/src/p3p.cpp M_orig[0][0] = lengths[i][0] * mu0; i 137 modules/calib3d/src/p3p.cpp M_orig[0][1] = lengths[i][0] * mv0; i 138 modules/calib3d/src/p3p.cpp M_orig[0][2] = lengths[i][0] * mk0; i 140 modules/calib3d/src/p3p.cpp M_orig[1][0] = lengths[i][1] * mu1; i 141 modules/calib3d/src/p3p.cpp M_orig[1][1] = lengths[i][1] * mv1; i 142 modules/calib3d/src/p3p.cpp M_orig[1][2] = lengths[i][1] * mk1; i 144 modules/calib3d/src/p3p.cpp M_orig[2][0] = lengths[i][2] * mu2; i 145 modules/calib3d/src/p3p.cpp M_orig[2][1] = lengths[i][2] * mv2; i 146 modules/calib3d/src/p3p.cpp M_orig[2][2] = lengths[i][2] * mk2; i 217 modules/calib3d/src/p3p.cpp for(int i = 0; i < n; i++) { i 218 modules/calib3d/src/p3p.cpp double x = real_roots[i]; i 269 modules/calib3d/src/p3p.cpp for(int i = 0; i < 3; i++) C_end[i] = (M_end[0][i] + M_end[1][i] + M_end[2][i]) / 3; i 301 modules/calib3d/src/p3p.cpp for(int i = 1; i < 4; i++) i 302 modules/calib3d/src/p3p.cpp if (evs[i] > ev_max) i 303 modules/calib3d/src/p3p.cpp ev_max = evs[i_ev = i]; i 307 modules/calib3d/src/p3p.cpp for(int i = 0; i < 4; i++) i 308 modules/calib3d/src/p3p.cpp q[i] = U[i * 4 + i_ev]; i 327 modules/calib3d/src/p3p.cpp for(int i = 0; i < 3; i++) i 328 modules/calib3d/src/p3p.cpp T[i] = C_end[i] - (R[i][0] * C_start[0] + R[i][1] * C_start[1] + R[i][2] * C_start[2]); i 354 modules/calib3d/src/p3p.cpp for(int i = 0; i < 3; i++) { i 355 modules/calib3d/src/p3p.cpp double * pAij = A + 5 * i + 1; i 356 modules/calib3d/src/p3p.cpp for(int j = i + 1 ; j < 4; j++) { i 360 modules/calib3d/src/p3p.cpp if ( iter > 3 && fabs(D[i]) + eps_machine == fabs(D[i]) && fabs(D[j]) + eps_machine == fabs(D[j]) ) i 363 modules/calib3d/src/p3p.cpp double hh = D[j] - D[i], t; i 373 modules/calib3d/src/p3p.cpp Z[i] -= hh; i 375 modules/calib3d/src/p3p.cpp D[i] -= hh; i 382 modules/calib3d/src/p3p.cpp for(int k = 0; k <= i - 1; k++) { i 383 modules/calib3d/src/p3p.cpp double g = A[k * 4 + i], h = A[k * 4 + j]; i 384 modules/calib3d/src/p3p.cpp A[k * 4 + i] = g - s * (h + g * tau); i 387 modules/calib3d/src/p3p.cpp for(int k = i + 1; k <= j - 1; k++) { i 388 modules/calib3d/src/p3p.cpp double g = A[i * 4 + k], h = A[k * 4 + j]; i 389 modules/calib3d/src/p3p.cpp A[i * 4 + k] = g - s * (h + g * tau); i 393 modules/calib3d/src/p3p.cpp double g = A[i * 4 + k], h = A[j * 4 + k]; i 394 modules/calib3d/src/p3p.cpp A[i * 4 + k] = g - s * (h + g * tau); i 398 modules/calib3d/src/p3p.cpp double g = U[k * 4 + i], h = U[k * 4 + j]; i 399 modules/calib3d/src/p3p.cpp U[k * 4 + i] = g - s * (h + g * tau); i 407 modules/calib3d/src/p3p.cpp for(int i = 0; i < 4; i++) B[i] += Z[i]; i 38 modules/calib3d/src/p3p.h for(int i = 0; i < 4; i++) i 40 modules/calib3d/src/p3p.h points[i*5] = ipoints.at<IpointType>(i).x*fx + cx; i 41 modules/calib3d/src/p3p.h points[i*5+1] = ipoints.at<IpointType>(i).y*fy + cy; i 42 modules/calib3d/src/p3p.h points[i*5+2] = opoints.at<OpointType>(i).x; i 43 modules/calib3d/src/p3p.h points[i*5+3] = opoints.at<OpointType>(i).y; i 44 modules/calib3d/src/p3p.h points[i*5+4] = opoints.at<OpointType>(i).z; i 59 modules/calib3d/src/posit.cpp int i; i 97 modules/calib3d/src/posit.cpp for( i = 0; i < numPoints - 1; i++ ) i 99 modules/calib3d/src/posit.cpp pObject->obj_vecs[i] = points[i + 1].x - points[0].x; i 100 modules/calib3d/src/posit.cpp pObject->obj_vecs[N + i] = points[i + 1].y - points[0].y; i 101 modules/calib3d/src/posit.cpp pObject->obj_vecs[2 * N + i] = points[i + 1].z - points[0].z; i 117 modules/calib3d/src/posit.cpp int i, j, k; i 152 modules/calib3d/src/posit.cpp for( i = 0; i < N; i++ ) i 154 modules/calib3d/src/posit.cpp imgVectors[i] = imagePoints[i + 1].x - imagePoints[0].x; i 155 modules/calib3d/src/posit.cpp imgVectors[N + i] = imagePoints[i + 1].y - imagePoints[0].y; i 162 modules/calib3d/src/posit.cpp for( i = 0; i < N; i++ ) i 166 modules/calib3d/src/posit.cpp float tmp = objectVectors[i] * rotation[6] /*[2][0]*/ + i 167 modules/calib3d/src/posit.cpp objectVectors[N + i] * rotation[7] /*[2][1]*/ + i 168 modules/calib3d/src/posit.cpp objectVectors[2 * N + i] * rotation[8] /*[2][2]*/; i 173 modules/calib3d/src/posit.cpp old = imgVectors[i]; i 174 modules/calib3d/src/posit.cpp imgVectors[i] = imagePoints[i + 1].x * tmp - imagePoints[0].x; i 176 modules/calib3d/src/posit.cpp diff = MAX( diff, (float) fabs( imgVectors[i] - old )); i 178 modules/calib3d/src/posit.cpp old = imgVectors[N + i]; i 179 modules/calib3d/src/posit.cpp imgVectors[N + i] = imagePoints[i + 1].y * tmp - imagePoints[0].y; i 181 modules/calib3d/src/posit.cpp diff = MAX( diff, (float) fabs( imgVectors[N + i] - old )); i 186 modules/calib3d/src/posit.cpp for( i = 0; i < 2; i++ ) i 190 modules/calib3d/src/posit.cpp rotation[3*i+j] /*[i][j]*/ = 0; i 193 modules/calib3d/src/posit.cpp rotation[3*i+j] /*[i][j]*/ += invMatrix[j * N + k] * imgVectors[i * N + k]; i 107 modules/calib3d/src/precomp.hpp int i, j; i 108 modules/calib3d/src/precomp.hpp for( i = j = 0; i < count; i++ ) i 109 modules/calib3d/src/precomp.hpp if( mask[i*mstep] ) i 111 modules/calib3d/src/precomp.hpp if( i > j ) i 112 modules/calib3d/src/precomp.hpp ptr[j] = ptr[i]; i 95 modules/calib3d/src/ptsetreg.cpp int i, n = (int)err.total(), nz = 0; i 96 modules/calib3d/src/ptsetreg.cpp for( i = 0; i < n; i++ ) i 98 modules/calib3d/src/ptsetreg.cpp int f = errptr[i] <= t; i 99 modules/calib3d/src/ptsetreg.cpp maskptr[i] = (uchar)f; i 111 modules/calib3d/src/ptsetreg.cpp int i = 0, j, k, iters = 0; i 130 modules/calib3d/src/ptsetreg.cpp for( i = 0; i < modelPoints && iters < maxAttempts; ) i 135 modules/calib3d/src/ptsetreg.cpp idx_i = idx[i] = rng.uniform(0, count); i 136 modules/calib3d/src/ptsetreg.cpp for( j = 0; j < i; j++ ) i 139 modules/calib3d/src/ptsetreg.cpp if( j == i ) i 143 modules/calib3d/src/ptsetreg.cpp ms1ptr[i*esz1 + k] = m1ptr[idx_i*esz1 + k]; i 145 modules/calib3d/src/ptsetreg.cpp ms2ptr[i*esz2 + k] = m2ptr[idx_i*esz2 + k]; i 146 modules/calib3d/src/ptsetreg.cpp if( checkPartialSubsets && !cb->checkSubset( ms1, ms2, i+1 )) i 150 modules/calib3d/src/ptsetreg.cpp i = rng.uniform(0, i+1); i 154 modules/calib3d/src/ptsetreg.cpp i++; i 156 modules/calib3d/src/ptsetreg.cpp if( !checkPartialSubsets && i == modelPoints && !cb->checkSubset(ms1, ms2, i)) i 161 modules/calib3d/src/ptsetreg.cpp return i == modelPoints && iters < maxAttempts; i 209 modules/calib3d/src/ptsetreg.cpp int i, goodCount, nmodels; i 227 modules/calib3d/src/ptsetreg.cpp for( i = 0; i < nmodels; i++ ) i 229 modules/calib3d/src/ptsetreg.cpp Mat model_i = model.rowRange( i*modelSize.height, (i+1)*modelSize.height ); i 319 modules/calib3d/src/ptsetreg.cpp int i, nmodels; i 338 modules/calib3d/src/ptsetreg.cpp for( i = 0; i < nmodels; i++ ) i 340 modules/calib3d/src/ptsetreg.cpp Mat model_i = model.rowRange( i*modelSize.height, (i+1)*modelSize.height ); i 419 modules/calib3d/src/ptsetreg.cpp for( int i = 0; i < (N/3); i++ ) i 421 modules/calib3d/src/ptsetreg.cpp Bdata[i*3] = to[i].x; i 422 modules/calib3d/src/ptsetreg.cpp Bdata[i*3+1] = to[i].y; i 423 modules/calib3d/src/ptsetreg.cpp Bdata[i*3+2] = to[i].z; i 425 modules/calib3d/src/ptsetreg.cpp double *aptr = Adata + i*3*N; i 428 modules/calib3d/src/ptsetreg.cpp aptr[0] = from[i].x; i 429 modules/calib3d/src/ptsetreg.cpp aptr[1] = from[i].y; i 430 modules/calib3d/src/ptsetreg.cpp aptr[2] = from[i].z; i 456 modules/calib3d/src/ptsetreg.cpp for(int i = 0; i < count; i++ ) i 458 modules/calib3d/src/ptsetreg.cpp const Point3f& f = from[i]; i 459 modules/calib3d/src/ptsetreg.cpp const Point3f& t = to[i]; i 465 modules/calib3d/src/ptsetreg.cpp errptr[i] = (float)std::sqrt(a*a + b*b + c*c); i 476 modules/calib3d/src/ptsetreg.cpp int j, k, i = count - 1; i 484 modules/calib3d/src/ptsetreg.cpp for(j = 0; j < i; ++j) i 486 modules/calib3d/src/ptsetreg.cpp Point3f d1 = ptr[j] - ptr[i]; i 491 modules/calib3d/src/ptsetreg.cpp Point3f d2 = ptr[k] - ptr[i]; i 60 modules/calib3d/src/quadsubpix.cpp size_t i, j, n = contours.size(); i 61 modules/calib3d/src/quadsubpix.cpp for(i = 0; i < n; i++) i 63 modules/calib3d/src/quadsubpix.cpp size_t ni = contours[i].size(); i 67 modules/calib3d/src/quadsubpix.cpp double dist = norm(Point2f((float)contours[i][j].x, (float)contours[i][j].y) - point); i 70 modules/calib3d/src/quadsubpix.cpp order.push_back(std::pair<int, float>((int)i, (float)min_dist)); i 102 modules/calib3d/src/quadsubpix.cpp for(size_t i = 0; i < contour.size(); i++) i 104 modules/calib3d/src/quadsubpix.cpp double dist = norm(contour[i] - point); i 108 modules/calib3d/src/quadsubpix.cpp min_idx = (int)i; i 176 modules/calib3d/src/quadsubpix.cpp for(int i = 0; i < ncorners; i++) i 179 modules/calib3d/src/quadsubpix.cpp Rect roi(cvRound(corners[i].x - region_size.width), cvRound(corners[i].y - region_size.height), i 203 modules/calib3d/src/quadsubpix.cpp orderContours(black_contours, corners[i], black_order); i 204 modules/calib3d/src/quadsubpix.cpp orderContours(white_contours, corners[i], white_order); i 223 modules/calib3d/src/quadsubpix.cpp findCorner(quads_approx[k], corners[i], quad_corners[k]); i 235 modules/calib3d/src/quadsubpix.cpp findLinesCrossPoint(origin1, dir1, origin2, dir2, corners[i]); i 171 modules/calib3d/src/rho.cpp int i; i 181 modules/calib3d/src/rho.cpp for(i=0;i<20;i++){ i 268 modules/calib3d/src/rho.cpp unsigned i; /* Iteration Number */ i 759 modules/calib3d/src/rho.cpp for(ctrl.i=0; ctrl.i < arg.maxI || ctrl.i < 100; ctrl.i++){ i 980 modules/calib3d/src/rho.cpp ctrl.i = 0; i 1134 modules/calib3d/src/rho.cpp return ctrl.i >= ctrl.phEndI && ctrl.phNum < ctrl.phMax; i 1172 modules/calib3d/src/rho.cpp if(ctrl.i > ctrl.phEndI){ i 1215 modules/calib3d/src/rho.cpp unsigned i=0,j=0; i 1217 modules/calib3d/src/rho.cpp for(i=0;i<sampleSize;j++){ i 1219 modules/calib3d/src/rho.cpp if((dataSetSize-j)*U < (sampleSize-i)){ i 1220 modules/calib3d/src/rho.cpp currentSample[i++]=j; i 1228 modules/calib3d/src/rho.cpp unsigned i, j; i 1229 modules/calib3d/src/rho.cpp for(i=0;i<sampleSize;i++){ i 1233 modules/calib3d/src/rho.cpp currentSample[i] = (unsigned)(dataSetSize*fastRandom()); i 1236 modules/calib3d/src/rho.cpp for(j=0;j<i;j++){ i 1237 modules/calib3d/src/rho.cpp if(currentSample[i] == currentSample[j]){ i 1400 modules/calib3d/src/rho.cpp unsigned i; i 1418 modules/calib3d/src/rho.cpp for(i=0;i<arg.N && eval.good;i++){ i 1420 modules/calib3d/src/rho.cpp float x=src[i*2],y=src[i*2+1]; i 1421 modules/calib3d/src/rho.cpp float X=dst[i*2],Y=dst[i*2+1]; i 1451 modules/calib3d/src/rho.cpp eval.Ntested = i; i 1452 modules/calib3d/src/rho.cpp eval.Ntestedtotal += i; i 1500 modules/calib3d/src/rho.cpp unsigned i; i 1529 modules/calib3d/src/rho.cpp i = 0; i 1534 modules/calib3d/src/rho.cpp }while((An-prevAn > 1.5e-8) && (++i < 10)); i 1744 modules/calib3d/src/rho.cpp unsigned i; i 1745 modules/calib3d/src/rho.cpp for(i=0;i<s;i++){ i 1746 modules/calib3d/src/rho.cpp numer *= s-i; i 1747 modules/calib3d/src/rho.cpp denom *= n-i; i 2088 modules/calib3d/src/rho.cpp int i; i 2102 modules/calib3d/src/rho.cpp for(i=0;i<MAXLEVMARQITERS;i++){ i 2186 modules/calib3d/src/rho.cpp unsigned i; i 2195 modules/calib3d/src/rho.cpp for(i=0;i<N;i++){ i 2197 modules/calib3d/src/rho.cpp if(!inl[i]){ i 2220 modules/calib3d/src/rho.cpp float x = src[2*i+0]; i 2221 modules/calib3d/src/rho.cpp float y = src[2*i+1]; i 2222 modules/calib3d/src/rho.cpp float X = dst[2*i+0]; i 2223 modules/calib3d/src/rho.cpp float Y = dst[2*i+1]; i 2333 modules/calib3d/src/rho.cpp int i; i 2336 modules/calib3d/src/rho.cpp for(i=0;i<8;i++){ i 2337 modules/calib3d/src/rho.cpp dL += dH[i]*dH[i]; i 2342 modules/calib3d/src/rho.cpp for(i=0;i<8;i++){ i 2343 modules/calib3d/src/rho.cpp dL += dH[i]*Jte[i];/* += as opposed to -=, since dH we compute is i 2374 modules/calib3d/src/rho.cpp int i, j, k; i 2378 modules/calib3d/src/rho.cpp for(i=0;i<N;i++){/* Row */ i 2380 modules/calib3d/src/rho.cpp for(j=0;j<i;j++){ i 2381 modules/calib3d/src/rho.cpp x = A[i][j]; /* Aij */ i 2383 modules/calib3d/src/rho.cpp x -= L[i][k] * L[j][k];/* - Sum_{k=0..j-1} Lik*Ljk */ i 2385 modules/calib3d/src/rho.cpp L[i][j] = x / L[j][j]; /* Lij = ... / Ljj */ i 2389 modules/calib3d/src/rho.cpp {j = i; i 183 modules/calib3d/src/solvepnp.cpp int i, count = opoints.checkVector(3); i 197 modules/calib3d/src/solvepnp.cpp for ( i = 0; i < count; ++i) i 198 modules/calib3d/src/solvepnp.cpp err[i] = (float)norm( ipoints_ptr[i] - projpoints_ptr[i] ); i 305 modules/calib3d/src/solvepnp.cpp for (int i = 0; i < npoints; ++i) i 307 modules/calib3d/src/solvepnp.cpp if((int)_mask_local_inliers.at<uchar>(i) != 0) // inliers mask i 308 modules/calib3d/src/solvepnp.cpp _local_inliers.push_back(i); // output inliers vector i 591 modules/calib3d/src/stereobm.cpp for (int i = 0; i < 4; i ++) i 592 modules/calib3d/src/stereobm.cpp d0_4_temp[i] = i; i 884 modules/calib3d/src/stereobm.cpp for( int i = range.start; i < range.end; i++ ) i 887 modules/calib3d/src/stereobm.cpp prefilterNorm( *imgs0[i], *imgs[i], state->preFilterSize, state->preFilterCap, buf[i] ); i 889 modules/calib3d/src/stereobm.cpp prefilterXSobel( *imgs0[i], *imgs[i], state->preFilterCap ); i 987 modules/calib3d/src/stereosgbm.cpp int i, j, dstep = (int)(img.step/sizeof(T)); i 998 modules/calib3d/src/stereosgbm.cpp for( i = 0; i < height; i++ ) i 1000 modules/calib3d/src/stereosgbm.cpp T* ds = img.ptr<T>(i); i 1001 modules/calib3d/src/stereosgbm.cpp int* ls = labels + width*i; i 1016 modules/calib3d/src/stereosgbm.cpp Point2s p((short)j, (short)i); // current pixel i 94 modules/calib3d/src/triangulate.cpp for( int i = 0; i < numPoints; i++ )/* For each point */ i 100 modules/calib3d/src/triangulate.cpp x = cvmGet(projPoints[j],0,i); i 101 modules/calib3d/src/triangulate.cpp y = cvmGet(projPoints[j],1,i); i 112 modules/calib3d/src/triangulate.cpp cvmSet(points4D,0,i,matrV(3,0));/* X */ i 113 modules/calib3d/src/triangulate.cpp cvmSet(points4D,1,i,matrV(3,1));/* Y */ i 114 modules/calib3d/src/triangulate.cpp cvmSet(points4D,2,i,matrV(3,2));/* Z */ i 115 modules/calib3d/src/triangulate.cpp cvmSet(points4D,3,i,matrV(3,3));/* W */ i 123 modules/calib3d/src/triangulate.cpp int i; i 132 modules/calib3d/src/triangulate.cpp for( i = 0; i < numPoints; i++ ) i 134 modules/calib3d/src/triangulate.cpp double W = cvmGet(points4D,3,i); i 136 modules/calib3d/src/triangulate.cpp point3D_dat[0] = cvmGet(points4D,0,i)/W; i 137 modules/calib3d/src/triangulate.cpp point3D_dat[1] = cvmGet(points4D,1,i)/W; i 138 modules/calib3d/src/triangulate.cpp point3D_dat[2] = cvmGet(points4D,2,i)/W; i 148 modules/calib3d/src/triangulate.cpp x = (float)cvmGet(projPoints[currCamera],0,i); i 149 modules/calib3d/src/triangulate.cpp y = (float)cvmGet(projPoints[currCamera],1,i); i 102 modules/calib3d/src/upnp.cpp for(int i = 0; i < number_of_correspondences; i++) i 104 modules/calib3d/src/upnp.cpp fill_M(M, 2 * i, &alphas[0] + 4 * i, us[2 * i], us[2 * i + 1]); i 149 modules/calib3d/src/upnp.cpp for(int i = 0; i < 3; i++) { i 151 modules/calib3d/src/upnp.cpp R_dst[i][j] = R_src[i][j]; i 152 modules/calib3d/src/upnp.cpp t_dst[i] = t_src[i]; i 163 modules/calib3d/src/upnp.cpp for(int i = 0; i < number_of_correspondences; i++) { i 164 modules/calib3d/src/upnp.cpp const double * pc = &pcs[3 * i]; i 165 modules/calib3d/src/upnp.cpp const double * pw = &pws[3 * i]; i 184 modules/calib3d/src/upnp.cpp for(int i = 0; i < number_of_correspondences; i++) { i 185 modules/calib3d/src/upnp.cpp double * pc = &pcs[3 * i]; i 186 modules/calib3d/src/upnp.cpp double * pw = &pws[3 * i]; i 198 modules/calib3d/src/upnp.cpp for(int i = 0; i < 3; i++) i 200 modules/calib3d/src/upnp.cpp R[i][j] = dot(abt_u + 3 * i, abt_v + 3 * j); i 220 modules/calib3d/src/upnp.cpp for(int i = 0; i < 4; i++) i 222 modules/calib3d/src/upnp.cpp ccs[i][j] = -ccs[i][j]; i 224 modules/calib3d/src/upnp.cpp for(int i = 0; i < number_of_correspondences; i++) { i 225 modules/calib3d/src/upnp.cpp pcs[3 * i ] = -pcs[3 * i]; i 226 modules/calib3d/src/upnp.cpp pcs[3 * i + 1] = -pcs[3 * i + 1]; i 227 modules/calib3d/src/upnp.cpp pcs[3 * i + 2] = -pcs[3 * i + 2]; i 249 modules/calib3d/src/upnp.cpp for(int i = 0; i < number_of_correspondences; i++) { i 250 modules/calib3d/src/upnp.cpp double * pw = &pws[3 * i]; i 256 modules/calib3d/src/upnp.cpp double u = us[2 * i], v = us[2 * i + 1]; i 266 modules/calib3d/src/upnp.cpp for (int i = 0; i < 4; ++i) i 267 modules/calib3d/src/upnp.cpp cws[i][0] = cws[i][1] = cws[i][2] = 0.0; i 294 modules/calib3d/src/upnp.cpp for(int i = 0; i < 4; i++) { i 295 modules/calib3d/src/upnp.cpp M1[3 * i ] = as[i] * fu; i 296 modules/calib3d/src/upnp.cpp M1[3 * i + 1] = 0.0; i 297 modules/calib3d/src/upnp.cpp M1[3 * i + 2] = as[i] * (uc - u); i 299 modules/calib3d/src/upnp.cpp M2[3 * i ] = 0.0; i 300 modules/calib3d/src/upnp.cpp M2[3 * i + 1] = as[i] * fv; i 301 modules/calib3d/src/upnp.cpp M2[3 * i + 2] = as[i] * (vc - v); i 307 modules/calib3d/src/upnp.cpp for(int i = 0; i < 4; ++i) i 308 modules/calib3d/src/upnp.cpp ccs[i][0] = ccs[i][1] = ccs[i][2] = 0.0; i 311 modules/calib3d/src/upnp.cpp for(int i = 0; i < N; ++i) { i 312 modules/calib3d/src/upnp.cpp const double * v = ut + 12 * (9 + i); i 315 modules/calib3d/src/upnp.cpp ccs[j][k] += betas[i] * v[3 * j + k]; i 318 modules/calib3d/src/upnp.cpp for (int i = 0; i < 4; ++i) ccs[i][2] *= fu; i 323 modules/calib3d/src/upnp.cpp for(int i = 0; i < number_of_correspondences; i++) { i 324 modules/calib3d/src/upnp.cpp double * a = &alphas[0] + 4 * i; i 325 modules/calib3d/src/upnp.cpp double * pc = &pcs[0] + 3 * i; i 378 modules/calib3d/src/upnp.cpp for (int i = 0; i < 18; ++i) { i 380 modules/calib3d/src/upnp.cpp betas[3] = solutions[i][0]; i 381 modules/calib3d/src/upnp.cpp betas[2] = solutions[i][1]; i 383 modules/calib3d/src/upnp.cpp fu = fv = solutions[i][2]; i 391 modules/calib3d/src/upnp.cpp min_sol = i; i 407 modules/calib3d/src/upnp.cpp for (int i = 1; i < 13; ++i) m[i] = *M1.ptr<double>(i-1); i 443 modules/calib3d/src/upnp.cpp for (int i = 1; i < 13; ++i) i 445 modules/calib3d/src/upnp.cpp m[1][i] = *M1.ptr<double>(i-1); i 446 modules/calib3d/src/upnp.cpp m[2][i] = *M2.ptr<double>(i-1); i 553 modules/calib3d/src/upnp.cpp for (int i = 0; i < 18; ++i) { i 559 modules/calib3d/src/upnp.cpp for (int j = 0; j < 9; ++j) matrix[j] = (double)matrix_to_resolve[i][j]; i 561 modules/calib3d/src/upnp.cpp independent_term[0] = log( abs( betas[ combination[i][0]-1 ] ) ); i 562 modules/calib3d/src/upnp.cpp independent_term[1] = log( abs( betas[ combination[i][1]-1 ] ) ); i 563 modules/calib3d/src/upnp.cpp independent_term[2] = log( abs( betas[ combination[i][2]-1 ] ) ); i 567 modules/calib3d/src/upnp.cpp solutions[i][0] = S.at<double>(0); i 568 modules/calib3d/src/upnp.cpp solutions[i][1] = S.at<double>(1) * sign( betas[1] ); i 569 modules/calib3d/src/upnp.cpp solutions[i][2] = abs( S.at<double>(2) ); i 586 modules/calib3d/src/upnp.cpp for(int i = 0; i < 3; i++) i 587 modules/calib3d/src/upnp.cpp betas[i] += x[i]; i 600 modules/calib3d/src/upnp.cpp for(int i = 0; i < 6; i++) { i 601 modules/calib3d/src/upnp.cpp const double * rowL = l_6x12 + i * 12; i 602 modules/calib3d/src/upnp.cpp double * rowA = A->ptr<double>(i); i 609 modules/calib3d/src/upnp.cpp *b->ptr<double>(i) = rho[i] - i 637 modules/calib3d/src/upnp.cpp for(int i = 0; i < 3; i++) { i 640 modules/calib3d/src/upnp.cpp dv[i][j][0] = v[i][3 * a ] - v[i][3 * b]; i 641 modules/calib3d/src/upnp.cpp dv[i][j][1] = v[i][3 * a + 1] - v[i][3 * b + 1]; i 642 modules/calib3d/src/upnp.cpp dv[i][j][2] = v[i][3 * a + 2] - v[i][3 * b + 2]; i 652 modules/calib3d/src/upnp.cpp for(int i = 0; i < 6; i++) { i 653 modules/calib3d/src/upnp.cpp double * row = l_6x12 + 12 * i; i 655 modules/calib3d/src/upnp.cpp row[0] = dotXY(dv[0][i], dv[0][i]); i 656 modules/calib3d/src/upnp.cpp row[1] = 2.0f * dotXY(dv[0][i], dv[1][i]); i 657 modules/calib3d/src/upnp.cpp row[2] = dotXY(dv[1][i], dv[1][i]); i 658 modules/calib3d/src/upnp.cpp row[3] = 2.0f * dotXY(dv[0][i], dv[2][i]); i 659 modules/calib3d/src/upnp.cpp row[4] = 2.0f * dotXY(dv[1][i], dv[2][i]); i 660 modules/calib3d/src/upnp.cpp row[5] = dotXY(dv[2][i], dv[2][i]); i 662 modules/calib3d/src/upnp.cpp row[6] = dotZ(dv[0][i], dv[0][i]); i 663 modules/calib3d/src/upnp.cpp row[7] = 2.0f * dotZ(dv[0][i], dv[1][i]); i 664 modules/calib3d/src/upnp.cpp row[8] = 2.0f * dotZ(dv[0][i], dv[2][i]); i 665 modules/calib3d/src/upnp.cpp row[9] = dotZ(dv[1][i], dv[1][i]); i 666 modules/calib3d/src/upnp.cpp row[10] = 2.0f * dotZ(dv[1][i], dv[2][i]); i 667 modules/calib3d/src/upnp.cpp row[11] = dotZ(dv[2][i], dv[2][i]); i 730 modules/calib3d/src/upnp.cpp for(int i = k + 1; i < nr; i++) i 745 modules/calib3d/src/upnp.cpp for(int i = k; i < nr; i++) i 760 modules/calib3d/src/upnp.cpp for(int i = k; i < nr; i++) i 767 modules/calib3d/src/upnp.cpp for(int i = k; i < nr; i++) i 782 modules/calib3d/src/upnp.cpp for(int i = j; i < nr; i++) i 784 modules/calib3d/src/upnp.cpp tau += *ppAij * pb[i]; i 789 modules/calib3d/src/upnp.cpp for(int i = j; i < nr; i++) i 791 modules/calib3d/src/upnp.cpp pb[i] -= tau * *ppAij; i 800 modules/calib3d/src/upnp.cpp for(int i = nc - 2; i >= 0; i--) i 802 modules/calib3d/src/upnp.cpp double * ppAij = pA + i * nc + (i + 1), sum = 0; i 804 modules/calib3d/src/upnp.cpp for(int j = i + 1; j < nc; j++) i 809 modules/calib3d/src/upnp.cpp pX[i] = (pb[i] - sum) / A2[i]; i 74 modules/calib3d/src/upnp.h for(int i = 0; i < number_of_correspondences; i++) i 76 modules/calib3d/src/upnp.h pws[3 * i ] = opoints.at<OpointType>(i).x; i 77 modules/calib3d/src/upnp.h pws[3 * i + 1] = opoints.at<OpointType>(i).y; i 78 modules/calib3d/src/upnp.h pws[3 * i + 2] = opoints.at<OpointType>(i).z; i 80 modules/calib3d/src/upnp.h us[2 * i ] = ipoints.at<IpointType>(i).x; i 81 modules/calib3d/src/upnp.h us[2 * i + 1] = ipoints.at<IpointType>(i).y; i 91 modules/calib3d/test/test_affine3.cpp for(int i = 0; i < 100; ++i) i 58 modules/calib3d/test/test_cameracalibration.cpp void fill_array( int test_case_idx, int i, int j, Mat& arr ); i 61 modules/calib3d/test/test_cameracalibration.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 101 modules/calib3d/test/test_cameracalibration.cpp int i, code; i 139 modules/calib3d/test/test_cameracalibration.cpp for( i = 0; i < 5; i++ ) i 141 modules/calib3d/test/test_cameracalibration.cpp types[REF_OUTPUT][i] = types[OUTPUT][i]; i 142 modules/calib3d/test/test_cameracalibration.cpp sizes[REF_OUTPUT][i] = sizes[OUTPUT][i]; i 318 modules/calib3d/test/test_cameracalibration.cpp int i,j; i 432 modules/calib3d/test/test_cameracalibration.cpp i = 0;/* shift for current point */ i 441 modules/calib3d/test/test_cameracalibration.cpp (objectPoints+i)->x = x; i 442 modules/calib3d/test/test_cameracalibration.cpp (objectPoints+i)->y = y; i 443 modules/calib3d/test/test_cameracalibration.cpp (objectPoints+i)->z = z; i 444 modules/calib3d/test/test_cameracalibration.cpp i++; i 449 modules/calib3d/test/test_cameracalibration.cpp i = 0;/* shift for current point */ i 458 modules/calib3d/test/test_cameracalibration.cpp (imagePoints+i)->x = x; i 459 modules/calib3d/test/test_cameracalibration.cpp (imagePoints+i)->y = y; i 460 modules/calib3d/test/test_cameracalibration.cpp i++; i 486 modules/calib3d/test/test_cameracalibration.cpp for( i = 0; i < 3; i++ ) i 489 modules/calib3d/test/test_cameracalibration.cpp values_read = fscanf(file, "%lf", goodRotMatrs + currImage * 9 + j * 3 + i); i 497 modules/calib3d/test/test_cameracalibration.cpp for( i = 0; i < 3; i++ ) i 499 modules/calib3d/test/test_cameracalibration.cpp values_read = fscanf(file, "%lf", goodTransVects + currImage * 3 + i); i 545 modules/calib3d/test/test_cameracalibration.cpp i = 0; i 558 modules/calib3d/test/test_cameracalibration.cpp rx = reprojectPoints[i].x; i 559 modules/calib3d/test/test_cameracalibration.cpp ry = reprojectPoints[i].y; i 560 modules/calib3d/test/test_cameracalibration.cpp dx = rx - imagePoints[i].x; i 561 modules/calib3d/test/test_cameracalibration.cpp dy = ry - imagePoints[i].y; i 574 modules/calib3d/test/test_cameracalibration.cpp i++; i 690 modules/calib3d/test/test_cameracalibration.cpp int i, total = 0; i 691 modules/calib3d/test/test_cameracalibration.cpp for( i = 0; i < imageCount; i++ ) i 692 modules/calib3d/test/test_cameracalibration.cpp total += pointCounts[i]; i 752 modules/calib3d/test/test_cameracalibration.cpp for( int i = 0; i < imageCount; ++objectPointsIt, ++imagePointsIt, i++ ) i 754 modules/calib3d/test/test_cameracalibration.cpp int num = pointCounts[i]; i 787 modules/calib3d/test/test_cameracalibration.cpp for( int i = 0; i < imageCount; ++rvecsIt, ++tvecsIt, i++, rm+=9, tm+=3 ) i 813 modules/calib3d/test/test_cameracalibration.cpp for( int i = 0; it != imagePoints.end(); ++it, i++ ) i 815 modules/calib3d/test/test_cameracalibration.cpp _imagePoints[i] = cvPoint2D64f( it->x, it->y ); i 1074 modules/calib3d/test/test_cameracalibration.cpp for( int i = 0; i < pointCount; i++, ++it ) i 1076 modules/calib3d/test/test_cameracalibration.cpp Point3d p( objPoints(i,0), objPoints(i,1), objPoints(i,2) ); i 1105 modules/calib3d/test/test_cameracalibration.cpp for( int i = 0; i < 3; i++ ) i 1107 modules/calib3d/test/test_cameracalibration.cpp rvec.copyTo( leftRvec ); leftRvec(0,i) -= dEps; i 1109 modules/calib3d/test/test_cameracalibration.cpp leftImgPoints[i], valDpdrot, valDpdt, valDpdf, valDpdc, valDpddist, 0 ); i 1110 modules/calib3d/test/test_cameracalibration.cpp rvec.copyTo( rightRvec ); rightRvec(0,i) += dEps; i 1112 modules/calib3d/test/test_cameracalibration.cpp rightImgPoints[i], valDpdrot, valDpdt, valDpdf, valDpdc, valDpddist, 0 ); i 1123 modules/calib3d/test/test_cameracalibration.cpp for( int i = 0; i < 3; i++ ) i 1125 modules/calib3d/test/test_cameracalibration.cpp tvec.copyTo( leftTvec ); leftTvec(0,i) -= dEps; i 1127 modules/calib3d/test/test_cameracalibration.cpp leftImgPoints[i], valDpdrot, valDpdt, valDpdf, valDpdc, valDpddist, 0 ); i 1128 modules/calib3d/test/test_cameracalibration.cpp tvec.copyTo( rightTvec ); rightTvec(0,i) += dEps; i 1130 modules/calib3d/test/test_cameracalibration.cpp rightImgPoints[i], valDpdrot, valDpdt, valDpdf, valDpdc, valDpddist, 0 ); i 1186 modules/calib3d/test/test_cameracalibration.cpp for( int i = 0; i < distCoeffs.cols; i++ ) i 1188 modules/calib3d/test/test_cameracalibration.cpp distCoeffs.copyTo( leftDistCoeffs ); leftDistCoeffs(0,i) -= dEps; i 1190 modules/calib3d/test/test_cameracalibration.cpp leftImgPoints[i], valDpdrot, valDpdt, valDpdf, valDpdc, valDpddist, 0 ); i 1191 modules/calib3d/test/test_cameracalibration.cpp distCoeffs.copyTo( rightDistCoeffs ); rightDistCoeffs(0,i) += dEps; i 1193 modules/calib3d/test/test_cameracalibration.cpp rightImgPoints[i], valDpdrot, valDpdt, valDpdf, valDpdc, valDpddist, 0 ); i 1429 modules/calib3d/test/test_cameracalibration.cpp for( int i = 0; i < nframes; i++ ) i 1431 modules/calib3d/test/test_cameracalibration.cpp Mat left = imread(imglist[i*2]); i 1432 modules/calib3d/test/test_cameracalibration.cpp Mat right = imread(imglist[i*2+1]); i 1436 modules/calib3d/test/test_cameracalibration.cpp imglist[i*2].c_str(), imglist[i*2+1].c_str(), testcase ); i 1441 modules/calib3d/test/test_cameracalibration.cpp bool found1 = findChessboardCorners(left, patternSize, imgpt1[i]); i 1442 modules/calib3d/test/test_cameracalibration.cpp bool found2 = findChessboardCorners(right, patternSize, imgpt2[i]); i 1446 modules/calib3d/test/test_cameracalibration.cpp imglist[i*2].c_str(), imglist[i*2+1].c_str(), testcase ); i 1450 modules/calib3d/test/test_cameracalibration.cpp total += (int)imgpt1[i].size(); i 1452 modules/calib3d/test/test_cameracalibration.cpp objpt[i].push_back(Point3f((float)(j%patternSize.width), (float)(j/patternSize.width), 0.f)); i 1580 modules/calib3d/test/test_cameracalibration.cpp for (int i = 0; i < newHomogeneousPoints1.rows; ++i) i 1582 modules/calib3d/test/test_cameracalibration.cpp Mat error = newHomogeneousPoints2.row(i) * typedF * newHomogeneousPoints1.row(i).t(); i 1625 modules/calib3d/test/test_cameracalibration.cpp for( int i = 0, k = 0; i < nframes; i++ ) i 1628 modules/calib3d/test/test_cameracalibration.cpp undistortPoints(Mat(imgpt1[i]), temp[0], M1, D1, R1, P1); i 1629 modules/calib3d/test/test_cameracalibration.cpp undistortPoints(Mat(imgpt2[i]), temp[1], M2, D2, R2, P2); i 1709 modules/calib3d/test/test_cameracalibration.cpp for( int i = 0; i < nimages; i++ ) i 1711 modules/calib3d/test/test_cameracalibration.cpp total += (int)objectPoints[i].size(); i 1722 modules/calib3d/test/test_cameracalibration.cpp for( int i = 0, ni = 0, j = 0; i < nimages; i++, j += ni ) i 1724 modules/calib3d/test/test_cameracalibration.cpp ni = (int)objectPoints[i].size(); i 1725 modules/calib3d/test/test_cameracalibration.cpp npoints.ptr<int>()[i] = ni; i 1726 modules/calib3d/test/test_cameracalibration.cpp std::copy(objectPoints[i].begin(), objectPoints[i].end(), objPtData + j); i 1727 modules/calib3d/test/test_cameracalibration.cpp std::copy(imagePoints1[i].begin(), imagePoints1[i].end(), imgPtData + j); i 1728 modules/calib3d/test/test_cameracalibration.cpp std::copy(imagePoints2[i].begin(), imagePoints2[i].end(), imgPtData2 + j); i 172 modules/calib3d/test/test_cameracalibration_artificial.cpp for(size_t i = 0; i < tvecs.size(); ++i) i 174 modules/calib3d/test/test_cameracalibration_artificial.cpp const Point3d& tvec = *tvecs[i].ptr<Point3d>(); i 175 modules/calib3d/test/test_cameracalibration_artificial.cpp const Point3d& tvec_est = *tvecs_est[i].ptr<Point3d>(); i 185 modules/calib3d/test/test_cameracalibration_artificial.cpp ts->printf( cvtest::TS::LOG, "%d) Bad accuracy in returned tvecs. Index = %d\n", r, i); i 202 modules/calib3d/test/test_cameracalibration_artificial.cpp for(size_t i = 0; i < rvecs.size(); ++i) i 204 modules/calib3d/test/test_cameracalibration_artificial.cpp Rodrigues(rvecs[i], rmat); i 205 modules/calib3d/test/test_cameracalibration_artificial.cpp Rodrigues(rvecs_est[i], rmat_est); i 215 modules/calib3d/test/test_cameracalibration_artificial.cpp ts->printf( cvtest::TS::LOG, "%d) Bad accuracy in returned rvecs (rotation matrs). Index = %d\n", r, i); i 235 modules/calib3d/test/test_cameracalibration_artificial.cpp for(size_t i = 0; i < rvecs_exp.size(); ++i) i 237 modules/calib3d/test/test_cameracalibration_artificial.cpp projectPoints(_chessboard3D, _rvecs_exp[i], _tvecs_exp[i], eye33, zero15, uv_exp); i 238 modules/calib3d/test/test_cameracalibration_artificial.cpp projectPoints(_chessboard3D, rvecs_est[i], tvecs_est[i], eye33, zero15, uv_est); i 240 modules/calib3d/test/test_cameracalibration_artificial.cpp res += norm(uv_exp[i] - uv_est[i]); i 261 modules/calib3d/test/test_cameracalibration_artificial.cpp for(int i = 0; i < cornersSize.width; ++i) i 262 modules/calib3d/test/test_cameracalibration_artificial.cpp chessboard3D.push_back(Point3f(sqSile.width * i, sqSile.height * j, 0)); i 273 modules/calib3d/test/test_cameracalibration_artificial.cpp for(size_t i = 0; i < brdsNum; ++i) i 277 modules/calib3d/test/test_cameracalibration_artificial.cpp boards[i] = cbg(bg, camMat, distCoeffs, sqSile, corners_art); i 278 modules/calib3d/test/test_cameracalibration_artificial.cpp if(findChessboardCorners(boards[i], cornersSize, corners_fcb)) i 287 modules/calib3d/test/test_cameracalibration_artificial.cpp tvecs_exp[i].create(1, 3, CV_64F); i 288 modules/calib3d/test/test_cameracalibration_artificial.cpp *tvecs_exp[i].ptr<Point3d>() = cbg.corners3d[0]; i 289 modules/calib3d/test/test_cameracalibration_artificial.cpp rvecs_exp[i] = calcRvec(cbg.corners3d, cbg.cornersSize()); i 306 modules/calib3d/test/test_cameracalibration_artificial.cpp for(size_t i = 0; i < brdsNum; ++i) i 309 modules/calib3d/test/test_cameracalibration_artificial.cpp cvtColor(boards[i], gray, COLOR_BGR2GRAY); i 310 modules/calib3d/test/test_cameracalibration_artificial.cpp vector<Point2f> tmp = imagePoints_findCb[i]; i 316 modules/calib3d/test/test_cameracalibration_artificial.cpp for(size_t i = 0; i < brdsNum; ++i) i 319 modules/calib3d/test/test_cameracalibration_artificial.cpp cvtColor(boards[i], gray, COLOR_BGR2GRAY); i 320 modules/calib3d/test/test_cameracalibration_artificial.cpp vector<Point2f> tmp = imagePoints_findCb[i]; i 362 modules/calib3d/test/test_cameracalibration_artificial.cpp for(size_t i = 0; i < brdsNum; ++i) i 363 modules/calib3d/test/test_cameracalibration_artificial.cpp solvePnP(Mat(objectPoints[i]), Mat(imagePoints[i]), camMat, distCoeffs, rvecs_spnp[i], tvecs_spnp[i]); i 126 modules/calib3d/test/test_cameracalibration_badarg.cpp for(int i = 0; i < corSize.width; ++i) i 127 modules/calib3d/test/test_cameracalibration_badarg.cpp objPts_cpp.at<Point3f>(j, i) = Point3i(i, j, 0); i 312 modules/calib3d/test/test_cameracalibration_badarg.cpp for(int i = 0; i < bad_objPts_cpp5.rows; ++i) i 313 modules/calib3d/test/test_cameracalibration_badarg.cpp bad_objPts_cpp5.at<Point3f>(0, i).z += ((float)rng - 0.5f); i 115 modules/calib3d/test/test_chessboardgenerator.cpp for(int i = 0; i < patternSize.width; ++i) i 117 modules/calib3d/test/test_chessboardgenerator.cpp if ( (i % 2 == 0 && j % 2 == 0) || (i % 2 != 0 && j % 2 != 0) ) i 122 modules/calib3d/test/test_chessboardgenerator.cpp Point3f p1 = zero + (i + 0) * sqWidth * pb1 + (j + 0) * sqHeight * pb2; i 123 modules/calib3d/test/test_chessboardgenerator.cpp Point3f p2 = zero + (i + 1) * sqWidth * pb1 + (j + 0) * sqHeight * pb2; i 124 modules/calib3d/test/test_chessboardgenerator.cpp Point3f p3 = zero + (i + 1) * sqWidth * pb1 + (j + 1) * sqHeight * pb2; i 125 modules/calib3d/test/test_chessboardgenerator.cpp Point3f p4 = zero + (i + 0) * sqWidth * pb1 + (j + 1) * sqHeight * pb2; i 141 modules/calib3d/test/test_chessboardgenerator.cpp for(int i = 0; i < patternSize.width - 1; ++i) i 142 modules/calib3d/test/test_chessboardgenerator.cpp corners3d.push_back(zero + (i + 1) * sqWidth * pb1 + (j + 1) * sqHeight * pb2); i 59 modules/calib3d/test/test_chesscorners.cpp for(size_t i = 0; i < v.size(); i++ ) i 60 modules/calib3d/test/test_chesscorners.cpp circle( rgb, v[i], 3, Scalar(255, 0, 0), FILLED); i 66 modules/calib3d/test/test_chesscorners.cpp for(size_t i = 0; i < count; i++ ) i 67 modules/calib3d/test/test_chesscorners.cpp circle( rgb, u_data[i], 3, Scalar(0, 255, 0), FILLED); i 339 modules/calib3d/test/test_chesscorners.cpp for(int i = 1; i < mat.rows - 2; ++i) i 342 modules/calib3d/test/test_chesscorners.cpp const Point2f& cur = mat(i, j); i 344 modules/calib3d/test/test_chesscorners.cpp tmp = norm( cur - mat(i + 1, j + 1) ); i 348 modules/calib3d/test/test_chesscorners.cpp tmp = norm( cur - mat(i - 1, j + 1 ) ); i 352 modules/calib3d/test/test_chesscorners.cpp tmp = norm( cur - mat(i + 1, j - 1) ); i 356 modules/calib3d/test/test_chesscorners.cpp tmp = norm( cur - mat(i - 1, j - 1) ); i 391 modules/calib3d/test/test_chesscorners.cpp for(int i = 0; i < test_num; ++i) i 393 modules/calib3d/test/test_chesscorners.cpp progress = update_progress( progress, i, test_num, 0 ); i 394 modules/calib3d/test/test_chesscorners.cpp ChessBoardGenerator cbg(sizes[i % sizes_num]); i 412 modules/calib3d/test/test_chesscorners.cpp int flags = i % 8; // need to check branches for all flags i 60 modules/calib3d/test/test_compose_rt.cpp for(int i = 0; i < 3; ++i) i 62 modules/calib3d/test/test_compose_rt.cpp ev.setTo(Scalar(0)); ev(i, 0) = eps; i 67 modules/calib3d/test/test_compose_rt.cpp dr3_dr1.col(i) = rv3_p - rv3_m; i 68 modules/calib3d/test/test_compose_rt.cpp dt3_dr1.col(i) = tv3_p - tv3_m; i 77 modules/calib3d/test/test_compose_rt.cpp for(int i = 0; i < 3; ++i) i 79 modules/calib3d/test/test_compose_rt.cpp ev.setTo(Scalar(0)); ev(i, 0) = eps; i 84 modules/calib3d/test/test_compose_rt.cpp dr3_dr2.col(i) = rv3_p - rv3_m; i 85 modules/calib3d/test/test_compose_rt.cpp dt3_dr2.col(i) = tv3_p - tv3_m; i 94 modules/calib3d/test/test_compose_rt.cpp for(int i = 0; i < 3; ++i) i 96 modules/calib3d/test/test_compose_rt.cpp ev.setTo(Scalar(0)); ev(i, 0) = eps; i 101 modules/calib3d/test/test_compose_rt.cpp drt3_dt1.col(i) = rv3_p - rv3_m; i 102 modules/calib3d/test/test_compose_rt.cpp dt3_dt1.col(i) = tv3_p - tv3_m; i 111 modules/calib3d/test/test_compose_rt.cpp for(int i = 0; i < 3; ++i) i 113 modules/calib3d/test/test_compose_rt.cpp ev.setTo(Scalar(0)); ev(i, 0) = eps; i 118 modules/calib3d/test/test_compose_rt.cpp dr3_dt2.col(i) = rv3_p - rv3_m; i 119 modules/calib3d/test/test_compose_rt.cpp dt3_dt2.col(i) = tv3_p - tv3_m; i 74 modules/calib3d/test/test_cornerssubpix.cpp for(size_t i = 0; i < set1.size(); i++) i 81 modules/calib3d/test/test_cornerssubpix.cpp double dist = norm(set1[i] - set2[j]); i 135 modules/calib3d/test/test_cornerssubpix.cpp for(int i = 0; i < runs_count; i++) i 212 modules/calib3d/test/test_cornerssubpix.cpp progress = update_progress( progress, i-1, runs_count, 0 ); i 91 modules/calib3d/test/test_fisheye.cpp for(int i = 0; i < (int)distorted0.total(); ++i) i 92 modules/calib3d/test/test_fisheye.cpp u2[i] = cv::Vec3d(u1[i][0], u1[i][1], 1.0); i 246 modules/calib3d/test/test_fisheye.cpp for(int i = 0; i < n_images; ++i) i 247 modules/calib3d/test/test_fisheye.cpp fs_left[cv::format("image_%d", i )] >> imagePoints[i]; i 252 modules/calib3d/test/test_fisheye.cpp for(int i = 0; i < n_images; ++i) i 253 modules/calib3d/test/test_fisheye.cpp fs_object[cv::format("image_%d", i )] >> objectPoints[i]; i 281 modules/calib3d/test/test_fisheye.cpp for(int i = 0; i < n_images; ++i) i 282 modules/calib3d/test/test_fisheye.cpp fs_left[cv::format("image_%d", i )] >> imagePoints[i]; i 287 modules/calib3d/test/test_fisheye.cpp for(int i = 0; i < n_images; ++i) i 288 modules/calib3d/test/test_fisheye.cpp fs_object[cv::format("image_%d", i )] >> objectPoints[i]; i 342 modules/calib3d/test/test_fisheye.cpp for(int i = 0; i < n_images; ++i) i 343 modules/calib3d/test/test_fisheye.cpp fs_left[cv::format("image_%d", i )] >> imagePoints[i]; i 348 modules/calib3d/test/test_fisheye.cpp for(int i = 0; i < n_images; ++i) i 349 modules/calib3d/test/test_fisheye.cpp fs_object[cv::format("image_%d", i )] >> objectPoints[i]; i 418 modules/calib3d/test/test_fisheye.cpp for(int i = 0;; ++i) i 433 modules/calib3d/test/test_fisheye.cpp cv::Mat correct = cv::imread(combine(datasets_repository_path, cv::format("rectification_AB_%03d.png", i))); i 436 modules/calib3d/test/test_fisheye.cpp cv::imwrite(combine(datasets_repository_path, cv::format("rectification_AB_%03d.png", i)), rectification); i 454 modules/calib3d/test/test_fisheye.cpp for(int i = 0; i < n_images; ++i) i 455 modules/calib3d/test/test_fisheye.cpp fs_left[cv::format("image_%d", i )] >> leftPoints[i]; i 460 modules/calib3d/test/test_fisheye.cpp for(int i = 0; i < n_images; ++i) i 461 modules/calib3d/test/test_fisheye.cpp fs_right[cv::format("image_%d", i )] >> rightPoints[i]; i 466 modules/calib3d/test/test_fisheye.cpp for(int i = 0; i < n_images; ++i) i 467 modules/calib3d/test/test_fisheye.cpp fs_object[cv::format("image_%d", i )] >> objectPoints[i]; i 522 modules/calib3d/test/test_fisheye.cpp for(int i = 0; i < n_images; ++i) i 523 modules/calib3d/test/test_fisheye.cpp fs_left[cv::format("image_%d", i )] >> leftPoints[i]; i 528 modules/calib3d/test/test_fisheye.cpp for(int i = 0; i < n_images; ++i) i 529 modules/calib3d/test/test_fisheye.cpp fs_right[cv::format("image_%d", i )] >> rightPoints[i]; i 534 modules/calib3d/test/test_fisheye.cpp for(int i = 0; i < n_images; ++i) i 535 modules/calib3d/test/test_fisheye.cpp fs_object[cv::format("image_%d", i )] >> objectPoints[i]; i 614 modules/calib3d/test/test_fisheye.cpp for(int i = 0; i < l.rows; i+=20) i 615 modules/calib3d/test/test_fisheye.cpp cv::line(merged, cv::Point(0, i), cv::Point(merged.cols, i), cv::Scalar(0, 255, 0)); i 51 modules/calib3d/test/test_fundam.cpp int i; i 198 modules/calib3d/test/test_fundam.cpp for( i = 0; i < 3; i++ ) i 200 modules/calib3d/test/test_fundam.cpp _t1 = cvMat( 3, 3, CV_64FC1, t0 + i*9 ); i 315 modules/calib3d/test/test_fundam.cpp for( i = 0; i < 3; i++ ) i 317 modules/calib3d/test/test_fundam.cpp CvMat t = cvMat( 3, 3, CV_64F, J + i*9 ); i 363 modules/calib3d/test/test_fundam.cpp int i, count, sdims, ddims; i 425 modules/calib3d/test/test_fundam.cpp for( i = 0; i < count; i++, s += sstep1, d += dstep1 ) i 446 modules/calib3d/test/test_fundam.cpp for( i = 0; i < count; i++, s += sstep1, d += dstep1 ) i 476 modules/calib3d/test/test_fundam.cpp int i, count = _3d.cols; i 492 modules/calib3d/test/test_fundam.cpp for( i = 0; i < count; i++ ) i 494 modules/calib3d/test/test_fundam.cpp const double* M = _3d.ptr<double>() + i*3; i 495 modules/calib3d/test/test_fundam.cpp double* m = temp.ptr<double>() + i*3; i 503 modules/calib3d/test/test_fundam.cpp u += noise.at<Point2d>(i).x*s; i 504 modules/calib3d/test/test_fundam.cpp v += noise.at<Point2d>(i).y*s; i 525 modules/calib3d/test/test_fundam.cpp void fill_array( int test_case_idx, int i, int j, Mat& arr ); i 528 modules/calib3d/test/test_fundam.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 570 modules/calib3d/test/test_fundam.cpp int i, code; i 608 modules/calib3d/test/test_fundam.cpp for( i = 0; i < 5; i++ ) i 610 modules/calib3d/test/test_fundam.cpp types[REF_OUTPUT][i] = types[OUTPUT][i]; i 611 modules/calib3d/test/test_fundam.cpp sizes[REF_OUTPUT][i] = sizes[OUTPUT][i]; i 623 modules/calib3d/test/test_fundam.cpp void CV_RodriguesTest::fill_array( int test_case_idx, int i, int j, Mat& arr ) i 625 modules/calib3d/test/test_fundam.cpp if( i == INPUT && j == 0 ) i 649 modules/calib3d/test/test_fundam.cpp cvtest::ArrayTest::fill_array( test_case_idx, i, j, arr ); i 767 modules/calib3d/test/test_fundam.cpp void fill_array( int test_case_idx, int i, int j, Mat& arr ); i 770 modules/calib3d/test/test_fundam.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 897 modules/calib3d/test/test_fundam.cpp void CV_FundamentalMatTest::fill_array( int test_case_idx, int i, int j, Mat& arr ) i 902 modules/calib3d/test/test_fundam.cpp if( i != INPUT ) i 904 modules/calib3d/test/test_fundam.cpp cvtest::ArrayTest::fill_array( test_case_idx, i, j, arr ); i 916 modules/calib3d/test/test_fundam.cpp for( i = 0; i < arr.cols*3; i += 3 ) i 918 modules/calib3d/test/test_fundam.cpp p[i] = cvtest::randReal(rng)*cube_size; i 919 modules/calib3d/test/test_fundam.cpp p[i+1] = cvtest::randReal(rng)*cube_size; i 920 modules/calib3d/test/test_fundam.cpp p[i+2] = cvtest::randReal(rng)*cube_size + cube_size; i 1017 modules/calib3d/test/test_fundam.cpp int i, pt_count = test_mat[INPUT][2].cols; i 1029 modules/calib3d/test/test_fundam.cpp for( i = 0; i < pt_count; i++ ) i 1031 modules/calib3d/test/test_fundam.cpp double x1 = p1.at<Point2d>(i).x; i 1032 modules/calib3d/test/test_fundam.cpp double y1 = p1.at<Point2d>(i).y; i 1033 modules/calib3d/test/test_fundam.cpp double x2 = p2.at<Point2d>(i).x; i 1034 modules/calib3d/test/test_fundam.cpp double y2 = p2.at<Point2d>(i).y; i 1043 modules/calib3d/test/test_fundam.cpp mtfm1[i] = 1; i 1044 modules/calib3d/test/test_fundam.cpp mtfm2[i] = !status[i] || t0 > err_level || t < err_level; i 1063 modules/calib3d/test/test_fundam.cpp void fill_array( int test_case_idx, int i, int j, Mat& arr ); i 1066 modules/calib3d/test/test_fundam.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 1197 modules/calib3d/test/test_fundam.cpp void CV_EssentialMatTest::fill_array( int test_case_idx, int i, int j, Mat& arr ) i 1202 modules/calib3d/test/test_fundam.cpp if( i != INPUT ) i 1204 modules/calib3d/test/test_fundam.cpp cvtest::ArrayTest::fill_array( test_case_idx, i, j, arr ); i 1216 modules/calib3d/test/test_fundam.cpp for( i = 0; i < arr.cols*3; i += 3 ) i 1218 modules/calib3d/test/test_fundam.cpp p[i] = cvtest::randReal(rng)*cube_size; i 1219 modules/calib3d/test/test_fundam.cpp p[i+1] = cvtest::randReal(rng)*cube_size; i 1220 modules/calib3d/test/test_fundam.cpp p[i+2] = cvtest::randReal(rng)*cube_size + cube_size; i 1354 modules/calib3d/test/test_fundam.cpp int i, pt_count = test_mat[INPUT][2].cols; i 1365 modules/calib3d/test/test_fundam.cpp for( i = 0; i < pt_count; i++ ) i 1367 modules/calib3d/test/test_fundam.cpp double x1 = p1.at<Point2d>(i).x; i 1368 modules/calib3d/test/test_fundam.cpp double y1 = p1.at<Point2d>(i).y; i 1369 modules/calib3d/test/test_fundam.cpp double x2 = p2.at<Point2d>(i).x; i 1370 modules/calib3d/test/test_fundam.cpp double y2 = p2.at<Point2d>(i).y; i 1381 modules/calib3d/test/test_fundam.cpp mtfm1[i] = 1; i 1382 modules/calib3d/test/test_fundam.cpp mtfm2[i] = !status[i] || t0 > err_level || t < err_level; i 1427 modules/calib3d/test/test_fundam.cpp void fill_array( int test_case_idx, int i, int j, Mat& arr ); i 1428 modules/calib3d/test/test_fundam.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 1560 modules/calib3d/test/test_fundam.cpp void fill_array( int test_case_idx, int i, int j, Mat& arr ); i 1561 modules/calib3d/test/test_fundam.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 1655 modules/calib3d/test/test_fundam.cpp void CV_ComputeEpilinesTest::fill_array( int test_case_idx, int i, int j, Mat& arr ) i 1659 modules/calib3d/test/test_fundam.cpp if( i == INPUT && j == 0 ) i 1665 modules/calib3d/test/test_fundam.cpp else if( i == INPUT && j == 1 ) i 1668 modules/calib3d/test/test_fundam.cpp cvtest::ArrayTest::fill_array( test_case_idx, i, j, arr ); i 1691 modules/calib3d/test/test_fundam.cpp for( int i = 0; i < pt_count; i++ ) i 1693 modules/calib3d/test/test_fundam.cpp double* p = pt.ptr<double>() + i*3; i 1694 modules/calib3d/test/test_fundam.cpp double* l = lines.ptr<double>() + i*3; i 130 modules/calib3d/test/test_homography.cpp for (int i = 0; i < mask.rows; ++i) if (mask.at<uchar>(i, 0) > 1) return 3; i 137 modules/calib3d/test/test_homography.cpp for (int i = 0; i < found_mask.rows; ++i) if (found_mask.at<uchar>(i, 0) > 1) return 2; i 256 modules/calib3d/test/test_homography.cpp for (int i = 0; i < N; ++i) i 258 modules/calib3d/test/test_homography.cpp src_data[2*i] = (float)cvtest::randReal(rng)*image_size; i 259 modules/calib3d/test/test_homography.cpp src_data[2*i+1] = (float)cvtest::randReal(rng)*image_size; i 269 modules/calib3d/test/test_homography.cpp for (int i = 0; i < N; ++i) i 271 modules/calib3d/test/test_homography.cpp float *tmp = src_mat_2d.ptr<float>()+2*i; i 272 modules/calib3d/test/test_homography.cpp src_mat_3d.at<float>(0, i) = tmp[0]; i 273 modules/calib3d/test/test_homography.cpp src_mat_3d.at<float>(1, i) = tmp[1]; i 274 modules/calib3d/test/test_homography.cpp src_mat_3d.at<float>(2, i) = 1.0f; i 296 modules/calib3d/test/test_homography.cpp for (int i = 0; i < N; ++i) i 298 modules/calib3d/test/test_homography.cpp float *tmp_2f = dst_mat_2f.ptr<float>()+2*i; i 299 modules/calib3d/test/test_homography.cpp tmp_2f[0] = dst_mat_2d.at<float>(0, i) = dst_mat_3d.at<float>(0, i) /= dst_mat_3d.at<float>(2, i); i 300 modules/calib3d/test/test_homography.cpp tmp_2f[1] = dst_mat_2d.at<float>(1, i) = dst_mat_3d.at<float>(1, i) /= dst_mat_3d.at<float>(2, i); i 301 modules/calib3d/test/test_homography.cpp dst_mat_3d.at<float>(2, i) = 1.0f; i 306 modules/calib3d/test/test_homography.cpp for (int i = 0; i < METHODS_COUNT; ++i) i 308 modules/calib3d/test/test_homography.cpp method = METHOD[i]; i 402 modules/calib3d/test/test_homography.cpp for (int i = 0; i < N; ++i) i 404 modules/calib3d/test/test_homography.cpp float *a = noise_2f.ptr<float>()+2*i, *_2f = dst_mat_2f.ptr<float>()+2*i; i 406 modules/calib3d/test/test_homography.cpp mask.at<bool>(i, 0) = !(sqrt(a[0]*a[0]+a[1]*a[1]) > reproj_threshold); i 409 modules/calib3d/test/test_homography.cpp for (int i = 0; i < METHODS_COUNT; ++i) i 411 modules/calib3d/test/test_homography.cpp method = METHOD[i]; i 654 modules/calib3d/test/test_homography.cpp for( int i = 0; i < descriptors_1.rows; i++ ) i 656 modules/calib3d/test/test_homography.cpp double dist = matches[i].distance; i 663 modules/calib3d/test/test_homography.cpp for( int i = 0; i < descriptors_1.rows; i++ ) i 665 modules/calib3d/test/test_homography.cpp if( matches[i].distance <= 100 ) i 666 modules/calib3d/test/test_homography.cpp good_matches.push_back( matches[i]); i 672 modules/calib3d/test/test_homography.cpp for( int i = 0; i < (int)good_matches.size(); i++ ) i 675 modules/calib3d/test/test_homography.cpp pointframe1.push_back( keypoints_1[ good_matches[i].queryIdx ].pt ); i 676 modules/calib3d/test/test_homography.cpp pointframe2.push_back( keypoints_2[ good_matches[i].trainIdx ].pt ); i 681 modules/calib3d/test/test_homography.cpp for( int i = 0; i < 10; i++ ) i 689 modules/calib3d/test/test_homography.cpp for( int i = 0; i < 10; i++ ) i 90 modules/calib3d/test/test_modelest.cpp void fill_array( int test_case_idx, int i, int j, Mat& arr ); i 91 modules/calib3d/test/test_modelest.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 129 modules/calib3d/test/test_modelest.cpp void CV_ModelEstimator2_Test::fill_array( int test_case_idx, int i, int j, Mat& arr ) i 131 modules/calib3d/test/test_modelest.cpp if( i != INPUT ) i 133 modules/calib3d/test/test_modelest.cpp cvtest::ArrayTest::fill_array( test_case_idx, i, j, arr ); i 144 modules/calib3d/test/test_modelest.cpp ArrayTest::fill_array(test_case_idx, i, j, arr); i 181 modules/calib3d/test/test_modelest.cpp ArrayTest::fill_array(test_case_idx, i, j, arr); i 75 modules/calib3d/test/test_posit.cpp int i, counter; i 162 modules/calib3d/test/test_posit.cpp for ( i = 0; i < 8; i++ ) i 166 modules/calib3d/test/test_posit.cpp CvMat Obj_point = cvMat( 3, 1, CV_32F, &obj_points[i].x ); i 174 modules/calib3d/test/test_posit.cpp img_points[i].x = flFocalLength * vec[0] / vec[2]; i 175 modules/calib3d/test/test_posit.cpp img_points[i].y = flFocalLength * vec[1] / vec[2]; i 101 modules/calib3d/test/test_reproject_image_to_3d.cpp for(int i = 0; i < 3; ++i) i 103 modules/calib3d/test/test_reproject_image_to_3d.cpp tmp = v1[i]; i 106 modules/calib3d/test/test_reproject_image_to_3d.cpp tmp = tmp - v2[i]; i 70 modules/calib3d/test/test_solvepnp_ransac.cpp for (size_t i = 0; i < points.size(); i++) i 78 modules/calib3d/test/test_solvepnp_ransac.cpp points[i] = p; i 98 modules/calib3d/test/test_solvepnp_ransac.cpp for (int i = 0; i < 3; i++) i 99 modules/calib3d/test/test_solvepnp_ransac.cpp distCoeffs.at<double>(i,0) = rng.uniform(0.0, 1.0e-6); i 108 modules/calib3d/test/test_solvepnp_ransac.cpp for (int i = 0; i < 3; i++) i 110 modules/calib3d/test/test_solvepnp_ransac.cpp rvec.at<double>(i,0) = rng.uniform(minVal, maxVal); i 111 modules/calib3d/test/test_solvepnp_ransac.cpp tvec.at<double>(i,0) = rng.uniform(minVal, maxVal/10); i 132 modules/calib3d/test/test_solvepnp_ransac.cpp for (size_t i = 0; i < projectedPoints.size(); i++) i 134 modules/calib3d/test/test_solvepnp_ransac.cpp if (i % 20 == 0) i 136 modules/calib3d/test/test_solvepnp_ransac.cpp projectedPoints[i] = projectedPoints[rng.uniform(0,(int)points.size()-1)]; i 296 modules/calib3d/test/test_solvepnp_ransac.cpp for(int i = 0; i < 10; ++i) i 325 modules/calib3d/test/test_solvepnp_ransac.cpp for (int i = 0; i < 10 ; i++) i 327 modules/calib3d/test/test_solvepnp_ransac.cpp points3d.push_back(cv::Point3d(i,0,0)); i 328 modules/calib3d/test/test_solvepnp_ransac.cpp points3dF.push_back(cv::Point3d(i,0,0)); i 329 modules/calib3d/test/test_solvepnp_ransac.cpp points2d.push_back(cv::Point2d(i,0)); i 330 modules/calib3d/test/test_solvepnp_ransac.cpp points2dF.push_back(cv::Point2d(i,0)); i 611 modules/calib3d/test/test_stereomatching.cpp for( int i = 0; i < (int)fn.size(); i+=3 ) i 613 modules/calib3d/test/test_stereomatching.cpp String _name = fn[i]; i 615 modules/calib3d/test/test_stereomatching.cpp String sf = fn[i+1]; params.dispScaleFactor = atoi(sf.c_str()); i 616 modules/calib3d/test/test_stereomatching.cpp String uv = fn[i+2]; params.dispUnknVal = atoi(uv.c_str()); i 639 modules/calib3d/test/test_stereomatching.cpp for( int i = 0; i < ERROR_KINDS_COUNT; i++, ++it ) i 640 modules/calib3d/test/test_stereomatching.cpp *fs << ERROR_PREFIXES[i] + errName << *it; i 642 modules/calib3d/test/test_stereomatching.cpp for( int i = 0; i < ERROR_KINDS_COUNT; i++, ++it ) i 643 modules/calib3d/test/test_stereomatching.cpp ts->printf( cvtest::TS::LOG, "%s = %f\n", string(ERROR_PREFIXES[i]+errName).c_str(), *it ); i 650 modules/calib3d/test/test_stereomatching.cpp for( int i = 0; i < ERROR_KINDS_COUNT; i++, ++it ) i 651 modules/calib3d/test/test_stereomatching.cpp fn[ERROR_PREFIXES[i]+errName] >> *it; i 664 modules/calib3d/test/test_stereomatching.cpp for( int i = 0; i < ERROR_KINDS_COUNT; i++, ++calcIt, ++validIt, ++epsIt ) i 667 modules/calib3d/test/test_stereomatching.cpp ts->printf( cvtest::TS::LOG, "bad accuracy of %s (valid=%f; calc=%f)\n", string(ERROR_PREFIXES[i]+errName).c_str(), *validIt, *calcIt ); i 698 modules/calib3d/test/test_stereomatching.cpp for( int i = 0; i < (int)fn.size(); i+=4 ) i 700 modules/calib3d/test/test_stereomatching.cpp String caseName = fn[i], datasetName = fn[i+1]; i 702 modules/calib3d/test/test_stereomatching.cpp String ndisp = fn[i+2]; params.ndisp = atoi(ndisp.c_str()); i 703 modules/calib3d/test/test_stereomatching.cpp String winSize = fn[i+3]; params.winSize = atoi(winSize.c_str()); i 754 modules/calib3d/test/test_stereomatching.cpp for( int i = 0; i < (int)fn.size(); i+=5 ) i 756 modules/calib3d/test/test_stereomatching.cpp String caseName = fn[i], datasetName = fn[i+1]; i 758 modules/calib3d/test/test_stereomatching.cpp String ndisp = fn[i+2]; params.ndisp = atoi(ndisp.c_str()); i 759 modules/calib3d/test/test_stereomatching.cpp String winSize = fn[i+3]; params.winSize = atoi(winSize.c_str()); i 760 modules/calib3d/test/test_stereomatching.cpp String fullDP = fn[i+4]; params.fullDP = atoi(fullDP.c_str()) == 0 ? false : true; i 169 modules/calib3d/test/test_undistort.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 284 modules/calib3d/test/test_undistort.cpp for( int i = 0; i < N_POINTS; i++ ) i 286 modules/calib3d/test/test_undistort.cpp points[i].x = cvtest::randReal(rng)*img_size.width; i 287 modules/calib3d/test/test_undistort.cpp points[i].y = cvtest::randReal(rng)*img_size.height; i 415 modules/calib3d/test/test_undistort.cpp for (int i=0;i<N_POINTS*2;i++) i 417 modules/calib3d/test/test_undistort.cpp points[i] = temp.data.fl[i]; i 422 modules/calib3d/test/test_undistort.cpp for (int i=0;i<N_POINTS;i++) i 424 modules/calib3d/test/test_undistort.cpp points[2*i] = dst_points[i].x; i 425 modules/calib3d/test/test_undistort.cpp points[2*i+1] = dst_points[i].y; i 522 modules/calib3d/test/test_undistort.cpp for (int i=0;i<N_POINTS;i++) i 525 modules/calib3d/test/test_undistort.cpp double x = (_src->data.db[2*i]-__P->data.db[2])/__P->data.db[0]; i 526 modules/calib3d/test/test_undistort.cpp double y = (_src->data.db[2*i+1]-__P->data.db[5+movement])/__P->data.db[4+movement]; i 553 modules/calib3d/test/test_undistort.cpp _dst->data.db[2*i] = __x*_cameraMatrix->data.db[0]+_cameraMatrix->data.db[2]; i 554 modules/calib3d/test/test_undistort.cpp _dst->data.db[2*i+1] = __y*_cameraMatrix->data.db[4]+_cameraMatrix->data.db[5]; i 579 modules/calib3d/test/test_undistort.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 708 modules/calib3d/test/test_undistort.cpp for (int i=0;i<N_POINTS;i++) i 710 modules/calib3d/test/test_undistort.cpp points[i].x = cvtest::randReal(rng)*img_size.width; i 711 modules/calib3d/test/test_undistort.cpp points[i].y = cvtest::randReal(rng)*img_size.height; i 821 modules/calib3d/test/test_undistort.cpp for( int i = 0;i < N_POINTS; i++ ) i 823 modules/calib3d/test/test_undistort.cpp int u = saturate_cast<int>(sptr[i].x); i 824 modules/calib3d/test/test_undistort.cpp int v = saturate_cast<int>(sptr[i].y); i 825 modules/calib3d/test/test_undistort.cpp points[i].x = _map1.data.fl[v*_map1.cols + u]; i 826 modules/calib3d/test/test_undistort.cpp points[i].y = _map2.data.fl[v*_map2.cols + u]; i 877 modules/calib3d/test/test_undistort.cpp for (int i=0;i<N_POINTS;i++) i 879 modules/calib3d/test/test_undistort.cpp double u = test_mat[INPUT][0].ptr<double>()[2*i]; i 880 modules/calib3d/test/test_undistort.cpp double v = test_mat[INPUT][0].ptr<double>()[2*i+1]; i 881 modules/calib3d/test/test_undistort.cpp _points.data.db[2*i] = (double)_map1.data.fl[(int)v*_map1.cols+(int)u]; i 882 modules/calib3d/test/test_undistort.cpp _points.data.db[2*i+1] = (double)_map2.data.fl[(int)v*_map2.cols+(int)u]; i 33 modules/calib3d/test/test_undistort_points.cpp for (size_t i = 0; i < points.size(); i++) i 41 modules/calib3d/test/test_undistort_points.cpp points[i] = p; i 59 modules/calib3d/test/test_undistort_points.cpp for (int i = 0; i < count; i++) i 60 modules/calib3d/test/test_undistort_points.cpp distCoeffs.at<double>(i,0) = rng.uniform(0.0, 1.0e-3); i 397 modules/core/include/opencv2/core/affine.hpp for(int i = 0; i < 3; ++i) i 401 modules/core/include/opencv2/core/affine.hpp value += R(j, k) * Lc(k, i); i 402 modules/core/include/opencv2/core/affine.hpp result(j, i) = value; i 433 modules/core/include/opencv2/core/base.hpp int i=0; i 435 modules/core/include/opencv2/core/base.hpp for( ; i <= n - 4; i += 4 ) i 437 modules/core/include/opencv2/core/base.hpp _AccTp v0 = a[i], v1 = a[i+1], v2 = a[i+2], v3 = a[i+3]; i 441 modules/core/include/opencv2/core/base.hpp for( ; i < n; i++ ) i 443 modules/core/include/opencv2/core/base.hpp _AccTp v = a[i]; i 453 modules/core/include/opencv2/core/base.hpp int i = 0; i 455 modules/core/include/opencv2/core/base.hpp for(; i <= n - 4; i += 4 ) i 457 modules/core/include/opencv2/core/base.hpp s += (_AccTp)cv_abs(a[i]) + (_AccTp)cv_abs(a[i+1]) + i 458 modules/core/include/opencv2/core/base.hpp (_AccTp)cv_abs(a[i+2]) + (_AccTp)cv_abs(a[i+3]); i 461 modules/core/include/opencv2/core/base.hpp for( ; i < n; i++ ) i 462 modules/core/include/opencv2/core/base.hpp s += cv_abs(a[i]); i 470 modules/core/include/opencv2/core/base.hpp for( int i = 0; i < n; i++ ) i 471 modules/core/include/opencv2/core/base.hpp s = std::max(s, (_AccTp)cv_abs(a[i])); i 479 modules/core/include/opencv2/core/base.hpp int i= 0; i 481 modules/core/include/opencv2/core/base.hpp for(; i <= n - 4; i += 4 ) i 483 modules/core/include/opencv2/core/base.hpp _AccTp v0 = _AccTp(a[i] - b[i]), v1 = _AccTp(a[i+1] - b[i+1]), v2 = _AccTp(a[i+2] - b[i+2]), v3 = _AccTp(a[i+3] - b[i+3]); i 487 modules/core/include/opencv2/core/base.hpp for( ; i < n; i++ ) i 489 modules/core/include/opencv2/core/base.hpp _AccTp v = _AccTp(a[i] - b[i]); i 498 modules/core/include/opencv2/core/base.hpp for( int i = 0; i < n; i++ ) i 500 modules/core/include/opencv2/core/base.hpp float v = a[i] - b[i]; i 510 modules/core/include/opencv2/core/base.hpp int i= 0; i 512 modules/core/include/opencv2/core/base.hpp for(; i <= n - 4; i += 4 ) i 514 modules/core/include/opencv2/core/base.hpp _AccTp v0 = _AccTp(a[i] - b[i]), v1 = _AccTp(a[i+1] - b[i+1]), v2 = _AccTp(a[i+2] - b[i+2]), v3 = _AccTp(a[i+3] - b[i+3]); i 518 modules/core/include/opencv2/core/base.hpp for( ; i < n; i++ ) i 520 modules/core/include/opencv2/core/base.hpp _AccTp v = _AccTp(a[i] - b[i]); i 529 modules/core/include/opencv2/core/base.hpp for( int i = 0; i < n; i++ ) i 531 modules/core/include/opencv2/core/base.hpp s += std::abs(a[i] - b[i]); i 539 modules/core/include/opencv2/core/base.hpp for( int i = 0; i < n; i++ ) i 541 modules/core/include/opencv2/core/base.hpp s += std::abs(a[i] - b[i]); i 550 modules/core/include/opencv2/core/base.hpp for( int i = 0; i < n; i++ ) i 552 modules/core/include/opencv2/core/base.hpp _AccTp v0 = a[i] - b[i]; i 2319 modules/core/include/opencv2/core/core_c.h CV_NODE_IS_INT(node->tag) ? node->data.i : i 2350 modules/core/include/opencv2/core/core_c.h CV_NODE_IS_INT(node->tag) ? (double)node->data.i : i 186 modules/core/include/opencv2/core/cuda/block.hpp for (unsigned int i = sft + ftid; i < n; i += sft) i 187 modules/core/include/opencv2/core/cuda/block.hpp data[ftid] = op(data[ftid], data[i]); i 1532 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp __device__ __forceinline__ int LabCbrt_b(int i) i 1534 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp float x = i * (1.f / (255.f * (1 << gamma_shift))); i 187 modules/core/include/opencv2/core/cuda/scan.hpp for (int i = 1; i <= (OPENCV_CUDA_WARP_SIZE / 2); i *= 2) i 189 modules/core/include/opencv2/core/cuda/scan.hpp const T n = cv::cuda::device::shfl_up(idata, i); i 190 modules/core/include/opencv2/core/cuda/scan.hpp if (laneId >= i) i 162 modules/core/include/opencv2/core/cuda/vec_distance.hpp for (int i = tid; i < len; i += THREAD_DIM) i 165 modules/core/include/opencv2/core/cuda/vec_distance.hpp ForceGlob<T1>::Load(vec1, i, val1); i 168 modules/core/include/opencv2/core/cuda/vec_distance.hpp ForceGlob<T2>::Load(vec2, i, val2); i 214 modules/core/include/opencv2/core/cuda/vec_distance.hpp for (int i = tid; i < MAX_LEN; i += THREAD_DIM) i 215 modules/core/include/opencv2/core/cuda/vec_distance.hpp *vec1ValsPtr++ = smem[i]; i 800 modules/core/include/opencv2/core/cvstd.hpp for (const char* i = cstr_ + pos; i <= lmax; ++i) i 803 modules/core/include/opencv2/core/cvstd.hpp while (j < n && s[j] == i[j]) ++j; i 804 modules/core/include/opencv2/core/cvstd.hpp if (j == n) return (size_t)(i - cstr_); i 826 modules/core/include/opencv2/core/cvstd.hpp for (const char* i = cstr_ + pos; i < lmax; ++i) i 829 modules/core/include/opencv2/core/cvstd.hpp while (s[j] && s[j] == i[j]) i 830 modules/core/include/opencv2/core/cvstd.hpp { if(i + j >= lmax) return npos; i 833 modules/core/include/opencv2/core/cvstd.hpp if (!s[j]) return (size_t)(i - cstr_); i 843 modules/core/include/opencv2/core/cvstd.hpp for (const char* i = cstr_ + pos; i >= cstr_; --i) i 846 modules/core/include/opencv2/core/cvstd.hpp while (j < n && s[j] == i[j]) ++j; i 847 modules/core/include/opencv2/core/cvstd.hpp if (j == n) return (size_t)(i - cstr_); i 875 modules/core/include/opencv2/core/cvstd.hpp for (const char* i = cstr_ + pos; i < lmax; ++i) i 878 modules/core/include/opencv2/core/cvstd.hpp if (s[j] == *i) i 879 modules/core/include/opencv2/core/cvstd.hpp return (size_t)(i - cstr_); i 901 modules/core/include/opencv2/core/cvstd.hpp for (const char* i = cstr_ + pos; i < lmax; ++i) i 904 modules/core/include/opencv2/core/cvstd.hpp if (s[j] == *i) i 905 modules/core/include/opencv2/core/cvstd.hpp return (size_t)(i - cstr_); i 914 modules/core/include/opencv2/core/cvstd.hpp for (const char* i = cstr_ + pos; i >= cstr_; --i) i 917 modules/core/include/opencv2/core/cvstd.hpp if (s[j] == *i) i 918 modules/core/include/opencv2/core/cvstd.hpp return (size_t)(i - cstr_); i 939 modules/core/include/opencv2/core/cvstd.hpp for (const char* i = cstr_ + pos; i >= cstr_; --i) i 942 modules/core/include/opencv2/core/cvstd.hpp if (s[j] == *i) i 943 modules/core/include/opencv2/core/cvstd.hpp return (size_t)(i - cstr_); i 953 modules/core/include/opencv2/core/cvstd.hpp for (size_t i = 0; i < len_; ++i) i 954 modules/core/include/opencv2/core/cvstd.hpp res.cstr_[i] = (char) ::tolower(cstr_[i]); i 233 modules/core/include/opencv2/core/cvstd.inl.hpp for (int i = 0; i < n - 1; ++i) { i 234 modules/core/include/opencv2/core/cvstd.inl.hpp out << (int)vec[i] << ", "; i 240 modules/core/include/opencv2/core/cvstd.inl.hpp for (int i = 0; i < n - 1; ++i) { i 241 modules/core/include/opencv2/core/cvstd.inl.hpp out << vec[i] << ", "; i 203 modules/core/include/opencv2/core/mat.hpp int dims(int i=-1) const; i 204 modules/core/include/opencv2/core/mat.hpp int cols(int i=-1) const; i 205 modules/core/include/opencv2/core/mat.hpp int rows(int i=-1) const; i 206 modules/core/include/opencv2/core/mat.hpp Size size(int i=-1) const; i 207 modules/core/include/opencv2/core/mat.hpp int sizend(int* sz, int i=-1) const; i 209 modules/core/include/opencv2/core/mat.hpp size_t total(int i=-1) const; i 210 modules/core/include/opencv2/core/mat.hpp int type(int i=-1) const; i 211 modules/core/include/opencv2/core/mat.hpp int depth(int i=-1) const; i 212 modules/core/include/opencv2/core/mat.hpp int channels(int i=-1) const; i 213 modules/core/include/opencv2/core/mat.hpp bool isContinuous(int i=-1) const; i 214 modules/core/include/opencv2/core/mat.hpp bool isSubmatrix(int i=-1) const; i 218 modules/core/include/opencv2/core/mat.hpp size_t offset(int i=-1) const; i 219 modules/core/include/opencv2/core/mat.hpp size_t step(int i=-1) const; i 316 modules/core/include/opencv2/core/mat.hpp Mat& getMatRef(int i=-1) const; i 317 modules/core/include/opencv2/core/mat.hpp UMat& getUMatRef(int i=-1) const; i 321 modules/core/include/opencv2/core/mat.hpp void create(Size sz, int type, int i=-1, bool allowTransposed=false, int fixedDepthMask=0) const; i 322 modules/core/include/opencv2/core/mat.hpp void create(int rows, int cols, int type, int i=-1, bool allowTransposed=false, int fixedDepthMask=0) const; i 323 modules/core/include/opencv2/core/mat.hpp void create(int dims, const int* size, int type, int i=-1, bool allowTransposed=false, int fixedDepthMask=0) const; i 513 modules/core/include/opencv2/core/mat.hpp const int& operator[](int i) const; i 514 modules/core/include/opencv2/core/mat.hpp int& operator[](int i); i 526 modules/core/include/opencv2/core/mat.hpp const size_t& operator[](int i) const; i 527 modules/core/include/opencv2/core/mat.hpp size_t& operator[](int i); i 1608 modules/core/include/opencv2/core/mat.hpp size_t step1(int i=0) const; i 2030 modules/core/include/opencv2/core/mat.hpp size_t step1(int i=0) const; i 2032 modules/core/include/opencv2/core/mat.hpp size_t stepT(int i=0) const; i 2269 modules/core/include/opencv2/core/mat.hpp size_t step1(int i=0) const; i 2516 modules/core/include/opencv2/core/mat.hpp int size(int i) const; i 2774 modules/core/include/opencv2/core/mat.hpp const uchar* operator [](ptrdiff_t i) const; i 2841 modules/core/include/opencv2/core/mat.hpp _Tp operator [](ptrdiff_t i) const; i 2894 modules/core/include/opencv2/core/mat.hpp _Tp& operator [](ptrdiff_t i) const; i 121 modules/core/include/opencv2/core/mat.inl.hpp inline Mat _InputArray::getMat(int i) const i 123 modules/core/include/opencv2/core/mat.inl.hpp if( kind() == MAT && i < 0 ) i 125 modules/core/include/opencv2/core/mat.inl.hpp return getMat_(i); i 670 modules/core/include/opencv2/core/mat.inl.hpp for(int i = 0; i < dims; i++) i 671 modules/core/include/opencv2/core/mat.inl.hpp size.p[i] = 0; i 735 modules/core/include/opencv2/core/mat.inl.hpp size_t Mat::step1(int i) const i 737 modules/core/include/opencv2/core/mat.inl.hpp return step.p[i] / elemSize1(); i 752 modules/core/include/opencv2/core/mat.inl.hpp for( int i = 0; i < dims; i++ ) i 753 modules/core/include/opencv2/core/mat.inl.hpp p *= size[i]; i 864 modules/core/include/opencv2/core/mat.inl.hpp int i, d = dims; i 867 modules/core/include/opencv2/core/mat.inl.hpp for( i = 0; i < d; i++ ) i 869 modules/core/include/opencv2/core/mat.inl.hpp CV_DbgAssert( (unsigned)idx[i] < (unsigned)size.p[i] ); i 870 modules/core/include/opencv2/core/mat.inl.hpp p += idx[i] * step.p[i]; i 878 modules/core/include/opencv2/core/mat.inl.hpp int i, d = dims; i 881 modules/core/include/opencv2/core/mat.inl.hpp for( i = 0; i < d; i++ ) i 883 modules/core/include/opencv2/core/mat.inl.hpp CV_DbgAssert( (unsigned)idx[i] < (unsigned)size.p[i] ); i 884 modules/core/include/opencv2/core/mat.inl.hpp p += idx[i] * step.p[i]; i 935 modules/core/include/opencv2/core/mat.inl.hpp int i = i0 / cols, j = i0 - i * cols; i 936 modules/core/include/opencv2/core/mat.inl.hpp return ((_Tp*)(data + step.p[0] * i))[j]; i 949 modules/core/include/opencv2/core/mat.inl.hpp int i = i0 / cols, j = i0 - i * cols; i 950 modules/core/include/opencv2/core/mat.inl.hpp return ((const _Tp*)(data + step.p[0] * i))[j]; i 1113 modules/core/include/opencv2/core/mat.inl.hpp const int& MatSize::operator[](int i) const i 1115 modules/core/include/opencv2/core/mat.inl.hpp return p[i]; i 1119 modules/core/include/opencv2/core/mat.inl.hpp int& MatSize::operator[](int i) i 1121 modules/core/include/opencv2/core/mat.inl.hpp return p[i]; i 1140 modules/core/include/opencv2/core/mat.inl.hpp for( int i = 0; i < d; i++ ) i 1141 modules/core/include/opencv2/core/mat.inl.hpp if( p[i] != sz.p[i] ) i 1169 modules/core/include/opencv2/core/mat.inl.hpp const size_t& MatStep::operator[](int i) const i 1171 modules/core/include/opencv2/core/mat.inl.hpp return p[i]; i 1175 modules/core/include/opencv2/core/mat.inl.hpp size_t& MatStep::operator[](int i) i 1177 modules/core/include/opencv2/core/mat.inl.hpp return p[i]; i 1440 modules/core/include/opencv2/core/mat.inl.hpp size_t Mat_<_Tp>::stepT(int i) const i 1442 modules/core/include/opencv2/core/mat.inl.hpp return step.p[i] / elemSize(); i 1446 modules/core/include/opencv2/core/mat.inl.hpp size_t Mat_<_Tp>::step1(int i) const i 1448 modules/core/include/opencv2/core/mat.inl.hpp return step.p[i] / elemSize1(); i 1751 modules/core/include/opencv2/core/mat.inl.hpp int SparseMat::size(int i) const i 1755 modules/core/include/opencv2/core/mat.inl.hpp CV_DbgAssert((unsigned)i < (unsigned)hdr->dims); i 1756 modules/core/include/opencv2/core/mat.inl.hpp return hdr->size[i]; i 1798 modules/core/include/opencv2/core/mat.inl.hpp for(int i = 1; i < d; i++ ) i 1799 modules/core/include/opencv2/core/mat.inl.hpp h = h * HASH_SCALE + (unsigned)idx[i]; i 2331 modules/core/include/opencv2/core/mat.inl.hpp const uchar* MatConstIterator::operator [](ptrdiff_t i) const i 2333 modules/core/include/opencv2/core/mat.inl.hpp return *(*this + i); i 2478 modules/core/include/opencv2/core/mat.inl.hpp _Tp MatConstIterator_<_Tp>::operator [](ptrdiff_t i) const i 2480 modules/core/include/opencv2/core/mat.inl.hpp return *(_Tp*)MatConstIterator::operator [](i); i 2575 modules/core/include/opencv2/core/mat.inl.hpp _Tp& MatIterator_<_Tp>::operator [](ptrdiff_t i) const i 2577 modules/core/include/opencv2/core/mat.inl.hpp return *(*this + i); i 3311 modules/core/include/opencv2/core/mat.inl.hpp for(int i = 0; i < dims; i++) i 3312 modules/core/include/opencv2/core/mat.inl.hpp size.p[i] = 0; i 3377 modules/core/include/opencv2/core/mat.inl.hpp size_t UMat::step1(int i) const i 3379 modules/core/include/opencv2/core/mat.inl.hpp return step.p[i] / elemSize1(); i 3394 modules/core/include/opencv2/core/mat.inl.hpp for( int i = 0; i < dims; i++ ) i 3395 modules/core/include/opencv2/core/mat.inl.hpp p *= size[i]; i 144 modules/core/include/opencv2/core/matx.hpp template<int m1, int n1> Matx<_Tp, m1, n1> get_minor(int i, int j) const; i 147 modules/core/include/opencv2/core/matx.hpp Matx<_Tp, 1, n> row(int i) const; i 150 modules/core/include/opencv2/core/matx.hpp Matx<_Tp, m, 1> col(int i) const; i 172 modules/core/include/opencv2/core/matx.hpp const _Tp& operator ()(int i, int j) const; i 173 modules/core/include/opencv2/core/matx.hpp _Tp& operator ()(int i, int j); i 176 modules/core/include/opencv2/core/matx.hpp const _Tp& operator ()(int i) const; i 177 modules/core/include/opencv2/core/matx.hpp _Tp& operator ()(int i); i 344 modules/core/include/opencv2/core/matx.hpp const _Tp& operator [](int i) const; i 345 modules/core/include/opencv2/core/matx.hpp _Tp& operator[](int i); i 346 modules/core/include/opencv2/core/matx.hpp const _Tp& operator ()(int i) const; i 347 modules/core/include/opencv2/core/matx.hpp _Tp& operator ()(int i); i 433 modules/core/include/opencv2/core/matx.hpp for( int i = 0; i < m; i++ ) i 434 modules/core/include/opencv2/core/matx.hpp p *= temp(i, i); i 484 modules/core/include/opencv2/core/matx.hpp for(int i = 0; i < channels; i++) val[i] = _Tp(0); i 491 modules/core/include/opencv2/core/matx.hpp for(int i = 1; i < channels; i++) val[i] = _Tp(0); i 499 modules/core/include/opencv2/core/matx.hpp for(int i = 2; i < channels; i++) val[i] = _Tp(0); i 507 modules/core/include/opencv2/core/matx.hpp for(int i = 3; i < channels; i++) val[i] = _Tp(0); i 515 modules/core/include/opencv2/core/matx.hpp for(int i = 4; i < channels; i++) val[i] = _Tp(0); i 523 modules/core/include/opencv2/core/matx.hpp for(int i = 5; i < channels; i++) val[i] = _Tp(0); i 532 modules/core/include/opencv2/core/matx.hpp for(int i = 6; i < channels; i++) val[i] = _Tp(0); i 541 modules/core/include/opencv2/core/matx.hpp for(int i = 7; i < channels; i++) val[i] = _Tp(0); i 550 modules/core/include/opencv2/core/matx.hpp for(int i = 8; i < channels; i++) val[i] = _Tp(0); i 560 modules/core/include/opencv2/core/matx.hpp for(int i = 9; i < channels; i++) val[i] = _Tp(0); i 570 modules/core/include/opencv2/core/matx.hpp for(int i = 10; i < channels; i++) val[i] = _Tp(0); i 596 modules/core/include/opencv2/core/matx.hpp for( int i = 0; i < channels; i++ ) val[i] = values[i]; i 603 modules/core/include/opencv2/core/matx.hpp for( int i = 0; i < m*n; i++ ) M.val[i] = alpha; i 623 modules/core/include/opencv2/core/matx.hpp for(int i = 0; i < shortdim; i++) i 624 modules/core/include/opencv2/core/matx.hpp M(i,i) = 1; i 632 modules/core/include/opencv2/core/matx.hpp for( int i = 0; i < channels; i++ ) s += val[i]*M.val[i]; i 640 modules/core/include/opencv2/core/matx.hpp for( int i = 0; i < channels; i++ ) s += (double)val[i]*M.val[i]; i 648 modules/core/include/opencv2/core/matx.hpp for(int i = 0; i < shortdim; i++) i 649 modules/core/include/opencv2/core/matx.hpp M(i,i) = d(i, 0); i 657 modules/core/include/opencv2/core/matx.hpp for( int i = 0; i < m*n; i++ ) M.val[i] = saturate_cast<T2>(val[i]); i 670 modules/core/include/opencv2/core/matx.hpp Matx<_Tp, m1, n1> Matx<_Tp, m, n>::get_minor(int i, int j) const i 672 modules/core/include/opencv2/core/matx.hpp CV_DbgAssert(0 <= i && i+m1 <= m && 0 <= j && j+n1 <= n); i 676 modules/core/include/opencv2/core/matx.hpp s(di, dj) = (*this)(i+di, j+dj); i 681 modules/core/include/opencv2/core/matx.hpp Matx<_Tp, 1, n> Matx<_Tp, m, n>::row(int i) const i 683 modules/core/include/opencv2/core/matx.hpp CV_DbgAssert((unsigned)i < (unsigned)m); i 684 modules/core/include/opencv2/core/matx.hpp return Matx<_Tp, 1, n>(&val[i*n]); i 692 modules/core/include/opencv2/core/matx.hpp for( int i = 0; i < m; i++ ) i 693 modules/core/include/opencv2/core/matx.hpp v.val[i] = val[i*n + j]; i 701 modules/core/include/opencv2/core/matx.hpp for( int i = 0; i < shortdim; i++ ) i 702 modules/core/include/opencv2/core/matx.hpp d.val[i] = val[i*n + i]; i 707 modules/core/include/opencv2/core/matx.hpp const _Tp& Matx<_Tp, m, n>::operator()(int i, int j) const i 709 modules/core/include/opencv2/core/matx.hpp CV_DbgAssert( (unsigned)i < (unsigned)m && (unsigned)j < (unsigned)n ); i 710 modules/core/include/opencv2/core/matx.hpp return this->val[i*n + j]; i 714 modules/core/include/opencv2/core/matx.hpp _Tp& Matx<_Tp, m, n>::operator ()(int i, int j) i 716 modules/core/include/opencv2/core/matx.hpp CV_DbgAssert( (unsigned)i < (unsigned)m && (unsigned)j < (unsigned)n ); i 717 modules/core/include/opencv2/core/matx.hpp return val[i*n + j]; i 721 modules/core/include/opencv2/core/matx.hpp const _Tp& Matx<_Tp, m, n>::operator ()(int i) const i 724 modules/core/include/opencv2/core/matx.hpp CV_DbgAssert( (unsigned)i < (unsigned)(m+n-1) ); i 725 modules/core/include/opencv2/core/matx.hpp return val[i]; i 729 modules/core/include/opencv2/core/matx.hpp _Tp& Matx<_Tp, m, n>::operator ()(int i) i 732 modules/core/include/opencv2/core/matx.hpp CV_DbgAssert( (unsigned)i < (unsigned)(m+n-1) ); i 733 modules/core/include/opencv2/core/matx.hpp return val[i]; i 739 modules/core/include/opencv2/core/matx.hpp for( int i = 0; i < channels; i++ ) i 740 modules/core/include/opencv2/core/matx.hpp val[i] = saturate_cast<_Tp>(a.val[i] + b.val[i]); i 746 modules/core/include/opencv2/core/matx.hpp for( int i = 0; i < channels; i++ ) i 747 modules/core/include/opencv2/core/matx.hpp val[i] = saturate_cast<_Tp>(a.val[i] - b.val[i]); i 753 modules/core/include/opencv2/core/matx.hpp for( int i = 0; i < channels; i++ ) i 754 modules/core/include/opencv2/core/matx.hpp val[i] = saturate_cast<_Tp>(a.val[i] * alpha); i 760 modules/core/include/opencv2/core/matx.hpp for( int i = 0; i < channels; i++ ) i 761 modules/core/include/opencv2/core/matx.hpp val[i] = saturate_cast<_Tp>(a.val[i] * b.val[i]); i 767 modules/core/include/opencv2/core/matx.hpp for( int i = 0; i < channels; i++ ) i 768 modules/core/include/opencv2/core/matx.hpp val[i] = saturate_cast<_Tp>(a.val[i] / b.val[i]); i 774 modules/core/include/opencv2/core/matx.hpp for( int i = 0; i < m; i++ ) i 779 modules/core/include/opencv2/core/matx.hpp s += a(i, k) * b(k, j); i 780 modules/core/include/opencv2/core/matx.hpp val[i*n + j] = s; i 787 modules/core/include/opencv2/core/matx.hpp for( int i = 0; i < m; i++ ) i 789 modules/core/include/opencv2/core/matx.hpp val[i*n + j] = a(j, i); i 827 modules/core/include/opencv2/core/matx.hpp for( int i = 0; i < std::min(m, n); i++ ) i 828 modules/core/include/opencv2/core/matx.hpp s += a(i,i); i 948 modules/core/include/opencv2/core/matx.hpp for( int i = 0; i < cn; i++ ) v.val[i] = alpha; i 956 modules/core/include/opencv2/core/matx.hpp for( int i = 0; i < cn; i++ ) w.val[i] = saturate_cast<_Tp>(this->val[i]*v.val[i]); i 1011 modules/core/include/opencv2/core/matx.hpp for( int i = 0; i < cn; i++ ) v.val[i] = saturate_cast<T2>(this->val[i]); i 1016 modules/core/include/opencv2/core/matx.hpp const _Tp& Vec<_Tp, cn>::operator [](int i) const i 1018 modules/core/include/opencv2/core/matx.hpp CV_DbgAssert( (unsigned)i < (unsigned)cn ); i 1019 modules/core/include/opencv2/core/matx.hpp return this->val[i]; i 1023 modules/core/include/opencv2/core/matx.hpp _Tp& Vec<_Tp, cn>::operator [](int i) i 1025 modules/core/include/opencv2/core/matx.hpp CV_DbgAssert( (unsigned)i < (unsigned)cn ); i 1026 modules/core/include/opencv2/core/matx.hpp return this->val[i]; i 1030 modules/core/include/opencv2/core/matx.hpp const _Tp& Vec<_Tp, cn>::operator ()(int i) const i 1032 modules/core/include/opencv2/core/matx.hpp CV_DbgAssert( (unsigned)i < (unsigned)cn ); i 1033 modules/core/include/opencv2/core/matx.hpp return this->val[i]; i 1037 modules/core/include/opencv2/core/matx.hpp _Tp& Vec<_Tp, cn>::operator ()(int i) i 1039 modules/core/include/opencv2/core/matx.hpp CV_DbgAssert( (unsigned)i < (unsigned)cn ); i 1040 modules/core/include/opencv2/core/matx.hpp return this->val[i]; i 1092 modules/core/include/opencv2/core/matx.hpp for( int i = 0; i < m*n; i++ ) i 1093 modules/core/include/opencv2/core/matx.hpp a.val[i] = saturate_cast<_Tp1>(a.val[i] + b.val[i]); i 1100 modules/core/include/opencv2/core/matx.hpp for( int i = 0; i < m*n; i++ ) i 1101 modules/core/include/opencv2/core/matx.hpp a.val[i] = saturate_cast<_Tp1>(a.val[i] - b.val[i]); i 1120 modules/core/include/opencv2/core/matx.hpp for( int i = 0; i < m*n; i++ ) i 1121 modules/core/include/opencv2/core/matx.hpp a.val[i] = saturate_cast<_Tp>(a.val[i] * alpha); i 1128 modules/core/include/opencv2/core/matx.hpp for( int i = 0; i < m*n; i++ ) i 1129 modules/core/include/opencv2/core/matx.hpp a.val[i] = saturate_cast<_Tp>(a.val[i] * alpha); i 1136 modules/core/include/opencv2/core/matx.hpp for( int i = 0; i < m*n; i++ ) i 1137 modules/core/include/opencv2/core/matx.hpp a.val[i] = saturate_cast<_Tp>(a.val[i] * alpha); i 1199 modules/core/include/opencv2/core/matx.hpp for( int i = 0; i < m*n; i++ ) i 1200 modules/core/include/opencv2/core/matx.hpp if( a.val[i] != b.val[i] ) return false; i 1220 modules/core/include/opencv2/core/matx.hpp for( int i = 0; i < cn; i++ ) i 1221 modules/core/include/opencv2/core/matx.hpp a.val[i] = saturate_cast<_Tp1>(a.val[i] + b.val[i]); i 1228 modules/core/include/opencv2/core/matx.hpp for( int i = 0; i < cn; i++ ) i 1229 modules/core/include/opencv2/core/matx.hpp a.val[i] = saturate_cast<_Tp1>(a.val[i] - b.val[i]); i 1248 modules/core/include/opencv2/core/matx.hpp for( int i = 0; i < cn; i++ ) i 1249 modules/core/include/opencv2/core/matx.hpp a[i] = saturate_cast<_Tp>(a[i]*alpha); i 1256 modules/core/include/opencv2/core/matx.hpp for( int i = 0; i < cn; i++ ) i 1257 modules/core/include/opencv2/core/matx.hpp a[i] = saturate_cast<_Tp>(a[i]*alpha); i 1264 modules/core/include/opencv2/core/matx.hpp for( int i = 0; i < cn; i++ ) i 1265 modules/core/include/opencv2/core/matx.hpp a[i] = saturate_cast<_Tp>(a[i]*alpha); i 1273 modules/core/include/opencv2/core/matx.hpp for( int i = 0; i < cn; i++ ) i 1274 modules/core/include/opencv2/core/matx.hpp a[i] = saturate_cast<_Tp>(a[i]*ialpha); i 1282 modules/core/include/opencv2/core/matx.hpp for( int i = 0; i < cn; i++ ) i 1283 modules/core/include/opencv2/core/matx.hpp a[i] = saturate_cast<_Tp>(a[i]*ialpha); i 1291 modules/core/include/opencv2/core/matx.hpp for( int i = 0; i < cn; i++ ) i 1292 modules/core/include/opencv2/core/matx.hpp a[i] = saturate_cast<_Tp>(a[i]*ialpha); i 1354 modules/core/include/opencv2/core/matx.hpp for( int i = 0; i < cn; i++ ) t.val[i] = saturate_cast<_Tp>(-a.val[i]); i 356 modules/core/include/opencv2/core/ocl.hpp int set(int i, const void* value, size_t sz); i 357 modules/core/include/opencv2/core/ocl.hpp int set(int i, const Image2D& image2D); i 358 modules/core/include/opencv2/core/ocl.hpp int set(int i, const UMat& m); i 359 modules/core/include/opencv2/core/ocl.hpp int set(int i, const KernelArg& arg); i 360 modules/core/include/opencv2/core/ocl.hpp template<typename _Tp> int set(int i, const _Tp& value) i 361 modules/core/include/opencv2/core/ocl.hpp { return set(i, &value, sizeof(value)); } i 372 modules/core/include/opencv2/core/ocl.hpp int i = set(0, a0); set(i, a1); return *this; i 378 modules/core/include/opencv2/core/ocl.hpp int i = set(0, a0); i = set(i, a1); set(i, a2); return *this; i 384 modules/core/include/opencv2/core/ocl.hpp int i = set(0, a0); i = set(i, a1); i = set(i, a2); i = set(i, a3); return *this; i 391 modules/core/include/opencv2/core/ocl.hpp int i = set(0, a0); i = set(i, a1); i = set(i, a2); i 392 modules/core/include/opencv2/core/ocl.hpp i = set(i, a3); set(i, a4); return *this; i 400 modules/core/include/opencv2/core/ocl.hpp int i = set(0, a0); i = set(i, a1); i = set(i, a2); i 401 modules/core/include/opencv2/core/ocl.hpp i = set(i, a3); i = set(i, a4); set(i, a5); return *this; i 409 modules/core/include/opencv2/core/ocl.hpp int i = set(0, a0); i = set(i, a1); i = set(i, a2); i = set(i, a3); i 410 modules/core/include/opencv2/core/ocl.hpp i = set(i, a4); i = set(i, a5); set(i, a6); return *this; i 418 modules/core/include/opencv2/core/ocl.hpp int i = set(0, a0); i = set(i, a1); i = set(i, a2); i = set(i, a3); i 419 modules/core/include/opencv2/core/ocl.hpp i = set(i, a4); i = set(i, a5); i = set(i, a6); set(i, a7); return *this; i 428 modules/core/include/opencv2/core/ocl.hpp int i = set(0, a0); i = set(i, a1); i = set(i, a2); i = set(i, a3); i = set(i, a4); i 429 modules/core/include/opencv2/core/ocl.hpp i = set(i, a5); i = set(i, a6); i = set(i, a7); set(i, a8); return *this; i 438 modules/core/include/opencv2/core/ocl.hpp int i = set(0, a0); i = set(i, a1); i = set(i, a2); i = set(i, a3); i = set(i, a4); i = set(i, a5); i 439 modules/core/include/opencv2/core/ocl.hpp i = set(i, a6); i = set(i, a7); i = set(i, a8); set(i, a9); return *this; i 449 modules/core/include/opencv2/core/ocl.hpp int i = set(0, a0); i = set(i, a1); i = set(i, a2); i = set(i, a3); i = set(i, a4); i = set(i, a5); i 450 modules/core/include/opencv2/core/ocl.hpp i = set(i, a6); i = set(i, a7); i = set(i, a8); i = set(i, a9); set(i, a10); return *this; i 460 modules/core/include/opencv2/core/ocl.hpp int i = set(0, a0); i = set(i, a1); i = set(i, a2); i = set(i, a3); i = set(i, a4); i = set(i, a5); i 461 modules/core/include/opencv2/core/ocl.hpp i = set(i, a6); i = set(i, a7); i = set(i, a8); i = set(i, a9); i = set(i, a10); set(i, a11); return *this; i 472 modules/core/include/opencv2/core/ocl.hpp int i = set(0, a0); i = set(i, a1); i = set(i, a2); i = set(i, a3); i = set(i, a4); i = set(i, a5); i 473 modules/core/include/opencv2/core/ocl.hpp i = set(i, a6); i = set(i, a7); i = set(i, a8); i = set(i, a9); i = set(i, a10); i = set(i, a11); i 474 modules/core/include/opencv2/core/ocl.hpp set(i, a12); return *this; i 486 modules/core/include/opencv2/core/ocl.hpp int i = set(0, a0); i = set(i, a1); i = set(i, a2); i = set(i, a3); i = set(i, a4); i = set(i, a5); i 487 modules/core/include/opencv2/core/ocl.hpp i = set(i, a6); i = set(i, a7); i = set(i, a8); i = set(i, a9); i = set(i, a10); i = set(i, a11); i 488 modules/core/include/opencv2/core/ocl.hpp i = set(i, a12); set(i, a13); return *this; i 500 modules/core/include/opencv2/core/ocl.hpp int i = set(0, a0); i = set(i, a1); i = set(i, a2); i = set(i, a3); i = set(i, a4); i = set(i, a5); i 501 modules/core/include/opencv2/core/ocl.hpp i = set(i, a6); i = set(i, a7); i = set(i, a8); i = set(i, a9); i = set(i, a10); i = set(i, a11); i 502 modules/core/include/opencv2/core/ocl.hpp i = set(i, a12); i = set(i, a13); set(i, a14); return *this; i 514 modules/core/include/opencv2/core/ocl.hpp int i = set(0, a0); i = set(i, a1); i = set(i, a2); i = set(i, a3); i = set(i, a4); i = set(i, a5); i 515 modules/core/include/opencv2/core/ocl.hpp i = set(i, a6); i = set(i, a7); i = set(i, a8); i = set(i, a9); i = set(i, a10); i = set(i, a11); i 516 modules/core/include/opencv2/core/ocl.hpp i = set(i, a12); i = set(i, a13); i = set(i, a14); set(i, a15); return *this; i 591 modules/core/include/opencv2/core/ocl.hpp PlatformInfo(const PlatformInfo& i); i 592 modules/core/include/opencv2/core/ocl.hpp PlatformInfo& operator =(const PlatformInfo& i); i 654 modules/core/include/opencv2/core/ocl.hpp Image2D(const Image2D & i); i 657 modules/core/include/opencv2/core/ocl.hpp Image2D & operator = (const Image2D & i); i 71 modules/core/include/opencv2/core/operations.hpp for( int i = 0; i < m; i++ ) i 72 modules/core/include/opencv2/core/operations.hpp b(i, i) = (_Tp)1; i 442 modules/core/include/opencv2/core/operations.hpp int i, j, N = (int)_vec.size(); i 452 modules/core/include/opencv2/core/operations.hpp for(i = 0; i < N; i++) i 454 modules/core/include/opencv2/core/operations.hpp nodes[i][PARENT]=-1; i 455 modules/core/include/opencv2/core/operations.hpp nodes[i][RANK] = 0; i 459 modules/core/include/opencv2/core/operations.hpp for( i = 0; i < N; i++ ) i 461 modules/core/include/opencv2/core/operations.hpp int root = i; i 469 modules/core/include/opencv2/core/operations.hpp if( i == j || !predicate(vec[i], vec[j])) i 500 modules/core/include/opencv2/core/operations.hpp k = i; i 514 modules/core/include/opencv2/core/operations.hpp for( i = 0; i < N; i++ ) i 516 modules/core/include/opencv2/core/operations.hpp int root = i; i 522 modules/core/include/opencv2/core/operations.hpp labels[i] = ~nodes[root][RANK]; i 507 modules/core/include/opencv2/core/persistence.hpp CV_WRAP FileNode operator[](int i) const; i 763 modules/core/include/opencv2/core/persistence.hpp for (size_t i = 0; i < count; i++) i 764 modules/core/include/opencv2/core/persistence.hpp write(*fs, vec[i]); i 792 modules/core/include/opencv2/core/persistence.hpp for (size_t i = 0; i < count; i++, ++(*it)) i 793 modules/core/include/opencv2/core/persistence.hpp read(**it, vec[i], _Tp()); i 896 modules/core/include/opencv2/core/persistence.hpp for(int i = 0; i < cn; i++) i 897 modules/core/include/opencv2/core/persistence.hpp write(fs, v.val[i]); i 1951 modules/core/include/opencv2/core/types.hpp int i; i 1952 modules/core/include/opencv2/core/types.hpp for( i = 0; i < (cn < 4 ? cn : 4); i++ ) i 1953 modules/core/include/opencv2/core/types.hpp this->val[i] = cv::saturate_cast<_Tp>(v.val[i]); i 1954 modules/core/include/opencv2/core/types.hpp for( ; i < 4; i++ ) i 1955 modules/core/include/opencv2/core/types.hpp this->val[i] = 0; i 436 modules/core/include/opencv2/core/types_c.h int* i; i 639 modules/core/include/opencv2/core/types_c.h int* i; i 1138 modules/core/include/opencv2/core/types_c.h int i; i 1139 modules/core/include/opencv2/core/types_c.h for( i = 0; i < (cn < 4 ? cn : 4); i++ ) val[i] = v.val[i]; i 1140 modules/core/include/opencv2/core/types_c.h for( ; i < 4; i++ ) val[i] = 0; i 1762 modules/core/include/opencv2/core/types_c.h int i; /**< scalar integer number */ i 424 modules/core/include/opencv2/core/utility.hpp for (int i = DIMS - 2; i >= 0; --i) { i 425 modules/core/include/opencv2/core/utility.hpp if (idx[i] >= mat->size[i]) { i 426 modules/core/include/opencv2/core/utility.hpp idx[i - 1] += idx[i] / mat->size[i]; i 427 modules/core/include/opencv2/core/utility.hpp idx[i] %= mat->size[i]; i 460 modules/core/include/opencv2/core/utility.hpp int& operator[](const int i) { i 461 modules/core/include/opencv2/core/utility.hpp return body[i]; i 786 modules/core/include/opencv2/core/utility.hpp for( size_t i = 0; i < sz; i++ ) i 787 modules/core/include/opencv2/core/utility.hpp ptr[i] = abuf.ptr[i]; i 797 modules/core/include/opencv2/core/utility.hpp for( size_t i = 0; i < sz; i++ ) i 798 modules/core/include/opencv2/core/utility.hpp ptr[i] = abuf.ptr[i]; i 842 modules/core/include/opencv2/core/utility.hpp size_t i, prevsize = sz, minsize = MIN(prevsize, _size); i 849 modules/core/include/opencv2/core/utility.hpp for( i = 0; i < minsize; i++ ) i 850 modules/core/include/opencv2/core/utility.hpp ptr[i] = prevptr[i]; i 851 modules/core/include/opencv2/core/utility.hpp for( i = prevsize; i < _size; i++ ) i 852 modules/core/include/opencv2/core/utility.hpp ptr[i] = _Tp(); i 787 modules/core/misc/java/src/java/core+Mat.java public long step1(int i) i 790 modules/core/misc/java/src/java/core+Mat.java long retVal = n_step1(nativeObj, i); i 1265 modules/core/misc/java/src/java/core+Mat.java private static native long n_step1(long nativeObj, int i); i 67 modules/core/misc/java/src/java/core+MatOfByte.java for(int i=0; i<ab.length; i++) i 68 modules/core/misc/java/src/java/core+MatOfByte.java a[i] = ab[i]; i 75 modules/core/misc/java/src/java/core+MatOfByte.java for(int i=0; i<a.length; i++) i 76 modules/core/misc/java/src/java/core+MatOfByte.java ab[i] = a[i]; i 52 modules/core/misc/java/src/java/core+MatOfDMatch.java for(int i=0; i<num; i++) { i 53 modules/core/misc/java/src/java/core+MatOfDMatch.java DMatch m = a[i]; i 54 modules/core/misc/java/src/java/core+MatOfDMatch.java buff[_channels*i+0] = m.queryIdx; i 55 modules/core/misc/java/src/java/core+MatOfDMatch.java buff[_channels*i+1] = m.trainIdx; i 56 modules/core/misc/java/src/java/core+MatOfDMatch.java buff[_channels*i+2] = m.imgIdx; i 57 modules/core/misc/java/src/java/core+MatOfDMatch.java buff[_channels*i+3] = m.distance; i 69 modules/core/misc/java/src/java/core+MatOfDMatch.java for(int i=0; i<num; i++) i 70 modules/core/misc/java/src/java/core+MatOfDMatch.java a[i] = new DMatch((int) buff[_channels*i+0], (int) buff[_channels*i+1], (int) buff[_channels*i+2], buff[_channels*i+3]); i 67 modules/core/misc/java/src/java/core+MatOfDouble.java for(int i=0; i<ab.length; i++) i 68 modules/core/misc/java/src/java/core+MatOfDouble.java a[i] = ab[i]; i 75 modules/core/misc/java/src/java/core+MatOfDouble.java for(int i=0; i<a.length; i++) i 76 modules/core/misc/java/src/java/core+MatOfDouble.java ab[i] = a[i]; i 67 modules/core/misc/java/src/java/core+MatOfFloat.java for(int i=0; i<ab.length; i++) i 68 modules/core/misc/java/src/java/core+MatOfFloat.java a[i] = ab[i]; i 75 modules/core/misc/java/src/java/core+MatOfFloat.java for(int i=0; i<a.length; i++) i 76 modules/core/misc/java/src/java/core+MatOfFloat.java ab[i] = a[i]; i 67 modules/core/misc/java/src/java/core+MatOfFloat4.java for(int i=0; i<ab.length; i++) i 68 modules/core/misc/java/src/java/core+MatOfFloat4.java a[i] = ab[i]; i 75 modules/core/misc/java/src/java/core+MatOfFloat4.java for(int i=0; i<a.length; i++) i 76 modules/core/misc/java/src/java/core+MatOfFloat4.java ab[i] = a[i]; i 67 modules/core/misc/java/src/java/core+MatOfFloat6.java for(int i=0; i<ab.length; i++) i 68 modules/core/misc/java/src/java/core+MatOfFloat6.java a[i] = ab[i]; i 75 modules/core/misc/java/src/java/core+MatOfFloat6.java for(int i=0; i<a.length; i++) i 76 modules/core/misc/java/src/java/core+MatOfFloat6.java ab[i] = a[i]; i 68 modules/core/misc/java/src/java/core+MatOfInt.java for(int i=0; i<ab.length; i++) i 69 modules/core/misc/java/src/java/core+MatOfInt.java a[i] = ab[i]; i 76 modules/core/misc/java/src/java/core+MatOfInt.java for(int i=0; i<a.length; i++) i 77 modules/core/misc/java/src/java/core+MatOfInt.java ab[i] = a[i]; i 68 modules/core/misc/java/src/java/core+MatOfInt4.java for(int i=0; i<ab.length; i++) i 69 modules/core/misc/java/src/java/core+MatOfInt4.java a[i] = ab[i]; i 76 modules/core/misc/java/src/java/core+MatOfInt4.java for(int i=0; i<a.length; i++) i 77 modules/core/misc/java/src/java/core+MatOfInt4.java ab[i] = a[i]; i 51 modules/core/misc/java/src/java/core+MatOfKeyPoint.java for(int i=0; i<num; i++) { i 52 modules/core/misc/java/src/java/core+MatOfKeyPoint.java KeyPoint kp = a[i]; i 53 modules/core/misc/java/src/java/core+MatOfKeyPoint.java buff[_channels*i+0] = (float) kp.pt.x; i 54 modules/core/misc/java/src/java/core+MatOfKeyPoint.java buff[_channels*i+1] = (float) kp.pt.y; i 55 modules/core/misc/java/src/java/core+MatOfKeyPoint.java buff[_channels*i+2] = kp.size; i 56 modules/core/misc/java/src/java/core+MatOfKeyPoint.java buff[_channels*i+3] = kp.angle; i 57 modules/core/misc/java/src/java/core+MatOfKeyPoint.java buff[_channels*i+4] = kp.response; i 58 modules/core/misc/java/src/java/core+MatOfKeyPoint.java buff[_channels*i+5] = kp.octave; i 59 modules/core/misc/java/src/java/core+MatOfKeyPoint.java buff[_channels*i+6] = kp.class_id; i 71 modules/core/misc/java/src/java/core+MatOfKeyPoint.java for(int i=0; i<num; i++) i 72 modules/core/misc/java/src/java/core+MatOfKeyPoint.java a[i] = new KeyPoint( buff[_channels*i+0], buff[_channels*i+1], buff[_channels*i+2], buff[_channels*i+3], i 73 modules/core/misc/java/src/java/core+MatOfKeyPoint.java buff[_channels*i+4], (int) buff[_channels*i+5], (int) buff[_channels*i+6] ); i 49 modules/core/misc/java/src/java/core+MatOfPoint.java for(int i=0; i<num; i++) { i 50 modules/core/misc/java/src/java/core+MatOfPoint.java Point p = a[i]; i 51 modules/core/misc/java/src/java/core+MatOfPoint.java buff[_channels*i+0] = (int) p.x; i 52 modules/core/misc/java/src/java/core+MatOfPoint.java buff[_channels*i+1] = (int) p.y; i 64 modules/core/misc/java/src/java/core+MatOfPoint.java for(int i=0; i<num; i++) i 65 modules/core/misc/java/src/java/core+MatOfPoint.java ap[i] = new Point(buff[i*_channels], buff[i*_channels+1]); i 49 modules/core/misc/java/src/java/core+MatOfPoint2f.java for(int i=0; i<num; i++) { i 50 modules/core/misc/java/src/java/core+MatOfPoint2f.java Point p = a[i]; i 51 modules/core/misc/java/src/java/core+MatOfPoint2f.java buff[_channels*i+0] = (float) p.x; i 52 modules/core/misc/java/src/java/core+MatOfPoint2f.java buff[_channels*i+1] = (float) p.y; i 64 modules/core/misc/java/src/java/core+MatOfPoint2f.java for(int i=0; i<num; i++) i 65 modules/core/misc/java/src/java/core+MatOfPoint2f.java ap[i] = new Point(buff[i*_channels], buff[i*_channels+1]); i 49 modules/core/misc/java/src/java/core+MatOfPoint3.java for(int i=0; i<num; i++) { i 50 modules/core/misc/java/src/java/core+MatOfPoint3.java Point3 p = a[i]; i 51 modules/core/misc/java/src/java/core+MatOfPoint3.java buff[_channels*i+0] = (int) p.x; i 52 modules/core/misc/java/src/java/core+MatOfPoint3.java buff[_channels*i+1] = (int) p.y; i 53 modules/core/misc/java/src/java/core+MatOfPoint3.java buff[_channels*i+2] = (int) p.z; i 65 modules/core/misc/java/src/java/core+MatOfPoint3.java for(int i=0; i<num; i++) i 66 modules/core/misc/java/src/java/core+MatOfPoint3.java ap[i] = new Point3(buff[i*_channels], buff[i*_channels+1], buff[i*_channels+2]); i 49 modules/core/misc/java/src/java/core+MatOfPoint3f.java for(int i=0; i<num; i++) { i 50 modules/core/misc/java/src/java/core+MatOfPoint3f.java Point3 p = a[i]; i 51 modules/core/misc/java/src/java/core+MatOfPoint3f.java buff[_channels*i+0] = (float) p.x; i 52 modules/core/misc/java/src/java/core+MatOfPoint3f.java buff[_channels*i+1] = (float) p.y; i 53 modules/core/misc/java/src/java/core+MatOfPoint3f.java buff[_channels*i+2] = (float) p.z; i 65 modules/core/misc/java/src/java/core+MatOfPoint3f.java for(int i=0; i<num; i++) i 66 modules/core/misc/java/src/java/core+MatOfPoint3f.java ap[i] = new Point3(buff[i*_channels], buff[i*_channels+1], buff[i*_channels+2]); i 50 modules/core/misc/java/src/java/core+MatOfRect.java for(int i=0; i<num; i++) { i 51 modules/core/misc/java/src/java/core+MatOfRect.java Rect r = a[i]; i 52 modules/core/misc/java/src/java/core+MatOfRect.java buff[_channels*i+0] = (int) r.x; i 53 modules/core/misc/java/src/java/core+MatOfRect.java buff[_channels*i+1] = (int) r.y; i 54 modules/core/misc/java/src/java/core+MatOfRect.java buff[_channels*i+2] = (int) r.width; i 55 modules/core/misc/java/src/java/core+MatOfRect.java buff[_channels*i+3] = (int) r.height; i 68 modules/core/misc/java/src/java/core+MatOfRect.java for(int i=0; i<num; i++) i 69 modules/core/misc/java/src/java/core+MatOfRect.java a[i] = new Rect(buff[i*_channels], buff[i*_channels+1], buff[i*_channels+2], buff[i*_channels+3]); i 280 modules/core/misc/java/test/MatTest.java for(int i=0; i<size; i++) i 283 modules/core/misc/java/test/MatTest.java buff[i*size*ch + j*ch + k] = 100*i + 10*j + k; i 58 modules/core/perf/opencl/perf_bufferpool.cpp for (int i = 0; i < 100; i++) i 75 modules/core/perf/opencl/perf_bufferpool.cpp for (int i = 0; i < 100; i++) i 98 modules/core/perf/opencl/perf_bufferpool.cpp for (int i = 0; i < 10; i++) i 118 modules/core/perf/opencl/perf_bufferpool.cpp for (int i = 0; i < 10; i++) i 71 modules/core/perf/opencl/perf_channels.cpp for (vector<UMat>::iterator i = src.begin(), end = src.end(); i != end; ++i) i 73 modules/core/perf/opencl/perf_channels.cpp i->create(srcSize, CV_MAKE_TYPE(depth, 1)); i 74 modules/core/perf/opencl/perf_channels.cpp declare.in(*i, WARMUP_RNG); i 103 modules/core/perf/opencl/perf_channels.cpp for (int i = 0; i < cn; ++i) i 104 modules/core/perf/opencl/perf_channels.cpp declare.in(dst[i]); i 141 modules/core/perf/opencl/perf_channels.cpp for (int i = 0; i < n; ++i) i 143 modules/core/perf/opencl/perf_channels.cpp src[i] = UMat(srcSize, type); i 144 modules/core/perf/opencl/perf_channels.cpp dst[i] = UMat(srcSize, type); i 145 modules/core/perf/opencl/perf_channels.cpp declare.in(src[i], WARMUP_RNG).out(dst[i]); i 38 modules/core/perf/perf_math.cpp int i, N = 0, N0 = 0, K = 0, dims = 0; i 48 modules/core/perf/perf_math.cpp for( i = 0; i < N; i++ ) i 49 modules/core/perf/perf_math.cpp data0.row(rng.uniform(0, N0)).copyTo(data.row(i)); i 61 modules/core/perf/perf_math.cpp for( i = 0; i < labels.rows; i++ ) i 63 modules/core/perf/perf_math.cpp int clusterIdx = labels.at<int>(i); i 26 modules/core/perf/perf_merge.cpp for( int i = 0; i < dstChannels; ++i ) i 29 modules/core/perf/perf_merge.cpp randu(mv[i], 0, 255); i 182 modules/core/src/alloc.cpp int i, j = 0, n; i 183 modules/core/src/alloc.cpp for( i = 0; i <= MAX_BIN; i++ ) i 185 modules/core/src/alloc.cpp n = binSizeTab[i]>>3; i 187 modules/core/src/alloc.cpp binIdx[j] = (uchar)i; i 274 modules/core/src/alloc.cpp for( int i = nblocks-1; i >= 0; i-- ) i 275 modules/core/src/alloc.cpp p = ::new((uchar*)first + i*MEM_BLOCK_SIZE) Block(p); i 280 modules/core/src/alloc.cpp for( int i = nblocks-1; i >= 0; i-- ) i 281 modules/core/src/alloc.cpp ((Block*)((uchar*)first+i*MEM_BLOCK_SIZE))->~Block(); i 348 modules/core/src/alloc.cpp ThreadData() { for(int i = 0; i <= MAX_BIN; i++) bins[i][START] = bins[i][FREE] = bins[i][GC] = 0; } i 352 modules/core/src/alloc.cpp for( int i = 0; i <= MAX_BIN; i++ ) i 354 modules/core/src/alloc.cpp Block *bin = bins[i][START], *block = bin; i 355 modules/core/src/alloc.cpp bins[i][START] = bins[i][FREE] = bins[i][GC] = 0; i 381 modules/core/src/alloc.cpp int i = block->binIdx; i 382 modules/core/src/alloc.cpp Block*& freePtr = bins[i][FREE]; i 386 modules/core/src/alloc.cpp Block*& gcPtr = bins[i][GC]; i 963 modules/core/src/arithm.cpp int i = 0; i 964 modules/core/src/arithm.cpp for(; i < sz.height; i++) i 972 modules/core/src/arithm.cpp if (i == sz.height) i 1001 modules/core/src/arithm.cpp int i = 0; i 1002 modules/core/src/arithm.cpp for(; i < sz.height; i++) i 1010 modules/core/src/arithm.cpp if (i == sz.height) i 1046 modules/core/src/arithm.cpp int i = 0; i 1047 modules/core/src/arithm.cpp for(; i < sz.height; i++) i 1055 modules/core/src/arithm.cpp if (i == sz.height) i 1077 modules/core/src/arithm.cpp int i = 0; i 1078 modules/core/src/arithm.cpp for(; i < sz.height; i++) i 1086 modules/core/src/arithm.cpp if (i == sz.height) i 1108 modules/core/src/arithm.cpp int i = 0; i 1109 modules/core/src/arithm.cpp for(; i < sz.height; i++) i 1117 modules/core/src/arithm.cpp if (i == sz.height) i 1146 modules/core/src/arithm.cpp int i = 0; i 1147 modules/core/src/arithm.cpp for(; i < sz.height; i++) i 1155 modules/core/src/arithm.cpp if (i == sz.height) i 1191 modules/core/src/arithm.cpp int i = 0; i 1192 modules/core/src/arithm.cpp for(; i < sz.height; i++) i 1200 modules/core/src/arithm.cpp if (i == sz.height) i 1222 modules/core/src/arithm.cpp int i = 0; i 1223 modules/core/src/arithm.cpp for(; i < sz.height; i++) i 1231 modules/core/src/arithm.cpp if (i == sz.height) i 1418 modules/core/src/arithm.cpp for( size_t i = esz1; i < esz; i++ ) i 1419 modules/core/src/arithm.cpp scbuf[i] = scbuf[i - esz1]; i 1421 modules/core/src/arithm.cpp for( size_t i = esz; i < blocksize*esz; i++ ) i 1422 modules/core/src/arithm.cpp scbuf[i] = scbuf[i - esz]; i 1636 modules/core/src/arithm.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 1668 modules/core/src/arithm.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 1786 modules/core/src/arithm.cpp int i = 0, minval = INT_MAX, maxval = INT_MIN; i 1787 modules/core/src/arithm.cpp for(; i < len; ++i) i 1789 modules/core/src/arithm.cpp int ival = cvRound(data[i]); i 1790 modules/core/src/arithm.cpp if( ival != data[i] ) i 1795 modules/core/src/arithm.cpp return i < len ? CV_64F : i 1852 modules/core/src/arithm.cpp int i, n = oclop == OCL_OP_MUL_SCALE || oclop == OCL_OP_DIV_SCALE || i 1856 modules/core/src/arithm.cpp for( i = 0; i < n; i++ ) i 1857 modules/core/src/arithm.cpp usrdata_f[i] = (float)usrdata_d[i]; i 2096 modules/core/src/arithm.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 2161 modules/core/src/arithm.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 2731 modules/core/src/arithm.cpp int i = vop(src1, src2, dst, size.width, scale); i 2733 modules/core/src/arithm.cpp for(; i <= size.width - 4; i += 4 ) i 2737 modules/core/src/arithm.cpp t0 = saturate_cast<T>(src1[i ] * src2[i ]); i 2738 modules/core/src/arithm.cpp t1 = saturate_cast<T>(src1[i+1] * src2[i+1]); i 2739 modules/core/src/arithm.cpp dst[i ] = t0; i 2740 modules/core/src/arithm.cpp dst[i+1] = t1; i 2742 modules/core/src/arithm.cpp t0 = saturate_cast<T>(src1[i+2] * src2[i+2]); i 2743 modules/core/src/arithm.cpp t1 = saturate_cast<T>(src1[i+3] * src2[i+3]); i 2744 modules/core/src/arithm.cpp dst[i+2] = t0; i 2745 modules/core/src/arithm.cpp dst[i+3] = t1; i 2748 modules/core/src/arithm.cpp for( ; i < size.width; i++ ) i 2749 modules/core/src/arithm.cpp dst[i] = saturate_cast<T>(src1[i] * src2[i]); i 2756 modules/core/src/arithm.cpp int i = vop(src1, src2, dst, size.width, scale); i 2758 modules/core/src/arithm.cpp for(; i <= size.width - 4; i += 4 ) i 2760 modules/core/src/arithm.cpp T t0 = saturate_cast<T>(scale*(WT)src1[i]*src2[i]); i 2761 modules/core/src/arithm.cpp T t1 = saturate_cast<T>(scale*(WT)src1[i+1]*src2[i+1]); i 2762 modules/core/src/arithm.cpp dst[i] = t0; dst[i+1] = t1; i 2764 modules/core/src/arithm.cpp t0 = saturate_cast<T>(scale*(WT)src1[i+2]*src2[i+2]); i 2765 modules/core/src/arithm.cpp t1 = saturate_cast<T>(scale*(WT)src1[i+3]*src2[i+3]); i 2766 modules/core/src/arithm.cpp dst[i+2] = t0; dst[i+3] = t1; i 2769 modules/core/src/arithm.cpp for( ; i < size.width; i++ ) i 2770 modules/core/src/arithm.cpp dst[i] = saturate_cast<T>(scale*(WT)src1[i]*src2[i]); i 3390 modules/core/src/arithm.cpp int i = vop(src1, src2, dst, size.width, scale); i 3391 modules/core/src/arithm.cpp for( ; i < size.width; i++ ) i 3393 modules/core/src/arithm.cpp T num = src1[i], denom = src2[i]; i 3394 modules/core/src/arithm.cpp dst[i] = denom != 0 ? saturate_cast<T>(num*scale_f/denom) : (T)0; i 3412 modules/core/src/arithm.cpp int i = vop(src1, src2, dst, size.width, scale); i 3413 modules/core/src/arithm.cpp for( ; i < size.width; i++ ) i 3415 modules/core/src/arithm.cpp T num = src1[i], denom = src2[i]; i 3416 modules/core/src/arithm.cpp dst[i] = denom != 0 ? saturate_cast<T>(num*scale_f/denom) : (T)0; i 3433 modules/core/src/arithm.cpp int i = vop(src2, dst, size.width, scale); i 3434 modules/core/src/arithm.cpp for( ; i < size.width; i++ ) i 3436 modules/core/src/arithm.cpp T denom = src2[i]; i 3437 modules/core/src/arithm.cpp dst[i] = denom != 0 ? saturate_cast<T>(scale_f/denom) : (T)0; i 3454 modules/core/src/arithm.cpp int i = vop(src2, dst, size.width, scale); i 3455 modules/core/src/arithm.cpp for( ; i < size.width; i++ ) i 3457 modules/core/src/arithm.cpp T denom = src2[i]; i 3458 modules/core/src/arithm.cpp dst[i] = denom != 0 ? saturate_cast<T>(scale_f/denom) : (T)0; i 5045 modules/core/src/arithm.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 5093 modules/core/src/arithm.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 5523 modules/core/src/arithm.cpp size_t i, j; i 5525 modules/core/src/arithm.cpp for( i = j = 0; i < len; i++, j += cn ) i 5526 modules/core/src/arithm.cpp dst[i] = src[j]; i 5528 modules/core/src/arithm.cpp for( i = j = 0; i < len; i++, j += cn ) i 5529 modules/core/src/arithm.cpp dst[i] = src[j] & src[j+1]; i 5531 modules/core/src/arithm.cpp for( i = j = 0; i < len; i++, j += cn ) i 5532 modules/core/src/arithm.cpp dst[i] = src[j] & src[j+1] & src[j+2]; i 5534 modules/core/src/arithm.cpp for( i = j = 0; i < len; i++, j += cn ) i 5535 modules/core/src/arithm.cpp dst[i] = src[j] & src[j+1] & src[j+2] & src[j+3]; i 5539 modules/core/src/arithm.cpp for( i = 0, j = k; i < len; i++, j += cn ) i 5540 modules/core/src/arithm.cpp dst[i] &= src[j] & src[j+1] & src[j+2] & src[j+3]; i 5762 modules/core/src/arithm.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 249 modules/core/src/array.cpp for( int i = dims - 1; i >= 0; i-- ) i 251 modules/core/src/array.cpp if( sizes[i] < 0 ) i 253 modules/core/src/array.cpp mat->dim[i].size = sizes[i]; i 256 modules/core/src/array.cpp mat->dim[i].step = (int)step; i 257 modules/core/src/array.cpp step *= sizes[i]; i 306 modules/core/src/array.cpp for( int i = 0; i < src->dims; i++ ) i 307 modules/core/src/array.cpp sizes[i] = src->dim[i].size; i 388 modules/core/src/array.cpp int i, j, size, dim0 = -1; i 401 modules/core/src/array.cpp for( i = 0; i <= count; i++ ) i 403 modules/core/src/array.cpp const CvArr* arr = i < count ? arrs[i] : mask; i 408 modules/core/src/array.cpp if( i < count ) i 418 modules/core/src/array.cpp hdr = cvGetMatND( arr, stubs + i, &coi ); i 423 modules/core/src/array.cpp iterator->hdr[i] = hdr; i 425 modules/core/src/array.cpp if( i > 0 ) i 431 modules/core/src/array.cpp if( i < count ) i 483 modules/core/src/array.cpp iterator->hdr[i] = (CvMatND*)hdr; i 484 modules/core/src/array.cpp iterator->ptr[i] = (uchar*)hdr->data.ptr; i 496 modules/core/src/array.cpp for( i = 0; i < dims; i++ ) i 497 modules/core/src/array.cpp iterator->stack[i] = hdr0->dim[i].size; i 507 modules/core/src/array.cpp int i, dims; i 511 modules/core/src/array.cpp for( i = 0; i < iterator->count; i++ ) i 512 modules/core/src/array.cpp iterator->ptr[i] += iterator->hdr[i]->dim[dims-1].step; i 519 modules/core/src/array.cpp for( i = 0; i < iterator->count; i++ ) i 520 modules/core/src/array.cpp iterator->ptr[i] -= (size_t)size*iterator->hdr[i]->dim[dims-1].step; i 541 modules/core/src/array.cpp int i, size; i 553 modules/core/src/array.cpp for( i = 0; i < dims; i++ ) i 555 modules/core/src/array.cpp if( sizes[i] <= 0 ) i 654 modules/core/src/array.cpp int i, tabidx; i 661 modules/core/src/array.cpp for( i = 0; i < mat->dims; i++ ) i 663 modules/core/src/array.cpp int t = idx[i]; i 664 modules/core/src/array.cpp if( (unsigned)t >= (unsigned)mat->size[i] ) i 685 modules/core/src/array.cpp for( i = 0; i < mat->dims; i++ ) i 686 modules/core/src/array.cpp if( idx[i] != nodeidx[i] ) i 688 modules/core/src/array.cpp if( i == mat->dims ) i 748 modules/core/src/array.cpp int i, tabidx; i 755 modules/core/src/array.cpp for( i = 0; i < mat->dims; i++ ) i 757 modules/core/src/array.cpp int t = idx[i]; i 758 modules/core/src/array.cpp if( (unsigned)t >= (unsigned)mat->size[i] ) i 777 modules/core/src/array.cpp for( i = 0; i < mat->dims; i++ ) i 778 modules/core/src/array.cpp if( idx[i] != nodeidx[i] ) i 780 modules/core/src/array.cpp if( i == mat->dims ) i 874 modules/core/src/array.cpp int i; i 875 modules/core/src/array.cpp for( i = mat->dims - 1; i >= 0; i-- ) i 877 modules/core/src/array.cpp size_t size = (size_t)mat->dim[i].step*mat->dim[i].size; i 955 modules/core/src/array.cpp int i; i 965 modules/core/src/array.cpp for( i = mat->dims - 1; i >= 0; i-- ) i 969 modules/core/src/array.cpp mat->dim[i].step = (int)cur_step; i 970 modules/core/src/array.cpp cur_step *= mat->dim[i].size; i 1064 modules/core/src/array.cpp int i; i 1065 modules/core/src/array.cpp for( i = 1; i < mat->dims; i++ ) i 1066 modules/core/src/array.cpp size1 *= mat->dim[i].size; i 1136 modules/core/src/array.cpp int i; i 1137 modules/core/src/array.cpp for( i = 0; i < dims; i++ ) i 1138 modules/core/src/array.cpp sizes[i] = mat->dim[i].size; i 1730 modules/core/src/array.cpp int i, n = m->dims; i 1734 modules/core/src/array.cpp for( i = n - 1; i >= 0; i-- ) i 1736 modules/core/src/array.cpp int t = idx / m->size[i]; i 1737 modules/core/src/array.cpp _idx[i] = idx - t*m->size[i]; i 1897 modules/core/src/array.cpp int i; i 1900 modules/core/src/array.cpp for( i = 0; i < mat->dims; i++ ) i 1902 modules/core/src/array.cpp if( (unsigned)idx[i] >= (unsigned)(mat->dim[i].size) ) i 1904 modules/core/src/array.cpp ptr += (size_t)idx[i]*mat->dim[i].step; i 2474 modules/core/src/array.cpp int i; i 2475 modules/core/src/array.cpp for( i = 1; i < matnd->dims; i++ ) i 2476 modules/core/src/array.cpp size2 *= matnd->dim[i].size; i 2649 modules/core/src/array.cpp int i, size1, size2; i 2667 modules/core/src/array.cpp for( i = 1; i < dims; i++ ) i 2668 modules/core/src/array.cpp size1 *= mat->dim[i].size; i 2671 modules/core/src/array.cpp for( i = 0; i < new_dims; i++ ) i 2673 modules/core/src/array.cpp if( new_sizes[i] <= 0 ) i 2676 modules/core/src/array.cpp size2 *= new_sizes[i]; i 2694 modules/core/src/array.cpp for( i = new_dims - 1; i >= 0; i-- ) i 2696 modules/core/src/array.cpp header->dim[i].size = new_sizes[i]; i 2697 modules/core/src/array.cpp header->dim[i].step = step; i 2698 modules/core/src/array.cpp step *= new_sizes[i]; i 33 modules/core/src/command_line_parser.cpp void apply_params(int i, String value); i 96 modules/core/src/command_line_parser.cpp for (size_t i = 0; i < impl->data.size(); i++) i 98 modules/core/src/command_line_parser.cpp for (size_t j = 0; j < impl->data[i].keys.size(); j++) i 100 modules/core/src/command_line_parser.cpp if (name.compare(impl->data[i].keys[j]) == 0) i 102 modules/core/src/command_line_parser.cpp String v = impl->data[i].def_value; i 125 modules/core/src/command_line_parser.cpp for (size_t i = 0; i < impl->data.size(); i++) i 127 modules/core/src/command_line_parser.cpp if (impl->data[i].number == index) i 129 modules/core/src/command_line_parser.cpp String v = impl->data[i].def_value; i 181 modules/core/src/command_line_parser.cpp for (size_t i = 0; i < k.size(); i++) i 183 modules/core/src/command_line_parser.cpp std::vector<String> l = impl->split_string(k[i], '|', true); i 208 modules/core/src/command_line_parser.cpp for (int i = 1; i < argc; i++) i 210 modules/core/src/command_line_parser.cpp String s = String(argv[i]); i 271 modules/core/src/command_line_parser.cpp for (size_t i = 0; i < data.size(); i++) i 273 modules/core/src/command_line_parser.cpp for (size_t k = 0; k < data[i].keys.size(); k++) i 275 modules/core/src/command_line_parser.cpp if (key.compare(data[i].keys[k]) == 0) i 277 modules/core/src/command_line_parser.cpp data[i].def_value = value; i 284 modules/core/src/command_line_parser.cpp void CommandLineParser::Impl::apply_params(int i, String value) i 288 modules/core/src/command_line_parser.cpp if (data[j].number == i) i 298 modules/core/src/command_line_parser.cpp for (size_t i = 0; i < data.size(); i++) i 300 modules/core/src/command_line_parser.cpp std::sort(data[i].keys.begin(), data[i].keys.end()); i 323 modules/core/src/command_line_parser.cpp for (size_t i = 0; i < impl->data.size(); i++) i 325 modules/core/src/command_line_parser.cpp for (size_t j = 0; j < impl->data[i].keys.size(); j++) i 327 modules/core/src/command_line_parser.cpp if (name.compare(impl->data[i].keys[j]) == 0 && String("true").compare(impl->data[i].def_value) == 0) i 357 modules/core/src/command_line_parser.cpp for (size_t i = 0; i < impl->data.size(); i++) i 359 modules/core/src/command_line_parser.cpp if (impl->data[i].number > -1) i 361 modules/core/src/command_line_parser.cpp String name = impl->data[i].keys[0].substr(1, impl->data[i].keys[0].length() - 1); i 368 modules/core/src/command_line_parser.cpp for (size_t i = 0; i < impl->data.size(); i++) i 370 modules/core/src/command_line_parser.cpp if (impl->data[i].number == -1) i 373 modules/core/src/command_line_parser.cpp for (size_t j = 0; j < impl->data[i].keys.size(); j++) i 375 modules/core/src/command_line_parser.cpp String k = impl->data[i].keys[j]; i 386 modules/core/src/command_line_parser.cpp if (j != impl->data[i].keys.size() - 1) i 391 modules/core/src/command_line_parser.cpp String dv = impl->cat_string(impl->data[i].def_value); i 396 modules/core/src/command_line_parser.cpp printf("\n\t\t%s\n", impl->data[i].help_message.c_str()); i 401 modules/core/src/command_line_parser.cpp for (size_t i = 0; i < impl->data.size(); i++) i 403 modules/core/src/command_line_parser.cpp if (impl->data[i].number != -1) i 406 modules/core/src/command_line_parser.cpp String k = impl->data[i].keys[0]; i 411 modules/core/src/command_line_parser.cpp String dv = impl->cat_string(impl->data[i].def_value); i 416 modules/core/src/command_line_parser.cpp printf("\n\t\t%s\n", impl->data[i].help_message.c_str()); i 53 modules/core/src/conjugate_gradient.cpp int i, n = getDims(); i 56 modules/core/src/conjugate_gradient.cpp for( i = 0; i < n; i++ ) i 57 modules/core/src/conjugate_gradient.cpp x_[i] = x[i]; i 58 modules/core/src/conjugate_gradient.cpp for( i = 0; i < n; i++ ) i 60 modules/core/src/conjugate_gradient.cpp x_[i] = x[i] + eps; i 62 modules/core/src/conjugate_gradient.cpp x_[i] = x[i] - eps; i 64 modules/core/src/conjugate_gradient.cpp grad[i] = (y1 - y0)/(2*eps); i 65 modules/core/src/conjugate_gradient.cpp x_[i] = x[i]; i 101 modules/core/src/conjugate_gradient.cpp for(int i=0;i<SEC_METHOD_ITERATIONS;i++){ i 281 modules/core/src/convert.cpp int i, j; i 292 modules/core/src/convert.cpp for( i = 0, j = 0 ; i < len; i++, j += cn ) i 293 modules/core/src/convert.cpp dst0[i] = src[j]; i 299 modules/core/src/convert.cpp i = j = 0; i 308 modules/core/src/convert.cpp for( ; i < len - inc_i; i += inc_i, j += inc_j) i 309 modules/core/src/convert.cpp vsplit(src + j, dst0 + i, dst1 + i); i 320 modules/core/src/convert.cpp for( ; i <= len - inc_i; i += inc_i, j += inc_j) i 321 modules/core/src/convert.cpp vsplit(src + j, dst0 + i, dst1 + i); i 325 modules/core/src/convert.cpp for( ; i < len; i++, j += cn ) i 327 modules/core/src/convert.cpp dst0[i] = src[j]; i 328 modules/core/src/convert.cpp dst1[i] = src[j+1]; i 334 modules/core/src/convert.cpp i = j = 0; i 343 modules/core/src/convert.cpp for( ; i <= len - inc_i; i += inc_i, j += inc_j) i 344 modules/core/src/convert.cpp vsplit(src + j, dst0 + i, dst1 + i, dst2 + i); i 356 modules/core/src/convert.cpp for( ; i <= len - inc_i; i += inc_i, j += inc_j) i 357 modules/core/src/convert.cpp vsplit(src + j, dst0 + i, dst1 + i, dst2 + i); i 361 modules/core/src/convert.cpp for( ; i < len; i++, j += cn ) i 363 modules/core/src/convert.cpp dst0[i] = src[j]; i 364 modules/core/src/convert.cpp dst1[i] = src[j+1]; i 365 modules/core/src/convert.cpp dst2[i] = src[j+2]; i 371 modules/core/src/convert.cpp i = j = 0; i 380 modules/core/src/convert.cpp for( ; i <= len - inc_i; i += inc_i, j += inc_j) i 381 modules/core/src/convert.cpp vsplit(src + j, dst0 + i, dst1 + i, dst2 + i, dst3 + i); i 392 modules/core/src/convert.cpp for( ; i <= len - inc_i; i += inc_i, j += inc_j) i 393 modules/core/src/convert.cpp vsplit(src + j, dst0 + i, dst1 + i, dst2 + i, dst3 + i); i 397 modules/core/src/convert.cpp for( ; i < len; i++, j += cn ) i 399 modules/core/src/convert.cpp dst0[i] = src[j]; dst1[i] = src[j+1]; i 400 modules/core/src/convert.cpp dst2[i] = src[j+2]; dst3[i] = src[j+3]; i 407 modules/core/src/convert.cpp for( i = 0, j = k; i < len; i++, j += cn ) i 409 modules/core/src/convert.cpp dst0[i] = src[j]; dst1[i] = src[j+1]; i 410 modules/core/src/convert.cpp dst2[i] = src[j+2]; dst3[i] = src[j+3]; i 639 modules/core/src/convert.cpp int i, j; i 643 modules/core/src/convert.cpp for( i = j = 0; i < len; i++, j += cn ) i 644 modules/core/src/convert.cpp dst[j] = src0[i]; i 649 modules/core/src/convert.cpp i = j = 0; i 657 modules/core/src/convert.cpp for( ; i < len - inc_i; i += inc_i, j += inc_j) i 658 modules/core/src/convert.cpp vmerge(src0 + i, src1 + i, dst + j); i 668 modules/core/src/convert.cpp for( ; i < len - inc_i; i += inc_i, j += inc_j) i 669 modules/core/src/convert.cpp vmerge(src0 + i, src1 + i, dst + j); i 672 modules/core/src/convert.cpp for( ; i < len; i++, j += cn ) i 674 modules/core/src/convert.cpp dst[j] = src0[i]; i 675 modules/core/src/convert.cpp dst[j+1] = src1[i]; i 681 modules/core/src/convert.cpp i = j = 0; i 689 modules/core/src/convert.cpp for( ; i < len - inc_i; i += inc_i, j += inc_j) i 690 modules/core/src/convert.cpp vmerge(src0 + i, src1 + i, src2 + i, dst + j); i 700 modules/core/src/convert.cpp for( ; i < len - inc_i; i += inc_i, j += inc_j) i 701 modules/core/src/convert.cpp vmerge(src0 + i, src1 + i, src2 + i, dst + j); i 704 modules/core/src/convert.cpp for( ; i < len; i++, j += cn ) i 706 modules/core/src/convert.cpp dst[j] = src0[i]; i 707 modules/core/src/convert.cpp dst[j+1] = src1[i]; i 708 modules/core/src/convert.cpp dst[j+2] = src2[i]; i 714 modules/core/src/convert.cpp i = j = 0; i 722 modules/core/src/convert.cpp for( ; i < len - inc_i; i += inc_i, j += inc_j) i 723 modules/core/src/convert.cpp vmerge(src0 + i, src1 + i, src2 + i, src3 + i, dst + j); i 733 modules/core/src/convert.cpp for( ; i < len - inc_i; i += inc_i, j += inc_j) i 734 modules/core/src/convert.cpp vmerge(src0 + i, src1 + i, src2 + i, src3 + i, dst + j); i 737 modules/core/src/convert.cpp for( ; i < len; i++, j += cn ) i 739 modules/core/src/convert.cpp dst[j] = src0[i]; dst[j+1] = src1[i]; i 740 modules/core/src/convert.cpp dst[j+2] = src2[i]; dst[j+3] = src3[i]; i 747 modules/core/src/convert.cpp for( i = 0, j = k; i < len; i++, j += cn ) i 749 modules/core/src/convert.cpp dst[j] = src0[i]; dst[j+1] = src1[i]; i 750 modules/core/src/convert.cpp dst[j+2] = src2[i]; dst[j+3] = src3[i]; i 850 modules/core/src/convert.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 877 modules/core/src/convert.cpp for (int i = 0; i < cn; ++i) i 879 modules/core/src/convert.cpp dstargs += format("DECLARE_DST_PARAM(%d)", i); i 880 modules/core/src/convert.cpp indexdecl += format("DECLARE_INDEX(%d)", i); i 881 modules/core/src/convert.cpp processelem += format("PROCESS_ELEM(%d)", i); i 894 modules/core/src/convert.cpp for (int i = 0; i < cn; ++i) i 895 modules/core/src/convert.cpp _mv.create(size, depth, i); i 901 modules/core/src/convert.cpp for (int i = 0; i < cn; ++i) i 902 modules/core/src/convert.cpp argidx = k.set(argidx, ocl::KernelArg::WriteOnlyNoSize(dst[i])); i 930 modules/core/src/convert.cpp for (int i = 0; i < cn; ++i) i 931 modules/core/src/convert.cpp _mv.create(size, depth, i); i 946 modules/core/src/convert.cpp size_t i; i 948 modules/core/src/convert.cpp for( i = 0; i < n; i++ ) i 950 modules/core/src/convert.cpp CV_Assert(mv[i].size == mv[0].size && mv[i].depth() == depth); i 951 modules/core/src/convert.cpp allch1 = allch1 && mv[i].channels() == 1; i 952 modules/core/src/convert.cpp cn += mv[i].channels(); i 970 modules/core/src/convert.cpp for( i = 0, j = 0; i < n; i++, j += ni ) i 972 modules/core/src/convert.cpp ni = mv[i].channels(); i 997 modules/core/src/convert.cpp for( i = 0; i < it.nplanes; i++, ++it ) i 1028 modules/core/src/convert.cpp for (size_t i = 0, srcsize = src.size(); i < srcsize; ++i) i 1030 modules/core/src/convert.cpp int itype = src[i].type(), icn = CV_MAT_CN(itype), idepth = CV_MAT_DEPTH(itype), i 1032 modules/core/src/convert.cpp if (src[i].dims > 2) i 1035 modules/core/src/convert.cpp CV_Assert(size == src[i].size() && depth == idepth); i 1039 modules/core/src/convert.cpp UMat tsrc = src[i]; i 1047 modules/core/src/convert.cpp for (int i = 0; i < dcn; ++i) i 1049 modules/core/src/convert.cpp srcargs += format("DECLARE_SRC_PARAM(%d)", i); i 1050 modules/core/src/convert.cpp processelem += format("PROCESS_ELEM(%d)", i); i 1051 modules/core/src/convert.cpp indexdecl += format("DECLARE_INDEX(%d)", i); i 1052 modules/core/src/convert.cpp cndecl += format(" -D scn%d=%d", i, ksrc[i].channels()); i 1067 modules/core/src/convert.cpp for (int i = 0; i < dcn; ++i) i 1068 modules/core/src/convert.cpp argidx = k.set(argidx, ocl::KernelArg::ReadOnlyNoSize(ksrc[i])); i 1102 modules/core/src/convert.cpp int i, k; i 1110 modules/core/src/convert.cpp for( i = 0; i <= len - 2; i += 2, s += ds*2, d += dd*2 ) i 1115 modules/core/src/convert.cpp if( i < len ) i 1120 modules/core/src/convert.cpp for( i = 0; i <= len - 2; i += 2, d += dd*2 ) i 1122 modules/core/src/convert.cpp if( i < len ) i 1180 modules/core/src/convert.cpp size_t i, j, k, esz1 = dst[0].elemSize1(); i 1191 modules/core/src/convert.cpp for( i = 0; i < nsrcs; i++ ) i 1192 modules/core/src/convert.cpp arrays[i] = &src[i]; i 1193 modules/core/src/convert.cpp for( i = 0; i < ndsts; i++ ) i 1194 modules/core/src/convert.cpp arrays[i + nsrcs] = &dst[i]; i 1197 modules/core/src/convert.cpp for( i = 0; i < npairs; i++ ) i 1199 modules/core/src/convert.cpp int i0 = fromTo[i*2], i1 = fromTo[i*2+1]; i 1206 modules/core/src/convert.cpp tab[i*4] = (int)j; tab[i*4+1] = (int)(i0*esz1); i 1207 modules/core/src/convert.cpp sdelta[i] = src[j].channels(); i 1211 modules/core/src/convert.cpp tab[i*4] = (int)(nsrcs + ndsts); tab[i*4+1] = 0; i 1212 modules/core/src/convert.cpp sdelta[i] = 0; i 1219 modules/core/src/convert.cpp tab[i*4+2] = (int)(j + nsrcs); tab[i*4+3] = (int)(i1*esz1); i 1220 modules/core/src/convert.cpp ddelta[i] = dst[j].channels(); i 1227 modules/core/src/convert.cpp for( i = 0; i < it.nplanes; i++, ++it ) i 1257 modules/core/src/convert.cpp for (size_t i = 0, size = um.size(); i < size; ++i) i 1259 modules/core/src/convert.cpp int ccn = um[i].channels(); i 1264 modules/core/src/convert.cpp idx = (int)(i + 1); i 1270 modules/core/src/convert.cpp idx = (int)i; i 1271 modules/core/src/convert.cpp cnidx = i == 0 ? cn : (cn - totalChannels + ccn); i 1293 modules/core/src/convert.cpp for (size_t i = 1, ssize = src.size(); i < ssize; ++i) i 1294 modules/core/src/convert.cpp CV_Assert(src[i].size() == size && src[i].depth() == depth); i 1295 modules/core/src/convert.cpp for (size_t i = 0, dsize = dst.size(); i < dsize; ++i) i 1296 modules/core/src/convert.cpp CV_Assert(dst[i].size() == size && dst[i].depth() == depth); i 1301 modules/core/src/convert.cpp for (size_t i = 0; i < npairs; ++i) i 1303 modules/core/src/convert.cpp int scn = fromTo[i<<1], dcn = fromTo[(i<<1) + 1]; i 1311 modules/core/src/convert.cpp srcargs[i] = src[src_idx]; i 1312 modules/core/src/convert.cpp srcargs[i].offset += src_cnidx * esz; i 1314 modules/core/src/convert.cpp dstargs[i] = dst[dst_idx]; i 1315 modules/core/src/convert.cpp dstargs[i].offset += dst_cnidx * esz; i 1317 modules/core/src/convert.cpp declsrc += format("DECLARE_INPUT_MAT(%d)", i); i 1318 modules/core/src/convert.cpp decldst += format("DECLARE_OUTPUT_MAT(%d)", i); i 1319 modules/core/src/convert.cpp indexdecl += format("DECLARE_INDEX(%d)", i); i 1320 modules/core/src/convert.cpp declproc += format("PROCESS_ELEM(%d)", i); i 1321 modules/core/src/convert.cpp declcn += format(" -D scn%d=%d -D dcn%d=%d", i, src[src_idx].channels(), i, dst[dst_idx].channels()); i 1333 modules/core/src/convert.cpp for (size_t i = 0; i < npairs; ++i) i 1334 modules/core/src/convert.cpp argindex = k.set(argindex, ocl::KernelArg::ReadOnlyNoSize(srcargs[i])); i 1335 modules/core/src/convert.cpp for (size_t i = 0; i < npairs; ++i) i 1336 modules/core/src/convert.cpp argindex = k.set(argindex, ocl::KernelArg::WriteOnlyNoSize(dstargs[i])); i 1364 modules/core/src/convert.cpp int i; i 1371 modules/core/src/convert.cpp for( i = 0; i < nsrc; i++ ) i 1372 modules/core/src/convert.cpp buf[i] = src.getMat(src_is_mat ? -1 : i); i 1373 modules/core/src/convert.cpp for( i = 0; i < ndst; i++ ) i 1374 modules/core/src/convert.cpp buf[nsrc + i] = dst.getMat(dst_is_mat ? -1 : i); i 1393 modules/core/src/convert.cpp int i; i 1400 modules/core/src/convert.cpp for( i = 0; i < nsrc; i++ ) i 1401 modules/core/src/convert.cpp buf[i] = src.getMat(src_is_mat ? -1 : i); i 1402 modules/core/src/convert.cpp for( i = 0; i < ndst; i++ ) i 1403 modules/core/src/convert.cpp buf[nsrc + i] = dst.getMat(dst_is_mat ? -1 : i); i 5563 modules/core/src/convert.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 5607 modules/core/src/convert.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 5624 modules/core/src/convert.cpp for( int i = 0; i < len*cn; i++ ) i 5625 modules/core/src/convert.cpp dst[i] = lut[src[i]]; i 5629 modules/core/src/convert.cpp for( int i = 0; i < len*cn; i += cn ) i 5631 modules/core/src/convert.cpp dst[i+k] = lut[src[i+k]*cn+k]; i 5900 modules/core/src/convert.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 5975 modules/core/src/convert.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 6117 modules/core/src/convert.cpp int i, j, nz = 0; i 6118 modules/core/src/convert.cpp for( i = 0; i < 4; i++ ) i 6119 modules/core/src/convert.cpp nz += dptrs[i] != 0; i 6124 modules/core/src/convert.cpp for( i = j = 0; i < 4; i++ ) i 6126 modules/core/src/convert.cpp if( dptrs[i] != 0 ) i 6128 modules/core/src/convert.cpp dvec[j] = cv::cvarrToMat(dptrs[i]); i 6132 modules/core/src/convert.cpp CV_Assert( i < src.channels() ); i 6133 modules/core/src/convert.cpp pairs[j*2] = i; i 6153 modules/core/src/convert.cpp int i, j, nz = 0; i 6154 modules/core/src/convert.cpp for( i = 0; i < 4; i++ ) i 6155 modules/core/src/convert.cpp nz += sptrs[i] != 0; i 6160 modules/core/src/convert.cpp for( i = j = 0; i < 4; i++ ) i 6162 modules/core/src/convert.cpp if( sptrs[i] != 0 ) i 6164 modules/core/src/convert.cpp svec[j] = cv::cvarrToMat(sptrs[i]); i 6167 modules/core/src/convert.cpp svec[j].channels() == 1 && i < dst.channels() ); i 6169 modules/core/src/convert.cpp pairs[j*2+1] = i; i 6190 modules/core/src/convert.cpp int i; i 6191 modules/core/src/convert.cpp for( i = 0; i < src_count; i++ ) i 6192 modules/core/src/convert.cpp buf[i] = cv::cvarrToMat(src[i]); i 6193 modules/core/src/convert.cpp for( i = 0; i < dst_count; i++ ) i 6194 modules/core/src/convert.cpp buf[i+src_count] = cv::cvarrToMat(dst[i]); i 297 modules/core/src/copy.cpp size_t i, sz[CV_MAX_DIM], dstofs[CV_MAX_DIM], esz = elemSize(); i 298 modules/core/src/copy.cpp for( i = 0; i < (size_t)dims; i++ ) i 299 modules/core/src/copy.cpp sz[i] = size.p[i]; i 352 modules/core/src/copy.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 393 modules/core/src/copy.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 437 modules/core/src/copy.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 455 modules/core/src/copy.cpp for( size_t i = 1; i < it.nplanes; i++ ) i 567 modules/core/src/copy.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 590 modules/core/src/copy.cpp int i, j, limit = (int)(((size.width + 1)/2)*esz); i 594 modules/core/src/copy.cpp for( i = 0; i < size.width; i++ ) i 596 modules/core/src/copy.cpp tab[i*esz + k] = (int)((size.width - i - 1)*esz + k); i 600 modules/core/src/copy.cpp for( i = 0; i < limit; i++ ) i 602 modules/core/src/copy.cpp j = tab[i]; i 603 modules/core/src/copy.cpp uchar t0 = src[i], t1 = src[j]; i 604 modules/core/src/copy.cpp dst[i] = t1; dst[j] = t0; i 619 modules/core/src/copy.cpp int i = 0; i 622 modules/core/src/copy.cpp for( ; i <= size.width - 16; i += 16 ) i 624 modules/core/src/copy.cpp int t0 = ((int*)(src0 + i))[0]; i 625 modules/core/src/copy.cpp int t1 = ((int*)(src1 + i))[0]; i 627 modules/core/src/copy.cpp ((int*)(dst0 + i))[0] = t1; i 628 modules/core/src/copy.cpp ((int*)(dst1 + i))[0] = t0; i 630 modules/core/src/copy.cpp t0 = ((int*)(src0 + i))[1]; i 631 modules/core/src/copy.cpp t1 = ((int*)(src1 + i))[1]; i 633 modules/core/src/copy.cpp ((int*)(dst0 + i))[1] = t1; i 634 modules/core/src/copy.cpp ((int*)(dst1 + i))[1] = t0; i 636 modules/core/src/copy.cpp t0 = ((int*)(src0 + i))[2]; i 637 modules/core/src/copy.cpp t1 = ((int*)(src1 + i))[2]; i 639 modules/core/src/copy.cpp ((int*)(dst0 + i))[2] = t1; i 640 modules/core/src/copy.cpp ((int*)(dst1 + i))[2] = t0; i 642 modules/core/src/copy.cpp t0 = ((int*)(src0 + i))[3]; i 643 modules/core/src/copy.cpp t1 = ((int*)(src1 + i))[3]; i 645 modules/core/src/copy.cpp ((int*)(dst0 + i))[3] = t1; i 646 modules/core/src/copy.cpp ((int*)(dst1 + i))[3] = t0; i 649 modules/core/src/copy.cpp for( ; i <= size.width - 4; i += 4 ) i 651 modules/core/src/copy.cpp int t0 = ((int*)(src0 + i))[0]; i 652 modules/core/src/copy.cpp int t1 = ((int*)(src1 + i))[0]; i 654 modules/core/src/copy.cpp ((int*)(dst0 + i))[0] = t1; i 655 modules/core/src/copy.cpp ((int*)(dst1 + i))[0] = t0; i 659 modules/core/src/copy.cpp for( ; i < size.width; i++ ) i 661 modules/core/src/copy.cpp uchar t0 = src0[i]; i 662 modules/core/src/copy.cpp uchar t1 = src1[i]; i 664 modules/core/src/copy.cpp dst0[i] = t1; i 665 modules/core/src/copy.cpp dst1[i] = t0; i 962 modules/core/src/copy.cpp int i, j, k, elemSize = 1; i 977 modules/core/src/copy.cpp for( i = 0; i < left; i++ ) i 979 modules/core/src/copy.cpp j = cv::borderInterpolate(i - left, srcroi.width, borderType)*cn; i 981 modules/core/src/copy.cpp tab[i*cn + k] = j + k; i 984 modules/core/src/copy.cpp for( i = 0; i < right; i++ ) i 986 modules/core/src/copy.cpp j = cv::borderInterpolate(srcroi.width + i, srcroi.width, borderType)*cn; i 988 modules/core/src/copy.cpp tab[(i+left)*cn + k] = j + k; i 998 modules/core/src/copy.cpp for( i = 0; i < srcroi.height; i++, dstInner += dststep, src += srcstep ) i 1024 modules/core/src/copy.cpp for( i = 0; i < top; i++ ) i 1026 modules/core/src/copy.cpp j = cv::borderInterpolate(i - top, srcroi.height, borderType); i 1027 modules/core/src/copy.cpp memcpy(dst + (i - top)*dststep, dst + j*dststep, dstroi.width); i 1030 modules/core/src/copy.cpp for( i = 0; i < bottom; i++ ) i 1032 modules/core/src/copy.cpp j = cv::borderInterpolate(i + srcroi.height, srcroi.height, borderType); i 1033 modules/core/src/copy.cpp memcpy(dst + (i + srcroi.height)*dststep, dst + j*dststep, dstroi.width); i 1042 modules/core/src/copy.cpp int i, j; i 1048 modules/core/src/copy.cpp for( i = 0; i < dstroi.width; i++ ) i 1051 modules/core/src/copy.cpp constBuf[i*cn + j] = value[j]; i 1061 modules/core/src/copy.cpp for( i = 0; i < srcroi.height; i++, dstInner += dststep, src += srcstep ) i 1071 modules/core/src/copy.cpp for( i = 0; i < top; i++ ) i 1072 modules/core/src/copy.cpp memcpy(dst + (i - top)*dststep, constBuf, dstroi.width); i 1074 modules/core/src/copy.cpp for( i = 0; i < bottom; i++ ) i 1075 modules/core/src/copy.cpp memcpy(dst + (i + srcroi.height)*dststep, constBuf, dstroi.width); i 66 modules/core/src/cuda_host_mem.cpp for (int i = dims-1; i >= 0; i--) i 70 modules/core/src/cuda_host_mem.cpp if (data0 && step[i] != CV_AUTOSTEP) i 72 modules/core/src/cuda_host_mem.cpp CV_Assert(total <= step[i]); i 73 modules/core/src/cuda_host_mem.cpp total = step[i]; i 77 modules/core/src/cuda_host_mem.cpp step[i] = total; i 81 modules/core/src/cuda_host_mem.cpp total *= sizes[i]; i 915 modules/core/src/cuda_info.cpp for (int i = minorVersion(); i >= 0; --i) i 916 modules/core/src/cuda_info.cpp if (TargetArchs::hasBin(majorVersion(), i)) i 174 modules/core/src/cuda_stream.cpp for (int i = 0; i < stackCount_; ++i) i 176 modules/core/src/cuda_stream.cpp stacks_[i].datastart = ptr; i 177 modules/core/src/cuda_stream.cpp stacks_[i].dataend = ptr + stackSize_; i 178 modules/core/src/cuda_stream.cpp stacks_[i].tip = ptr; i 179 modules/core/src/cuda_stream.cpp stacks_[i].isFree = true; i 180 modules/core/src/cuda_stream.cpp stacks_[i].pool = this; i 194 modules/core/src/cuda_stream.cpp for (int i = 0; i < stackCount_; ++i) i 196 modules/core/src/cuda_stream.cpp CV_DbgAssert( stacks_[i].isFree ); i 197 modules/core/src/cuda_stream.cpp CV_DbgAssert( stacks_[i].tip == stacks_[i].datastart ); i 218 modules/core/src/cuda_stream.cpp for (int i = 0; i < stackCount_; ++i) i 220 modules/core/src/cuda_stream.cpp if (stacks_[i].isFree) i 222 modules/core/src/cuda_stream.cpp stacks_[i].isFree = false; i 223 modules/core/src/cuda_stream.cpp return &stacks_[i]; i 238 modules/core/src/cuda_stream.cpp for (int i = 0; i < stackCount_; ++i) i 240 modules/core/src/cuda_stream.cpp if (memStack == &stacks_[i]) i 348 modules/core/src/cuda_stream.cpp for (size_t i = 0; i < pools_.size(); ++i) i 350 modules/core/src/cuda_stream.cpp cudaSetDevice(static_cast<int>(i)); i 351 modules/core/src/cuda_stream.cpp pools_[i].release(); i 1707 modules/core/src/datastructs.cpp int i, count = seq->total - slice.end_index; i 1711 modules/core/src/datastructs.cpp for( i = 0; i < count; i++ ) i 1722 modules/core/src/datastructs.cpp int i, count = slice.start_index; i 1726 modules/core/src/datastructs.cpp for( i = 0; i < count; i++ ) i 1751 modules/core/src/datastructs.cpp int i, elem_size, total, from_total; i 1799 modules/core/src/datastructs.cpp for( i = 0; i < index; i++ ) i 1815 modules/core/src/datastructs.cpp for( i = 0; i < total - index; i++ ) i 1826 modules/core/src/datastructs.cpp for( i = 0; i < from_total; i++ ) i 1942 modules/core/src/datastructs.cpp int i, n, m; i 2112 modules/core/src/datastructs.cpp for( i = 0; i < n; i++ ) i 2129 modules/core/src/datastructs.cpp for( i = 0; i < m; i++ ) i 2188 modules/core/src/datastructs.cpp int i, j; i 2212 modules/core/src/datastructs.cpp for( i = 0; i < total; i++ ) i 2221 modules/core/src/datastructs.cpp for( i = 0; i < total; i++ ) i 2235 modules/core/src/datastructs.cpp for( i = 0; i < total; i++ ) i 2248 modules/core/src/datastructs.cpp idx = i; i 2249 modules/core/src/datastructs.cpp if( i < total ) i 2257 modules/core/src/datastructs.cpp i = 0, j = total; i 2259 modules/core/src/datastructs.cpp while( j > i ) i 2261 modules/core/src/datastructs.cpp int k = (i+j)>>1, code; i 2275 modules/core/src/datastructs.cpp i = k+1; i 2292 modules/core/src/datastructs.cpp int i, count; i 2299 modules/core/src/datastructs.cpp for( i = 0; i < count; i++ ) i 2335 modules/core/src/datastructs.cpp int i, j; i 2361 modules/core/src/datastructs.cpp for( i = 0; i < seq->total; i++ ) i 2379 modules/core/src/datastructs.cpp for( i = 0; i < nodes->total; i++ ) i 2445 modules/core/src/datastructs.cpp for( i = 0; i < nodes->total; i++ ) i 2966 modules/core/src/datastructs.cpp int i, total, elem_size; i 2979 modules/core/src/datastructs.cpp for( i = 0; i < total; i++ ) i 3252 modules/core/src/datastructs.cpp int i, k; i 3277 modules/core/src/datastructs.cpp for( i = 0, k = 0; i < graph->total; i++ ) i 3293 modules/core/src/datastructs.cpp for( i = 0; i < graph->edges->total; i++ ) i 3309 modules/core/src/datastructs.cpp for( i = 0, k = 0; i < graph->edges->total; i++ ) i 267 modules/core/src/directx.cpp for (int i = 0; i < (int)numPlatforms; i++) i 270 modules/core/src/directx.cpp clGetExtensionFunctionAddressForPlatform(platforms[i], "clGetDeviceIDsFromD3D11KHR"); i 276 modules/core/src/directx.cpp status = clGetDeviceIDsFromD3D11KHR(platforms[i], CL_D3D11_DEVICE_KHR, pD3D11Device, i 283 modules/core/src/directx.cpp CL_CONTEXT_PLATFORM, (cl_context_properties)platforms[i], i 295 modules/core/src/directx.cpp found = i; i 303 modules/core/src/directx.cpp for (int i = 0; i < (int)numPlatforms; i++) i 306 modules/core/src/directx.cpp clGetExtensionFunctionAddressForPlatform(platforms[i], "clGetDeviceIDsFromD3D11KHR"); i 312 modules/core/src/directx.cpp status = clGetDeviceIDsFromD3D11KHR(platforms[i], CL_D3D11_DEVICE_KHR, pD3D11Device, i 319 modules/core/src/directx.cpp CL_CONTEXT_PLATFORM, (cl_context_properties)platforms[i], i 331 modules/core/src/directx.cpp found = i; i 375 modules/core/src/directx.cpp for (int i = 0; i < (int)numPlatforms; i++) i 378 modules/core/src/directx.cpp clGetExtensionFunctionAddressForPlatform(platforms[i], "clGetDeviceIDsFromD3D10KHR"); i 384 modules/core/src/directx.cpp status = clGetDeviceIDsFromD3D10KHR(platforms[i], CL_D3D10_DEVICE_KHR, pD3D10Device, i 391 modules/core/src/directx.cpp CL_CONTEXT_PLATFORM, (cl_context_properties)platforms[i], i 403 modules/core/src/directx.cpp found = i; i 411 modules/core/src/directx.cpp for (int i = 0; i < (int)numPlatforms; i++) i 414 modules/core/src/directx.cpp clGetExtensionFunctionAddressForPlatform(platforms[i], "clGetDeviceIDsFromD3D10KHR"); i 420 modules/core/src/directx.cpp status = clGetDeviceIDsFromD3D10KHR(platforms[i], CL_D3D10_DEVICE_KHR, pD3D10Device, i 427 modules/core/src/directx.cpp CL_CONTEXT_PLATFORM, (cl_context_properties)platforms[i], i 439 modules/core/src/directx.cpp found = i; i 483 modules/core/src/directx.cpp for (int i = 0; i < (int)numPlatforms; i++) i 486 modules/core/src/directx.cpp clGetExtensionFunctionAddressForPlatform(platforms[i], "clGetDeviceIDsFromDX9MediaAdapterKHR"); i 493 modules/core/src/directx.cpp status = clGetDeviceIDsFromDX9MediaAdapterKHR(platforms[i], 1, &type, &pDirect3DDevice9Ex, i 500 modules/core/src/directx.cpp CL_CONTEXT_PLATFORM, (cl_context_properties)platforms[i], i 512 modules/core/src/directx.cpp found = i; i 520 modules/core/src/directx.cpp for (int i = 0; i < (int)numPlatforms; i++) i 523 modules/core/src/directx.cpp clGetExtensionFunctionAddressForPlatform(platforms[i], "clGetDeviceIDsFromDX9MediaAdapterKHR"); i 530 modules/core/src/directx.cpp status = clGetDeviceIDsFromDX9MediaAdapterKHR(platforms[i], 1, &type, &pDirect3DDevice9Ex, i 537 modules/core/src/directx.cpp CL_CONTEXT_PLATFORM, (cl_context_properties)platforms[i], i 549 modules/core/src/directx.cpp found = i; i 593 modules/core/src/directx.cpp for (int i = 0; i < (int)numPlatforms; i++) i 596 modules/core/src/directx.cpp clGetExtensionFunctionAddressForPlatform(platforms[i], "clGetDeviceIDsFromDX9MediaAdapterKHR"); i 603 modules/core/src/directx.cpp status = clGetDeviceIDsFromDX9MediaAdapterKHR(platforms[i], 1, &type, &pDirect3DDevice9, i 610 modules/core/src/directx.cpp CL_CONTEXT_PLATFORM, (cl_context_properties)platforms[i], i 622 modules/core/src/directx.cpp found = i; i 630 modules/core/src/directx.cpp for (int i = 0; i < (int)numPlatforms; i++) i 633 modules/core/src/directx.cpp clGetExtensionFunctionAddressForPlatform(platforms[i], "clGetDeviceIDsFromDX9MediaAdapterKHR"); i 640 modules/core/src/directx.cpp status = clGetDeviceIDsFromDX9MediaAdapterKHR(platforms[i], 1, &type, &pDirect3DDevice9, i 647 modules/core/src/directx.cpp CL_CONTEXT_PLATFORM, (cl_context_properties)platforms[i], i 659 modules/core/src/directx.cpp found = i; i 216 modules/core/src/downhill_simplex.cpp int i, j, m = p.rows, n = p.cols; i 223 modules/core/src/downhill_simplex.cpp for( i = 0; i < m; i++ ) i 225 modules/core/src/downhill_simplex.cpp const double* p_i = p.ptr<double>(i); i 237 modules/core/src/downhill_simplex.cpp int i, j, ndim = step.cols; i 251 modules/core/src/downhill_simplex.cpp for( i = 1; i <= ndim; i++ ) i 253 modules/core/src/downhill_simplex.cpp double* simplex_i = simplex.ptr<double>(i); i 256 modules/core/src/downhill_simplex.cpp simplex_i[i-1] += 0.5*step_[i-1]; i 274 modules/core/src/downhill_simplex.cpp int i, j, ndim = p.cols; i 279 modules/core/src/downhill_simplex.cpp for( i = 0; i <= ndim; i++ ) i 280 modules/core/src/downhill_simplex.cpp y_[i] = calc_f(p.ptr<double>(i)); i 297 modules/core/src/downhill_simplex.cpp for( i = 0; i <= ndim; i++ ) i 299 modules/core/src/downhill_simplex.cpp double yval = y_[i]; i 301 modules/core/src/downhill_simplex.cpp ilo = i; i 305 modules/core/src/downhill_simplex.cpp ihi = i; i 307 modules/core/src/downhill_simplex.cpp else if (yval > y_[inhi] && i != ihi) i 308 modules/core/src/downhill_simplex.cpp inhi = i; i 313 modules/core/src/downhill_simplex.cpp for( i = 0; i <= ndim; i++ ) i 315 modules/core/src/downhill_simplex.cpp double yval = y_[i]; i 316 modules/core/src/downhill_simplex.cpp if( yval == y_[ilo] && i != ihi && i != inhi ) i 318 modules/core/src/downhill_simplex.cpp ilo = i; i 333 modules/core/src/downhill_simplex.cpp for( i = 1; i <= ndim; i++ ) i 335 modules/core/src/downhill_simplex.cpp double pval = p.at<double>(i, j); i 393 modules/core/src/downhill_simplex.cpp for( i = 0; i <= ndim; i++ ) i 395 modules/core/src/downhill_simplex.cpp if (i != ilo) i 398 modules/core/src/downhill_simplex.cpp p.at<double>(i, j) = 0.5*(p.at<double>(i, j) + p.at<double>(ilo, j)); i 399 modules/core/src/downhill_simplex.cpp y_[i] = calc_f(p.ptr<double>(i)); i 125 modules/core/src/dxt.cpp #define BitRev(i,shift) \ i 126 modules/core/src/dxt.cpp ((int)((((unsigned)bitrevTab[(i)&255] << 24)+ \ i 127 modules/core/src/dxt.cpp ((unsigned)bitrevTab[((i)>> 8)&255] << 16)+ \ i 128 modules/core/src/dxt.cpp ((unsigned)bitrevTab[((i)>>16)&255] << 8)+ \ i 129 modules/core/src/dxt.cpp ((unsigned)bitrevTab[((i)>>24)])) >> (shift))) i 134 modules/core/src/dxt.cpp int nf = 0, f, i, j; i 169 modules/core/src/dxt.cpp for( i = f; i < (nf+f)/2; i++ ) i 170 modules/core/src/dxt.cpp CV_SWAP( factors[i], factors[nf-i-1+f], j ); i 181 modules/core/src/dxt.cpp int i, j, k; i 192 modules/core/src/dxt.cpp for( i = 1; i < n0-1; i++ ) i 193 modules/core/src/dxt.cpp itab[i] = i; i 217 modules/core/src/dxt.cpp for( i = 0; i < nf; i++ ) i 219 modules/core/src/dxt.cpp digits[i] = 0; i 220 modules/core/src/dxt.cpp radix[nf-i-1] = radix[nf-i]*factors[nf-i-1]; i 239 modules/core/src/dxt.cpp for( i = 0; i <= n - 4; i += 4 ) i 241 modules/core/src/dxt.cpp j = (bitrevTab[i>>2]>>shift)*a; i 242 modules/core/src/dxt.cpp itab[i] = j; i 243 modules/core/src/dxt.cpp itab[i+1] = j + na2; i 244 modules/core/src/dxt.cpp itab[i+2] = j + na4; i 245 modules/core/src/dxt.cpp itab[i+3] = j + na2 + na4; i 251 modules/core/src/dxt.cpp for( i = 0; i < n; i += 4 ) i 253 modules/core/src/dxt.cpp int i4 = i >> 2; i 255 modules/core/src/dxt.cpp itab[i] = j; i 256 modules/core/src/dxt.cpp itab[i+1] = j + na2; i 257 modules/core/src/dxt.cpp itab[i+2] = j + na4; i 258 modules/core/src/dxt.cpp itab[i+3] = j + na2 + na4; i 266 modules/core/src/dxt.cpp for( i = n, j = radix[2]; i < n0; ) i 269 modules/core/src/dxt.cpp itab[i+k] = itab[k] + j; i 270 modules/core/src/dxt.cpp if( (i += n) >= n0 ) i 283 modules/core/src/dxt.cpp for( i = 0, j = 0;; ) i 285 modules/core/src/dxt.cpp itab[i] = j; i 286 modules/core/src/dxt.cpp if( ++i >= n0 ) i 300 modules/core/src/dxt.cpp for( i = n0 & 1; i < n0; i += 2 ) i 302 modules/core/src/dxt.cpp int k0 = itab[i]; i 303 modules/core/src/dxt.cpp int k1 = itab[i+1]; i 304 modules/core/src/dxt.cpp itab0[k0] = i; i 305 modules/core/src/dxt.cpp itab0[k1] = i+1; i 336 modules/core/src/dxt.cpp for( i = 1; i < n; i++ ) i 338 modules/core/src/dxt.cpp wave[i] = w; i 339 modules/core/src/dxt.cpp wave[n0-i].re = w.re; i 340 modules/core/src/dxt.cpp wave[n0-i].im = -w.im; i 361 modules/core/src/dxt.cpp for( i = 1; i < n; i++ ) i 363 modules/core/src/dxt.cpp wave[i].re = (float)w.re; i 364 modules/core/src/dxt.cpp wave[i].im = (float)w.im; i 365 modules/core/src/dxt.cpp wave[n0-i].re = (float)w.re; i 366 modules/core/src/dxt.cpp wave[n0-i].im = (float)-w.im; i 387 modules/core/src/dxt.cpp int n = 1, i, j, nx, dw, dw0 = _dw0; i 389 modules/core/src/dxt.cpp Cv32suf t; t.i = 0x80000000; i 399 modules/core/src/dxt.cpp for( i = 0; i < n0; i += n ) i 403 modules/core/src/dxt.cpp v0 = dst + i; i 425 modules/core/src/dxt.cpp v0 = dst + i + j; i 545 modules/core/src/dxt.cpp int i, j, k; i 581 modules/core/src/dxt.cpp for( i = 0; i <= n - 2; i += 2, itab += 2*tab_step ) i 585 modules/core/src/dxt.cpp dst[i] = src[k0]; dst[i+1] = src[k1]; i 588 modules/core/src/dxt.cpp if( i < n ) i 593 modules/core/src/dxt.cpp for( i = 0; i <= n - 2; i += 2, itab += 2*tab_step ) i 598 modules/core/src/dxt.cpp dst[i] = t; i 600 modules/core/src/dxt.cpp dst[i+1] = t; i 603 modules/core/src/dxt.cpp if( i < n ) i 606 modules/core/src/dxt.cpp dst[i] = t; i 622 modules/core/src/dxt.cpp for( i = 0; i < n2; i += 2, itab += tab_step*2 ) i 627 modules/core/src/dxt.cpp CV_SWAP(dst[i+1], dsth[j], t); i 628 modules/core/src/dxt.cpp if( j > i ) i 630 modules/core/src/dxt.cpp CV_SWAP(dst[i], dst[j], t); i 631 modules/core/src/dxt.cpp CV_SWAP(dsth[i+1], dsth[j+1], t); i 639 modules/core/src/dxt.cpp for( i = 0; i < n; i++, itab += tab_step ) i 643 modules/core/src/dxt.cpp if( j > i ) i 644 modules/core/src/dxt.cpp CV_SWAP(dst[i], dst[j], t); i 651 modules/core/src/dxt.cpp for( i = 0; i <= n - 2; i += 2 ) i 653 modules/core/src/dxt.cpp T t0 = -dst[i].im; i 654 modules/core/src/dxt.cpp T t1 = -dst[i+1].im; i 655 modules/core/src/dxt.cpp dst[i].im = t0; dst[i+1].im = t1; i 658 modules/core/src/dxt.cpp if( i < n ) i 680 modules/core/src/dxt.cpp for( i = 0; i < n0; i += n ) i 685 modules/core/src/dxt.cpp v0 = dst + i; i 707 modules/core/src/dxt.cpp v0 = dst + i + j; i 739 modules/core/src/dxt.cpp for( i = 0; i < n0; i += n ) i 741 modules/core/src/dxt.cpp Complex<T>* v = dst + i; i 751 modules/core/src/dxt.cpp v = dst + i + j; i 774 modules/core/src/dxt.cpp for( i = 0; i < n0; i += n ) i 776 modules/core/src/dxt.cpp Complex<T>* v = dst + i; i 791 modules/core/src/dxt.cpp v = dst + i + j; i 810 modules/core/src/dxt.cpp for( i = 0; i < n0; i += n ) i 814 modules/core/src/dxt.cpp Complex<T>* v0 = dst + i + j; i 870 modules/core/src/dxt.cpp for( i = 0; i < n0; i += n ) i 874 modules/core/src/dxt.cpp Complex<T>* v = dst + i + j; i 951 modules/core/src/dxt.cpp for( i = 0; i < n0; i++ ) i 953 modules/core/src/dxt.cpp T t0 = dst[i].re*re_scale; i 954 modules/core/src/dxt.cpp T t1 = dst[i].im*im_scale; i 955 modules/core/src/dxt.cpp dst[i].re = t0; i 956 modules/core/src/dxt.cpp dst[i].im = t1; i 961 modules/core/src/dxt.cpp for( i = 0; i <= n0 - 2; i += 2 ) i 963 modules/core/src/dxt.cpp T t0 = -dst[i].im; i 964 modules/core/src/dxt.cpp T t1 = -dst[i+1].im; i 965 modules/core/src/dxt.cpp dst[i].im = t0; i 966 modules/core/src/dxt.cpp dst[i+1].im = t1; i 969 modules/core/src/dxt.cpp if( i < n0 ) i 1273 modules/core/src/dxt.cpp int i, t0, t1; i 1281 modules/core/src/dxt.cpp for( i = 0; i < len; i++, src += src_step, dst += dst_step ) i 1286 modules/core/src/dxt.cpp for( i = 0; i < len; i++, src += src_step, dst += dst_step ) i 1294 modules/core/src/dxt.cpp for( i = 0; i < len; i++, src += src_step, dst += dst_step ) i 1310 modules/core/src/dxt.cpp int i, t0, t1; i 1318 modules/core/src/dxt.cpp for( i = 0; i < len; i++, src += src_step ) i 1321 modules/core/src/dxt.cpp dst0[i] = t0; dst1[i] = t1; i 1326 modules/core/src/dxt.cpp for( i = 0; i < len*2; i += 2, src += src_step ) i 1329 modules/core/src/dxt.cpp dst0[i] = t0; dst0[i+1] = t1; i 1331 modules/core/src/dxt.cpp dst1[i] = t0; dst1[i+1] = t1; i 1336 modules/core/src/dxt.cpp for( i = 0; i < len*4; i += 4, src += src_step ) i 1339 modules/core/src/dxt.cpp dst0[i] = t0; dst0[i+1] = t1; i 1341 modules/core/src/dxt.cpp dst0[i+2] = t0; dst0[i+3] = t1; i 1343 modules/core/src/dxt.cpp dst1[i] = t0; dst1[i+1] = t1; i 1345 modules/core/src/dxt.cpp dst1[i+2] = t0; dst1[i+3] = t1; i 1356 modules/core/src/dxt.cpp int i, t0, t1; i 1364 modules/core/src/dxt.cpp for( i = 0; i < len; i++, dst += dst_step ) i 1366 modules/core/src/dxt.cpp t0 = src0[i]; t1 = src1[i]; i 1372 modules/core/src/dxt.cpp for( i = 0; i < len*2; i += 2, dst += dst_step ) i 1374 modules/core/src/dxt.cpp t0 = src0[i]; t1 = src0[i+1]; i 1376 modules/core/src/dxt.cpp t0 = src1[i]; t1 = src1[i+1]; i 1382 modules/core/src/dxt.cpp for( i = 0; i < len*4; i += 4, dst += dst_step ) i 1384 modules/core/src/dxt.cpp t0 = src0[i]; t1 = src0[i+1]; i 1386 modules/core/src/dxt.cpp t0 = src0[i+2]; t1 = src0[i+3]; i 1388 modules/core/src/dxt.cpp t0 = src1[i]; t1 = src1[i+1]; i 1390 modules/core/src/dxt.cpp t0 = src1[i+2]; t1 = src1[i+3]; i 1400 modules/core/src/dxt.cpp int i; i 1404 modules/core/src/dxt.cpp for( i = 1; i < (n+1)/2; i++ ) i 1406 modules/core/src/dxt.cpp p[(n-i)*2] = p[i*2-1]; i 1407 modules/core/src/dxt.cpp p[(n-i)*2+1] = -p[i*2]; i 1415 modules/core/src/dxt.cpp for( i = n-1; i > 0; i-- ) i 1416 modules/core/src/dxt.cpp p[i+1] = p[i]; i 1422 modules/core/src/dxt.cpp for( i = 1; i < (n+1)/2; i++ ) i 1424 modules/core/src/dxt.cpp p[(n-i)*2] = p[i*2-1]; i 1425 modules/core/src/dxt.cpp p[(n-i)*2+1] = -p[i*2]; i 1433 modules/core/src/dxt.cpp for( i = n-1; i > 0; i-- ) i 1434 modules/core/src/dxt.cpp p[i+1] = p[i]; i 1557 modules/core/src/dxt.cpp for( int i = range.start; i < range.end; ++i) i 1558 modules/core/src/dxt.cpp if(!ippidft(src.ptr<Ipp32fc>(i), (int)src.step,dst.ptr<Ipp32fc>(i), (int)dst.step, pDFTSpec, (Ipp8u*)pBuffer)) i 1631 modules/core/src/dxt.cpp for( int i = range.start; i < range.end; ++i) i 1632 modules/core/src/dxt.cpp if(!ippidft(src.ptr<float>(i), (int)src.step,dst.ptr<float>(i), (int)dst.step, pDFTSpec, (Ipp8u*)pBuffer)) i 1847 modules/core/src/dxt.cpp for (size_t i=0; i<radixes.size(); i++) i 1849 modules/core/src/dxt.cpp int radix = radixes[i], block = blocks[i]; i 2005 modules/core/src/dxt.cpp for (size_t i=0; i<radixes.size(); i++) i 2007 modules/core/src/dxt.cpp int radix = radixes[i]; i 2303 modules/core/src/dxt.cpp for (size_t i = 0, size = planStorage.size(); i < size; ++i) i 2305 modules/core/src/dxt.cpp const FftPlan * const plan = planStorage[i]; i 2317 modules/core/src/dxt.cpp planStorage.erase(planStorage.begin() + i); i 2433 modules/core/src/dxt.cpp int i, n = dst.cols; i 2439 modules/core/src/dxt.cpp for( i = 0; i < len; i++ ) i 2441 modules/core/src/dxt.cpp float* p = p0 + dstep*i; i 2442 modules/core/src/dxt.cpp float* q = dft_dims == 1 || i == 0 || i*2 == len ? p : p0 + dstep*(len-i); i 2455 modules/core/src/dxt.cpp for( i = 0; i < len; i++ ) i 2457 modules/core/src/dxt.cpp double* p = p0 + dstep*i; i 2458 modules/core/src/dxt.cpp double* q = dft_dims == 1 || i == 0 || i*2 == len ? p : p0 + dstep*(len-i); i 2591 modules/core/src/dxt.cpp int i, len, count, sz = 0; i 2667 modules/core/src/dxt.cpp i = nf > 1 && (factors[0] & 1) == 0; i 2668 modules/core/src/dxt.cpp if( (factors[i] & 1) != 0 && factors[i] > 5 ) i 2669 modules/core/src/dxt.cpp sz += (factors[i]+1)*complex_elem_size; i 2728 modules/core/src/dxt.cpp for( i = 0; i < nonzero_rows; i++ ) i 2730 modules/core/src/dxt.cpp const uchar* sptr = src.ptr(i); i 2731 modules/core/src/dxt.cpp uchar* dptr0 = dst.ptr(i); i 2742 modules/core/src/dxt.cpp for( ; i < count; i++ ) i 2744 modules/core/src/dxt.cpp uchar* dptr0 = dst.ptr(i); i 2870 modules/core/src/dxt.cpp for( i = a; i < b; i += 2 ) i 2872 modules/core/src/dxt.cpp if( i+1 < b ) i 2884 modules/core/src/dxt.cpp if( i+1 < b ) i 3222 modules/core/src/dxt.cpp int i; i 3256 modules/core/src/dxt.cpp for( i = 0; i <= n; i++ ) i 3258 modules/core/src/dxt.cpp wave[i] = w; i 3272 modules/core/src/dxt.cpp for( i = 0; i <= n; i++ ) i 3274 modules/core/src/dxt.cpp wave[i].re = (float)w.re; i 3275 modules/core/src/dxt.cpp wave[i].im = (float)w.im; i 3363 modules/core/src/dxt.cpp for( int i = range.start; i < range.end; ++i) i 3364 modules/core/src/dxt.cpp if(!(*ippidct)(src->ptr<float>(i), (int)src->step,dst->ptr<float>(i), (int)dst->step, pDCTSpec, (Ipp8u*)pBuffer)) i 3471 modules/core/src/dxt.cpp int i, len, count; i 3553 modules/core/src/dxt.cpp i = nf > 1 && (factors[0] & 1) == 0; i 3554 modules/core/src/dxt.cpp if( (factors[i] & 1) != 0 && factors[i] > 5 ) i 3555 modules/core/src/dxt.cpp sz += (factors[i]+1)*complex_elem_size; i 3588 modules/core/src/dxt.cpp for( i = 0; i < count; i++ ) i 3590 modules/core/src/dxt.cpp dct_func( sptr + i*sstep0, (int)sstep1, src_dft_buf, dst_dft_buf, i 3591 modules/core/src/dxt.cpp dptr + i*dstep0, (int)dstep1, len, nf, factors, i 80 modules/core/src/kmeans.cpp for ( int i = begin; i<end; i++ ) i 82 modules/core/src/kmeans.cpp tdist2[i] = std::min(normL2Sqr(data + step*i, data + stepci, dims), dist[i]); i 104 modules/core/src/kmeans.cpp int i, j, k, dims = _data.cols, N = _data.rows; i 115 modules/core/src/kmeans.cpp for( i = 0; i < N; i++ ) i 117 modules/core/src/kmeans.cpp dist[i] = normL2Sqr(data + step*i, data + step*centers[0], dims); i 118 modules/core/src/kmeans.cpp sum0 += dist[i]; i 129 modules/core/src/kmeans.cpp for( i = 0; i < N-1; i++ ) i 130 modules/core/src/kmeans.cpp if( (p -= dist[i]) <= 0 ) i 132 modules/core/src/kmeans.cpp int ci = i; i 136 modules/core/src/kmeans.cpp for( i = 0; i < N; i++ ) i 138 modules/core/src/kmeans.cpp s += tdist2[i]; i 183 modules/core/src/kmeans.cpp for( int i = begin; i<end; ++i) i 185 modules/core/src/kmeans.cpp const float *sample = data.ptr<float>(i); i 201 modules/core/src/kmeans.cpp distances[i] = min_dist; i 202 modules/core/src/kmeans.cpp labels[i] = k_best; i 263 modules/core/src/kmeans.cpp int a, iter, i, j, k; i 286 modules/core/src/kmeans.cpp for( i = 1; i < N; i++ ) i 288 modules/core/src/kmeans.cpp sample = data.ptr<float>(i); i 318 modules/core/src/kmeans.cpp for( i = 0; i < N; i++ ) i 319 modules/core/src/kmeans.cpp CV_Assert( (unsigned)labels[i] < (unsigned)K ); i 327 modules/core/src/kmeans.cpp for( i = 0; i < N; i++ ) i 329 modules/core/src/kmeans.cpp sample = data.ptr<float>(i); i 330 modules/core/src/kmeans.cpp k = labels[i]; i 382 modules/core/src/kmeans.cpp for( i = 0; i < N; i++ ) i 384 modules/core/src/kmeans.cpp if( labels[i] != max_k ) i 386 modules/core/src/kmeans.cpp sample = data.ptr<float>(i); i 392 modules/core/src/kmeans.cpp farthest_i = i; i 440 modules/core/src/kmeans.cpp for( i = 0; i < N; i++ ) i 442 modules/core/src/kmeans.cpp compactness += dist[i]; i 95 modules/core/src/lapack.cpp int i, j, k, m; i 101 modules/core/src/lapack.cpp for( i = 0; i < n; i++ ) i 104 modules/core/src/lapack.cpp V[i*vstep + j] = (_Tp)0; i 105 modules/core/src/lapack.cpp V[i*vstep + i] = (_Tp)1; i 120 modules/core/src/lapack.cpp for( m = k+1, mv = std::abs(A[astep*k + m]), i = k+2; i < n; i++ ) i 122 modules/core/src/lapack.cpp _Tp val = std::abs(A[astep*k+i]); i 124 modules/core/src/lapack.cpp mv = val, m = i; i 130 modules/core/src/lapack.cpp for( m = 0, mv = std::abs(A[k]), i = 1; i < k; i++ ) i 132 modules/core/src/lapack.cpp _Tp val = std::abs(A[astep*i+k]); i 134 modules/core/src/lapack.cpp mv = val, m = i; i 143 modules/core/src/lapack.cpp for( k = 0, mv = std::abs(A[indR[0]]), i = 1; i < n-1; i++ ) i 145 modules/core/src/lapack.cpp _Tp val = std::abs(A[astep*i + indR[i]]); i 147 modules/core/src/lapack.cpp mv = val, k = i; i 150 modules/core/src/lapack.cpp for( i = 1; i < n; i++ ) i 152 modules/core/src/lapack.cpp _Tp val = std::abs(A[astep*indC[i] + i]); i 154 modules/core/src/lapack.cpp mv = val, k = indC[i], l = i; i 178 modules/core/src/lapack.cpp for( i = 0; i < k; i++ ) i 179 modules/core/src/lapack.cpp rotate(A[astep*i+k], A[astep*i+l]); i 180 modules/core/src/lapack.cpp for( i = k+1; i < l; i++ ) i 181 modules/core/src/lapack.cpp rotate(A[astep*k+i], A[astep*i+l]); i 182 modules/core/src/lapack.cpp for( i = l+1; i < n; i++ ) i 183 modules/core/src/lapack.cpp rotate(A[astep*k+i], A[astep*l+i]); i 187 modules/core/src/lapack.cpp for( i = 0; i < n; i++ ) i 188 modules/core/src/lapack.cpp rotate(V[vstep*k+i], V[vstep*l+i]); i 197 modules/core/src/lapack.cpp for( m = idx+1, mv = std::abs(A[astep*idx + m]), i = idx+2; i < n; i++ ) i 199 modules/core/src/lapack.cpp _Tp val = std::abs(A[astep*idx+i]); i 201 modules/core/src/lapack.cpp mv = val, m = i; i 207 modules/core/src/lapack.cpp for( m = 0, mv = std::abs(A[idx]), i = 1; i < idx; i++ ) i 209 modules/core/src/lapack.cpp _Tp val = std::abs(A[astep*i+idx]); i 211 modules/core/src/lapack.cpp mv = val, m = i; i 222 modules/core/src/lapack.cpp for( i = k+1; i < n; i++ ) i 224 modules/core/src/lapack.cpp if( W[m] < W[i] ) i 225 modules/core/src/lapack.cpp m = i; i 231 modules/core/src/lapack.cpp for( i = 0; i < n; i++ ) i 232 modules/core/src/lapack.cpp std::swap(V[vstep*m + i], V[vstep*k + i]); i 399 modules/core/src/lapack.cpp int i, j, k, iter, max_iter = std::max(m, 30); i 405 modules/core/src/lapack.cpp for( i = 0; i < n; i++ ) i 409 modules/core/src/lapack.cpp _Tp t = At[i*astep + k]; i 412 modules/core/src/lapack.cpp W[i] = sd; i 417 modules/core/src/lapack.cpp Vt[i*vstep + k] = 0; i 418 modules/core/src/lapack.cpp Vt[i*vstep + i] = 1; i 426 modules/core/src/lapack.cpp for( i = 0; i < n-1; i++ ) i 427 modules/core/src/lapack.cpp for( j = i+1; j < n; j++ ) i 429 modules/core/src/lapack.cpp _Tp *Ai = At + i*astep, *Aj = At + j*astep; i 430 modules/core/src/lapack.cpp double a = W[i], p = 0, b = W[j]; i 461 modules/core/src/lapack.cpp W[i] = a; W[j] = b; i 467 modules/core/src/lapack.cpp _Tp *Vi = Vt + i*vstep, *Vj = Vt + j*vstep; i 482 modules/core/src/lapack.cpp for( i = 0; i < n; i++ ) i 486 modules/core/src/lapack.cpp _Tp t = At[i*astep + k]; i 489 modules/core/src/lapack.cpp W[i] = std::sqrt(sd); i 492 modules/core/src/lapack.cpp for( i = 0; i < n-1; i++ ) i 494 modules/core/src/lapack.cpp j = i; i 495 modules/core/src/lapack.cpp for( k = i+1; k < n; k++ ) i 500 modules/core/src/lapack.cpp if( i != j ) i 502 modules/core/src/lapack.cpp std::swap(W[i], W[j]); i 506 modules/core/src/lapack.cpp std::swap(At[i*astep + k], At[j*astep + k]); i 509 modules/core/src/lapack.cpp std::swap(Vt[i*vstep + k], Vt[j*vstep + k]); i 514 modules/core/src/lapack.cpp for( i = 0; i < n; i++ ) i 515 modules/core/src/lapack.cpp _W[i] = (_Tp)W[i]; i 521 modules/core/src/lapack.cpp for( i = 0; i < n1; i++ ) i 523 modules/core/src/lapack.cpp sd = i < n ? W[i] : 0; i 534 modules/core/src/lapack.cpp At[i*astep + k] = val; i 538 modules/core/src/lapack.cpp for( j = 0; j < i; j++ ) i 542 modules/core/src/lapack.cpp sd += At[i*astep + k]*At[j*astep + k]; i 546 modules/core/src/lapack.cpp _Tp t = (_Tp)(At[i*astep + k] - sd*At[j*astep + k]); i 547 modules/core/src/lapack.cpp At[i*astep + k] = t; i 552 modules/core/src/lapack.cpp At[i*astep + k] *= asum; i 558 modules/core/src/lapack.cpp _Tp t = At[i*astep + k]; i 566 modules/core/src/lapack.cpp At[i*astep + k] *= s; i 586 modules/core/src/lapack.cpp int i; i 587 modules/core/src/lapack.cpp for( i = 0; i < m; i++, x += dx, y += dy ) i 589 modules/core/src/lapack.cpp T2 s = a[i*inca]; i 619 modules/core/src/lapack.cpp int i, j, nm = std::min(m, n); i 624 modules/core/src/lapack.cpp for( i = 0; i < n; i++ ) i 626 modules/core/src/lapack.cpp x[i*ldx + j] = 0; i 628 modules/core/src/lapack.cpp for( i = 0; i < nm; i++ ) i 629 modules/core/src/lapack.cpp threshold += w[i*incw]; i 633 modules/core/src/lapack.cpp for( i = 0; i < nm; i++, u += udelta0, v += vdelta0 ) i 635 modules/core/src/lapack.cpp double wi = w[i*incw]; i 746 modules/core/src/lapack.cpp for( int i = 0; i < rows; i++ ) i 747 modules/core/src/lapack.cpp result *= a.at<float>(i,i); i 770 modules/core/src/lapack.cpp for( int i = 0; i < rows; i++ ) i 771 modules/core/src/lapack.cpp result *= a.at<double>(i,i); i 70 modules/core/src/lda.cpp for(int i = 0; i < (int)n; i++) { i 72 modules/core/src/lda.cpp if(src.getMat(i).total() != d) { i 73 modules/core/src/lda.cpp String error_message = format("Wrong number of elements in matrix #%d! Expected %d was %d.", i, (int)d, (int)src.getMat(i).total()); i 77 modules/core/src/lda.cpp Mat xi = data.row(i); i 79 modules/core/src/lda.cpp if(src.getMat(i).isContinuous()) { i 80 modules/core/src/lda.cpp src.getMat(i).reshape(1, 1).convertTo(xi, rtype, alpha, beta); i 82 modules/core/src/lda.cpp src.getMat(i).clone().reshape(1, 1).convertTo(xi, rtype, alpha, beta); i 115 modules/core/src/lda.cpp for (int i = 0; i < _src.rows; i++) { i 117 modules/core/src/lda.cpp _Tp a = _src.at<_Tp> (i, j); i 118 modules/core/src/lda.cpp _Tp b = _src.at<_Tp> (j, i); i 132 modules/core/src/lda.cpp for (int i = 0; i < _src.rows; i++) { i 134 modules/core/src/lda.cpp _Tp a = _src.at<_Tp> (i, j); i 135 modules/core/src/lda.cpp _Tp b = _src.at<_Tp> (j, i); i 195 modules/core/src/lda.cpp for(int i=0; i<n; i++) { i 196 modules/core/src/lda.cpp Mat r_i = X.row(i); i 235 modules/core/src/lda.cpp for(int i=0; i<n; i++) { i 236 modules/core/src/lda.cpp Mat r_i = X.row(i); i 273 modules/core/src/lda.cpp for (int i = 0; i < m; i++) i 274 modules/core/src/lda.cpp arr[i] = val; i 282 modules/core/src/lda.cpp for (int i = 0; i < m; i++) i 283 modules/core/src/lda.cpp arr[i] = new _Tp[_n]; i 291 modules/core/src/lda.cpp for (int i = 0; i < m; i++) { i 293 modules/core/src/lda.cpp arr[i][j] = val; i 335 modules/core/src/lda.cpp for (int i = 0; i < nn; i++) { i 336 modules/core/src/lda.cpp if (i < low || i > high) { i 337 modules/core/src/lda.cpp d[i] = H[i][i]; i 338 modules/core/src/lda.cpp e[i] = 0.0; i 340 modules/core/src/lda.cpp for (int j = std::max(i - 1, 0); j < nn; j++) { i 341 modules/core/src/lda.cpp norm = norm + std::abs(H[i][j]); i 416 modules/core/src/lda.cpp for (int i = 0; i <= n1; i++) { i 417 modules/core/src/lda.cpp z = H[i][n1 - 1]; i 418 modules/core/src/lda.cpp H[i][n1 - 1] = q * z + p * H[i][n1]; i 419 modules/core/src/lda.cpp H[i][n1] = q * H[i][n1] - p * z; i 424 modules/core/src/lda.cpp for (int i = low; i <= high; i++) { i 425 modules/core/src/lda.cpp z = V[i][n1 - 1]; i 426 modules/core/src/lda.cpp V[i][n1 - 1] = q * z + p * V[i][n1]; i 427 modules/core/src/lda.cpp V[i][n1] = q * V[i][n1] - p * z; i 459 modules/core/src/lda.cpp for (int i = low; i <= n1; i++) { i 460 modules/core/src/lda.cpp H[i][i] -= x; i 478 modules/core/src/lda.cpp for (int i = low; i <= n1; i++) { i 479 modules/core/src/lda.cpp H[i][i] -= s; i 512 modules/core/src/lda.cpp for (int i = m + 2; i <= n1; i++) { i 513 modules/core/src/lda.cpp H[i][i - 2] = 0.0; i 514 modules/core/src/lda.cpp if (i > m + 2) { i 515 modules/core/src/lda.cpp H[i][i - 3] = 0.0; i 568 modules/core/src/lda.cpp for (int i = 0; i <= std::min(n1, k + 3); i++) { i 569 modules/core/src/lda.cpp p = x * H[i][k] + y * H[i][k + 1]; i 571 modules/core/src/lda.cpp p = p + z * H[i][k + 2]; i 572 modules/core/src/lda.cpp H[i][k + 2] = H[i][k + 2] - p * r; i 574 modules/core/src/lda.cpp H[i][k] = H[i][k] - p; i 575 modules/core/src/lda.cpp H[i][k + 1] = H[i][k + 1] - p * q; i 580 modules/core/src/lda.cpp for (int i = low; i <= high; i++) { i 581 modules/core/src/lda.cpp p = x * V[i][k] + y * V[i][k + 1]; i 583 modules/core/src/lda.cpp p = p + z * V[i][k + 2]; i 584 modules/core/src/lda.cpp V[i][k + 2] = V[i][k + 2] - p * r; i 586 modules/core/src/lda.cpp V[i][k] = V[i][k] - p; i 587 modules/core/src/lda.cpp V[i][k + 1] = V[i][k + 1] - p * q; i 609 modules/core/src/lda.cpp for (int i = n1 - 1; i >= 0; i--) { i 610 modules/core/src/lda.cpp w = H[i][i] - p; i 613 modules/core/src/lda.cpp r = r + H[i][j] * H[j][n1]; i 615 modules/core/src/lda.cpp if (e[i] < 0.0) { i 619 modules/core/src/lda.cpp l = i; i 620 modules/core/src/lda.cpp if (e[i] == 0.0) { i 622 modules/core/src/lda.cpp H[i][n1] = -r / w; i 624 modules/core/src/lda.cpp H[i][n1] = -r / (eps * norm); i 630 modules/core/src/lda.cpp x = H[i][i + 1]; i 631 modules/core/src/lda.cpp y = H[i + 1][i]; i 632 modules/core/src/lda.cpp q = (d[i] - p) * (d[i] - p) + e[i] * e[i]; i 634 modules/core/src/lda.cpp H[i][n1] = t; i 636 modules/core/src/lda.cpp H[i + 1][n1] = (-r - w * t) / x; i 638 modules/core/src/lda.cpp H[i + 1][n1] = (-s - y * t) / z; i 644 modules/core/src/lda.cpp t = std::abs(H[i][n1]); i 646 modules/core/src/lda.cpp for (int j = i; j <= n1; j++) { i 668 modules/core/src/lda.cpp for (int i = n1 - 2; i >= 0; i--) { i 673 modules/core/src/lda.cpp ra = ra + H[i][j] * H[j][n1 - 1]; i 674 modules/core/src/lda.cpp sa = sa + H[i][j] * H[j][n1]; i 676 modules/core/src/lda.cpp w = H[i][i] - p; i 678 modules/core/src/lda.cpp if (e[i] < 0.0) { i 683 modules/core/src/lda.cpp l = i; i 684 modules/core/src/lda.cpp if (e[i] == 0) { i 686 modules/core/src/lda.cpp H[i][n1 - 1] = cdivr; i 687 modules/core/src/lda.cpp H[i][n1] = cdivi; i 692 modules/core/src/lda.cpp x = H[i][i + 1]; i 693 modules/core/src/lda.cpp y = H[i + 1][i]; i 694 modules/core/src/lda.cpp vr = (d[i] - p) * (d[i] - p) + e[i] * e[i] - q * q; i 695 modules/core/src/lda.cpp vi = (d[i] - p) * 2.0 * q; i 702 modules/core/src/lda.cpp H[i][n1 - 1] = cdivr; i 703 modules/core/src/lda.cpp H[i][n1] = cdivi; i 705 modules/core/src/lda.cpp H[i + 1][n1 - 1] = (-ra - w * H[i][n1 - 1] + q i 706 modules/core/src/lda.cpp * H[i][n1]) / x; i 707 modules/core/src/lda.cpp H[i + 1][n1] = (-sa - w * H[i][n1] - q * H[i][n1 i 710 modules/core/src/lda.cpp cdiv(-r - y * H[i][n1 - 1], -s - y * H[i][n1], z, i 712 modules/core/src/lda.cpp H[i + 1][n1 - 1] = cdivr; i 713 modules/core/src/lda.cpp H[i + 1][n1] = cdivi; i 719 modules/core/src/lda.cpp t = std::max(std::abs(H[i][n1 - 1]), std::abs(H[i][n1])); i 721 modules/core/src/lda.cpp for (int j = i; j <= n1; j++) { i 733 modules/core/src/lda.cpp for (int i = 0; i < nn; i++) { i 734 modules/core/src/lda.cpp if (i < low || i > high) { i 735 modules/core/src/lda.cpp for (int j = i; j < nn; j++) { i 736 modules/core/src/lda.cpp V[i][j] = H[i][j]; i 744 modules/core/src/lda.cpp for (int i = low; i <= high; i++) { i 747 modules/core/src/lda.cpp z = z + V[i][k] * H[k][j]; i 749 modules/core/src/lda.cpp V[i][j] = z; i 768 modules/core/src/lda.cpp for (int i = m; i <= high; i++) { i 769 modules/core/src/lda.cpp scale = scale + std::abs(H[i][m - 1]); i 776 modules/core/src/lda.cpp for (int i = high; i >= m; i--) { i 777 modules/core/src/lda.cpp ort[i] = H[i][m - 1] / scale; i 778 modules/core/src/lda.cpp h += ort[i] * ort[i]; i 792 modules/core/src/lda.cpp for (int i = high; i >= m; i--) { i 793 modules/core/src/lda.cpp f += ort[i] * H[i][j]; i 796 modules/core/src/lda.cpp for (int i = m; i <= high; i++) { i 797 modules/core/src/lda.cpp H[i][j] -= f * ort[i]; i 801 modules/core/src/lda.cpp for (int i = 0; i <= high; i++) { i 804 modules/core/src/lda.cpp f += ort[j] * H[i][j]; i 808 modules/core/src/lda.cpp H[i][j] -= f * ort[j]; i 818 modules/core/src/lda.cpp for (int i = 0; i < n; i++) { i 820 modules/core/src/lda.cpp V[i][j] = (i == j ? 1.0 : 0.0); i 826 modules/core/src/lda.cpp for (int i = m + 1; i <= high; i++) { i 827 modules/core/src/lda.cpp ort[i] = H[i][m - 1]; i 831 modules/core/src/lda.cpp for (int i = m; i <= high; i++) { i 832 modules/core/src/lda.cpp g += ort[i] * V[i][j]; i 836 modules/core/src/lda.cpp for (int i = m; i <= high; i++) { i 837 modules/core/src/lda.cpp V[i][j] += g * ort[i]; i 850 modules/core/src/lda.cpp for (int i = 0; i < n; i++) { i 851 modules/core/src/lda.cpp delete[] H[i]; i 852 modules/core/src/lda.cpp delete[] V[i]; i 871 modules/core/src/lda.cpp for (int i = 0; i < n; i++) { i 872 modules/core/src/lda.cpp _eigenvalues.at<double> (0, i) = d[i]; i 876 modules/core/src/lda.cpp for (int i = 0; i < n; i++) i 878 modules/core/src/lda.cpp _eigenvectors.at<double> (i, j) = V[i][j]; i 915 modules/core/src/lda.cpp for (int i = 0; i < tmp.rows; i++) { i 917 modules/core/src/lda.cpp this->H[i][j] = tmp.at<double>(i, j); i 991 modules/core/src/lda.cpp for(unsigned int i = 0; i < tmp.total(); i++) { i 992 modules/core/src/lda.cpp labels.push_back(tmp.at<int>(i)); i 1003 modules/core/src/lda.cpp for (int i = 0; i < (int)num2label.size(); i++) i 1004 modules/core/src/lda.cpp label2num[num2label[i]] = i; i 1005 modules/core/src/lda.cpp for (size_t i = 0; i < labels.size(); i++) i 1006 modules/core/src/lda.cpp mapped_labels[i] = label2num[labels[i]]; i 1039 modules/core/src/lda.cpp for (int i = 0; i < C; i++) { i 1040 modules/core/src/lda.cpp numClass[i] = 0; i 1041 modules/core/src/lda.cpp meanClass[i] = Mat::zeros(1, D, data.type()); //! Dx1 image vector i 1044 modules/core/src/lda.cpp for (int i = 0; i < N; i++) { i 1045 modules/core/src/lda.cpp Mat instance = data.row(i); i 1046 modules/core/src/lda.cpp int classIdx = mapped_labels[i]; i 1054 modules/core/src/lda.cpp for (int i = 0; i < C; i++) { i 1055 modules/core/src/lda.cpp meanClass[i].convertTo(meanClass[i], meanClass[i].type(), 1.0 / static_cast<double> (numClass[i])); i 1058 modules/core/src/lda.cpp for (int i = 0; i < N; i++) { i 1059 modules/core/src/lda.cpp int classIdx = mapped_labels[i]; i 1060 modules/core/src/lda.cpp Mat instance = data.row(i); i 1068 modules/core/src/lda.cpp for (int i = 0; i < C; i++) { i 1070 modules/core/src/lda.cpp subtract(meanClass[i], meanTotal, tmp); i 132 modules/core/src/lpsolver.cpp for(int i=1;i<=c.cols;i++,it++){ i 133 modules/core/src/lpsolver.cpp if(indexToRow[i]<nsize){ i 136 modules/core/src/lpsolver.cpp *it=b.at<double>(indexToRow[i]-nsize,b.cols-1); i 164 modules/core/src/lpsolver.cpp for(int i=0;i<b.rows;i++){ i 165 modules/core/src/lpsolver.cpp if(b(i,b.cols-1)<min){ i 166 modules/core/src/lpsolver.cpp min=b(i,b.cols-1); i 167 modules/core/src/lpsolver.cpp k=i; i 183 modules/core/src/lpsolver.cpp for(int i=0;i<b.rows;i++){ i 184 modules/core/src/lpsolver.cpp b(i,0)=-1; i 318 modules/core/src/lpsolver.cpp for(int i=0;i<b.cols;i++){ i 319 modules/core/src/lpsolver.cpp if(i==entering_index){ i 320 modules/core/src/lpsolver.cpp b(leaving_index,i)=1/Coef; i 322 modules/core/src/lpsolver.cpp b(leaving_index,i)/=Coef; i 326 modules/core/src/lpsolver.cpp for(int i=0;i<b.rows;i++){ i 327 modules/core/src/lpsolver.cpp if(i!=leaving_index){ i 328 modules/core/src/lpsolver.cpp double coef=b(i,entering_index); i 331 modules/core/src/lpsolver.cpp b(i,j)=-coef*b(leaving_index,j); i 333 modules/core/src/lpsolver.cpp b(i,j)-=(coef*b(leaving_index,j)); i 341 modules/core/src/lpsolver.cpp for(int i=0;i<(b.cols-1);i++){ i 342 modules/core/src/lpsolver.cpp if(i==entering_index){ i 343 modules/core/src/lpsolver.cpp c(0,i)=-Coef*b(leaving_index,i); i 345 modules/core/src/lpsolver.cpp c(0,i)-=Coef*b(leaving_index,i); i 356 modules/core/src/lpsolver.cpp for(int i=0;i<A.rows;i++){ i 357 modules/core/src/lpsolver.cpp double tmp=A(i,col1); i 358 modules/core/src/lpsolver.cpp A(i,col1)=A(i,col2); i 359 modules/core/src/lpsolver.cpp A(i,col2)=tmp; i 137 modules/core/src/mathfuncs.cpp ix = v.i & 0x7fffffff; i 138 modules/core/src/mathfuncs.cpp s = v.i & 0x80000000; i 143 modules/core/src/mathfuncs.cpp v.i = (ix & ((1<<23)-1)) | ((shx + 127)<<23); i 162 modules/core/src/mathfuncs.cpp v.i = (v.i + (ex << 23) + s) & (m.i*2 != 0 ? -1 : 0); i 187 modules/core/src/mathfuncs.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 233 modules/core/src/mathfuncs.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 367 modules/core/src/mathfuncs.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 490 modules/core/src/mathfuncs.cpp int i = 0; i 508 modules/core/src/mathfuncs.cpp for ( ; i <= len - 4; i += 4) i 510 modules/core/src/mathfuncs.cpp __m128 v_angle = _mm_loadu_ps(angle + i); i 552 modules/core/src/mathfuncs.cpp _mm_storeu_ps(sinval + i, _mm_movelh_ps(_mm_cvtpd_ps(v_sin_val_0), i 554 modules/core/src/mathfuncs.cpp _mm_storeu_ps(cosval + i, _mm_movelh_ps(_mm_cvtpd_ps(v_cos_val_0), i 560 modules/core/src/mathfuncs.cpp for( ; i < len; i++ ) i 562 modules/core/src/mathfuncs.cpp double t = angle[i]*k1; i 577 modules/core/src/mathfuncs.cpp sinval[i] = (float)sin_val; i 578 modules/core/src/mathfuncs.cpp cosval[i] = (float)cos_val; i 674 modules/core/src/mathfuncs.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 804 modules/core/src/mathfuncs.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 871 modules/core/src/mathfuncs.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 900 modules/core/src/mathfuncs.cpp int i = 0; i 903 modules/core/src/mathfuncs.cpp for ( ; i <= len - 8; i += 8) i 906 modules/core/src/mathfuncs.cpp v_uint16x8 v = v_load_expand(src + i); i 927 modules/core/src/mathfuncs.cpp v_pack_store(dst + i, v); i 930 modules/core/src/mathfuncs.cpp return i; i 939 modules/core/src/mathfuncs.cpp int i = 0; i 942 modules/core/src/mathfuncs.cpp for ( ; i <= len - 8; i += 8) i 945 modules/core/src/mathfuncs.cpp v_int16x8 v = v_load_expand(src + i); i 966 modules/core/src/mathfuncs.cpp v_pack_store(dst + i, v); i 969 modules/core/src/mathfuncs.cpp return i; i 978 modules/core/src/mathfuncs.cpp int i = 0; i 981 modules/core/src/mathfuncs.cpp for ( ; i <= len - 8; i += 8) i 984 modules/core/src/mathfuncs.cpp v_uint16x8 v = v_load(src + i); i 1005 modules/core/src/mathfuncs.cpp v_store(dst + i, v); i 1008 modules/core/src/mathfuncs.cpp return i; i 1017 modules/core/src/mathfuncs.cpp int i = 0; i 1020 modules/core/src/mathfuncs.cpp for ( ; i <= len - 8; i += 8) i 1023 modules/core/src/mathfuncs.cpp v_int16x8 v = v_load(src + i); i 1044 modules/core/src/mathfuncs.cpp v_store(dst + i, v); i 1047 modules/core/src/mathfuncs.cpp return i; i 1056 modules/core/src/mathfuncs.cpp int i = 0; i 1059 modules/core/src/mathfuncs.cpp for ( ; i <= len - 8; i += 8) i 1062 modules/core/src/mathfuncs.cpp v_int32x4 v_b1 = v_load(src + i), v_b2 = v_load(src + i + 4); i 1080 modules/core/src/mathfuncs.cpp v_store(dst + i, v_a1); i 1081 modules/core/src/mathfuncs.cpp v_store(dst + i + 4, v_a2); i 1084 modules/core/src/mathfuncs.cpp return i; i 1093 modules/core/src/mathfuncs.cpp int i = 0; i 1096 modules/core/src/mathfuncs.cpp for ( ; i <= len - 8; i += 8) i 1099 modules/core/src/mathfuncs.cpp v_float32x4 v_b1 = v_load(src + i), v_b2 = v_load(src + i + 4); i 1122 modules/core/src/mathfuncs.cpp v_store(dst + i, v_a1); i 1123 modules/core/src/mathfuncs.cpp v_store(dst + i + 4, v_a2); i 1126 modules/core/src/mathfuncs.cpp return i; i 1136 modules/core/src/mathfuncs.cpp int i = 0; i 1139 modules/core/src/mathfuncs.cpp for ( ; i <= len - 4; i += 4) i 1142 modules/core/src/mathfuncs.cpp v_float64x2 v_b1 = v_load(src + i), v_b2 = v_load(src + i + 2); i 1165 modules/core/src/mathfuncs.cpp v_store(dst + i, v_a1); i 1166 modules/core/src/mathfuncs.cpp v_store(dst + i + 2, v_a2); i 1169 modules/core/src/mathfuncs.cpp return i; i 1187 modules/core/src/mathfuncs.cpp for( int i = 0; i < len; i++ ) i 1189 modules/core/src/mathfuncs.cpp T val = src[i]; i 1190 modules/core/src/mathfuncs.cpp dst[i] = cv_abs(val) <= 2 ? tab[val + 2] : (T)0; i 1196 modules/core/src/mathfuncs.cpp int i = vop(src, dst, len, power); i 1198 modules/core/src/mathfuncs.cpp for( ; i < len; i++ ) i 1200 modules/core/src/mathfuncs.cpp WT a = 1, b = src[i]; i 1211 modules/core/src/mathfuncs.cpp dst[i] = saturate_cast<T>(a); i 1221 modules/core/src/mathfuncs.cpp int i = vop(src, dst, len, power0); i 1224 modules/core/src/mathfuncs.cpp for( ; i < len; i++ ) i 1226 modules/core/src/mathfuncs.cpp T a = 1, b = src[i]; i 1240 modules/core/src/mathfuncs.cpp dst[i] = a; i 1405 modules/core/src/mathfuncs.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 1414 modules/core/src/mathfuncs.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 1426 modules/core/src/mathfuncs.cpp inf32.i = 0x7f800000; i 1427 modules/core/src/mathfuncs.cpp nan32.i = 0x7fffffff; i 1428 modules/core/src/mathfuncs.cpp inf64.i = CV_BIG_INT(0x7FF0000000000000); i 1429 modules/core/src/mathfuncs.cpp nan64.i = CV_BIG_INT(0x7FFFFFFFFFFFFFFF); i 1438 modules/core/src/mathfuncs.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 1585 modules/core/src/mathfuncs.cpp for (int i = 0; i < as_one_channel.cols; ++i) i 1587 modules/core/src/mathfuncs.cpp if (as_one_channel.at<typename type_ass::type>(j ,i) < minVal || as_one_channel.at<typename type_ass::type>(j ,i) > maxVal) i 1590 modules/core/src/mathfuncs.cpp bad_pt.x = i % src.channels(); i 1591 modules/core/src/mathfuncs.cpp bad_value = as_one_channel.at<typename type_ass::type>(j ,i); i 1621 modules/core/src/mathfuncs.cpp for ( size_t i = 0; i < it.nplanes; i++, ++it ) i 1646 modules/core/src/mathfuncs.cpp int i, loc = 0; i 1659 modules/core/src/mathfuncs.cpp ia = CV_TOGGLE_FLT(a.i); i 1660 modules/core/src/mathfuncs.cpp ib = CV_TOGGLE_FLT(b.i); i 1664 modules/core/src/mathfuncs.cpp for( i = 0; i < size.width; i++ ) i 1666 modules/core/src/mathfuncs.cpp int val = isrc[i]; i 1671 modules/core/src/mathfuncs.cpp badPt = Point((loc + i) % src.cols, (loc + i) / src.cols); i 1672 modules/core/src/mathfuncs.cpp badValue = ((const float*)isrc)[i]; i 1688 modules/core/src/mathfuncs.cpp ia = CV_TOGGLE_DBL(a.i); i 1689 modules/core/src/mathfuncs.cpp ib = CV_TOGGLE_DBL(b.i); i 1693 modules/core/src/mathfuncs.cpp for( i = 0; i < size.width; i++ ) i 1695 modules/core/src/mathfuncs.cpp int64 val = isrc[i]; i 1700 modules/core/src/mathfuncs.cpp badPt = Point((loc + i) % src.cols, (loc + i) / src.cols); i 1701 modules/core/src/mathfuncs.cpp badValue = ((const double*)isrc)[i]; i 1760 modules/core/src/mathfuncs.cpp __m128i v_val = _mm_set1_epi32(val.i); i 1763 modules/core/src/mathfuncs.cpp v_val = vdupq_n_s32(val.i); i 1766 modules/core/src/mathfuncs.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 1794 modules/core/src/mathfuncs.cpp tptr[j] = val.i; i 1923 modules/core/src/mathfuncs.cpp int i = -1, n = 0; i 1931 modules/core/src/mathfuncs.cpp a0 = coeffs.at<float>(++i); i 1933 modules/core/src/mathfuncs.cpp a1 = coeffs.at<float>(i+1); i 1934 modules/core/src/mathfuncs.cpp a2 = coeffs.at<float>(i+2); i 1935 modules/core/src/mathfuncs.cpp a3 = coeffs.at<float>(i+3); i 1940 modules/core/src/mathfuncs.cpp a0 = coeffs.at<double>(++i); i 1942 modules/core/src/mathfuncs.cpp a1 = coeffs.at<double>(i+1); i 1943 modules/core/src/mathfuncs.cpp a2 = coeffs.at<double>(i+2); i 1944 modules/core/src/mathfuncs.cpp a3 = coeffs.at<double>(i+3); i 2042 modules/core/src/mathfuncs.cpp int iter, i, j; i 2062 modules/core/src/mathfuncs.cpp for( i = 0; i <= n; i++ ) i 2063 modules/core/src/mathfuncs.cpp coeffs[i] = C(rcoeffs[i], 0); i 2074 modules/core/src/mathfuncs.cpp for( i = 0; i < n; i++ ) i 2076 modules/core/src/mathfuncs.cpp roots[i] = p; i 2084 modules/core/src/mathfuncs.cpp for( i = 0; i < n; i++ ) i 2086 modules/core/src/mathfuncs.cpp p = roots[i]; i 2091 modules/core/src/mathfuncs.cpp if( j != i ) denom = denom * (p - roots[j]); i 2094 modules/core/src/mathfuncs.cpp roots[i] = p - num; i 2104 modules/core/src/mathfuncs.cpp for( i = 0; i < n; i++ ) i 2105 modules/core/src/mathfuncs.cpp if( fabs(roots[i].im) < verySmallEps ) i 2106 modules/core/src/mathfuncs.cpp roots[i].im = 0; i 90 modules/core/src/matmul.cpp int i, j; i 91 modules/core/src/matmul.cpp for( i = 0; i < size.width; i++, dst += dst_step, src += pix_size ) i 138 modules/core/src/matmul.cpp int i, j, k, n = a_size.width, m = d_size.width, drows = d_size.height; i 192 modules/core/src/matmul.cpp for( i = 0; i < drows; i++, _c_data += c_step0, d_data += d_step ) i 194 modules/core/src/matmul.cpp WT al = WT(a_data[i])*alpha; i 224 modules/core/src/matmul.cpp for( i = 0; i < drows; i++, _a_data += a_step0, _c_data += c_step0, d_data += d_step ) i 264 modules/core/src/matmul.cpp for( i = 0; i < drows; i++, _a_data += a_step0, i 328 modules/core/src/matmul.cpp for( i = 0; i < drows; i++, _a_data += a_step0, _c_data += c_step0, d_data += d_step ) i 385 modules/core/src/matmul.cpp int i, j, k, n = a_size.width, m = d_size.width; i 410 modules/core/src/matmul.cpp for( i = 0; i < d_size.height; i++, _a_data += a_step0, d_data += d_step ) i 439 modules/core/src/matmul.cpp for( i = 0; i < d_size.height; i++, _a_data += a_step0, d_data += d_step ) i 891 modules/core/src/matmul.cpp int i, len = 0, type = A.type(); i 955 modules/core/src/matmul.cpp for( i = 0; i < d_size.height; i++, d += d_step, a += a_step, c += c_step ) i 972 modules/core/src/matmul.cpp for( i = 0; i < d_size.width; i++, d++, b++, c += c_step0 ) i 986 modules/core/src/matmul.cpp for( i = 0; i < d_size.height; i++, d += d_step, a += a_step, c += c_step ) i 1005 modules/core/src/matmul.cpp for( i = 0; i < d_size.width; i++, d++, b++, c += c_step0 ) i 1022 modules/core/src/matmul.cpp for( i = 0; i < d_size.height; i++, d += d_step, a += a_step, c += c_step ) i 1043 modules/core/src/matmul.cpp for( i = 0; i < d_size.width; i++, d++, b++, c += c_step0 ) i 1082 modules/core/src/matmul.cpp for( i = 0; i < d_size.height; i++, d += d_step, a += a_step, c += c_step ) i 1099 modules/core/src/matmul.cpp for( i = 0; i < d_size.width; i++, d++, b++, c += c_step0 ) i 1113 modules/core/src/matmul.cpp for( i = 0; i < d_size.height; i++, d += d_step, a += a_step, c += c_step ) i 1132 modules/core/src/matmul.cpp for( i = 0; i < d_size.width; i++, d++, b++, c += c_step0 ) i 1149 modules/core/src/matmul.cpp for( i = 0; i < d_size.height; i++, d += d_step, a += a_step, c += c_step ) i 1170 modules/core/src/matmul.cpp for( i = 0; i < d_size.width; i++, d++, b++, c += c_step0 ) i 1381 modules/core/src/matmul.cpp for( i = 0; i < d_size.height; i += di ) i 1384 modules/core/src/matmul.cpp if( i + di >= d_size.height || 8*(i + di) + di > 8*d_size.height ) i 1385 modules/core/src/matmul.cpp di = d_size.height - i; i 1389 modules/core/src/matmul.cpp uchar* _d = matD->ptr() + i*matD->step + j*elem_size; i 1390 modules/core/src/matmul.cpp const uchar* _c = Cdata + i*c_step0 + j*c_step1; i 1406 modules/core/src/matmul.cpp const uchar* _a = A.ptr() + i*a_step0 + k*a_step1; i 1453 modules/core/src/matmul.cpp matD->ptr(i) + j*elem_size, i 1977 modules/core/src/matmul.cpp int i, j; i 1991 modules/core/src/matmul.cpp for( i = 0, isDiag = true; isDiag && i < scn; i++ ) i 1995 modules/core/src/matmul.cpp double v = mtype == CV_32F ? m.at<float>(i, j) : m.at<double>(i, j); i 1996 modules/core/src/matmul.cpp if( i != j && fabs(v) > eps ) i 2008 modules/core/src/matmul.cpp size_t i, total = it.size; i 2010 modules/core/src/matmul.cpp for( i = 0; i < it.nplanes; i++, ++it ) i 2025 modules/core/src/matmul.cpp int i; i 2029 modules/core/src/matmul.cpp for( i = 0; i < len*2; i += 2 ) i 2031 modules/core/src/matmul.cpp T x = src[i], y = src[i + 1]; i 2037 modules/core/src/matmul.cpp dst[i] = (T)((x*m[0] + y*m[1] + m[2])*w); i 2038 modules/core/src/matmul.cpp dst[i+1] = (T)((x*m[3] + y*m[4] + m[5])*w); i 2041 modules/core/src/matmul.cpp dst[i] = dst[i+1] = (T)0; i 2046 modules/core/src/matmul.cpp for( i = 0; i < len*3; i += 3 ) i 2048 modules/core/src/matmul.cpp T x = src[i], y = src[i + 1], z = src[i + 2]; i 2054 modules/core/src/matmul.cpp dst[i] = (T)((x*m[0] + y*m[1] + z*m[2] + m[3]) * w); i 2055 modules/core/src/matmul.cpp dst[i+1] = (T)((x*m[4] + y*m[5] + z*m[6] + m[7]) * w); i 2056 modules/core/src/matmul.cpp dst[i+2] = (T)((x*m[8] + y*m[9] + z*m[10] + m[11]) * w); i 2059 modules/core/src/matmul.cpp dst[i] = dst[i+1] = dst[i+2] = (T)0; i 2064 modules/core/src/matmul.cpp for( i = 0; i < len; i++, src += 3, dst += 2 ) i 2081 modules/core/src/matmul.cpp for( i = 0; i < len; i++, src += scn, dst += dcn ) i 2153 modules/core/src/matmul.cpp size_t i, total = it.size; i 2155 modules/core/src/matmul.cpp for( i = 0; i < it.nplanes; i++, ++it ) i 2170 modules/core/src/matmul.cpp int i = 0; i 2176 modules/core/src/matmul.cpp for( ; i <= len - 8; i += 8 ) i 2179 modules/core/src/matmul.cpp x0 = _mm_load_ps(src1 + i); x1 = _mm_load_ps(src1 + i + 4); i 2180 modules/core/src/matmul.cpp y0 = _mm_load_ps(src2 + i); y1 = _mm_load_ps(src2 + i + 4); i 2183 modules/core/src/matmul.cpp _mm_store_ps(dst + i, t0); i 2184 modules/core/src/matmul.cpp _mm_store_ps(dst + i + 4, t1); i 2187 modules/core/src/matmul.cpp for( ; i <= len - 8; i += 8 ) i 2190 modules/core/src/matmul.cpp x0 = _mm_loadu_ps(src1 + i); x1 = _mm_loadu_ps(src1 + i + 4); i 2191 modules/core/src/matmul.cpp y0 = _mm_loadu_ps(src2 + i); y1 = _mm_loadu_ps(src2 + i + 4); i 2194 modules/core/src/matmul.cpp _mm_storeu_ps(dst + i, t0); i 2195 modules/core/src/matmul.cpp _mm_storeu_ps(dst + i + 4, t1); i 2202 modules/core/src/matmul.cpp for ( ; i <= len - 4; i += 4) i 2204 modules/core/src/matmul.cpp float32x4_t v_src1 = vld1q_f32(src1 + i), v_src2 = vld1q_f32(src2 + i); i 2205 modules/core/src/matmul.cpp vst1q_f32(dst + i, vaddq_f32(vmulq_n_f32(v_src1, alpha), v_src2)); i 2211 modules/core/src/matmul.cpp for( ; i <= len - 4; i += 4 ) i 2214 modules/core/src/matmul.cpp t0 = src1[i]*alpha + src2[i]; i 2215 modules/core/src/matmul.cpp t1 = src1[i+1]*alpha + src2[i+1]; i 2216 modules/core/src/matmul.cpp dst[i] = t0; dst[i+1] = t1; i 2217 modules/core/src/matmul.cpp t0 = src1[i+2]*alpha + src2[i+2]; i 2218 modules/core/src/matmul.cpp t1 = src1[i+3]*alpha + src2[i+3]; i 2219 modules/core/src/matmul.cpp dst[i+2] = t0; dst[i+3] = t1; i 2221 modules/core/src/matmul.cpp for(; i < len; i++ ) i 2222 modules/core/src/matmul.cpp dst[i] = src1[i]*alpha + src2[i]; i 2230 modules/core/src/matmul.cpp int i = 0; i 2235 modules/core/src/matmul.cpp for( ; i <= len - 4; i += 4 ) i 2238 modules/core/src/matmul.cpp x0 = _mm_load_pd(src1 + i); x1 = _mm_load_pd(src1 + i + 2); i 2239 modules/core/src/matmul.cpp y0 = _mm_load_pd(src2 + i); y1 = _mm_load_pd(src2 + i + 2); i 2242 modules/core/src/matmul.cpp _mm_store_pd(dst + i, t0); i 2243 modules/core/src/matmul.cpp _mm_store_pd(dst + i + 2, t1); i 2249 modules/core/src/matmul.cpp for( ; i <= len - 4; i += 4 ) i 2252 modules/core/src/matmul.cpp t0 = src1[i]*alpha + src2[i]; i 2253 modules/core/src/matmul.cpp t1 = src1[i+1]*alpha + src2[i+1]; i 2254 modules/core/src/matmul.cpp dst[i] = t0; dst[i+1] = t1; i 2255 modules/core/src/matmul.cpp t0 = src1[i+2]*alpha + src2[i+2]; i 2256 modules/core/src/matmul.cpp t1 = src1[i+3]*alpha + src2[i+3]; i 2257 modules/core/src/matmul.cpp dst[i+2] = t0; dst[i+3] = t1; i 2259 modules/core/src/matmul.cpp for(; i < len; i++ ) i 2260 modules/core/src/matmul.cpp dst[i] = src1[i]*alpha + src2[i]; i 2350 modules/core/src/matmul.cpp size_t i, len = it.size*cn; i 2352 modules/core/src/matmul.cpp for( i = 0; i < it.nplanes; i++, ++it ) i 2383 modules/core/src/matmul.cpp for( int i = 0; i < nsamples; i++ ) i 2385 modules/core/src/matmul.cpp CV_Assert( data[i].size() == size && data[i].type() == type ); i 2386 modules/core/src/matmul.cpp if( data[i].isContinuous() ) i 2387 modules/core/src/matmul.cpp memcpy( _data.ptr(i), data[i].ptr(), sz*esz ); i 2390 modules/core/src/matmul.cpp Mat dataRow(size.height, size.width, type, _data.ptr(i)); i 2391 modules/core/src/matmul.cpp data[i].copyTo(dataRow); i 2416 modules/core/src/matmul.cpp int i = 0; i 2417 modules/core/src/matmul.cpp for(std::vector<cv::Mat>::iterator each = src.begin(); each != src.end(); each++, i++ ) i 2420 modules/core/src/matmul.cpp Mat dataRow(size.height, size.width, type, _data.ptr(i)); i 2492 modules/core/src/matmul.cpp int i, j, len = sz.width*sz.height*v1.channels(); i 2518 modules/core/src/matmul.cpp for( i = 0; i < sz.width; i++ ) i 2519 modules/core/src/matmul.cpp diff[i] = src1[i] - src2[i]; i 2523 modules/core/src/matmul.cpp for( i = 0; i < len; i++, mat += matstep ) i 2534 modules/core/src/matmul.cpp result += row_sum * diff[i]; i 2549 modules/core/src/matmul.cpp for( i = 0; i < sz.width; i++ ) i 2550 modules/core/src/matmul.cpp diff[i] = src1[i] - src2[i]; i 2554 modules/core/src/matmul.cpp for( i = 0; i < len; i++, mat += matstep ) i 2565 modules/core/src/matmul.cpp result += row_sum * diff[i]; i 2584 modules/core/src/matmul.cpp int i, j, k; i 2610 modules/core/src/matmul.cpp for( i = 0; i < size.height; i++ ) i 2611 modules/core/src/matmul.cpp delta_buf[i*4] = delta_buf[i*4+1] = i 2612 modules/core/src/matmul.cpp delta_buf[i*4+2] = delta_buf[i*4+3] = delta[i*deltastep]; i 2618 modules/core/src/matmul.cpp for( i = 0; i < size.width; i++, tdst += dststep ) i 2621 modules/core/src/matmul.cpp col_buf[k] = src[k*srcstep+i]; i 2623 modules/core/src/matmul.cpp for( j = i; j <= size.width - 4; j += 4 ) i 2655 modules/core/src/matmul.cpp for( i = 0; i < size.width; i++, tdst += dststep ) i 2659 modules/core/src/matmul.cpp col_buf[k] = src[k*srcstep+i] - delta[k*deltastep+i]; i 2662 modules/core/src/matmul.cpp col_buf[k] = src[k*srcstep+i] - delta_buf[k*deltastep]; i 2664 modules/core/src/matmul.cpp for( j = i; j <= size.width - 4; j += 4 ) i 2703 modules/core/src/matmul.cpp int i, j, k; i 2715 modules/core/src/matmul.cpp for( i = 0; i < size.height; i++, tdst += dststep ) i 2716 modules/core/src/matmul.cpp for( j = i; j < size.height; j++ ) i 2719 modules/core/src/matmul.cpp const sT *tsrc1 = src + i*srcstep; i 2736 modules/core/src/matmul.cpp for( i = 0; i < size.height; i++, tdst += dststep ) i 2738 modules/core/src/matmul.cpp const sT *tsrc1 = src + i*srcstep; i 2739 modules/core/src/matmul.cpp const dT *tdelta1 = delta + i*deltastep; i 2748 modules/core/src/matmul.cpp for( j = i; j < size.height; j++ ) i 2901 modules/core/src/matmul.cpp int i = 0; i 2905 modules/core/src/matmul.cpp for( ; i <= len - 4; i += 4 ) i 2906 modules/core/src/matmul.cpp result += (double)src1[i]*src2[i] + (double)src1[i+1]*src2[i+1] + i 2907 modules/core/src/matmul.cpp (double)src1[i+2]*src2[i+2] + (double)src1[i+3]*src2[i+3]; i 2909 modules/core/src/matmul.cpp for( ; i < len; i++ ) i 2910 modules/core/src/matmul.cpp result += (double)src1[i]*src2[i]; i 2932 modules/core/src/matmul.cpp int i = 0; i 2941 modules/core/src/matmul.cpp while( i < len0 ) i 2943 modules/core/src/matmul.cpp blockSize = std::min(len0 - i, blockSize0); i 2974 modules/core/src/matmul.cpp i += blockSize; i 2982 modules/core/src/matmul.cpp while( i < len0 ) i 2984 modules/core/src/matmul.cpp blockSize = std::min(len0 - i, blockSize0); i 3014 modules/core/src/matmul.cpp i += blockSize; i 3017 modules/core/src/matmul.cpp return r + dotProd_(src1, src2, len - i); i 3023 modules/core/src/matmul.cpp int i = 0; i 3033 modules/core/src/matmul.cpp while( i < len0 ) i 3035 modules/core/src/matmul.cpp blockSize = std::min(len0 - i, blockSize0); i 3068 modules/core/src/matmul.cpp i += blockSize; i 3076 modules/core/src/matmul.cpp while( i < len0 ) i 3078 modules/core/src/matmul.cpp blockSize = std::min(len0 - i, blockSize0); i 3108 modules/core/src/matmul.cpp i += blockSize; i 3112 modules/core/src/matmul.cpp return r + dotProd_(src1, src2, len - i); i 3169 modules/core/src/matmul.cpp int i = 0; i 3186 modules/core/src/matmul.cpp while( i < len0 ) i 3188 modules/core/src/matmul.cpp blockSize = std::min(len0 - i, blockSize0); i 3200 modules/core/src/matmul.cpp i += blockSize; i 3203 modules/core/src/matmul.cpp return r + dotProd_(src1, src2, len - i); i 3259 modules/core/src/matmul.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 3347 modules/core/src/matmul.cpp for( int i = 0; i < count; i++ ) i 3348 modules/core/src/matmul.cpp data[i] = cv::cvarrToMat(vecarr[i]); i 76 modules/core/src/matrix.cpp for( int i = 0; i < dims; i++ ) i 78 modules/core/src/matrix.cpp CV_Assert( sz[i] <= (size_t)INT_MAX ); i 79 modules/core/src/matrix.cpp if( sz[i] == 0 ) i 82 modules/core/src/matrix.cpp srcptr += srcofs[i]*(i <= dims-2 ? srcstep[i] : 1); i 83 modules/core/src/matrix.cpp isz[i] = (int)sz[i]; i 107 modules/core/src/matrix.cpp for( int i = 0; i < dims; i++ ) i 109 modules/core/src/matrix.cpp CV_Assert( sz[i] <= (size_t)INT_MAX ); i 110 modules/core/src/matrix.cpp if( sz[i] == 0 ) i 113 modules/core/src/matrix.cpp dstptr += dstofs[i]*(i <= dims-2 ? dststep[i] : 1); i 114 modules/core/src/matrix.cpp isz[i] = (int)sz[i]; i 138 modules/core/src/matrix.cpp for( int i = 0; i < dims; i++ ) i 140 modules/core/src/matrix.cpp CV_Assert( sz[i] <= (size_t)INT_MAX ); i 141 modules/core/src/matrix.cpp if( sz[i] == 0 ) i 144 modules/core/src/matrix.cpp srcptr += srcofs[i]*(i <= dims-2 ? srcstep[i] : 1); i 146 modules/core/src/matrix.cpp dstptr += dstofs[i]*(i <= dims-2 ? dststep[i] : 1); i 147 modules/core/src/matrix.cpp isz[i] = (int)sz[i]; i 176 modules/core/src/matrix.cpp for( int i = dims-1; i >= 0; i-- ) i 180 modules/core/src/matrix.cpp if( data0 && step[i] != CV_AUTOSTEP ) i 182 modules/core/src/matrix.cpp CV_Assert(total <= step[i]); i 183 modules/core/src/matrix.cpp total = step[i]; i 186 modules/core/src/matrix.cpp step[i] = total; i 188 modules/core/src/matrix.cpp total *= sizes[i]; i 289 modules/core/src/matrix.cpp int i; i 290 modules/core/src/matrix.cpp for( i = _dims-1; i >= 0; i-- ) i 292 modules/core/src/matrix.cpp int s = _sz[i]; i 294 modules/core/src/matrix.cpp m.size.p[i] = s; i 298 modules/core/src/matrix.cpp if (_steps[i] % esz1 != 0) i 303 modules/core/src/matrix.cpp m.step.p[i] = i < _dims-1 ? _steps[i] : esz; i 307 modules/core/src/matrix.cpp m.step.p[i] = total; i 325 modules/core/src/matrix.cpp int i, j; i 326 modules/core/src/matrix.cpp for( i = 0; i < m.dims; i++ ) i 328 modules/core/src/matrix.cpp if( m.size[i] > 1 ) i 332 modules/core/src/matrix.cpp for( j = m.dims-1; j > i; j-- ) i 339 modules/core/src/matrix.cpp if( j <= i && t == (size_t)t ) i 359 modules/core/src/matrix.cpp for( int i = 0; i < d-1; i++ ) i 360 modules/core/src/matrix.cpp m.dataend += (m.size[i] - 1)*m.step[i]; i 372 modules/core/src/matrix.cpp int i; i 380 modules/core/src/matrix.cpp for( i = 0; i < d; i++ ) i 381 modules/core/src/matrix.cpp if( size[i] != _sizes[i] ) i 383 modules/core/src/matrix.cpp if( i == d && (d > 1 || size[1] == 1)) i 423 modules/core/src/matrix.cpp for( int i = 0; i < dims; i++ ) i 425 modules/core/src/matrix.cpp size[i] = m.size[i]; i 426 modules/core/src/matrix.cpp step[i] = m.step[i]; i 447 modules/core/src/matrix.cpp for( int i = 2; i < m.dims; i++ ) i 448 modules/core/src/matrix.cpp rs[i] = Range::all(); i 526 modules/core/src/matrix.cpp int i, d = m.dims; i 529 modules/core/src/matrix.cpp for( i = 0; i < d; i++ ) i 531 modules/core/src/matrix.cpp Range r = ranges[i]; i 532 modules/core/src/matrix.cpp CV_Assert( r == Range::all() || (0 <= r.start && r.start < r.end && r.end <= m.size[i]) ); i 535 modules/core/src/matrix.cpp for( i = 0; i < d; i++ ) i 537 modules/core/src/matrix.cpp Range r = ranges[i]; i 538 modules/core/src/matrix.cpp if( r != Range::all() && r != Range(0, size.p[i])) i 540 modules/core/src/matrix.cpp size.p[i] = r.end - r.start; i 541 modules/core/src/matrix.cpp data += r.start*step.p[i]; i 560 modules/core/src/matrix.cpp int i, d = m->dims; i 561 modules/core/src/matrix.cpp for( i = 0; i < d; i++ ) i 563 modules/core/src/matrix.cpp _sizes[i] = m->dim[i].size; i 564 modules/core/src/matrix.cpp _steps[i] = m->dim[i].step; i 1038 modules/core/src/matrix.cpp int i, depth = CV_MAT_DEPTH(type), cn = CV_MAT_CN(type); i 1045 modules/core/src/matrix.cpp for(i = 0; i < cn; i++) i 1046 modules/core/src/matrix.cpp buf[i] = saturate_cast<uchar>(s.val[i]); i 1047 modules/core/src/matrix.cpp for(; i < unroll_to; i++) i 1048 modules/core/src/matrix.cpp buf[i] = buf[i-cn]; i 1054 modules/core/src/matrix.cpp for(i = 0; i < cn; i++) i 1055 modules/core/src/matrix.cpp buf[i] = saturate_cast<schar>(s.val[i]); i 1056 modules/core/src/matrix.cpp for(; i < unroll_to; i++) i 1057 modules/core/src/matrix.cpp buf[i] = buf[i-cn]; i 1063 modules/core/src/matrix.cpp for(i = 0; i < cn; i++) i 1064 modules/core/src/matrix.cpp buf[i] = saturate_cast<ushort>(s.val[i]); i 1065 modules/core/src/matrix.cpp for(; i < unroll_to; i++) i 1066 modules/core/src/matrix.cpp buf[i] = buf[i-cn]; i 1072 modules/core/src/matrix.cpp for(i = 0; i < cn; i++) i 1073 modules/core/src/matrix.cpp buf[i] = saturate_cast<short>(s.val[i]); i 1074 modules/core/src/matrix.cpp for(; i < unroll_to; i++) i 1075 modules/core/src/matrix.cpp buf[i] = buf[i-cn]; i 1081 modules/core/src/matrix.cpp for(i = 0; i < cn; i++) i 1082 modules/core/src/matrix.cpp buf[i] = saturate_cast<int>(s.val[i]); i 1083 modules/core/src/matrix.cpp for(; i < unroll_to; i++) i 1084 modules/core/src/matrix.cpp buf[i] = buf[i-cn]; i 1090 modules/core/src/matrix.cpp for(i = 0; i < cn; i++) i 1091 modules/core/src/matrix.cpp buf[i] = saturate_cast<float>(s.val[i]); i 1092 modules/core/src/matrix.cpp for(; i < unroll_to; i++) i 1093 modules/core/src/matrix.cpp buf[i] = buf[i-cn]; i 1099 modules/core/src/matrix.cpp for(i = 0; i < cn; i++) i 1100 modules/core/src/matrix.cpp buf[i] = saturate_cast<double>(s.val[i]); i 1101 modules/core/src/matrix.cpp for(; i < unroll_to; i++) i 1102 modules/core/src/matrix.cpp buf[i] = buf[i-cn]; i 1115 modules/core/src/matrix.cpp Mat _InputArray::getMat_(int i) const i 1123 modules/core/src/matrix.cpp if( i < 0 ) i 1125 modules/core/src/matrix.cpp return m->row(i); i 1131 modules/core/src/matrix.cpp if( i < 0 ) i 1133 modules/core/src/matrix.cpp return m->getMat(accessFlags).row(i); i 1138 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 1144 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 1150 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 1159 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 1177 modules/core/src/matrix.cpp int t = type(i); i 1179 modules/core/src/matrix.cpp CV_Assert( 0 <= i && i < (int)vv.size() ); i 1180 modules/core/src/matrix.cpp const std::vector<uchar>& v = vv[i]; i 1182 modules/core/src/matrix.cpp return !v.empty() ? Mat(size(i), t, (void*)&v[0]) : Mat(); i 1188 modules/core/src/matrix.cpp CV_Assert( 0 <= i && i < (int)v.size() ); i 1190 modules/core/src/matrix.cpp return v[i]; i 1196 modules/core/src/matrix.cpp CV_Assert( 0 <= i && i < (int)v.size() ); i 1198 modules/core/src/matrix.cpp return v[i].getMat(accessFlags); i 1203 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 1210 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 1217 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 1228 modules/core/src/matrix.cpp UMat _InputArray::getUMat(int i) const i 1236 modules/core/src/matrix.cpp if( i < 0 ) i 1238 modules/core/src/matrix.cpp return m->row(i); i 1244 modules/core/src/matrix.cpp CV_Assert( 0 <= i && i < (int)v.size() ); i 1246 modules/core/src/matrix.cpp return v[i]; i 1252 modules/core/src/matrix.cpp if( i < 0 ) i 1254 modules/core/src/matrix.cpp return m->row(i).getUMat(accessFlags); i 1257 modules/core/src/matrix.cpp return getMat(i).getUMat(accessFlags); i 1268 modules/core/src/matrix.cpp int i, n = (int)m.size[0]; i 1271 modules/core/src/matrix.cpp for( i = 0; i < n; i++ ) i 1272 modules/core/src/matrix.cpp mv[i] = m.dims == 2 ? Mat(1, m.cols, m.type(), (void*)m.ptr(i)) : i 1273 modules/core/src/matrix.cpp Mat(m.dims-1, &m.size[1], m.type(), (void*)m.ptr(i), &m.step[1]); i 1280 modules/core/src/matrix.cpp int i, n = m.size[0]; i 1283 modules/core/src/matrix.cpp for( i = 0; i < n; i++ ) i 1284 modules/core/src/matrix.cpp mv[i] = m.row(i); i 1290 modules/core/src/matrix.cpp size_t i, n = sz.height, esz = CV_ELEM_SIZE(flags); i 1293 modules/core/src/matrix.cpp for( i = 0; i < n; i++ ) i 1294 modules/core/src/matrix.cpp mv[i] = Mat(1, sz.width, CV_MAT_TYPE(flags), (uchar*)obj + esz*sz.width*i); i 1302 modules/core/src/matrix.cpp size_t i, n = v.size(), esz = CV_ELEM_SIZE(flags); i 1306 modules/core/src/matrix.cpp for( i = 0; i < n; i++ ) i 1307 modules/core/src/matrix.cpp mv[i] = Mat(1, cn, t, (void*)(&v[0] + esz*i)); i 1320 modules/core/src/matrix.cpp int i, n = (int)vv.size(); i 1324 modules/core/src/matrix.cpp for( i = 0; i < n; i++ ) i 1326 modules/core/src/matrix.cpp const std::vector<uchar>& v = vv[i]; i 1327 modules/core/src/matrix.cpp mv[i] = Mat(size(i), t, (void*)&v[0]); i 1335 modules/core/src/matrix.cpp size_t i, n = v.size(); i 1338 modules/core/src/matrix.cpp for( i = 0; i < n; i++ ) i 1339 modules/core/src/matrix.cpp mv[i] = v[i]; i 1346 modules/core/src/matrix.cpp size_t i, n = v.size(); i 1349 modules/core/src/matrix.cpp for( i = 0; i < n; i++ ) i 1350 modules/core/src/matrix.cpp mv[i] = v[i].getMat(accessFlags); i 1371 modules/core/src/matrix.cpp size_t i, n = v.size(); i 1374 modules/core/src/matrix.cpp for( i = 0; i < n; i++ ) i 1375 modules/core/src/matrix.cpp umv[i] = v[i].getUMat(accessFlags); i 1382 modules/core/src/matrix.cpp size_t i, n = v.size(); i 1385 modules/core/src/matrix.cpp for( i = 0; i < n; i++ ) i 1386 modules/core/src/matrix.cpp umv[i] = v[i]; i 1452 modules/core/src/matrix.cpp int _InputArray::rows(int i) const i 1454 modules/core/src/matrix.cpp return size(i).height; i 1457 modules/core/src/matrix.cpp int _InputArray::cols(int i) const i 1459 modules/core/src/matrix.cpp return size(i).width; i 1462 modules/core/src/matrix.cpp Size _InputArray::size(int i) const i 1468 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 1474 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 1480 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 1486 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 1492 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 1501 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 1512 modules/core/src/matrix.cpp if( i < 0 ) i 1514 modules/core/src/matrix.cpp CV_Assert( i < (int)vv.size() ); i 1517 modules/core/src/matrix.cpp size_t szb = vv[i].size(), szi = ivv[i].size(); i 1524 modules/core/src/matrix.cpp if( i < 0 ) i 1526 modules/core/src/matrix.cpp CV_Assert( i < (int)vv.size() ); i 1528 modules/core/src/matrix.cpp return vv[i].size(); i 1534 modules/core/src/matrix.cpp if( i < 0 ) i 1536 modules/core/src/matrix.cpp CV_Assert( i < (int)vv.size() ); i 1538 modules/core/src/matrix.cpp return vv[i].size(); i 1543 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 1550 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 1557 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 1566 modules/core/src/matrix.cpp int _InputArray::sizend(int* arrsz, int i) const i 1574 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 1583 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 1590 modules/core/src/matrix.cpp else if( k == STD_VECTOR_MAT && i >= 0 ) i 1593 modules/core/src/matrix.cpp CV_Assert( i < (int)vv.size() ); i 1594 modules/core/src/matrix.cpp const Mat& m = vv[i]; i 1600 modules/core/src/matrix.cpp else if( k == STD_VECTOR_UMAT && i >= 0 ) i 1603 modules/core/src/matrix.cpp CV_Assert( i < (int)vv.size() ); i 1604 modules/core/src/matrix.cpp const UMat& m = vv[i]; i 1612 modules/core/src/matrix.cpp Size sz2d = size(i); i 1658 modules/core/src/matrix.cpp int _InputArray::dims(int i) const i 1664 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 1670 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 1676 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 1682 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 1688 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 1698 modules/core/src/matrix.cpp if( i < 0 ) i 1700 modules/core/src/matrix.cpp CV_Assert( i < (int)vv.size() ); i 1707 modules/core/src/matrix.cpp if( i < 0 ) i 1709 modules/core/src/matrix.cpp CV_Assert( i < (int)vv.size() ); i 1711 modules/core/src/matrix.cpp return vv[i].dims; i 1717 modules/core/src/matrix.cpp if( i < 0 ) i 1719 modules/core/src/matrix.cpp CV_Assert( i < (int)vv.size() ); i 1721 modules/core/src/matrix.cpp return vv[i].dims; i 1726 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 1732 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 1738 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 1746 modules/core/src/matrix.cpp size_t _InputArray::total(int i) const i 1752 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 1758 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 1765 modules/core/src/matrix.cpp if( i < 0 ) i 1768 modules/core/src/matrix.cpp CV_Assert( i < (int)vv.size() ); i 1769 modules/core/src/matrix.cpp return vv[i].total(); i 1775 modules/core/src/matrix.cpp if( i < 0 ) i 1778 modules/core/src/matrix.cpp CV_Assert( i < (int)vv.size() ); i 1779 modules/core/src/matrix.cpp return vv[i].total(); i 1782 modules/core/src/matrix.cpp return size(i).area(); i 1785 modules/core/src/matrix.cpp int _InputArray::type(int i) const i 1812 modules/core/src/matrix.cpp CV_Assert( i < (int)vv.size() ); i 1813 modules/core/src/matrix.cpp return vv[i >= 0 ? i : 0].type(); i 1824 modules/core/src/matrix.cpp CV_Assert( i < (int)vv.size() ); i 1825 modules/core/src/matrix.cpp return vv[i >= 0 ? i : 0].type(); i 1841 modules/core/src/matrix.cpp int _InputArray::depth(int i) const i 1843 modules/core/src/matrix.cpp return CV_MAT_DEPTH(type(i)); i 1846 modules/core/src/matrix.cpp int _InputArray::channels(int i) const i 1848 modules/core/src/matrix.cpp return CV_MAT_CN(type(i)); i 1913 modules/core/src/matrix.cpp bool _InputArray::isContinuous(int i) const i 1918 modules/core/src/matrix.cpp return i < 0 ? ((const Mat*)obj)->isContinuous() : true; i 1921 modules/core/src/matrix.cpp return i < 0 ? ((const UMat*)obj)->isContinuous() : true; i 1930 modules/core/src/matrix.cpp CV_Assert((size_t)i < vv.size()); i 1931 modules/core/src/matrix.cpp return vv[i].isContinuous(); i 1937 modules/core/src/matrix.cpp CV_Assert((size_t)i < vv.size()); i 1938 modules/core/src/matrix.cpp return vv[i].isContinuous(); i 1945 modules/core/src/matrix.cpp bool _InputArray::isSubmatrix(int i) const i 1950 modules/core/src/matrix.cpp return i < 0 ? ((const Mat*)obj)->isSubmatrix() : false; i 1953 modules/core/src/matrix.cpp return i < 0 ? ((const UMat*)obj)->isSubmatrix() : false; i 1962 modules/core/src/matrix.cpp CV_Assert((size_t)i < vv.size()); i 1963 modules/core/src/matrix.cpp return vv[i].isSubmatrix(); i 1969 modules/core/src/matrix.cpp CV_Assert((size_t)i < vv.size()); i 1970 modules/core/src/matrix.cpp return vv[i].isSubmatrix(); i 1977 modules/core/src/matrix.cpp size_t _InputArray::offset(int i) const i 1983 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 1990 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 2001 modules/core/src/matrix.cpp if( i < 0 ) i 2003 modules/core/src/matrix.cpp CV_Assert( i < (int)vv.size() ); i 2005 modules/core/src/matrix.cpp return (size_t)(vv[i].ptr() - vv[i].datastart); i 2011 modules/core/src/matrix.cpp CV_Assert((size_t)i < vv.size()); i 2012 modules/core/src/matrix.cpp return vv[i].offset; i 2017 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 2026 modules/core/src/matrix.cpp size_t _InputArray::step(int i) const i 2032 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 2038 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 2049 modules/core/src/matrix.cpp if( i < 0 ) i 2051 modules/core/src/matrix.cpp CV_Assert( i < (int)vv.size() ); i 2052 modules/core/src/matrix.cpp return vv[i].step; i 2058 modules/core/src/matrix.cpp CV_Assert((size_t)i < vv.size()); i 2059 modules/core/src/matrix.cpp return vv[i].step; i 2064 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 2124 modules/core/src/matrix.cpp void _OutputArray::create(Size _sz, int mtype, int i, bool allowTransposed, int fixedDepthMask) const i 2127 modules/core/src/matrix.cpp if( k == MAT && i < 0 && !allowTransposed && fixedDepthMask == 0 ) i 2134 modules/core/src/matrix.cpp if( k == UMAT && i < 0 && !allowTransposed && fixedDepthMask == 0 ) i 2141 modules/core/src/matrix.cpp if( k == CUDA_GPU_MAT && i < 0 && !allowTransposed && fixedDepthMask == 0 ) i 2148 modules/core/src/matrix.cpp if( k == OPENGL_BUFFER && i < 0 && !allowTransposed && fixedDepthMask == 0 ) i 2155 modules/core/src/matrix.cpp if( k == CUDA_HOST_MEM && i < 0 && !allowTransposed && fixedDepthMask == 0 ) i 2163 modules/core/src/matrix.cpp create(2, sizes, mtype, i, allowTransposed, fixedDepthMask); i 2166 modules/core/src/matrix.cpp void _OutputArray::create(int _rows, int _cols, int mtype, int i, bool allowTransposed, int fixedDepthMask) const i 2169 modules/core/src/matrix.cpp if( k == MAT && i < 0 && !allowTransposed && fixedDepthMask == 0 ) i 2176 modules/core/src/matrix.cpp if( k == UMAT && i < 0 && !allowTransposed && fixedDepthMask == 0 ) i 2183 modules/core/src/matrix.cpp if( k == CUDA_GPU_MAT && i < 0 && !allowTransposed && fixedDepthMask == 0 ) i 2190 modules/core/src/matrix.cpp if( k == OPENGL_BUFFER && i < 0 && !allowTransposed && fixedDepthMask == 0 ) i 2197 modules/core/src/matrix.cpp if( k == CUDA_HOST_MEM && i < 0 && !allowTransposed && fixedDepthMask == 0 ) i 2205 modules/core/src/matrix.cpp create(2, sizes, mtype, i, allowTransposed, fixedDepthMask); i 2208 modules/core/src/matrix.cpp void _OutputArray::create(int d, const int* sizes, int mtype, int i, i 2216 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 2250 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 2284 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 2301 modules/core/src/matrix.cpp if( i < 0 ) i 2307 modules/core/src/matrix.cpp CV_Assert( i < (int)vv.size() ); i 2308 modules/core/src/matrix.cpp v = &vv[i]; i 2311 modules/core/src/matrix.cpp CV_Assert( i < 0 ); i 2384 modules/core/src/matrix.cpp if( i < 0 ) i 2405 modules/core/src/matrix.cpp CV_Assert( i < (int)v.size() ); i 2406 modules/core/src/matrix.cpp Mat& m = v[i]; i 2443 modules/core/src/matrix.cpp if( i < 0 ) i 2464 modules/core/src/matrix.cpp CV_Assert( i < (int)v.size() ); i 2465 modules/core/src/matrix.cpp UMat& m = v[i]; i 2592 modules/core/src/matrix.cpp Mat& _OutputArray::getMatRef(int i) const i 2595 modules/core/src/matrix.cpp if( i < 0 ) i 2604 modules/core/src/matrix.cpp CV_Assert( i < (int)v.size() ); i 2605 modules/core/src/matrix.cpp return v[i]; i 2609 modules/core/src/matrix.cpp UMat& _OutputArray::getUMatRef(int i) const i 2612 modules/core/src/matrix.cpp if( i < 0 ) i 2621 modules/core/src/matrix.cpp CV_Assert( i < (int)v.size() ); i 2622 modules/core/src/matrix.cpp return v[i]; i 2733 modules/core/src/matrix.cpp size_t i; i 2734 modules/core/src/matrix.cpp for( i = 0; i < nsrc; i++ ) i 2736 modules/core/src/matrix.cpp CV_Assert( src[i].dims <= 2 && i 2737 modules/core/src/matrix.cpp src[i].rows == src[0].rows && i 2738 modules/core/src/matrix.cpp src[i].type() == src[0].type()); i 2739 modules/core/src/matrix.cpp totalCols += src[i].cols; i 2743 modules/core/src/matrix.cpp for( i = 0; i < nsrc; i++ ) i 2745 modules/core/src/matrix.cpp Mat dpart = dst(Rect(cols, 0, src[i].cols, src[i].rows)); i 2746 modules/core/src/matrix.cpp src[i].copyTo(dpart); i 2747 modules/core/src/matrix.cpp cols += src[i].cols; i 2773 modules/core/src/matrix.cpp size_t i; i 2774 modules/core/src/matrix.cpp for( i = 0; i < nsrc; i++ ) i 2776 modules/core/src/matrix.cpp CV_Assert(src[i].dims <= 2 && i 2777 modules/core/src/matrix.cpp src[i].cols == src[0].cols && i 2778 modules/core/src/matrix.cpp src[i].type() == src[0].type()); i 2779 modules/core/src/matrix.cpp totalRows += src[i].rows; i 2783 modules/core/src/matrix.cpp for( i = 0; i < nsrc; i++ ) i 2785 modules/core/src/matrix.cpp Mat dpart(dst, Rect(0, rows, src[i].cols, src[i].rows)); i 2786 modules/core/src/matrix.cpp src[i].copyTo(dpart); i 2787 modules/core/src/matrix.cpp rows += src[i].rows; i 2854 modules/core/src/matrix.cpp int i, j, rows = m.rows, cols = m.cols, type = m.type(); i 2862 modules/core/src/matrix.cpp for( i = 0; i < rows; i++, data += step ) i 2866 modules/core/src/matrix.cpp if( i < cols ) i 2867 modules/core/src/matrix.cpp data[i] = val; i 2876 modules/core/src/matrix.cpp for( i = 0; i < rows; i++, data += step ) i 2879 modules/core/src/matrix.cpp data[j] = j == i ? val : 0; i 2895 modules/core/src/matrix.cpp int i, type = m.type(); i 2903 modules/core/src/matrix.cpp for( i = 0; i < nm; i++ ) i 2904 modules/core/src/matrix.cpp _s += ptr[i*step]; i 2913 modules/core/src/matrix.cpp for( i = 0; i < nm; i++ ) i 2914 modules/core/src/matrix.cpp _s += ptr[i*step]; i 2929 modules/core/src/matrix.cpp int i=0, j, m = sz.width, n = sz.height; i 2932 modules/core/src/matrix.cpp for(; i <= m - 4; i += 4 ) i 2934 modules/core/src/matrix.cpp T* d0 = (T*)(dst + dstep*i); i 2935 modules/core/src/matrix.cpp T* d1 = (T*)(dst + dstep*(i+1)); i 2936 modules/core/src/matrix.cpp T* d2 = (T*)(dst + dstep*(i+2)); i 2937 modules/core/src/matrix.cpp T* d3 = (T*)(dst + dstep*(i+3)); i 2941 modules/core/src/matrix.cpp const T* s0 = (const T*)(src + i*sizeof(T) + sstep*j); i 2942 modules/core/src/matrix.cpp const T* s1 = (const T*)(src + i*sizeof(T) + sstep*(j+1)); i 2943 modules/core/src/matrix.cpp const T* s2 = (const T*)(src + i*sizeof(T) + sstep*(j+2)); i 2944 modules/core/src/matrix.cpp const T* s3 = (const T*)(src + i*sizeof(T) + sstep*(j+3)); i 2954 modules/core/src/matrix.cpp const T* s0 = (const T*)(src + i*sizeof(T) + j*sstep); i 2959 modules/core/src/matrix.cpp for( ; i < m; i++ ) i 2961 modules/core/src/matrix.cpp T* d0 = (T*)(dst + dstep*i); i 2966 modules/core/src/matrix.cpp const T* s0 = (const T*)(src + i*sizeof(T) + sstep*j); i 2967 modules/core/src/matrix.cpp const T* s1 = (const T*)(src + i*sizeof(T) + sstep*(j+1)); i 2968 modules/core/src/matrix.cpp const T* s2 = (const T*)(src + i*sizeof(T) + sstep*(j+2)); i 2969 modules/core/src/matrix.cpp const T* s3 = (const T*)(src + i*sizeof(T) + sstep*(j+3)); i 2976 modules/core/src/matrix.cpp const T* s0 = (const T*)(src + i*sizeof(T) + j*sstep); i 2985 modules/core/src/matrix.cpp int i, j; i 2986 modules/core/src/matrix.cpp for( i = 0; i < n; i++ ) i 2988 modules/core/src/matrix.cpp T* row = (T*)(data + step*i); i 2989 modules/core/src/matrix.cpp uchar* data1 = data + i*sizeof(T); i 2990 modules/core/src/matrix.cpp for( j = i+1; j < n; j++ ) i 3218 modules/core/src/matrix.cpp for( int i = 0; i < rows; i++ ) i 3220 modules/core/src/matrix.cpp if( !LtoR ) j1 = i; else j0 = i+1; i 3222 modules/core/src/matrix.cpp memcpy(data + (i*step + j*esz), data + (j*step + i*esz), esz); i 3278 modules/core/src/matrix.cpp int i; i 3281 modules/core/src/matrix.cpp for( i = 0; i < size.width; i++ ) i 3282 modules/core/src/matrix.cpp buf[i] = src[i]; i 3287 modules/core/src/matrix.cpp i = 0; i 3289 modules/core/src/matrix.cpp for(; i <= size.width - 4; i += 4 ) i 3292 modules/core/src/matrix.cpp s0 = op(buf[i], (WT)src[i]); i 3293 modules/core/src/matrix.cpp s1 = op(buf[i+1], (WT)src[i+1]); i 3294 modules/core/src/matrix.cpp buf[i] = s0; buf[i+1] = s1; i 3296 modules/core/src/matrix.cpp s0 = op(buf[i+2], (WT)src[i+2]); i 3297 modules/core/src/matrix.cpp s1 = op(buf[i+3], (WT)src[i+3]); i 3298 modules/core/src/matrix.cpp buf[i+2] = s0; buf[i+3] = s1; i 3301 modules/core/src/matrix.cpp for( ; i < size.width; i++ ) i 3302 modules/core/src/matrix.cpp buf[i] = op(buf[i], (WT)src[i]); i 3305 modules/core/src/matrix.cpp for( i = 0; i < size.width; i++ ) i 3306 modules/core/src/matrix.cpp dst[i] = (ST)buf[i]; i 3315 modules/core/src/matrix.cpp int i, k, cn = srcmat.channels(); i 3331 modules/core/src/matrix.cpp for( i = 2*cn; i <= size.width - 4*cn; i += 4*cn ) i 3333 modules/core/src/matrix.cpp a0 = op(a0, (WT)src[i+k]); i 3334 modules/core/src/matrix.cpp a1 = op(a1, (WT)src[i+k+cn]); i 3335 modules/core/src/matrix.cpp a0 = op(a0, (WT)src[i+k+cn*2]); i 3336 modules/core/src/matrix.cpp a1 = op(a1, (WT)src[i+k+cn*3]); i 3339 modules/core/src/matrix.cpp for( ; i < size.width; i += cn ) i 3341 modules/core/src/matrix.cpp a0 = op(a0, (WT)src[i+k]); i 3824 modules/core/src/matrix.cpp int i, j, n, len; i 3849 modules/core/src/matrix.cpp for( i = 0; i < n; i++ ) i 3854 modules/core/src/matrix.cpp T* dptr = dst.ptr<T>(i); i 3857 modules/core/src/matrix.cpp const T* sptr = src.ptr<T>(i); i 3865 modules/core/src/matrix.cpp ptr[j] = src.ptr<T>(j)[i]; i 3906 modules/core/src/matrix.cpp dst.ptr<T>(j)[i] = ptr[j]; i 3948 modules/core/src/matrix.cpp int i, j, n, len; i 3976 modules/core/src/matrix.cpp for( i = 0; i < n; i++ ) i 3983 modules/core/src/matrix.cpp ptr = (T*)(src.data + src.step*i); i 3984 modules/core/src/matrix.cpp iptr = dst.ptr<int>(i); i 3989 modules/core/src/matrix.cpp ptr[j] = src.ptr<T>(j)[i]; i 4031 modules/core/src/matrix.cpp dst.ptr<int>(j)[i] = iptr[j]; i 4143 modules/core/src/matrix.cpp int i, j; i 4165 modules/core/src/matrix.cpp int* idata = mat->data.i; i 4171 modules/core/src/matrix.cpp for( i = 0; i < rows; i++, idata += step ) i 4177 modules/core/src/matrix.cpp for( i = 0; i < rows; i++, idata += step ) i 4185 modules/core/src/matrix.cpp for( i = 0; i < rows; i++, fdata += step ) i 4289 modules/core/src/matrix.cpp int i, j, d1=0, i0 = -1, d = -1; i 4300 modules/core/src/matrix.cpp for( i = 0; _arrays[i] != 0; i++ ) i 4302 modules/core/src/matrix.cpp narrays = i; i 4308 modules/core/src/matrix.cpp for( i = 0; i < narrays; i++ ) i 4310 modules/core/src/matrix.cpp CV_Assert(arrays[i] != 0); i 4311 modules/core/src/matrix.cpp const Mat& A = *arrays[i]; i 4313 modules/core/src/matrix.cpp ptrs[i] = A.data; i 4320 modules/core/src/matrix.cpp i0 = i; i 4369 modules/core/src/matrix.cpp for( i = 0; i < narrays; i++ ) i 4371 modules/core/src/matrix.cpp CV_Assert(arrays[i] != 0); i 4372 modules/core/src/matrix.cpp const Mat& A = *arrays[i]; i 4376 modules/core/src/matrix.cpp planes[i] = Mat(); i 4380 modules/core/src/matrix.cpp planes[i] = Mat(1, (int)size, A.type(), A.data); i 4395 modules/core/src/matrix.cpp for( int i = 0; i < narrays; i++ ) i 4397 modules/core/src/matrix.cpp if( !ptrs[i] ) i 4399 modules/core/src/matrix.cpp ptrs[i] = arrays[i]->data + arrays[i]->step[0]*idx; i 4404 modules/core/src/matrix.cpp for( int i = 0; i < narrays; i++ ) i 4406 modules/core/src/matrix.cpp if( !planes[i].data ) i 4408 modules/core/src/matrix.cpp planes[i].data = arrays[i]->data + arrays[i]->step[0]*idx; i 4414 modules/core/src/matrix.cpp for( int i = 0; i < narrays; i++ ) i 4416 modules/core/src/matrix.cpp const Mat& A = *arrays[i]; i 4428 modules/core/src/matrix.cpp ptrs[i] = data; i 4430 modules/core/src/matrix.cpp planes[i].data = data; i 4463 modules/core/src/matrix.cpp for( int i = 0; i < m->dims; i++ ) i 4465 modules/core/src/matrix.cpp size_t s = m->step[i], v = ofs/s; i 4467 modules/core/src/matrix.cpp _idx[i] = (int)v; i 4478 modules/core/src/matrix.cpp int i, d = m->dims; i 4485 modules/core/src/matrix.cpp for( i = 0; i < d; i++ ) i 4487 modules/core/src/matrix.cpp size_t s = m->step[i], v = ofs/s; i 4489 modules/core/src/matrix.cpp result = result*m->size[i] + v; i 4538 modules/core/src/matrix.cpp for( int i = d-2; i >= 0; i-- ) i 4540 modules/core/src/matrix.cpp szi = m->size[i]; i 4544 modules/core/src/matrix.cpp sliceStart += v*m->step[i]; i 4556 modules/core/src/matrix.cpp int i, d = m->dims; i 4564 modules/core/src/matrix.cpp for( i = 0; i < d; i++ ) i 4565 modules/core/src/matrix.cpp ofs = ofs*m->size[i] + _idx[i]; i 4580 modules/core/src/matrix.cpp for( int i = 0; i < cn; i++ ) i 4581 modules/core/src/matrix.cpp to[i] = saturate_cast<T2>(from[i]); i 4592 modules/core/src/matrix.cpp for( int i = 0; i < cn; i++ ) i 4593 modules/core/src/matrix.cpp to[i] = saturate_cast<T2>(from[i]*alpha + beta); i 4693 modules/core/src/matrix.cpp size_t i; i 4694 modules/core/src/matrix.cpp for( i = 0; i + sizeof(int) <= elemSize; i += sizeof(int) ) i 4695 modules/core/src/matrix.cpp *(int*)(to + i) = *(const int*)(from + i); i 4696 modules/core/src/matrix.cpp for( ; i < elemSize; i++ ) i 4697 modules/core/src/matrix.cpp to[i] = from[i]; i 4702 modules/core/src/matrix.cpp size_t i; i 4703 modules/core/src/matrix.cpp for( i = 0; i + sizeof(int) <= elemSize; i += sizeof(int) ) i 4704 modules/core/src/matrix.cpp if( *(int*)(data + i) != 0 ) i 4706 modules/core/src/matrix.cpp for( ; i < elemSize; i++ ) i 4707 modules/core/src/matrix.cpp if( data[i] != 0 ) i 4722 modules/core/src/matrix.cpp int i; i 4723 modules/core/src/matrix.cpp for( i = 0; i < dims; i++ ) i 4724 modules/core/src/matrix.cpp size[i] = _sizes[i]; i 4725 modules/core/src/matrix.cpp for( ; i < CV_MAX_DIM; i++ ) i 4726 modules/core/src/matrix.cpp size[i] = 0; i 4745 modules/core/src/matrix.cpp int i, idx[CV_MAX_DIM] = {0}, d = m.dims, lastSize = m.size[d - 1]; i 4751 modules/core/src/matrix.cpp for( i = 0; i < lastSize; i++, dptr += esz ) i 4755 modules/core/src/matrix.cpp idx[d-1] = i; i 4760 modules/core/src/matrix.cpp for( i = d - 2; i >= 0; i-- ) i 4762 modules/core/src/matrix.cpp dptr += m.step[i] - m.size[i+1]*m.step[i+1]; i 4763 modules/core/src/matrix.cpp if( ++idx[i] < m.size[i] ) i 4765 modules/core/src/matrix.cpp idx[i] = 0; i 4767 modules/core/src/matrix.cpp if( i < 0 ) i 4774 modules/core/src/matrix.cpp int i; i 4776 modules/core/src/matrix.cpp for( i = 0; i < d; i++ ) i 4777 modules/core/src/matrix.cpp CV_Assert( _sizes[i] > 0 ); i 4781 modules/core/src/matrix.cpp for( i = 0; i < d; i++ ) i 4782 modules/core/src/matrix.cpp if( _sizes[i] != hdr->size[i] ) i 4784 modules/core/src/matrix.cpp if( i == d ) i 4806 modules/core/src/matrix.cpp size_t i, N = nzcount(), esz = elemSize(); i 4808 modules/core/src/matrix.cpp for( i = 0; i < N; i++, ++from ) i 4824 modules/core/src/matrix.cpp size_t i, N = nzcount(), esz = elemSize(); i 4826 modules/core/src/matrix.cpp for( i = 0; i < N; i++, ++from ) i 4853 modules/core/src/matrix.cpp size_t i, N = nzcount(); i 4858 modules/core/src/matrix.cpp for( i = 0; i < N; i++, ++from ) i 4868 modules/core/src/matrix.cpp for( i = 0; i < N; i++, ++from ) i 4890 modules/core/src/matrix.cpp size_t i, N = nzcount(); i 4895 modules/core/src/matrix.cpp for( i = 0; i < N; i++, ++from ) i 4905 modules/core/src/matrix.cpp for( i = 0; i < N; i++, ++from ) i 4990 modules/core/src/matrix.cpp int i, d = hdr->dims; i 4999 modules/core/src/matrix.cpp for( i = 0; i < d; i++ ) i 5000 modules/core/src/matrix.cpp if( elem->idx[i] != idx[i] ) i 5002 modules/core/src/matrix.cpp if( i == d ) i 5053 modules/core/src/matrix.cpp int i, d = hdr->dims; i 5062 modules/core/src/matrix.cpp for( i = 0; i < d; i++ ) i 5063 modules/core/src/matrix.cpp if( elem->idx[i] != idx[i] ) i 5065 modules/core/src/matrix.cpp if( i == d ) i 5082 modules/core/src/matrix.cpp size_t i, hsize = hdr->hashtab.size(); i 5085 modules/core/src/matrix.cpp for( i = 0; i < newsize; i++ ) i 5086 modules/core/src/matrix.cpp newh[i] = 0; i 5088 modules/core/src/matrix.cpp for( i = 0; i < hsize; i++ ) i 5090 modules/core/src/matrix.cpp size_t nidx = hdr->hashtab[i]; i 5117 modules/core/src/matrix.cpp size_t i, nsz = hdr->nodeSize, psize = hdr->pool.size(), i 5123 modules/core/src/matrix.cpp for( i = hdr->freeList; i < newpsize - nsz; i += nsz ) i 5124 modules/core/src/matrix.cpp ((Node*)(pool + i))->next = i + nsz; i 5125 modules/core/src/matrix.cpp ((Node*)(pool + i))->next = 0; i 5135 modules/core/src/matrix.cpp int i, d = hdr->dims; i 5136 modules/core/src/matrix.cpp for( i = 0; i < d; i++ ) i 5137 modules/core/src/matrix.cpp elem->idx[i] = idx[i]; i 5174 modules/core/src/matrix.cpp size_t i, hsize = htab.size(); i 5175 modules/core/src/matrix.cpp for( i = 0; i < hsize; i++ ) i 5177 modules/core/src/matrix.cpp size_t nidx = htab[i]; i 5180 modules/core/src/matrix.cpp hashidx = i; i 5198 modules/core/src/matrix.cpp size_t i = hashidx + 1, sz = hdr.hashtab.size(); i 5199 modules/core/src/matrix.cpp for( ; i < sz; i++ ) i 5201 modules/core/src/matrix.cpp size_t nidx = hdr.hashtab[i]; i 5204 modules/core/src/matrix.cpp hashidx = i; i 5219 modules/core/src/matrix.cpp size_t i, N = src.nzcount(); i 5229 modules/core/src/matrix.cpp for( i = 0; i < N; i++, ++it ) i 5232 modules/core/src/matrix.cpp for( i = 0; i < N; i++, ++it ) i 5235 modules/core/src/matrix.cpp for( i = 0; i < N; i++, ++it ) i 5244 modules/core/src/matrix.cpp for( i = 0; i < N; i++, ++it ) i 5247 modules/core/src/matrix.cpp for( i = 0; i < N; i++, ++it ) i 5250 modules/core/src/matrix.cpp for( i = 0; i < N; i++, ++it ) i 5267 modules/core/src/matrix.cpp size_t i, N = src.nzcount(), d = src.hdr ? src.hdr->dims : 0; i 5274 modules/core/src/matrix.cpp for( i = 0; i < N; i++, ++it ) i 5296 modules/core/src/matrix.cpp for( i = 0; i < N; i++, ++it ) i 5319 modules/core/src/matrix.cpp for( i = 0; i < d; i++ ) i 5320 modules/core/src/matrix.cpp _minidx[i] = minidx[i]; i 5322 modules/core/src/matrix.cpp for( i = 0; i < d; i++ ) i 5323 modules/core/src/matrix.cpp _maxidx[i] = maxidx[i]; i 5403 modules/core/src/matrix.cpp int i, d = m.dims; i 5404 modules/core/src/matrix.cpp for( i = 0; i < d; i++ ) i 5405 modules/core/src/matrix.cpp dim[i].step = (int)m.step[i]; i 5424 modules/core/src/matrix.cpp size_t i, N = sm.nzcount(), esz = sm.elemSize(); i 5426 modules/core/src/matrix.cpp for( i = 0; i < N; i++, ++from ) i 1420 modules/core/src/ocl.cpp for( int i = 0; i < 256; i++ ) i 1422 modules/core/src/ocl.cpp uint64 c = i; i 1425 modules/core/src/ocl.cpp table[i] = c; i 2270 modules/core/src/ocl.cpp for (size_t i = 0; i < deviceName.length(); i++) i 2272 modules/core/src/ocl.cpp if (!isdigit(deviceName[i])) i 2301 modules/core/src/ocl.cpp for (size_t i = 0; i < platforms.size(); i++) i 2304 modules/core/src/ocl.cpp CV_OclDbgAssert(getStringInfo(clGetPlatformInfo, platforms[i], CL_PLATFORM_NAME, name) == CL_SUCCESS); i 2307 modules/core/src/ocl.cpp selectedPlatform = (int)i; i 2349 modules/core/src/ocl.cpp for (int i = selectedPlatform >= 0 ? selectedPlatform : 0; i 2350 modules/core/src/ocl.cpp (selectedPlatform >= 0 ? i == selectedPlatform : true) && (i < (int)platforms.size()); i 2351 modules/core/src/ocl.cpp i++) i 2354 modules/core/src/ocl.cpp cl_int status = clGetDeviceIDs(platforms[i], deviceType, 0, NULL, &count); i 2360 modules/core/src/ocl.cpp status = clGetDeviceIDs(platforms[i], deviceType, count, &devices[base], &count); i 2364 modules/core/src/ocl.cpp for (size_t i = (isID ? deviceID : 0); i 2365 modules/core/src/ocl.cpp (isID ? (i == (size_t)deviceID) : true) && (i < devices.size()); i 2366 modules/core/src/ocl.cpp i++) i 2369 modules/core/src/ocl.cpp CV_OclDbgAssert(getStringInfo(clGetDeviceInfo, devices[i], CL_DEVICE_NAME, name) == CL_SUCCESS); i 2374 modules/core/src/ocl.cpp clGetDeviceInfo(devices[i], CL_DEVICE_HOST_UNIFIED_MEMORY, sizeof(isIGPU), &isIGPU, NULL); i 2380 modules/core/src/ocl.cpp return devices[i]; i 2528 modules/core/src/ocl.cpp cl_uint i, nd0 = 0, nd = 0; i 2538 modules/core/src/ocl.cpp for(i = 0; i < nd0; i++) i 2540 modules/core/src/ocl.cpp Device d(dlist[i]); i 2551 modules/core/src/ocl.cpp dlist_new[nd++] = dlist[i]; i 2565 modules/core/src/ocl.cpp for( i = 0; i < nd; i++ ) i 2566 modules/core/src/ocl.cpp devices[i].set(dlist_new[i]); i 2869 modules/core/src/ocl.cpp Context::Impl* i = p; i 2870 modules/core/src/ocl.cpp CV_Assert(i); i 2871 modules/core/src/ocl.cpp if (!i->svmInitialized) i 2872 modules/core/src/ocl.cpp i->svmInit(); i 2873 modules/core/src/ocl.cpp return i->svmEnabled; i 2877 modules/core/src/ocl.cpp Context::Impl* i = p; i 2878 modules/core/src/ocl.cpp CV_Assert(i); i 2879 modules/core/src/ocl.cpp if (!i->svmInitialized) i 2880 modules/core/src/ocl.cpp i->svmInit(); i 2881 modules/core/src/ocl.cpp if (enabled && !i->svmAvailable) i 2885 modules/core/src/ocl.cpp i->svmEnabled = enabled; i 2897 modules/core/src/ocl.cpp Context::Impl* i = context.p; i 2898 modules/core/src/ocl.cpp CV_Assert(i); i 2899 modules/core/src/ocl.cpp if (!i->svmInitialized) i 2900 modules/core/src/ocl.cpp i->svmInit(); i 2901 modules/core/src/ocl.cpp return i->svmCapabilities; i 2906 modules/core/src/ocl.cpp Context::Impl* i = context.p; i 2907 modules/core/src/ocl.cpp CV_Assert(i); i 2908 modules/core/src/ocl.cpp CV_Assert(i->svmInitialized); // getSVMCapabilitites() must be called first i 2909 modules/core/src/ocl.cpp CV_Assert(i->svmFunctions.fn_clSVMAlloc != NULL); i 2910 modules/core/src/ocl.cpp return &i->svmFunctions; i 3095 modules/core/src/ocl.cpp for( int i = 0; i < MAX_ARRS; i++ ) i 3096 modules/core/src/ocl.cpp u[i] = 0; i 3102 modules/core/src/ocl.cpp for( int i = 0; i < MAX_ARRS; i++ ) i 3103 modules/core/src/ocl.cpp if( u[i] ) i 3105 modules/core/src/ocl.cpp if( CV_XADD(&u[i]->urefcount, -1) == 1 ) i 3106 modules/core/src/ocl.cpp u[i]->currAllocator->deallocate(u[i]); i 3107 modules/core/src/ocl.cpp u[i] = 0; i 3248 modules/core/src/ocl.cpp int Kernel::set(int i, const void* value, size_t sz) i 3252 modules/core/src/ocl.cpp if (i < 0) i 3253 modules/core/src/ocl.cpp return i; i 3254 modules/core/src/ocl.cpp if( i == 0 ) i 3257 modules/core/src/ocl.cpp cl_int retval = clSetKernelArg(p->handle, (cl_uint)i, sz, value); i 3261 modules/core/src/ocl.cpp return i+1; i 3264 modules/core/src/ocl.cpp int Kernel::set(int i, const Image2D& image2D) i 3268 modules/core/src/ocl.cpp return set(i, &h, sizeof(h)); i 3271 modules/core/src/ocl.cpp int Kernel::set(int i, const UMat& m) i 3273 modules/core/src/ocl.cpp return set(i, KernelArg(KernelArg::READ_WRITE, (UMat*)&m, 0, 0)); i 3276 modules/core/src/ocl.cpp int Kernel::set(int i, const KernelArg& arg) i 3280 modules/core/src/ocl.cpp if (i < 0) i 3281 modules/core/src/ocl.cpp return i; i 3282 modules/core/src/ocl.cpp if( i == 0 ) i 3306 modules/core/src/ocl.cpp cl_int status = svmFns->fn_clSetKernelArgSVMPointer(p->handle, (cl_uint)i, svmDataPtr); i 3308 modules/core/src/ocl.cpp cl_int status = svmFns->fn_clSetKernelArgSVMPointer(p->handle, (cl_uint)i, &svmDataPtr); i 3315 modules/core/src/ocl.cpp CV_OclDbgAssert(clSetKernelArg(p->handle, (cl_uint)i, sizeof(h), &h) == CL_SUCCESS); i 3320 modules/core/src/ocl.cpp i++; i 3325 modules/core/src/ocl.cpp CV_OclDbgAssert(clSetKernelArg(p->handle, (cl_uint)(i+1), sizeof(u2d.step), &u2d.step) == CL_SUCCESS); i 3326 modules/core/src/ocl.cpp CV_OclDbgAssert(clSetKernelArg(p->handle, (cl_uint)(i+2), sizeof(u2d.offset), &u2d.offset) == CL_SUCCESS); i 3327 modules/core/src/ocl.cpp i += 3; i 3332 modules/core/src/ocl.cpp CV_OclDbgAssert(clSetKernelArg(p->handle, (cl_uint)i, sizeof(u2d.rows), &u2d.rows) == CL_SUCCESS); i 3333 modules/core/src/ocl.cpp CV_OclDbgAssert(clSetKernelArg(p->handle, (cl_uint)(i+1), sizeof(cols), &cols) == CL_SUCCESS); i 3334 modules/core/src/ocl.cpp i += 2; i 3340 modules/core/src/ocl.cpp CV_OclDbgAssert(clSetKernelArg(p->handle, (cl_uint)(i+1), sizeof(u3d.slicestep), &u3d.slicestep) == CL_SUCCESS); i 3341 modules/core/src/ocl.cpp CV_OclDbgAssert(clSetKernelArg(p->handle, (cl_uint)(i+2), sizeof(u3d.step), &u3d.step) == CL_SUCCESS); i 3342 modules/core/src/ocl.cpp CV_OclDbgAssert(clSetKernelArg(p->handle, (cl_uint)(i+3), sizeof(u3d.offset), &u3d.offset) == CL_SUCCESS); i 3343 modules/core/src/ocl.cpp i += 4; i 3347 modules/core/src/ocl.cpp CV_OclDbgAssert(clSetKernelArg(p->handle, (cl_uint)i, sizeof(u3d.slices), &u3d.rows) == CL_SUCCESS); i 3348 modules/core/src/ocl.cpp CV_OclDbgAssert(clSetKernelArg(p->handle, (cl_uint)(i+1), sizeof(u3d.rows), &u3d.rows) == CL_SUCCESS); i 3349 modules/core/src/ocl.cpp CV_OclDbgAssert(clSetKernelArg(p->handle, (cl_uint)(i+2), sizeof(u3d.cols), &cols) == CL_SUCCESS); i 3350 modules/core/src/ocl.cpp i += 3; i 3354 modules/core/src/ocl.cpp return i; i 3356 modules/core/src/ocl.cpp CV_OclDbgAssert(clSetKernelArg(p->handle, (cl_uint)i, arg.sz, arg.obj) == CL_SUCCESS); i 3357 modules/core/src/ocl.cpp return i+1; i 3371 modules/core/src/ocl.cpp for (int i = 0; i < dims; i++) i 3373 modules/core/src/ocl.cpp size_t val = _localsize ? _localsize[i] : i 3374 modules/core/src/ocl.cpp dims == 1 ? 64 : dims == 2 ? (i == 0 ? 256 : 8) : dims == 3 ? (8>>(int)(i>0)) : 1; i 3376 modules/core/src/ocl.cpp total *= _globalsize[i]; i 3377 modules/core/src/ocl.cpp globalsize[i] = ((_globalsize[i] + val - 1)/val)*val; i 3487 modules/core/src/ocl.cpp int i, n = (int)ctx.ndevices(); i 3490 modules/core/src/ocl.cpp for( i = 0; i < n; i++ ) i 3491 modules/core/src/ocl.cpp deviceList[i] = ctx.device(i).ptr(); i 3799 modules/core/src/ocl.cpp typename std::list<BufferEntry>::iterator i = allocatedEntries_.begin(); i 3800 modules/core/src/ocl.cpp for (; i != allocatedEntries_.end(); ++i) i 3802 modules/core/src/ocl.cpp BufferEntry& e = *i; i 3806 modules/core/src/ocl.cpp allocatedEntries_.erase(i); i 3818 modules/core/src/ocl.cpp typename std::list<BufferEntry>::iterator i = reservedEntries_.begin(); i 3822 modules/core/src/ocl.cpp for (; i != reservedEntries_.end(); ++i) i 3824 modules/core/src/ocl.cpp BufferEntry& e = *i; i 3831 modules/core/src/ocl.cpp result_pos = i; i 3933 modules/core/src/ocl.cpp typename std::list<BufferEntry>::iterator i = reservedEntries_.begin(); i 3934 modules/core/src/ocl.cpp for (; i != reservedEntries_.end();) i 3936 modules/core/src/ocl.cpp const BufferEntry& entry = *i; i 3942 modules/core/src/ocl.cpp i = reservedEntries_.erase(i); i 3945 modules/core/src/ocl.cpp ++i; i 3953 modules/core/src/ocl.cpp typename std::list<BufferEntry>::const_iterator i = reservedEntries_.begin(); i 3954 modules/core/src/ocl.cpp for (; i != reservedEntries_.end(); ++i) i 3956 modules/core/src/ocl.cpp const BufferEntry& entry = *i; i 4193 modules/core/src/ocl.cpp for( int i = dims-1; i >= 0; i-- ) i 4196 modules/core/src/ocl.cpp step[i] = total; i 4197 modules/core/src/ocl.cpp total *= sizes[i]; i 4695 modules/core/src/ocl.cpp for( int i = dims-2; i >= 0; i-- ) i 4697 modules/core/src/ocl.cpp if( i >= 0 && (total != srcstep[i] || total != dststep[i]) ) i 4699 modules/core/src/ocl.cpp total *= sz[i]; i 4701 modules/core/src/ocl.cpp srcrawofs += srcofs[i]*srcstep[i]; i 4703 modules/core/src/ocl.cpp dstrawofs += dstofs[i]*dststep[i]; i 4811 modules/core/src/ocl.cpp for( int i = 0; i < dims; i++ ) i 4813 modules/core/src/ocl.cpp CV_Assert( sz[i] <= (size_t)INT_MAX ); i 4814 modules/core/src/ocl.cpp if( sz[i] == 0 ) i 4817 modules/core/src/ocl.cpp srcptr += srcofs[i]*(i <= dims-2 ? srcstep[i] : 1); i 4818 modules/core/src/ocl.cpp isz[i] = (int)sz[i]; i 4923 modules/core/src/ocl.cpp for( int i = 0; i < dims; i++ ) i 4925 modules/core/src/ocl.cpp CV_Assert( sz[i] <= (size_t)INT_MAX ); i 4926 modules/core/src/ocl.cpp if( sz[i] == 0 ) i 4929 modules/core/src/ocl.cpp dstptr += dstofs[i]*(i <= dims-2 ? dststep[i] : 1); i 4930 modules/core/src/ocl.cpp isz[i] = (int)sz[i]; i 5057 modules/core/src/ocl.cpp for( int i = 0; i < dims; i++ ) i 5059 modules/core/src/ocl.cpp CV_Assert( sz[i] <= (size_t)INT_MAX ); i 5060 modules/core/src/ocl.cpp if( sz[i] == 0 ) i 5063 modules/core/src/ocl.cpp srcptr += srcofs[i]*(i <= dims-2 ? srcstep[i] : 1); i 5064 modules/core/src/ocl.cpp isz[i] = (int)sz[i]; i 5069 modules/core/src/ocl.cpp for( int i = 0; i < dims; i++ ) i 5072 modules/core/src/ocl.cpp dstptr += dstofs[i]*(i <= dims-2 ? dststep[i] : 1); i 5226 modules/core/src/ocl.cpp PlatformInfo::PlatformInfo(const PlatformInfo& i) i 5228 modules/core/src/ocl.cpp if (i.p) i 5229 modules/core/src/ocl.cpp i.p->addref(); i 5230 modules/core/src/ocl.cpp p = i.p; i 5233 modules/core/src/ocl.cpp PlatformInfo& PlatformInfo::operator =(const PlatformInfo& i) i 5235 modules/core/src/ocl.cpp if (i.p != p) i 5237 modules/core/src/ocl.cpp if (i.p) i 5238 modules/core/src/ocl.cpp i.p->addref(); i 5241 modules/core/src/ocl.cpp p = i.p; i 5293 modules/core/src/ocl.cpp for (size_t i = 0; i < platforms.size(); i++) i 5294 modules/core/src/ocl.cpp platformsInfo.push_back( PlatformInfo((void*)&platforms[i]) ); i 5379 modules/core/src/ocl.cpp for (int i = 0; i < width; ++i) i 5380 modules/core/src/ocl.cpp stream << "DIG(" << (int)data[i] << ")"; i 5386 modules/core/src/ocl.cpp for (int i = 0; i < width; ++i) i 5387 modules/core/src/ocl.cpp stream << "DIG(" << data[i] << "f)"; i 5392 modules/core/src/ocl.cpp for (int i = 0; i < width; ++i) i 5393 modules/core/src/ocl.cpp stream << "DIG(" << data[i] << ")"; i 5490 modules/core/src/ocl.cpp for (size_t i = 0; i < size; ++i) i 5491 modules/core/src/ocl.cpp while (offsets[i] % dividers[i] != 0 || steps[i] % dividers[i] != 0 || cols[i] % kercns[i] != 0) i 5492 modules/core/src/ocl.cpp dividers[i] >>= 1, kercns[i] >>= 1; i 5575 modules/core/src/ocl.cpp for (cl_uint i = 0; i < numFormats; ++i) i 5577 modules/core/src/ocl.cpp if (!memcmp(&formats[i], &format, sizeof(format))) i 5711 modules/core/src/ocl.cpp Image2D::Image2D(const Image2D & i) i 5713 modules/core/src/ocl.cpp p = i.p; i 5718 modules/core/src/ocl.cpp Image2D & Image2D::operator = (const Image2D & i) i 5720 modules/core/src/ocl.cpp if (i.p != p) i 5722 modules/core/src/ocl.cpp if (i.p) i 5723 modules/core/src/ocl.cpp i.p->addref(); i 5726 modules/core/src/ocl.cpp p = i.p; i 197 modules/core/src/parallel.cpp void operator ()(int i) const i 199 modules/core/src/parallel.cpp this->ParallelLoopBodyWrapper::operator()(cv::Range(i, i + 1)); i 278 modules/core/src/parallel.cpp for (int i = stripeRange.start; i < stripeRange.end; ++i) i 279 modules/core/src/parallel.cpp pbody(Range(i, i + 1)); i 174 modules/core/src/parallel_pthreads.cpp for(size_t i = 0; i < manager.m_num_threads; ++i) i 176 modules/core/src/parallel_pthreads.cpp manager.m_threads[i].stop(); i 434 modules/core/src/parallel_pthreads.cpp for(size_t i = 0; i < m_threads.size(); ++i) i 436 modules/core/src/parallel_pthreads.cpp m_threads[i].run(); i 495 modules/core/src/parallel_pthreads.cpp for(size_t i = 0; i < m_threads.size(); ++i) i 497 modules/core/src/parallel_pthreads.cpp res |= m_threads[i].init(i, this); i 134 modules/core/src/pca.cpp int i; i 135 modules/core/src/pca.cpp for( i = 0; i < out_count; i++ ) i 137 modules/core/src/pca.cpp Mat vec = eigenvectors.row(i); i 270 modules/core/src/pca.cpp int i; i 271 modules/core/src/pca.cpp for( i = 0; i < eigenvectors.rows; i++ ) i 273 modules/core/src/pca.cpp Mat vec = eigenvectors.row(i); i 263 modules/core/src/persistence.cpp size_t i = fs->strbufpos, len = fs->strbufsize; i 266 modules/core/src/persistence.cpp while( i < len && j < maxCount-1 ) i 268 modules/core/src/persistence.cpp char c = instr[i++]; i 276 modules/core/src/persistence.cpp fs->strbufpos = i; i 355 modules/core/src/persistence.cpp int i; i 356 modules/core/src/persistence.cpp for( i = 0; attr->attr[i*2] != 0; i++ ) i 358 modules/core/src/persistence.cpp if( strcmp( attr_name, attr->attr[i*2] ) == 0 ) i 359 modules/core/src/persistence.cpp return attr->attr[i*2+1]; i 579 modules/core/src/persistence.cpp int i, tab_size; i 588 modules/core/src/persistence.cpp for( i = 0; str[i] != '\0'; i++ ) i 589 modules/core/src/persistence.cpp hashval = hashval*CV_HASHVAL_SCALE + (unsigned char)str[i]; i 590 modules/core/src/persistence.cpp len = i; i 592 modules/core/src/persistence.cpp else for( i = 0; i < len; i++ ) i 593 modules/core/src/persistence.cpp hashval = hashval*CV_HASHVAL_SCALE + (unsigned char)str[i]; i 598 modules/core/src/persistence.cpp i = (int)(hashval & (tab_size - 1)); i 600 modules/core/src/persistence.cpp i = (int)(hashval % tab_size); i 602 modules/core/src/persistence.cpp for( node = (CvStringHashNode*)(map->table[i]); node != 0; node = node->next ) i 615 modules/core/src/persistence.cpp node->next = (CvStringHashNode*)(map->table[i]); i 616 modules/core/src/persistence.cpp map->table[i] = node; i 648 modules/core/src/persistence.cpp int i, tab_size; i 668 modules/core/src/persistence.cpp i = (int)(key->hashval & (tab_size - 1)); i 670 modules/core/src/persistence.cpp i = (int)(key->hashval % tab_size); i 672 modules/core/src/persistence.cpp for( another = (CvFileMapNode*)(map->table[i]); another != 0; another = another->next ) i 688 modules/core/src/persistence.cpp node->next = (CvFileMapNode*)(map->table[i]); i 689 modules/core/src/persistence.cpp map->table[i] = node; i 702 modules/core/src/persistence.cpp int i, len, tab_size; i 714 modules/core/src/persistence.cpp for( i = 0; str[i] != '\0'; i++ ) i 715 modules/core/src/persistence.cpp hashval = hashval*CV_HASHVAL_SCALE + (unsigned char)str[i]; i 717 modules/core/src/persistence.cpp len = i; i 747 modules/core/src/persistence.cpp i = (int)(hashval & (tab_size - 1)); i 749 modules/core/src/persistence.cpp i = (int)(hashval % tab_size); i 751 modules/core/src/persistence.cpp for( another = (CvFileMapNode*)(map->table[i]); another != 0; another = another->next ) i 909 modules/core/src/persistence.cpp union{double d; uint64 i;} v; i 912 modules/core/src/persistence.cpp v.i = (uint64)inf_hi << 32; i 914 modules/core/src/persistence.cpp v.i = (uint64)-1; i 1124 modules/core/src/persistence.cpp node->data.i = ival; i 1416 modules/core/src/persistence.cpp int i, keylen = 0; i 1484 modules/core/src/persistence.cpp for( i = 0; i < keylen; i++ ) i 1486 modules/core/src/persistence.cpp char c = key[i]; i 1488 modules/core/src/persistence.cpp ptr[i] = c; i 1629 modules/core/src/persistence.cpp int i, len; i 1643 modules/core/src/persistence.cpp for( i = 0; i < len; i++ ) i 1645 modules/core/src/persistence.cpp char c = str[i]; i 1944 modules/core/src/persistence.cpp elem->data.i = ival; i 1956 modules/core/src/persistence.cpp int i = 0, len, is_quoted = 0; i 2022 modules/core/src/persistence.cpp memcpy( buf + i, ptr-1, len + 2 ); i 2023 modules/core/src/persistence.cpp i += len + 2; i 2029 modules/core/src/persistence.cpp buf[i++] = c; i 2030 modules/core/src/persistence.cpp if( i >= CV_FS_MAX_LEN ) i 2033 modules/core/src/persistence.cpp elem->data.str = cvMemStorageAllocString( fs->memstorage, buf, i ); i 2274 modules/core/src/persistence.cpp int i, len = 0; i 2316 modules/core/src/persistence.cpp for( i = 0; i < len; i++ ) i 2318 modules/core/src/persistence.cpp char c = key[i]; i 2321 modules/core/src/persistence.cpp ptr[i] = c; i 2500 modules/core/src/persistence.cpp int i, len; i 2514 modules/core/src/persistence.cpp for( i = 0; i < len; i++ ) i 2516 modules/core/src/persistence.cpp char c = str[i]; i 3000 modules/core/src/persistence.cpp int i = 0, k = 0, len = dt ? (int)strlen(dt) : 0; i 3026 modules/core/src/persistence.cpp fmt_pairs[i] = count; i 3033 modules/core/src/persistence.cpp if( fmt_pairs[i] == 0 ) i 3034 modules/core/src/persistence.cpp fmt_pairs[i] = 1; i 3035 modules/core/src/persistence.cpp fmt_pairs[i+1] = (int)(pos - icvTypeSymbol); i 3036 modules/core/src/persistence.cpp if( i > 0 && fmt_pairs[i+1] == fmt_pairs[i-1] ) i 3037 modules/core/src/persistence.cpp fmt_pairs[i-2] += fmt_pairs[i]; i 3040 modules/core/src/persistence.cpp i += 2; i 3041 modules/core/src/persistence.cpp if( i >= max_len ) i 3044 modules/core/src/persistence.cpp fmt_pairs[i] = 0; i 3048 modules/core/src/persistence.cpp fmt_pair_count = i/2; i 3057 modules/core/src/persistence.cpp int fmt_pairs[CV_FS_MAX_FMT_PAIRS], i, fmt_pair_count; i 3062 modules/core/src/persistence.cpp for( i = 0, size = initial_size; i < fmt_pair_count; i += 2 ) i 3064 modules/core/src/persistence.cpp comp_size = CV_ELEM_SIZE(fmt_pairs[i+1]); i 3066 modules/core/src/persistence.cpp size += comp_size * fmt_pairs[i]; i 3124 modules/core/src/persistence.cpp int i, count = fmt_pairs[k*2]; i 3132 modules/core/src/persistence.cpp for( i = 0; i < count; i++ ) i 3225 modules/core/src/persistence.cpp int i = 0, offset = 0, count = 0; i 3249 modules/core/src/persistence.cpp for( i = 0; i < count; i++ ) i 3254 modules/core/src/persistence.cpp int ival = node->data.i; i 3359 modules/core/src/persistence.cpp if( i != count - 1 || k != fmt_pair_count - 1 ) i 3389 modules/core/src/persistence.cpp int i, total = node->data.seq->total; i 3396 modules/core/src/persistence.cpp for( i = 0; i < total; i++ ) i 3414 modules/core/src/persistence.cpp fs->write_int( fs, name, node->data.i ); i 3634 modules/core/src/persistence.cpp int i, total_size; i 3657 modules/core/src/persistence.cpp for( total_size = CV_MAT_CN(elem_type), i = 0; i < dims; i++ ) i 3658 modules/core/src/persistence.cpp total_size *= sizes[i]; i 3691 modules/core/src/persistence.cpp int i, dims = *(int*)userdata; i 3695 modules/core/src/persistence.cpp for( i = 0; i < dims; i++ ) i 3697 modules/core/src/persistence.cpp int delta = a[i] - b[i]; i 3716 modules/core/src/persistence.cpp int i, dims; i 3746 modules/core/src/persistence.cpp for( i = 0; i < elements->total; i++ ) i 3753 modules/core/src/persistence.cpp if( i > 0 ) i 3787 modules/core/src/persistence.cpp int i; i 3815 modules/core/src/persistence.cpp for( i = 0; i < elements->total; ) i 3822 modules/core/src/persistence.cpp k = elem->data.i; i 3823 modules/core/src/persistence.cpp if( i > 0 && k >= 0 ) i 3827 modules/core/src/persistence.cpp if( i > 0 ) i 3834 modules/core/src/persistence.cpp i++; i 3836 modules/core/src/persistence.cpp if( !CV_NODE_IS_INT(elem->tag ) || elem->data.i < 0 ) i 3838 modules/core/src/persistence.cpp idx[k] = elem->data.i; i 3842 modules/core/src/persistence.cpp i++; i 3845 modules/core/src/persistence.cpp i += cn; i 4208 modules/core/src/persistence.cpp int fmt_pairs[CV_FS_MAX_FMT_PAIRS], i, fmt_pair_count; i 4314 modules/core/src/persistence.cpp for( i = 0; i < fmt_pair_count; i += 2 ) i 4315 modules/core/src/persistence.cpp items_per_elem += fmt_pairs[i]; i 4348 modules/core/src/persistence.cpp int i, total; i 4359 modules/core/src/persistence.cpp for( i = 0; i < total; i++ ) i 4432 modules/core/src/persistence.cpp int i, k, vtx_count, edge_count; i 4444 modules/core/src/persistence.cpp for( i = 0, k = 0; i < graph->total; i++ ) i 4506 modules/core/src/persistence.cpp for( i = 0; i < data->total; i++ ) i 4548 modules/core/src/persistence.cpp for( i = 0; i < graph->total; i++ ) i 4575 modules/core/src/persistence.cpp int i, k; i 4629 modules/core/src/persistence.cpp for( i = 0; i < fmt_pair_count; i += 2 ) i 4630 modules/core/src/persistence.cpp vtx_items_per_elem += fmt_pairs[i]; i 4650 modules/core/src/persistence.cpp for( i = 0; i < fmt_pair_count; i += 2 ) i 4651 modules/core/src/persistence.cpp edge_items_per_elem += fmt_pairs[i]; i 4698 modules/core/src/persistence.cpp for( i = 0; i < elem_count; i++ ) i 4702 modules/core/src/persistence.cpp int count = MIN( elem_count - i, read_max )*items_per_elem; i 4712 modules/core/src/persistence.cpp vtx_buf[i] = vtx; i 4814 modules/core/src/persistence.cpp int i, len; i 4835 modules/core/src/persistence.cpp for( i = 0; i < len; i++ ) i 4837 modules/core/src/persistence.cpp c = _info->type_name[i]; i 5050 modules/core/src/persistence.cpp int i, k; i 5065 modules/core/src/persistence.cpp for( i = 0; i < seq->total; i++ ) i 5295 modules/core/src/persistence.cpp FileNode FileNode::operator[](int i) const i 5297 modules/core/src/persistence.cpp return isSeq() ? FileNode(fs, (CvFileNode*)cvGetSeqElem(node->data.seq, i)) : i 5298 modules/core/src/persistence.cpp i == 0 ? *this : FileNode(); i 5570 modules/core/src/persistence.cpp int i, npoints = (int)keypoints.size(); i 5571 modules/core/src/persistence.cpp for( i = 0; i < npoints; i++ ) i 5573 modules/core/src/persistence.cpp const KeyPoint& kpt = keypoints[i]; i 5602 modules/core/src/persistence.cpp int i, n = (int)matches.size(); i 5603 modules/core/src/persistence.cpp for( i = 0; i < n; i++ ) i 5605 modules/core/src/persistence.cpp const DMatch& m = matches[i]; i 5639 modules/core/src/persistence.cpp CV_NODE_IS_INT(node.node->tag) ? node.node->data.i : i 5646 modules/core/src/persistence.cpp CV_NODE_IS_INT(node.node->tag) ? (float)node.node->data.i : i 5653 modules/core/src/persistence.cpp CV_NODE_IS_INT(node.node->tag) ? (double)node.node->data.i : i 87 modules/core/src/rand.cpp int i; i 91 modules/core/src/rand.cpp for( i = 0; i <= len - 4; i += 4 ) i 96 modules/core/src/rand.cpp t0 = ((int)temp & p[i][0]) + p[i][1]; i 98 modules/core/src/rand.cpp t1 = ((int)temp & p[i+1][0]) + p[i+1][1]; i 99 modules/core/src/rand.cpp arr[i] = saturate_cast<T>(t0); i 100 modules/core/src/rand.cpp arr[i+1] = saturate_cast<T>(t1); i 103 modules/core/src/rand.cpp t0 = ((int)temp & p[i+2][0]) + p[i+2][1]; i 105 modules/core/src/rand.cpp t1 = ((int)temp & p[i+3][0]) + p[i+3][1]; i 106 modules/core/src/rand.cpp arr[i+2] = saturate_cast<T>(t0); i 107 modules/core/src/rand.cpp arr[i+3] = saturate_cast<T>(t1); i 112 modules/core/src/rand.cpp for( i = 0; i <= len - 4; i += 4 ) i 117 modules/core/src/rand.cpp t0 = (t & p[i][0]) + p[i][1]; i 118 modules/core/src/rand.cpp t1 = ((t >> 8) & p[i+1][0]) + p[i+1][1]; i 119 modules/core/src/rand.cpp arr[i] = saturate_cast<T>(t0); i 120 modules/core/src/rand.cpp arr[i+1] = saturate_cast<T>(t1); i 122 modules/core/src/rand.cpp t0 = ((t >> 16) & p[i+2][0]) + p[i+2][1]; i 123 modules/core/src/rand.cpp t1 = ((t >> 24) & p[i+3][0]) + p[i+3][1]; i 124 modules/core/src/rand.cpp arr[i+2] = saturate_cast<T>(t0); i 125 modules/core/src/rand.cpp arr[i+3] = saturate_cast<T>(t1); i 129 modules/core/src/rand.cpp for( ; i < len; i++ ) i 134 modules/core/src/rand.cpp t0 = ((int)temp & p[i][0]) + p[i][1]; i 135 modules/core/src/rand.cpp arr[i] = saturate_cast<T>(t0); i 153 modules/core/src/rand.cpp int i = 0; i 156 modules/core/src/rand.cpp for( i = 0; i <= len - 4; i += 4 ) i 162 modules/core/src/rand.cpp v0 = (unsigned)(((uint64)t0 * p[i].M) >> 32); i 163 modules/core/src/rand.cpp v1 = (unsigned)(((uint64)t1 * p[i+1].M) >> 32); i 164 modules/core/src/rand.cpp v0 = (v0 + ((t0 - v0) >> p[i].sh1)) >> p[i].sh2; i 165 modules/core/src/rand.cpp v1 = (v1 + ((t1 - v1) >> p[i+1].sh1)) >> p[i+1].sh2; i 166 modules/core/src/rand.cpp v0 = t0 - v0*p[i].d + p[i].delta; i 167 modules/core/src/rand.cpp v1 = t1 - v1*p[i+1].d + p[i+1].delta; i 168 modules/core/src/rand.cpp arr[i] = saturate_cast<T>((int)v0); i 169 modules/core/src/rand.cpp arr[i+1] = saturate_cast<T>((int)v1); i 175 modules/core/src/rand.cpp v0 = (unsigned)(((uint64)t0 * p[i+2].M) >> 32); i 176 modules/core/src/rand.cpp v1 = (unsigned)(((uint64)t1 * p[i+3].M) >> 32); i 177 modules/core/src/rand.cpp v0 = (v0 + ((t0 - v0) >> p[i+2].sh1)) >> p[i+2].sh2; i 178 modules/core/src/rand.cpp v1 = (v1 + ((t1 - v1) >> p[i+3].sh1)) >> p[i+3].sh2; i 179 modules/core/src/rand.cpp v0 = t0 - v0*p[i+2].d + p[i+2].delta; i 180 modules/core/src/rand.cpp v1 = t1 - v1*p[i+3].d + p[i+3].delta; i 181 modules/core/src/rand.cpp arr[i+2] = saturate_cast<T>((int)v0); i 182 modules/core/src/rand.cpp arr[i+3] = saturate_cast<T>((int)v1); i 185 modules/core/src/rand.cpp for( ; i < len; i++ ) i 189 modules/core/src/rand.cpp v0 = (unsigned)(((uint64)t0 * p[i].M) >> 32); i 190 modules/core/src/rand.cpp v0 = (v0 + ((t0 - v0) >> p[i].sh1)) >> p[i].sh2; i 191 modules/core/src/rand.cpp v0 = t0 - v0*p[i].d + p[i].delta; i 192 modules/core/src/rand.cpp arr[i] = saturate_cast<T>((int)v0); i 217 modules/core/src/rand.cpp int i = 0; i 219 modules/core/src/rand.cpp for( ; i <= len - 4; i += 4 ) i 232 modules/core/src/rand.cpp __m128 q0 = _mm_loadu_ps((const float*)(p + i)); i 233 modules/core/src/rand.cpp __m128 q1 = _mm_loadu_ps((const float*)(p + i + 2)); i 241 modules/core/src/rand.cpp _mm_storeu_ps(arr + i, _mm_add_ps(_mm_mul_ps(_mm_loadu_ps(f), p0), p1)); i 243 modules/core/src/rand.cpp arr[i+0] = f[0]*p[i+0][0] + p[i+0][1]; i 244 modules/core/src/rand.cpp arr[i+1] = f[1]*p[i+1][0] + p[i+1][1]; i 245 modules/core/src/rand.cpp arr[i+2] = f[2]*p[i+2][0] + p[i+2][1]; i 246 modules/core/src/rand.cpp arr[i+3] = f[3]*p[i+3][0] + p[i+3][1]; i 250 modules/core/src/rand.cpp for( ; i < len; i++ ) i 254 modules/core/src/rand.cpp _mm_store_ss(arr + i, _mm_add_ss( i 255 modules/core/src/rand.cpp _mm_mul_ss(_mm_set_ss((float)(int)temp), _mm_set_ss(p[i][0])), i 256 modules/core/src/rand.cpp _mm_set_ss(p[i][1])) i 259 modules/core/src/rand.cpp arr[i] = (int)temp*p[i][0] + p[i][1]; i 272 modules/core/src/rand.cpp int i; i 274 modules/core/src/rand.cpp for( i = 0; i <= len - 4; i += 4 ) i 280 modules/core/src/rand.cpp f0 = v*p[i][0] + p[i][1]; i 283 modules/core/src/rand.cpp f1 = v*p[i+1][0] + p[i+1][1]; i 284 modules/core/src/rand.cpp arr[i] = f0; arr[i+1] = f1; i 288 modules/core/src/rand.cpp f0 = v*p[i+2][0] + p[i+2][1]; i 291 modules/core/src/rand.cpp f1 = v*p[i+3][0] + p[i+3][1]; i 292 modules/core/src/rand.cpp arr[i+2] = f0; arr[i+3] = f1; i 295 modules/core/src/rand.cpp for( ; i < len; i++ ) i 299 modules/core/src/rand.cpp arr[i] = v*p[i][0] + p[i][1]; i 334 modules/core/src/rand.cpp int i; i 352 modules/core/src/rand.cpp for(i=126;i>=1;i--) i 355 modules/core/src/rand.cpp kn[i+1] = (unsigned)((dn/tn)*m1); i 357 modules/core/src/rand.cpp fn[i] = (float)std::exp(-.5*dn*dn); i 358 modules/core/src/rand.cpp wn[i] = (float)(dn/m1); i 363 modules/core/src/rand.cpp for( i = 0; i < len; i++ ) i 395 modules/core/src/rand.cpp arr[i] = x; i 412 modules/core/src/rand.cpp int i, j, k; i 418 modules/core/src/rand.cpp for( i = 0; i < len; i++ ) i 419 modules/core/src/rand.cpp dst[i] = saturate_cast<T>(src[i]*a + b); i 423 modules/core/src/rand.cpp for( i = 0; i < len; i++, src += cn, dst += cn ) i 430 modules/core/src/rand.cpp for( i = 0; i < len; i++, src += cn, dst += cn ) i 712 modules/core/src/rand.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 757 modules/core/src/rand.cpp for( unsigned i = 0; i < sz; i++ ) i 760 modules/core/src/rand.cpp std::swap( arr[j], arr[i] ); i 57 modules/core/src/stat.cpp int i, n = DataType<T>::channels; i 58 modules/core/src/stat.cpp for( i = 0; i < n; i++ ) i 59 modules/core/src/stat.cpp s.val[i] = ((T1*)&v)[i]; i 113 modules/core/src/stat.cpp for (int i = 0; i < 4; i += cn) i 115 modules/core/src/stat.cpp dst[j] += ar[j + i]; i 143 modules/core/src/stat.cpp for (int i = 0; i < 4; i += cn) i 145 modules/core/src/stat.cpp dst[j] += ar[j + i]; i 174 modules/core/src/stat.cpp for (int i = 0; i < 4; i += cn) i 176 modules/core/src/stat.cpp dst[j] += ar[j + i]; i 220 modules/core/src/stat.cpp for (int i = 0; i < 4; i += cn) i 222 modules/core/src/stat.cpp dst[j] += ar[j + i]; i 263 modules/core/src/stat.cpp for (int i = 0; i < 4; i += cn) i 265 modules/core/src/stat.cpp dst[j] += ar[j + i]; i 296 modules/core/src/stat.cpp for (int i = 0; i < 4; i += cn) i 298 modules/core/src/stat.cpp dst[j] += ar[j + i]; i 329 modules/core/src/stat.cpp for (int i = 0; i < 4; i += cn) i 331 modules/core/src/stat.cpp dst[j] += ar[j + i]; i 346 modules/core/src/stat.cpp int i = vop(src0, mask, dst, len, cn), k = cn % 4; i 347 modules/core/src/stat.cpp src += i * cn; i 354 modules/core/src/stat.cpp for(; i <= len - 4; i += 4, src += cn*4 ) i 357 modules/core/src/stat.cpp for( ; i < len; i++, src += cn ) i 364 modules/core/src/stat.cpp for( ; i < len; i++, src += cn ) i 375 modules/core/src/stat.cpp for( ; i < len; i++, src += cn ) i 388 modules/core/src/stat.cpp src = src0 + i*cn + k; i 390 modules/core/src/stat.cpp for( ; i < len; i++, src += cn ) i 403 modules/core/src/stat.cpp int i, nzm = 0; i 407 modules/core/src/stat.cpp for( i = 0; i < len; i++ ) i 408 modules/core/src/stat.cpp if( mask[i] ) i 410 modules/core/src/stat.cpp s += src[i]; i 418 modules/core/src/stat.cpp for( i = 0; i < len; i++, src += 3 ) i 419 modules/core/src/stat.cpp if( mask[i] ) i 432 modules/core/src/stat.cpp for( i = 0; i < len; i++, src += cn ) i 433 modules/core/src/stat.cpp if( mask[i] ) i 497 modules/core/src/stat.cpp int i=0, nz = 0; i 499 modules/core/src/stat.cpp for(; i <= len - 4; i += 4 ) i 500 modules/core/src/stat.cpp nz += (src[i] != 0) + (src[i+1] != 0) + (src[i+2] != 0) + (src[i+3] != 0); i 502 modules/core/src/stat.cpp for( ; i < len; i++ ) i 503 modules/core/src/stat.cpp nz += src[i] != 0; i 509 modules/core/src/stat.cpp int i=0, nz = 0; i 516 modules/core/src/stat.cpp for (; i<=len-16; i+=16) i 518 modules/core/src/stat.cpp __m128i r0 = _mm_loadu_si128((const __m128i*)(src+i)); i 521 modules/core/src/stat.cpp nz = i - _mm_cvtsi128_si32(_mm_add_epi32(sum, _mm_unpackhi_epi64(sum, sum))); i 529 modules/core/src/stat.cpp while( i < len0 ) i 531 modules/core/src/stat.cpp int blockSizei = std::min(len0 - i, blockSize0), j = 0; i 549 modules/core/src/stat.cpp i += blockSizei; i 554 modules/core/src/stat.cpp nz += i - saturate_cast<int>(buf[0] + buf[1] + buf[2] + buf[3]); i 556 modules/core/src/stat.cpp for( ; i < len; i++ ) i 557 modules/core/src/stat.cpp nz += src[i] != 0; i 563 modules/core/src/stat.cpp int i = 0, nz = 0; i 570 modules/core/src/stat.cpp for ( ; i <= len - 8; i += 8) i 572 modules/core/src/stat.cpp __m128i r0 = _mm_loadu_si128((const __m128i*)(src + i)); i 576 modules/core/src/stat.cpp nz = i - (_mm_cvtsi128_si32(_mm_add_epi32(sum, _mm_unpackhi_epi64(sum, sum))) >> 1); i 577 modules/core/src/stat.cpp src += i; i 584 modules/core/src/stat.cpp while( i < len0 ) i 586 modules/core/src/stat.cpp int blockSizei = std::min(len0 - i, blockSize0), j = 0; i 602 modules/core/src/stat.cpp i += blockSizei; i 607 modules/core/src/stat.cpp nz += i - saturate_cast<int>(buf[0] + buf[1] + buf[2] + buf[3]); i 609 modules/core/src/stat.cpp return nz + countNonZero_(src, len - i); i 614 modules/core/src/stat.cpp int i = 0, nz = 0; i 621 modules/core/src/stat.cpp for ( ; i <= len - 4; i += 4) i 623 modules/core/src/stat.cpp __m128i r0 = _mm_loadu_si128((const __m128i*)(src + i)); i 627 modules/core/src/stat.cpp nz = i - (_mm_cvtsi128_si32(_mm_add_epi32(sum, _mm_unpackhi_epi64(sum, sum))) >> 2); i 628 modules/core/src/stat.cpp src += i; i 636 modules/core/src/stat.cpp while( i < len0 ) i 638 modules/core/src/stat.cpp int blockSizei = std::min(len0 - i, blockSize0), j = 0; i 655 modules/core/src/stat.cpp i += blockSizei; i 660 modules/core/src/stat.cpp nz += i - saturate_cast<int>(buf[0] + buf[1] + buf[2] + buf[3]); i 662 modules/core/src/stat.cpp return nz + countNonZero_(src, len - i); i 667 modules/core/src/stat.cpp int i = 0, nz = 0; i 675 modules/core/src/stat.cpp for ( ; i <= len - 4; i += 4) i 677 modules/core/src/stat.cpp __m128 r0 = _mm_loadu_ps(src + i); i 681 modules/core/src/stat.cpp nz = i - (_mm_cvtsi128_si32(_mm_add_epi32(sum, _mm_unpackhi_epi64(sum, sum))) >> 2); i 682 modules/core/src/stat.cpp src += i; i 690 modules/core/src/stat.cpp while( i < len0 ) i 692 modules/core/src/stat.cpp int blockSizei = std::min(len0 - i, blockSize0), j = 0; i 709 modules/core/src/stat.cpp i += blockSizei; i 714 modules/core/src/stat.cpp nz += i - saturate_cast<int>(buf[0] + buf[1] + buf[2] + buf[3]); i 716 modules/core/src/stat.cpp return nz + countNonZero_(src, len - i); i 798 modules/core/src/stat.cpp for (int i = 0; i < 4; i += cn) i 801 modules/core/src/stat.cpp sum[j] += ar[j + i]; i 802 modules/core/src/stat.cpp sqsum[j] += ar[4 + j + i]; i 857 modules/core/src/stat.cpp for (int i = 0; i < 4; i += cn) i 860 modules/core/src/stat.cpp sum[j] += ar[j + i]; i 861 modules/core/src/stat.cpp sqsum[j] += ar[4 + j + i]; i 878 modules/core/src/stat.cpp int i = vop(src0, mask, sum, sqsum, len, cn), k = cn % 4; i 879 modules/core/src/stat.cpp src += i * cn; i 885 modules/core/src/stat.cpp for( ; i < len; i++, src += cn ) i 897 modules/core/src/stat.cpp for( ; i < len; i++, src += cn ) i 910 modules/core/src/stat.cpp for( ; i < len; i++, src += cn ) i 926 modules/core/src/stat.cpp for( ; i < len; i++, src += cn ) i 944 modules/core/src/stat.cpp int i, nzm = 0; i 950 modules/core/src/stat.cpp for( i = 0; i < len; i++ ) i 951 modules/core/src/stat.cpp if( mask[i] ) i 953 modules/core/src/stat.cpp T v = src[i]; i 964 modules/core/src/stat.cpp for( i = 0; i < len; i++, src += 3 ) i 965 modules/core/src/stat.cpp if( mask[i] ) i 978 modules/core/src/stat.cpp for( i = 0; i < len; i++, src += cn ) i 979 modules/core/src/stat.cpp if( mask[i] ) i 1191 modules/core/src/stat.cpp for( int i = 0; i < cn; i++ ) i 1192 modules/core/src/stat.cpp sc[i] = res[i]; i 1228 modules/core/src/stat.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 1235 modules/core/src/stat.cpp if( blockSum && (count + blockSize >= intSumBlockSize || (i+1 >= it.nplanes && j+bsz >= total)) ) i 1348 modules/core/src/stat.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 1437 modules/core/src/stat.cpp for( int i = 0; i < cn; i++ ) i 1438 modules/core/src/stat.cpp sc[i] = res[i]; i 1476 modules/core/src/stat.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 1484 modules/core/src/stat.cpp if( blockSum && (count + blockSize >= intSumBlockSize || (i+1 >= it.nplanes && j+bsz >= total)) ) i 1588 modules/core/src/stat.cpp for (int i = 0; i < cn; ++i) i 1590 modules/core/src/stat.cpp mean[i] *= total; i 1591 modules/core/src/stat.cpp stddev[i] = std::sqrt(std::max(stddev[i] * total - mean[i] * mean[i] , 0.)); i 1774 modules/core/src/stat.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 1782 modules/core/src/stat.cpp if( blockSum && (count + blockSize >= intSumBlockSize || (i+1 >= it.nplanes && j+bsz >= total)) ) i 1849 modules/core/src/stat.cpp for( int i = 0; i < len; i++ ) i 1851 modules/core/src/stat.cpp T val = src[i]; i 1855 modules/core/src/stat.cpp minIdx = startIdx + i; i 1860 modules/core/src/stat.cpp maxIdx = startIdx + i; i 1866 modules/core/src/stat.cpp for( int i = 0; i < len; i++ ) i 1868 modules/core/src/stat.cpp T val = src[i]; i 1869 modules/core/src/stat.cpp if( mask[i] && val < minVal ) i 1872 modules/core/src/stat.cpp minIdx = startIdx + i; i 1874 modules/core/src/stat.cpp if( mask[i] && val > maxVal ) i 1877 modules/core/src/stat.cpp maxIdx = startIdx + i; i 1934 modules/core/src/stat.cpp int i, d = a.dims; i 1938 modules/core/src/stat.cpp for( i = d-1; i >= 0; i-- ) i 1940 modules/core/src/stat.cpp int sz = a.size[i]; i 1941 modules/core/src/stat.cpp idx[i] = (int)(ofs % sz); i 1947 modules/core/src/stat.cpp for( i = d-1; i >= 0; i-- ) i 1948 modules/core/src/stat.cpp idx[i] = -1; i 1990 modules/core/src/stat.cpp for (int i = 0; i < groupnum; i++) i 1992 modules/core/src/stat.cpp if (minptr && minptr[i] <= minval) i 1994 modules/core/src/stat.cpp if (minptr[i] == minval) i 1997 modules/core/src/stat.cpp minloc = std::min(minlocptr[i], minloc); i 2002 modules/core/src/stat.cpp minloc = minlocptr[i]; i 2003 modules/core/src/stat.cpp minval = minptr[i]; i 2006 modules/core/src/stat.cpp if (maxptr && maxptr[i] >= maxval) i 2008 modules/core/src/stat.cpp if (maxptr[i] == maxval) i 2011 modules/core/src/stat.cpp maxloc = std::min(maxlocptr[i], maxloc); i 2016 modules/core/src/stat.cpp maxloc = maxlocptr[i]; i 2017 modules/core/src/stat.cpp maxval = maxptr[i]; i 2020 modules/core/src/stat.cpp if (maxptr2 && maxptr2[i] > maxval2) i 2021 modules/core/src/stat.cpp maxval2 = maxptr2[i]; i 2314 modules/core/src/stat.cpp for( size_t i = 0; i < it.nplanes; i++, ++it, startidx += planeSize ) i 2364 modules/core/src/stat.cpp for( int i = 0; i < len; i++, src += cn ) i 2365 modules/core/src/stat.cpp if( mask[i] ) i 2385 modules/core/src/stat.cpp for( int i = 0; i < len; i++, src += cn ) i 2386 modules/core/src/stat.cpp if( mask[i] ) i 2406 modules/core/src/stat.cpp for( int i = 0; i < len; i++, src += cn ) i 2407 modules/core/src/stat.cpp if( mask[i] ) i 2430 modules/core/src/stat.cpp for( int i = 0; i < len; i++, src1 += cn, src2 += cn ) i 2431 modules/core/src/stat.cpp if( mask[i] ) i 2451 modules/core/src/stat.cpp for( int i = 0; i < len; i++, src1 += cn, src2 += cn ) i 2452 modules/core/src/stat.cpp if( mask[i] ) i 2472 modules/core/src/stat.cpp for( int i = 0; i < len; i++, src1 += cn, src2 += cn ) i 2473 modules/core/src/stat.cpp if( mask[i] ) i 2603 modules/core/src/stat.cpp for (int i = 0; i < cn; ++i) i 2604 modules/core/src/stat.cpp s += sc[i]; i 2781 modules/core/src/stat.cpp for( int i = 1; i < cn; i++ ) i 2784 modules/core/src/stat.cpp normType == NORM_INF ? std::max(norm, norm_array[i]) : i 2785 modules/core/src/stat.cpp normType == NORM_L1 ? norm + norm_array[i] : i 2786 modules/core/src/stat.cpp normType == NORM_L2 || normType == NORM_L2SQR ? norm + norm_array[i] * norm_array[i] : i 2868 modules/core/src/stat.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 2884 modules/core/src/stat.cpp int i; i 2894 modules/core/src/stat.cpp int *ibuf = &result.i; i 2905 modules/core/src/stat.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 2912 modules/core/src/stat.cpp if( blockSum && (count + blockSize >= intSumBlockSize || (i+1 >= it.nplanes && j+bsz >= total)) ) i 2931 modules/core/src/stat.cpp result.d = result.i; i 2971 modules/core/src/stat.cpp for (int i = 0; i < cn; ++i) i 2973 modules/core/src/stat.cpp result += sc1[i]; i 2975 modules/core/src/stat.cpp s2 += sc2[i]; i 3277 modules/core/src/stat.cpp for( int i = 1; i < src1.channels(); i++ ) i 3280 modules/core/src/stat.cpp normType == NORM_INF ? std::max(norm, norm_array[i]) : i 3281 modules/core/src/stat.cpp normType == NORM_L1 ? norm + norm_array[i] : i 3282 modules/core/src/stat.cpp normType == NORM_L2 || normType == NORM_L2SQR ? norm + norm_array[i] * norm_array[i] : i 3352 modules/core/src/stat.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 3369 modules/core/src/stat.cpp int i; i 3390 modules/core/src/stat.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 3397 modules/core/src/stat.cpp if( blockSum && (count + blockSize >= intSumBlockSize || (i+1 >= it.nplanes && j+bsz >= total)) ) i 3438 modules/core/src/stat.cpp for( int i = 0; i < nvecs; i++ ) i 3439 modules/core/src/stat.cpp dist[i] = normL1<_Tp, _Rt>(src1, src2 + step2*i, len); i 3444 modules/core/src/stat.cpp for( int i = 0; i < nvecs; i++ ) i 3445 modules/core/src/stat.cpp dist[i] = mask[i] ? normL1<_Tp, _Rt>(src1, src2 + step2*i, len) : val0; i 3456 modules/core/src/stat.cpp for( int i = 0; i < nvecs; i++ ) i 3457 modules/core/src/stat.cpp dist[i] = normL2Sqr<_Tp, _Rt>(src1, src2 + step2*i, len); i 3462 modules/core/src/stat.cpp for( int i = 0; i < nvecs; i++ ) i 3463 modules/core/src/stat.cpp dist[i] = mask[i] ? normL2Sqr<_Tp, _Rt>(src1, src2 + step2*i, len) : val0; i 3474 modules/core/src/stat.cpp for( int i = 0; i < nvecs; i++ ) i 3475 modules/core/src/stat.cpp dist[i] = std::sqrt(normL2Sqr<_Tp, _Rt>(src1, src2 + step2*i, len)); i 3480 modules/core/src/stat.cpp for( int i = 0; i < nvecs; i++ ) i 3481 modules/core/src/stat.cpp dist[i] = mask[i] ? std::sqrt(normL2Sqr<_Tp, _Rt>(src1, src2 + step2*i, len)) : val0; i 3491 modules/core/src/stat.cpp for( int i = 0; i < nvecs; i++ ) i 3492 modules/core/src/stat.cpp dist[i] = hal::normHamming(src1, src2 + step2*i, len); i 3497 modules/core/src/stat.cpp for( int i = 0; i < nvecs; i++ ) i 3499 modules/core/src/stat.cpp if (mask[i]) i 3500 modules/core/src/stat.cpp dist[i] = hal::normHamming(src1, src2 + step2*i, len); i 3502 modules/core/src/stat.cpp dist[i] = val0; i 3513 modules/core/src/stat.cpp for( int i = 0; i < nvecs; i++ ) i 3514 modules/core/src/stat.cpp dist[i] = hal::normHamming(src1, src2 + step2*i, len, 2); i 3519 modules/core/src/stat.cpp for( int i = 0; i < nvecs; i++ ) i 3521 modules/core/src/stat.cpp if (mask[i]) i 3522 modules/core/src/stat.cpp dist[i] = hal::normHamming(src1, src2 + step2*i, len, 2); i 3524 modules/core/src/stat.cpp dist[i] = val0; i 3603 modules/core/src/stat.cpp for( int i = range.start; i < range.end; i++ ) i 3605 modules/core/src/stat.cpp func(src1->ptr(i), src2->ptr(), src2->step, src2->rows, src2->cols, i 3606 modules/core/src/stat.cpp K > 0 ? (uchar*)bufptr : dist->ptr(i), mask->data ? mask->ptr(i) : 0); i 3610 modules/core/src/stat.cpp int* nidxptr = nidx->ptr<int>(i); i 3613 modules/core/src/stat.cpp int* distptr = (int*)dist->ptr(i); i 3694 modules/core/src/stat.cpp for( int i = 0; i < tdist.rows; i++ ) i 3696 modules/core/src/stat.cpp int idx = tidx.at<int>(i); i 3697 modules/core/src/stat.cpp int d = tdist.at<int>(i), d0 = dist.at<int>(idx); i 3701 modules/core/src/stat.cpp nidx.at<int>(idx) = i + update; i 3707 modules/core/src/stat.cpp for( int i = 0; i < tdist.rows; i++ ) i 3709 modules/core/src/stat.cpp int idx = tidx.at<int>(i); i 3710 modules/core/src/stat.cpp float d = tdist.at<float>(i), d0 = dist.at<float>(idx); i 3714 modules/core/src/stat.cpp nidx.at<int>(idx) = i + update; i 3776 modules/core/src/stat.cpp for( int i = 0; i < src.rows; i++ ) i 3778 modules/core/src/stat.cpp const uchar* bin_ptr = src.ptr(i); i 3781 modules/core/src/stat.cpp *idx_ptr++ = Point(j, i); i 1069 modules/core/src/system.cpp for (size_t i = 0; i < tlsContainers_.size(); i++) i 1071 modules/core/src/system.cpp CV_DbgAssert(tlsContainers_[i] == NULL); // not all keys released i 1072 modules/core/src/system.cpp tlsContainers_[i] = NULL; i 1143 modules/core/src/system.cpp for (int i = 0; i < (int)tlsData_.size(); i++) i 1145 modules/core/src/system.cpp void*& data = tlsData_[i]; i 1148 modules/core/src/system.cpp getTLSContainerStorage().destroyData(i, data); i 69 modules/core/src/types.cpp for( size_t i = 0; i < keypoints.size(); i++ ) i 70 modules/core/src/types.cpp points2f[i] = keypoints[i].pt; i 75 modules/core/src/types.cpp for( size_t i = 0; i < keypointIndexes.size(); i++ ) i 77 modules/core/src/types.cpp int idx = keypointIndexes[i]; i 79 modules/core/src/types.cpp points2f[i] = keypoints[idx].pt; i 93 modules/core/src/types.cpp for( size_t i = 0; i < points2f.size(); i++ ) i 94 modules/core/src/types.cpp keypoints[i] = KeyPoint(points2f[i], size, -1, response, octave, class_id); i 152 modules/core/src/umatrix.cpp int i; i 153 modules/core/src/umatrix.cpp for( i = _dims-1; i >= 0; i-- ) i 155 modules/core/src/umatrix.cpp int s = _sz[i]; i 157 modules/core/src/umatrix.cpp m.size.p[i] = s; i 160 modules/core/src/umatrix.cpp m.step.p[i] = i < _dims-1 ? _steps[i] : esz; i 163 modules/core/src/umatrix.cpp m.step.p[i] = total; i 181 modules/core/src/umatrix.cpp int i, j; i 182 modules/core/src/umatrix.cpp for( i = 0; i < m.dims; i++ ) i 184 modules/core/src/umatrix.cpp if( m.size[i] > 1 ) i 188 modules/core/src/umatrix.cpp for( j = m.dims-1; j > i; j-- ) i 195 modules/core/src/umatrix.cpp if( j <= i && total == (size_t)total ) i 238 modules/core/src/umatrix.cpp int i; i 246 modules/core/src/umatrix.cpp for( i = 0; i < d; i++ ) i 247 modules/core/src/umatrix.cpp if( size[i] != _sizes[i] ) i 249 modules/core/src/umatrix.cpp if( i == d && (d > 1 || size[1] == 1)) i 286 modules/core/src/umatrix.cpp for( int i = 0; i < dims; i++ ) i 288 modules/core/src/umatrix.cpp size[i] = m.size[i]; i 289 modules/core/src/umatrix.cpp step[i] = m.step[i]; i 317 modules/core/src/umatrix.cpp for( int i = 2; i < m.dims; i++ ) i 318 modules/core/src/umatrix.cpp rs[i] = Range::all(); i 382 modules/core/src/umatrix.cpp int i, d = m.dims; i 385 modules/core/src/umatrix.cpp for( i = 0; i < d; i++ ) i 387 modules/core/src/umatrix.cpp Range r = ranges[i]; i 388 modules/core/src/umatrix.cpp CV_Assert( r == Range::all() || (0 <= r.start && r.start < r.end && r.end <= m.size[i]) ); i 391 modules/core/src/umatrix.cpp for( i = 0; i < d; i++ ) i 393 modules/core/src/umatrix.cpp Range r = ranges[i]; i 394 modules/core/src/umatrix.cpp if( r != Range::all() && r != Range(0, size.p[i])) i 396 modules/core/src/umatrix.cpp size.p[i] = r.end - r.start; i 397 modules/core/src/umatrix.cpp offset += r.start*step.p[i]; i 612 modules/core/src/umatrix.cpp for( int i = 0; i < dims; i++ ) i 614 modules/core/src/umatrix.cpp size_t s = step.p[i]; i 615 modules/core/src/umatrix.cpp ofs[i] = val / s; i 616 modules/core/src/umatrix.cpp val -= ofs[i]*s; i 636 modules/core/src/umatrix.cpp size_t i, sz[CV_MAX_DIM], srcofs[CV_MAX_DIM], dstofs[CV_MAX_DIM], esz = elemSize(); i 637 modules/core/src/umatrix.cpp for( i = 0; i < (size_t)dims; i++ ) i 638 modules/core/src/umatrix.cpp sz[i] = size.p[i]; i 786 modules/core/test/ocl/test_arithm.cpp for (int i = 0; i < cmp_num; ++i) i 788 modules/core/test/ocl/test_arithm.cpp SCOPED_TRACE(cmp_strs[i]); i 793 modules/core/test/ocl/test_arithm.cpp OCL_OFF(cv::compare(src1_roi, src2_roi, dst1_roi, cmp_codes[i])); i 794 modules/core/test/ocl/test_arithm.cpp OCL_ON(cv::compare(usrc1_roi, usrc2_roi, udst1_roi, cmp_codes[i])); i 803 modules/core/test/ocl/test_arithm.cpp for (int i = 0; i < cmp_num; ++i) i 805 modules/core/test/ocl/test_arithm.cpp SCOPED_TRACE(cmp_strs[i]); i 810 modules/core/test/ocl/test_arithm.cpp OCL_OFF(cv::compare(src1_roi, val_in_range, dst1_roi, cmp_codes[i])); i 811 modules/core/test/ocl/test_arithm.cpp OCL_ON(cv::compare(usrc1_roi, val_in_range, udst1_roi, cmp_codes[i])); i 820 modules/core/test/ocl/test_arithm.cpp for (int i = 0; i < cmp_num; ++i) i 822 modules/core/test/ocl/test_arithm.cpp SCOPED_TRACE(cmp_strs[i]); i 827 modules/core/test/ocl/test_arithm.cpp OCL_OFF(cv::compare(val_in_range, src1_roi, dst1_roi, cmp_codes[i])); i 828 modules/core/test/ocl/test_arithm.cpp OCL_ON(cv::compare(val_in_range, usrc1_roi, udst1_roi, cmp_codes[i])); i 924 modules/core/test/ocl/test_arithm.cpp for (int i = 0; i < test_loop_times; ++i) i 967 modules/core/test/ocl/test_arithm.cpp for (int i = 0; i < cn; ++i) i 968 modules/core/test/ocl/test_arithm.cpp EXPECT_NEAR(cpures[i], gpures[i], 0.1); i 988 modules/core/test/ocl/test_arithm.cpp for (int i = 0; i < cn; ++i) i 990 modules/core/test/ocl/test_arithm.cpp EXPECT_NEAR(cpu_mean[i], gpu_mean[i], 0.1); i 991 modules/core/test/ocl/test_arithm.cpp EXPECT_NEAR(cpu_stddev[i], gpu_stddev[i], 0.1); i 1008 modules/core/test/ocl/test_arithm.cpp for (int i = 0; i < cn; ++i) i 1010 modules/core/test/ocl/test_arithm.cpp EXPECT_NEAR(cpu_mean[i], gpu_mean[i], 0.1); i 1011 modules/core/test/ocl/test_arithm.cpp EXPECT_NEAR(cpu_stddev[i], gpu_stddev[i], 0.1); i 1028 modules/core/test/ocl/test_arithm.cpp for (int i = 0; i < 4; ++i) i 1030 modules/core/test/ocl/test_arithm.cpp EXPECT_NEAR(cpu_mean[i], gpu_mean[i], 0.1); i 1031 modules/core/test/ocl/test_arithm.cpp EXPECT_NEAR(cpu_stddev[i], gpu_stddev[i], 0.1); i 1179 modules/core/test/ocl/test_arithm.cpp for (int i = 0; i < 2; i++) i 1181 modules/core/test/ocl/test_arithm.cpp EXPECT_EQ(p1[i], up1[i]); i 1182 modules/core/test/ocl/test_arithm.cpp EXPECT_EQ(p2[i], up2[i]); i 1204 modules/core/test/ocl/test_arithm.cpp for( int i = 0; i < 2; i++) i 1206 modules/core/test/ocl/test_arithm.cpp EXPECT_EQ(p1[i], up1[i]); i 1207 modules/core/test/ocl/test_arithm.cpp EXPECT_EQ(p2[i], up2[i]); i 1466 modules/core/test/ocl/test_arithm.cpp for (int i = 0, size = sizeof(modes) / sizeof(modes[0]); i < size; ++i) i 1468 modules/core/test/ocl/test_arithm.cpp OCL_OFF(cv::normalize(src1_roi, dst1_roi, 10, 110, modes[i], src1_roi.type(), mask_roi)); i 1469 modules/core/test/ocl/test_arithm.cpp OCL_ON(cv::normalize(usrc1_roi, udst1_roi, 10, 110, modes[i], src1_roi.type(), umask_roi)); i 118 modules/core/test/ocl/test_channels.cpp for (int i = 0; i < nsrc; ++i) i 119 modules/core/test/ocl/test_channels.cpp dcn += src_roi[i].channels(); i 220 modules/core/test/ocl/test_channels.cpp for (int i = 0; i < cn; ++i) i 222 modules/core/test/ocl/test_channels.cpp EXPECT_MAT_NEAR(dst[i], udst[i], 0.0); i 223 modules/core/test/ocl/test_channels.cpp EXPECT_MAT_NEAR(dst_roi[i], udst_roi[i], 0.0); i 334 modules/core/test/ocl/test_channels.cpp for (int i = 0; i < nsrc; ++i) i 335 modules/core/test/ocl/test_channels.cpp scntotal += src_roi[i].channels(); i 336 modules/core/test/ocl/test_channels.cpp for (int i = 0; i < ndst; ++i) i 337 modules/core/test/ocl/test_channels.cpp dcntotal += dst_roi[i].channels(); i 342 modules/core/test/ocl/test_channels.cpp for (int i = 0; i < npairs; ++i) i 344 modules/core/test/ocl/test_channels.cpp fromTo[i<<1] = randomInt(0, scntotal); i 345 modules/core/test/ocl/test_channels.cpp fromTo[(i<<1)+1] = randomInt(0, dcntotal); i 359 modules/core/test/ocl/test_channels.cpp for (size_t i = 0, size = dst_roi.size(); i < size; ++i) i 361 modules/core/test/ocl/test_channels.cpp EXPECT_MAT_NEAR(dst[i], udst[i], 0.0); i 362 modules/core/test/ocl/test_channels.cpp EXPECT_MAT_NEAR(dst_roi[i], udst_roi[i], 0.0); i 165 modules/core/test/ocl/test_dft.cpp for (int i = 0; i < test_loop_times; ++i) i 132 modules/core/test/ocl/test_gemm.cpp for (int i = 0; i < test_loop_times; ++i) i 60 modules/core/test/test_arithm.cpp for( int i = 0; i < 4; i++ ) i 62 modules/core/test/test_arithm.cpp gamma[i] = exp(rng.uniform(-1, 6)*m*CV_LOG2); i 63 modules/core/test/test_arithm.cpp gamma[i] *= rng.uniform(0, 2) ? 1 : -1; i 513 modules/core/test/test_arithm.cpp size_t i; i 515 modules/core/test/test_arithm.cpp for( i = 0; i < total; i++ ) i 517 modules/core/test/test_arithm.cpp _Tp val = src[i*cn]; i 518 modules/core/test/test_arithm.cpp dst[i] = (a[0] <= val && val <= b[0]) ? uchar(255) : 0; i 522 modules/core/test/test_arithm.cpp for( i = 0; i < total; i++ ) i 524 modules/core/test/test_arithm.cpp _Tp val = src[i*cn + c]; i 525 modules/core/test/test_arithm.cpp dst[i] = a[c] <= val && val <= b[c] ? dst[i] : 0; i 532 modules/core/test/test_arithm.cpp size_t i; i 534 modules/core/test/test_arithm.cpp for( i = 0; i < total; i++ ) i 536 modules/core/test/test_arithm.cpp _Tp val = src[i*cn]; i 537 modules/core/test/test_arithm.cpp dst[i] = a[i*cn] <= val && val <= b[i*cn] ? 255 : 0; i 541 modules/core/test/test_arithm.cpp for( i = 0; i < total; i++ ) i 543 modules/core/test/test_arithm.cpp _Tp val = src[i*cn + c]; i 544 modules/core/test/test_arithm.cpp dst[i] = a[i*cn + c] <= val && val <= b[i*cn + c] ? dst[i] : 0; i 560 modules/core/test/test_arithm.cpp size_t i, nplanes = it.nplanes; i 563 modules/core/test/test_arithm.cpp for( i = 0; i < nplanes; i++, ++it ) i 608 modules/core/test/test_arithm.cpp size_t i, nplanes = it.nplanes; i 610 modules/core/test/test_arithm.cpp union { double d[4]; float f[4]; int i[4];} lbuf, rbuf; i 615 modules/core/test/test_arithm.cpp for( i = 0; i < nplanes; i++, ++it ) i 623 modules/core/test/test_arithm.cpp inRangeS_((const uchar*)sptr, lbuf.i, rbuf.i, dptr, total, cn); i 626 modules/core/test/test_arithm.cpp inRangeS_((const schar*)sptr, lbuf.i, rbuf.i, dptr, total, cn); i 629 modules/core/test/test_arithm.cpp inRangeS_((const ushort*)sptr, lbuf.i, rbuf.i, dptr, total, cn); i 632 modules/core/test/test_arithm.cpp inRangeS_((const short*)sptr, lbuf.i, rbuf.i, dptr, total, cn); i 635 modules/core/test/test_arithm.cpp inRangeS_((const int*)sptr, lbuf.i, rbuf.i, dptr, total, cn); i 670 modules/core/test/test_arithm.cpp for( int i = 0; i < 4; i++ ) i 672 modules/core/test/test_arithm.cpp gamma1[i] = std::max(gamma[i], temp[i]); i 673 modules/core/test/test_arithm.cpp gamma[i] = std::min(gamma[i], temp[i]); i 773 modules/core/test/test_arithm.cpp int i, j, k, esz = (int)src.elemSize(), width = src.cols*esz; i 775 modules/core/test/test_arithm.cpp for( i = 0; i < dst.rows; i++ ) i 777 modules/core/test/test_arithm.cpp const uchar* sptr = src.ptr(flipcode == 1 ? i : dst.rows - i - 1); i 778 modules/core/test/test_arithm.cpp uchar* dptr = dst.ptr(i); i 796 modules/core/test/test_arithm.cpp int i, k, esz = (int)dst.elemSize(), width = dst.cols*esz; i 798 modules/core/test/test_arithm.cpp for( i = 0; i < dst.rows; i++ ) i 800 modules/core/test/test_arithm.cpp uchar* dptr = dst.ptr(i); i 802 modules/core/test/test_arithm.cpp if( i < dst.cols ) i 804 modules/core/test/test_arithm.cpp dptr[i*esz + k] = ((uchar*)buf)[k]; i 903 modules/core/test/test_arithm.cpp size_t i, nplanes = it.nplanes; i 906 modules/core/test/test_arithm.cpp for( i = 0; i < nplanes; i++, ++it ) i 932 modules/core/test/test_arithm.cpp size_t i, nplanes = it.nplanes; i 935 modules/core/test/test_arithm.cpp for( i = 0; i < nplanes; i++, ++it ) i 1022 modules/core/test/test_arithm.cpp size_t i, nplanes = it.nplanes; i 1026 modules/core/test/test_arithm.cpp for( i = 0; i < nplanes; i++, ++it ) i 1222 modules/core/test/test_arithm.cpp for(int i = 1; i < cn; ++i) i 1223 modules/core/test/test_arithm.cpp err = std::max(err, sqmeanRef[i]); i 1289 modules/core/test/test_arithm.cpp int i, ndims = (int)minidx.size(); i 1292 modules/core/test/test_arithm.cpp for( i = 0; i < ndims; i++ ) i 1294 modules/core/test/test_arithm.cpp dst.at<double>(0,i) = minidx[i]; i 1295 modules/core/test/test_arithm.cpp dst.at<double>(0,i+ndims) = maxidx[i]; i 1344 modules/core/test/test_arithm.cpp int i, ninputs = op->ninputs; i 1346 modules/core/test/test_arithm.cpp for( i = 0; i < ninputs; i++ ) i 1347 modules/core/test/test_arithm.cpp src[i] = cvtest::randomMat(rng, size, type, minval, maxval, true); i 1808 modules/core/test/test_arithm.cpp int i, n = 205; i 1811 modules/core/test/test_arithm.cpp for( i = 0; i < n; i++ ) i 1813 modules/core/test/test_arithm.cpp test[i] = theRNG().uniform(0, 2) != 0; i 1814 modules/core/test/test_arithm.cpp nz += (int)test[i]; i 90 modules/core/test/test_countnonzero.cpp for (int i = 0; i < size.height; ++i) i 93 modules/core/test/test_countnonzero.cpp case CV_8U: { src.at<uchar>(i, j) = cv::randu<uchar>(); break; } i 94 modules/core/test/test_countnonzero.cpp case CV_8S: { src.at<char>(i, j) = cv::randu<uchar>() - 128; break; } i 95 modules/core/test/test_countnonzero.cpp case CV_16U: { src.at<ushort>(i, j) = cv::randu<ushort>(); break; } i 96 modules/core/test/test_countnonzero.cpp case CV_16S: { src.at<short>(i, j) = cv::randu<short>(); break; } i 97 modules/core/test/test_countnonzero.cpp case CV_32S: { src.at<int>(i, j) = cv::randu<int>(); break; } i 98 modules/core/test/test_countnonzero.cpp case CV_32F: { src.at<float>(i, j) = cv::randu<float>(); break; } i 99 modules/core/test/test_countnonzero.cpp case CV_64F: { src.at<double>(i, j) = cv::randu<double>(); break; } i 112 modules/core/test/test_countnonzero.cpp int i = rng.next()%size.height, j = rng.next()%size.width; i 116 modules/core/test/test_countnonzero.cpp case CV_8U: { if (!src.at<uchar>(i, j)) {src.at<uchar>(i, j) = cv::randu<uchar>(); n += (src.at<uchar>(i, j) > 0);} break; } i 117 modules/core/test/test_countnonzero.cpp case CV_8S: { if (!src.at<char>(i, j)) {src.at<char>(i, j) = cv::randu<uchar>() - 128; n += abs(sign(src.at<char>(i, j)));} break; } i 118 modules/core/test/test_countnonzero.cpp case CV_16U: { if (!src.at<ushort>(i, j)) {src.at<ushort>(i, j) = cv::randu<ushort>(); n += (src.at<ushort>(i, j) > 0);} break; } i 119 modules/core/test/test_countnonzero.cpp case CV_16S: { if (!src.at<short>(i, j)) {src.at<short>(i, j) = cv::randu<short>(); n += abs(sign(src.at<short>(i, j)));} break; } i 120 modules/core/test/test_countnonzero.cpp case CV_32S: { if (!src.at<int>(i, j)) {src.at<int>(i, j) = cv::randu<int>(); n += abs(sign(src.at<int>(i, j)));} break; } i 121 modules/core/test/test_countnonzero.cpp case CV_32F: { if (fabs(src.at<float>(i, j)) <= eps_32) {src.at<float>(i, j) = cv::randu<float>(); n += (fabs(src.at<float>(i, j)) > eps_32);} break; } i 122 modules/core/test/test_countnonzero.cpp case CV_64F: { if (fabs(src.at<double>(i, j)) <= eps_64) {src.at<double>(i, j) = cv::randu<double>(); n += (fabs(src.at<double>(i, j)) > eps_64);} break; } i 149 modules/core/test/test_countnonzero.cpp for (int i = 0; i < src.rows; ++i) i 152 modules/core/test/test_countnonzero.cpp if (current_type == CV_8U) result += (src.at<uchar>(i, j) > 0); i 153 modules/core/test/test_countnonzero.cpp else if (current_type == CV_8S) result += abs(sign(src.at<char>(i, j))); i 154 modules/core/test/test_countnonzero.cpp else if (current_type == CV_16U) result += (src.at<ushort>(i, j) > 0); i 155 modules/core/test/test_countnonzero.cpp else if (current_type == CV_16S) result += abs(sign(src.at<short>(i, j))); i 156 modules/core/test/test_countnonzero.cpp else if (current_type == CV_32S) result += abs(sign(src.at<int>(i, j))); i 157 modules/core/test/test_countnonzero.cpp else if (current_type == CV_32F) result += (fabs(src.at<float>(i, j)) > eps_32); i 158 modules/core/test/test_countnonzero.cpp else result += (fabs(src.at<double>(i, j)) > eps_64); i 190 modules/core/test/test_countnonzero.cpp for (size_t i = 0; i < N; ++i) i 205 modules/core/test/test_countnonzero.cpp cout << "Number of experiment: " << i << endl; i 221 modules/core/test/test_countnonzero.cpp cout << "Number of experiment: " << i << endl; i 237 modules/core/test/test_countnonzero.cpp cout << "Number of experiment: " << i << endl; i 65 modules/core/test/test_ds.cpp int i, k, len = seq->count, elem_size = seq->elem_size; i 68 modules/core/test/test_ds.cpp for( i = 0; i < len/2; i++ ) i 70 modules/core/test/test_ds.cpp schar* a = data + i*elem_size; i 71 modules/core/test/test_ds.cpp schar* b = data + (len - i - 1)*elem_size; i 93 modules/core/test/test_ds.cpp int i; i 96 modules/core/test/test_ds.cpp for( i = 0; i < set_header->max_count; i++ ) i 98 modules/core/test/test_ds.cpp set_header->array[i*elem_size] = 0; i 99 modules/core/test/test_ds.cpp set_header->free_stack[i] = set_header->max_count - i - 1; i 219 modules/core/test/test_ds.cpp int i, max_vtx_count = graph->vtx->max_count; i 224 modules/core/test/test_ds.cpp for( i = 0; i < max_vtx_count; i++ ) i 226 modules/core/test/test_ds.cpp graph->matrix[(i*max_vtx_count + index)*edge_size] = i 227 modules/core/test/test_ds.cpp graph->matrix[(index*max_vtx_count + i)*edge_size] = 0; i 234 modules/core/test/test_ds.cpp int i, t, n = graph->oriented ? 1 : 2; i 239 modules/core/test/test_ds.cpp for( i = 0; i < n; i++ ) i 254 modules/core/test/test_ds.cpp int i, t, n = graph->oriented ? 1 : 2; i 259 modules/core/test/test_ds.cpp for( i = 0; i < n; i++ ) i 289 modules/core/test/test_ds.cpp int i, count = 0; i 294 modules/core/test/test_ds.cpp for( i = 0; i < max_vtx_count; i++ ) i 296 modules/core/test/test_ds.cpp count += graph->matrix[(i*max_vtx_count + index)*edge_size] + i 297 modules/core/test/test_ds.cpp graph->matrix[(index*max_vtx_count + i)*edge_size]; i 512 modules/core/test/test_ds.cpp for( size_t i = 0; i < simple_struct.size(); i++ ) i 513 modules/core/test/test_ds.cpp cvTsReleaseSimpleSeq( (CvTsSimpleSeq**)&simple_struct[i] ); i 526 modules/core/test/test_ds.cpp for( int i = 0; i < struct_count; i++ ) i 531 modules/core/test/test_ds.cpp pos[i] = -1; i 532 modules/core/test/test_ds.cpp index[i] = i; i 539 modules/core/test/test_ds.cpp cvTsReleaseSimpleSeq( (CvTsSimpleSeq**)&simple_struct[i] ); i 540 modules/core/test/test_ds.cpp simple_struct[i] = sseq = cvTsCreateSimpleSeq( max_struct_size, elem_size ); i 541 modules/core/test/test_ds.cpp cxcore_struct[i] = 0; i 611 modules/core/test/test_ds.cpp for( int i = 0; i < iters; i++ ) i 737 modules/core/test/test_ds.cpp for( int i = 0; i < struct_count; i++ ) i 738 modules/core/test/test_ds.cpp max_elem_size = MAX( max_elem_size, ((CvSeq*)cxcore_struct[i])->elem_size ); i 983 modules/core/test/test_ds.cpp int i; i 1006 modules/core/test/test_ds.cpp for( i = 0; i < struct_count; i++ ) i 1008 modules/core/test/test_ds.cpp if( test_seq_block_consistence(i, (CvSeq*)cxcore_struct[i], i 1009 modules/core/test/test_ds.cpp ((CvTsSimpleSeq*)simple_struct[i])->count) < 0 ) i 1012 modules/core/test/test_ds.cpp if( test_get_seq_elem( i, MAX(iterations/3,7) ) < 0 ) i 1015 modules/core/test/test_ds.cpp if( test_get_seq_reading( i, MAX(iterations/3,7) ) < 0 ) i 1069 modules/core/test/test_ds.cpp int i, k; i 1096 modules/core/test/test_ds.cpp for( i = 0; i < struct_count; i++ ) i 1098 modules/core/test/test_ds.cpp CvTsSimpleSeq* sseq = (CvTsSimpleSeq*)simple_struct[i]; i 1104 modules/core/test/test_ds.cpp for( i = 0; i < struct_count; i++ ) i 1106 modules/core/test/test_ds.cpp CvSeq* seq = (CvSeq*)cxcore_struct[i]; i 1107 modules/core/test/test_ds.cpp CvTsSimpleSeq* sseq = (CvTsSimpleSeq*)simple_struct[i]; i 1115 modules/core/test/test_ds.cpp if( test_seq_block_consistence( i, seq, sseq->count ) < 0 ) i 1151 modules/core/test/test_ds.cpp if( test_seq_block_consistence( i, seq, sseq->count ) < 0 ) i 1225 modules/core/test/test_ds.cpp for( size_t i = 0; i < simple_struct.size(); i++ ) i 1226 modules/core/test/test_ds.cpp cvTsReleaseSimpleSet( (CvTsSimpleSet**)&simple_struct[i] ); i 1241 modules/core/test/test_ds.cpp for( int i = 0; i < struct_count; i++ ) i 1242 modules/core/test/test_ds.cpp max_elem_size = MAX( max_elem_size, ((CvSeq*)cxcore_struct[i])->elem_size ); i 1387 modules/core/test/test_ds.cpp for( int i = 0; i < struct_count; i++ ) i 1397 modules/core/test/test_ds.cpp cvTsReleaseSimpleSet( (CvTsSimpleSet**)&simple_struct[i] ); i 1398 modules/core/test/test_ds.cpp simple_struct[i] = cvTsCreateSimpleSet( max_struct_size, pure_elem_size ); i 1399 modules/core/test/test_ds.cpp cxcore_struct[i] = cvCreateSet( 0, sizeof(CvSet), elem_size, storage ); i 1436 modules/core/test/test_ds.cpp for( size_t i = 0; i < simple_struct.size(); i++ ) i 1437 modules/core/test/test_ds.cpp cvTsReleaseSimpleGraph( (CvTsSimpleGraph**)&simple_struct[i] ); i 1445 modules/core/test/test_ds.cpp int i, k; i 1453 modules/core/test/test_ds.cpp for( i = 0; i < struct_count; i++ ) i 1455 modules/core/test/test_ds.cpp CvGraph* graph = (CvGraph*)cxcore_struct[i]; i 1589 modules/core/test/test_ds.cpp for( i = 0, k = 0; i < 10; i++ ) i 1685 modules/core/test/test_ds.cpp for( i = 0, k = 0; i < 10; i++ ) i 1796 modules/core/test/test_ds.cpp int i, k; i 1814 modules/core/test/test_ds.cpp for( i = 0; i < struct_count; i++ ) i 1817 modules/core/test/test_ds.cpp int is_oriented = (gen + i) % 2; i 1832 modules/core/test/test_ds.cpp cvTsReleaseSimpleGraph( (CvTsSimpleGraph**)&simple_struct[i] ); i 1833 modules/core/test/test_ds.cpp simple_struct[i] = cvTsCreateSimpleGraph( max_struct_size/4, pure_elem_size[0], i 1835 modules/core/test/test_ds.cpp cxcore_struct[i] = cvCreateGraph( is_oriented ? CV_ORIENTED_GRAPH : CV_GRAPH, i 1877 modules/core/test/test_ds.cpp int i, vtx_count = cvtest::randInt(rng) % max_struct_size; i 1887 modules/core/test/test_ds.cpp for( i = 0; i < vtx_count; i++ ) i 1892 modules/core/test/test_ds.cpp for( i = 0; i < edge_count; i++ ) i 1915 modules/core/test/test_ds.cpp int i; i 1948 modules/core/test/test_ds.cpp for( i = 0; edges[i][0] >= 0; i++ ) i 1950 modules/core/test/test_ds.cpp vtx_count = MAX( vtx_count, edges[i][0] ); i 1951 modules/core/test/test_ds.cpp vtx_count = MAX( vtx_count, edges[i][1] ); i 1955 modules/core/test/test_ds.cpp for( i = 0; i < vtx_count; i++ ) i 1958 modules/core/test/test_ds.cpp for( i = 0; edges[i][0] >= 0; i++ ) i 1961 modules/core/test/test_ds.cpp cvGraphAddEdge( graph, edges[i][0], edges[i][1], 0, &edge ); i 1962 modules/core/test/test_ds.cpp edge->weight = (float)edges[i][2]; i 1965 modules/core/test/test_ds.cpp edge_count = i; i 2055 modules/core/test/test_ds.cpp for( i = 0; i < 2; i++ ) i 11 modules/core/test/test_dxt.cpp int i; i 22 modules/core/test/test_dxt.cpp for( i = 1; i < n; i++ ) i 27 modules/core/test/test_dxt.cpp w[i] = wi; i 37 modules/core/test/test_dxt.cpp int i, j, k, n = _dst.cols + _dst.rows - 1; i 58 modules/core/test/test_dxt.cpp for( i = 0; i < n; i++ ) i 60 modules/core/test/test_dxt.cpp Complexf* dst = (Complexf*)(dst0 + i*dststep); i 62 modules/core/test/test_dxt.cpp int delta = i; i 80 modules/core/test/test_dxt.cpp for( i = 0; i < n; i++ ) i 82 modules/core/test/test_dxt.cpp Complexd* dst = (Complexd*)(dst0 + i*dststep); i 84 modules/core/test/test_dxt.cpp int delta = i; i 108 modules/core/test/test_dxt.cpp int i; i 114 modules/core/test/test_dxt.cpp for( i = 0; i < dst.rows; i++ ) i 116 modules/core/test/test_dxt.cpp Mat srci = src.row(i).reshape(cn, src.cols), dsti = tmp.col(i); i 126 modules/core/test/test_dxt.cpp for( i = 0; i < dst.cols; i++ ) i 128 modules/core/test/test_dxt.cpp Mat srci = tmp.row(i).reshape(cn, tmp.cols), dsti = dst.col(i); i 139 modules/core/test/test_dxt.cpp int i, k; i 147 modules/core/test/test_dxt.cpp for( i = 1; i < n; i++ ) i 149 modules/core/test/test_dxt.cpp wave.at<double>(i, k) = scale*cos( angle*i*(2*k + 1) ); i 161 modules/core/test/test_dxt.cpp int i, j, n = _dst.cols + _dst.rows - 1; i 181 modules/core/test/test_dxt.cpp for( i = 0; i < n; i++, dst += dststep ) i 196 modules/core/test/test_dxt.cpp for( i = 0; i < n; i++, dst += dststep ) i 215 modules/core/test/test_dxt.cpp int i; i 221 modules/core/test/test_dxt.cpp for( i = 0; i < dst.rows; i++ ) i 223 modules/core/test/test_dxt.cpp Mat srci = src.row(i).reshape(cn, src.cols); i 224 modules/core/test/test_dxt.cpp Mat dsti = tmp.col(i); i 234 modules/core/test/test_dxt.cpp for( i = 0; i < dst.cols; i++ ) i 236 modules/core/test/test_dxt.cpp Mat srci = tmp.row(i).reshape(cn, tmp.cols); i 237 modules/core/test/test_dxt.cpp Mat dsti = dst.col(i); i 250 modules/core/test/test_dxt.cpp int i, count = _dst.rows, len = _dst.cols; i 253 modules/core/test/test_dxt.cpp for( i = 0; i < count; i++ ) i 255 modules/core/test/test_dxt.cpp int j = !is2d || i == 0 ? i : count - i; i 256 modules/core/test/test_dxt.cpp src0row = _src0.row(i); i 258 modules/core/test/test_dxt.cpp dstrow = _dst.row(i); i 277 modules/core/test/test_dxt.cpp int i, n = _dst.cols + _dst.rows - 1, n2 = (n+1) >> 1; i 308 modules/core/test/test_dxt.cpp for( i = 1; i < n2; i++, delta0 += srcstep, delta1 += srcstep ) i 313 modules/core/test/test_dxt.cpp dst[i*dststep].re = t0; i 314 modules/core/test/test_dxt.cpp dst[i*dststep].im = t1; i 319 modules/core/test/test_dxt.cpp dst[(n-i)*dststep].re = t0; i 320 modules/core/test/test_dxt.cpp dst[(n-i)*dststep].im = t1; i 344 modules/core/test/test_dxt.cpp for( i = 1; i < n2; i++, delta0 += srcstep, delta1 += srcstep ) i 349 modules/core/test/test_dxt.cpp dst[i*dststep].re = t0; i 350 modules/core/test/test_dxt.cpp dst[i*dststep].im = t1; i 355 modules/core/test/test_dxt.cpp dst[(n-i)*dststep].re = t0; i 356 modules/core/test/test_dxt.cpp dst[(n-i)*dststep].im = t1; i 365 modules/core/test/test_dxt.cpp int i, rows = mat.rows; i 372 modules/core/test/test_dxt.cpp for( i = 0; i < rows2; i++ ) i 374 modules/core/test/test_dxt.cpp Complexf* row = mat.ptr<Complexf>(i); i 375 modules/core/test/test_dxt.cpp if( (flags & DFT_ROWS) || i == 0 || (i == rows2 - 1 && rows % 2 == 0) ) i 383 modules/core/test/test_dxt.cpp Complexf* row2 = mat.ptr<Complexf>(rows-i); i 397 modules/core/test/test_dxt.cpp for( i = 0; i < rows2; i++ ) i 399 modules/core/test/test_dxt.cpp Complexd* row = mat.ptr<Complexd>(i); i 400 modules/core/test/test_dxt.cpp if( (flags & DFT_ROWS) || i == 0 || (i == rows2 - 1 && rows % 2 == 0) ) i 408 modules/core/test/test_dxt.cpp Complexd* row2 = mat.ptr<Complexd>(rows-i); i 428 modules/core/test/test_dxt.cpp int i, j, depth = src1.depth(), cols = src1.cols*2; i 433 modules/core/test/test_dxt.cpp for( i = 0; i < dst.rows; i++ ) i 437 modules/core/test/test_dxt.cpp const float* a = src1.ptr<float>(i); i 438 modules/core/test/test_dxt.cpp const float* b = src2.ptr<float>(i); i 439 modules/core/test/test_dxt.cpp float* c = dst.ptr<float>(i); i 462 modules/core/test/test_dxt.cpp const double* a = src1.ptr<double>(i); i 463 modules/core/test/test_dxt.cpp const double* b = src2.ptr<double>(i); i 464 modules/core/test/test_dxt.cpp double* c = dst.ptr<double>(i); i 640 modules/core/test/test_dxt.cpp double CxCore_DXTBaseTest::get_success_error_level( int test_case_idx, int i, int j ) i 642 modules/core/test/test_dxt.cpp return Base::get_success_error_level( test_case_idx, i, j ); i 844 modules/core/test/test_dxt.cpp for( int i = 0; i < 10; i++ ) i 872 modules/core/test/test_dxt.cpp for( int i = 0; i < 100; i++ ) i 145 modules/core/test/test_eigen.cpp for (int i = 0; i < ntests; ++i) i 155 modules/core/test/test_eigen.cpp for (int i = 0; i < ntests; ++i) i 235 modules/core/test/test_eigen.cpp for (int i = 0; i < COUNT_NORM_TYPES; ++i) i 237 modules/core/test/test_eigen.cpp double diff = cvtest::norm(UUt, E, NORM_TYPE[i]); i 241 modules/core/test/test_eigen.cpp print_information(i, U, diff, eps_vec); i 256 modules/core/test/test_eigen.cpp for (int i = 0; i < (int)(eigen_values.total() - 1); ++i) i 257 modules/core/test/test_eigen.cpp if (!(eigen_values.at<float>(i, 0) > eigen_values.at<float>(i+1, 0))) i 260 modules/core/test/test_eigen.cpp std::cout << "Pair of indexes with non ascending of eigen values: (" << i << ", " << i+1 << ")." << endl; i 271 modules/core/test/test_eigen.cpp for (int i = 0; i < (int)(eigen_values.total() - 1); ++i) i 272 modules/core/test/test_eigen.cpp if (!(eigen_values.at<double>(i, 0) > eigen_values.at<double>(i+1, 0))) i 275 modules/core/test/test_eigen.cpp std::cout << "Pair of indexes with non ascending of eigen values: (" << i << ", " << i+1 << ")." << endl; i 319 modules/core/test/test_eigen.cpp for (int i = 0; i < src.cols; ++i) i 321 modules/core/test/test_eigen.cpp cv::Mat tmp = eigen_values.at<float>(i, 0) * eigen_vectors_t.col(i); i 322 modules/core/test/test_eigen.cpp for (int j = 0; j < src.rows; ++j) eval_evec.at<float>(j, i) = tmp.at<float>(j, 0); i 330 modules/core/test/test_eigen.cpp for (int i = 0; i < src.cols; ++i) i 332 modules/core/test/test_eigen.cpp cv::Mat tmp = eigen_values.at<double>(i, 0) * eigen_vectors_t.col(i); i 333 modules/core/test/test_eigen.cpp for (int j = 0; j < src.rows; ++j) eval_evec.at<double>(j, i) = tmp.at<double>(j, 0); i 344 modules/core/test/test_eigen.cpp for (int i = 0; i < COUNT_NORM_TYPES; ++i) i 346 modules/core/test/test_eigen.cpp double diff = cvtest::norm(disparity, NORM_TYPE[i]); i 350 modules/core/test/test_eigen.cpp print_information(i, src, diff, eps_vec); i 373 modules/core/test/test_eigen.cpp for (int i = 0; i < COUNT_NORM_TYPES; ++i) i 375 modules/core/test/test_eigen.cpp double diff = cvtest::norm(eigen_values_1, eigen_values_2, NORM_TYPE[i]); i 379 modules/core/test/test_eigen.cpp print_information(i, src, diff, eps_val); i 394 modules/core/test/test_eigen.cpp for (int i = 0; i < ntests; ++i) i 10 modules/core/test/test_io.cpp int i, j; i 12 modules/core/test/test_io.cpp for( i = 0; i < nzcount; i++ ) i 135 modules/core/test/test_io.cpp int i, vcount = 5, ecount = 6; i 136 modules/core/test/test_io.cpp for( i = 0; i < vcount; i++ ) i 138 modules/core/test/test_io.cpp for( i = 0; i < ecount; i++ ) i 141 modules/core/test/test_io.cpp cvGraphAddEdge(graph, edges[i][0], edges[i][1], 0, &edge); i 142 modules/core/test/test_io.cpp edge->weight = (float)(i+1); i 367 modules/core/test/test_io.cpp for( i = 0; i < ecount; i++ ) i 369 modules/core/test/test_io.cpp CvGraphEdge* edge2 = cvFindGraphEdge(graph2, edges[i][0], edges[i][1]); i 370 modules/core/test/test_io.cpp CvGraphEdge* edge3 = cvFindGraphEdge(graph3, edges[i][0], edges[i][1]); i 371 modules/core/test/test_io.cpp if( !edge2 || edge2->weight != (float)(i+1) || i 372 modules/core/test/test_io.cpp !edge3 || edge3->weight != (float)(i+1) ) i 374 modules/core/test/test_io.cpp ts->printf( cvtest::TS::LOG, "the cloned or read graph do not have the edge (%d, %d)\n", edges[i][0], edges[i][1] ); i 554 modules/core/test/test_io.cpp for (size_t i = 0; i < pngLenas.size(); ++i) i 556 modules/core/test/test_io.cpp ASSERT_NE(std::find(lenas.begin(), lenas.end(), pngLenas[i]), lenas.end()); i 118 modules/core/test/test_ippasync.cpp for(int i=0; i<matrix_Size.width*cn; i++) i 119 modules/core/test/test_ippasync.cpp pData[i+j*pitch] = rand()%upValue; i 337 modules/core/test/test_mat.cpp for(int i = 0; i < Q.rows; i++ ) i 339 modules/core/test/test_mat.cpp Mat v = evec.row(i).t(); i 342 modules/core/test/test_mat.cpp Mat lv = eval.at<float>(i,0) * v; i 361 modules/core/test/test_mat.cpp for(int i = 0; i < subEvec.rows; i++) i 363 modules/core/test/test_mat.cpp Mat r0 = rPCA.eigenvectors.row(i); i 364 modules/core/test/test_mat.cpp Mat r1 = subEvec.row(i); i 388 modules/core/test/test_mat.cpp for( int i = 0; i < rTestPoints.rows; i++ ) i 392 modules/core/test/test_mat.cpp Mat prj = rTestPoints.row(i) - avg; prj *= subEvec_t; i 393 modules/core/test/test_mat.cpp err = cvtest::norm(rPrjTestPoints.row(i), prj, CV_RELATIVE_L2); i 401 modules/core/test/test_mat.cpp Mat backPrj = rPrjTestPoints.row(i) * subEvec + avg; i 402 modules/core/test/test_mat.cpp err = cvtest::norm( rBackPrjTestPoints.row(i), backPrj, CV_RELATIVE_L2 ); i 730 modules/core/test/test_mat.cpp for (size_t i = 0; i < sizeof(dims) / sizeof(dims[0]); ++i) { i 731 modules/core/test/test_mat.cpp total2 += ((dims[i] - 1) * dims[i] / 2) * dims[0] * dims[1] * dims[2] / dims[i]; i 746 modules/core/test/test_mat.cpp int i, k, size[MAX_DIM]={0}, idx[MAX_DIM]={0}; i 787 modules/core/test/test_mat.cpp for( i = 0; i < nz0; i++ ) i 798 modules/core/test/test_mat.cpp M0[sidx] = all_vals[i]; i 799 modules/core/test/test_mat.cpp if( all_vals[i] == min_val ) i 801 modules/core/test/test_mat.cpp if( all_vals[i] == max_val ) i 803 modules/core/test/test_mat.cpp setValue(M, idx, all_vals[i], rng); i 805 modules/core/test/test_mat.cpp if( v != all_vals[i] ) i 808 modules/core/test/test_mat.cpp i, sidx.c_str(), all_vals[i], v); i 846 modules/core/test/test_mat.cpp for( i = 0; i < n; i++ ) i 849 modules/core/test/test_mat.cpp if(i < nz0) i 851 modules/core/test/test_mat.cpp sidx = all_idxs[i]; i 853 modules/core/test/test_mat.cpp val0 = all_vals[i]; i 874 modules/core/test/test_mat.cpp for( i = 0; i < n; i++ ) i 877 modules/core/test/test_mat.cpp if(i < nz0) i 879 modules/core/test/test_mat.cpp sidx = all_idxs[i]; i 950 modules/core/test/test_mat.cpp for(size_t i = 0; i < mv.size(); i++) i 952 modules/core/test/test_mat.cpp const size_t mvChannel = mv[i].channels(); i 953 modules/core/test/test_mat.cpp const ElemType* mvElem = &mv[i].at<ElemType>(y,x*(int)mvChannel); i 1046 modules/core/test/test_mat.cpp for(size_t i = 0; i < src.size(); i++) i 1051 modules/core/test/test_mat.cpp src[i] = m; i 1115 modules/core/test/test_mat.cpp for(size_t i = 0; i < dst.size(); i++) i 1117 modules/core/test/test_mat.cpp if(dst[i].size() != size) i 1120 modules/core/test/test_mat.cpp commonLog.str().c_str(), i, dst[i].rows, dst[i].cols, size.height, size.width); i 1123 modules/core/test/test_mat.cpp if(dst[i].depth() != depth) i 1126 modules/core/test/test_mat.cpp commonLog.str().c_str(), i, dst[i].depth(), depth); i 1129 modules/core/test/test_mat.cpp if(dst[i].channels() != 1) i 1132 modules/core/test/test_mat.cpp commonLog.str().c_str(), i, dst[i].channels(), 1); i 1240 modules/core/test/test_mat.cpp for( int i = 0; i < 2; i++ ) i 1242 modules/core/test/test_mat.cpp int type = i == 0 ? CV_32F : CV_64F; i 1263 modules/core/test/test_mat.cpp for (int i = 0; i < n; i++) i 1265 modules/core/test/test_mat.cpp m.ref<double>(i, i) = 1; i 28 modules/core/test/test_math.cpp double get_success_error_level( int /*test_case_idx*/, int i, int j ); i 45 modules/core/test/test_math.cpp double Core_MathTest::get_success_error_level( int /*test_case_idx*/, int i, int j ) i 47 modules/core/test/test_math.cpp return test_mat[i][j].depth() == CV_32F ? FLT_EPSILON*128 : DBL_EPSILON*1024; i 58 modules/core/test/test_math.cpp size_t i, j; i 61 modules/core/test/test_math.cpp for( i = 0; i < test_array.size(); i++ ) i 63 modules/core/test/test_math.cpp size_t count = test_array[i].size(); i 65 modules/core/test/test_math.cpp types[i][j] = type; i 82 modules/core/test/test_math.cpp void get_minmax_bounds( int i, int j, int type, Scalar& low, Scalar& high ); i 85 modules/core/test/test_math.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 103 modules/core/test/test_math.cpp size_t i, j; i 112 modules/core/test/test_math.cpp i = cvtest::randInt(rng)%17; i 113 modules/core/test/test_math.cpp power = i == 16 ? 1./3 : i == 15 ? 0.5 : i == 14 ? -0.5 : cvtest::randReal(rng)*10 - 5; i 116 modules/core/test/test_math.cpp for( i = 0; i < test_array.size(); i++ ) i 118 modules/core/test/test_math.cpp size_t count = test_array[i].size(); i 121 modules/core/test/test_math.cpp types[i][j] = type; i 127 modules/core/test/test_math.cpp double Core_PowTest::get_success_error_level( int test_case_idx, int i, int j ) i 129 modules/core/test/test_math.cpp int depth = test_mat[i][j].depth(); i 133 modules/core/test/test_math.cpp return Base::get_success_error_level( test_case_idx, i, j ); i 163 modules/core/test/test_math.cpp for( int i = 0; i < a.rows; i++ ) i 165 modules/core/test/test_math.cpp b.at<float>(i,0) = (float)fabs(cvCbrt(a.at<float>(i,0))); i 167 modules/core/test/test_math.cpp b.at<float>(i,j) = (float)fabs(cv::cubeRoot(a.at<float>(i,j))); i 221 modules/core/test/test_math.cpp int i, j; i 223 modules/core/test/test_math.cpp for( i = 0; i < a.rows; i++ ) i 225 modules/core/test/test_math.cpp const uchar* a_data = a.ptr(i); i 226 modules/core/test/test_math.cpp uchar* b_data = b.ptr(i); i 366 modules/core/test/test_math.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 377 modules/core/test/test_math.cpp int i; i 378 modules/core/test/test_math.cpp for( i = 0; i < in_count; i++ ) i 381 modules/core/test/test_math.cpp for( i = 0; i < out_count; i++ ) i 398 modules/core/test/test_math.cpp size_t i, j; i 407 modules/core/test/test_math.cpp for( i = 0; i < test_array.size(); i++ ) i 409 modules/core/test/test_math.cpp size_t count = test_array[i].size(); i 410 modules/core/test/test_math.cpp int flag = (i == OUTPUT || i == REF_OUTPUT) && scalar_output; i 415 modules/core/test/test_math.cpp types[i][j] = type; i 417 modules/core/test/test_math.cpp sizes[i][j] = Size( 4, 1 ); i 423 modules/core/test/test_math.cpp double Core_MatrixTest::get_success_error_level( int test_case_idx, int i, int j ) i 427 modules/core/test/test_math.cpp double output_precision = Base::get_success_error_level( test_case_idx, i, j ); i 811 modules/core/test/test_math.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 885 modules/core/test/test_math.cpp double Core_TransformTest::get_success_error_level( int test_case_idx, int i, int j ) i 888 modules/core/test/test_math.cpp return depth <= CV_8S ? 1 : depth <= CV_32S ? 9 : Base::get_success_error_level( test_case_idx, i, j ); i 915 modules/core/test/test_math.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 943 modules/core/test/test_math.cpp double Core_PerspectiveTransformTest::get_success_error_level( int test_case_idx, int i, int j ) i 947 modules/core/test/test_math.cpp Core_MatrixTest::get_success_error_level(test_case_idx, i, j); i 960 modules/core/test/test_math.cpp int i, j, cols; i 976 modules/core/test/test_math.cpp for( i = 0; i < transmat->rows; i++ ) i 978 modules/core/test/test_math.cpp mat[i*cols + j] = ((float*)(transmat->data.ptr + transmat->step*i))[j]; i 983 modules/core/test/test_math.cpp for( i = 0; i < transmat->rows; i++ ) i 985 modules/core/test/test_math.cpp mat[i*cols + j] = ((double*)(transmat->data.ptr + transmat->step*i))[j]; i 992 modules/core/test/test_math.cpp for( i = 0; i < a->rows; i++ ) i 994 modules/core/test/test_math.cpp uchar* src = a->data.ptr + i*a->step; i 995 modules/core/test/test_math.cpp uchar* dst = b->data.ptr + i*b->step; i 1172 modules/core/test/test_math.cpp int i, single_matrix; i 1211 modules/core/test/test_math.cpp for( i = 0; i < (single_matrix ? 1 : count); i++ ) i 1221 modules/core/test/test_math.cpp int i; i 1236 modules/core/test/test_math.cpp for( i = 0; i < count; i++ ) i 1239 modules/core/test/test_math.cpp void* ptr = _hdr_data + i*hdr_size; i 1242 modules/core/test/test_math.cpp part = test_mat[INPUT][0].row(i); i 1244 modules/core/test/test_math.cpp part = test_mat[INPUT][0].col(i); i 1251 modules/core/test/test_math.cpp temp_hdrs[i] = ptr; i 1275 modules/core/test/test_math.cpp int i; i 1278 modules/core/test/test_math.cpp for( i = 0; i < count; i++ ) i 1282 modules/core/test/test_math.cpp vec = hdrs0.row(i); i 1284 modules/core/test/test_math.cpp vec = hdrs0.col(i); i 1286 modules/core/test/test_math.cpp vec = cvarrToMat(temp_hdrs[i]); i 1317 modules/core/test/test_math.cpp int i = cvtest::randInt(rng) % mat.rows; i 1321 modules/core/test/test_math.cpp mat.at<float>(i,j) = 0.f; i 1323 modules/core/test/test_math.cpp mat.at<double>(i,j) = 0.; i 1337 modules/core/test/test_math.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 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); i 1404 modules/core/test/test_math.cpp for( i = 0; i < Nm; i++ ) i 1406 modules/core/test/test_math.cpp double max_val = fabs(a0[i*step + i]); i 1408 modules/core/test/test_math.cpp k = i; i 1410 modules/core/test/test_math.cpp for( j = i+1; j < N; j++ ) i 1412 modules/core/test/test_math.cpp t = fabs(a0[j*step + i]); i 1420 modules/core/test/test_math.cpp if( k != i ) i 1422 modules/core/test/test_math.cpp for( j = i; j < N1; j++ ) i 1423 modules/core/test/test_math.cpp CV_SWAP( a0[i*step + j], a0[k*step + j], t ); i 1426 modules/core/test/test_math.cpp CV_SWAP( b0[i*b_step + j], b0[k*b_step + j], t ); i 1433 modules/core/test/test_math.cpp *rank = i; i 1437 modules/core/test/test_math.cpp a1 = a0 + i*step; i 1439 modules/core/test/test_math.cpp b1 = b0 + i*b_step; i 1442 modules/core/test/test_math.cpp for( j = i+1; j < N; j++, a2 += step, b2 += b_step ) i 1444 modules/core/test/test_math.cpp t = a2[i]/a1[i]; i 1445 modules/core/test/test_math.cpp for( k = i+1; k < N1; k++ ) i 1452 modules/core/test/test_math.cpp det *= a1[i]; i 1459 modules/core/test/test_math.cpp for( i = N-1; i >= 0; i-- ) i 1461 modules/core/test/test_math.cpp double* a1 = a0 + i*step; i 1462 modules/core/test/test_math.cpp double* b1 = b0 + i*b_step; i 1466 modules/core/test/test_math.cpp for( k = i+1; k < N1; k++ ) i 1468 modules/core/test/test_math.cpp x0[i*x_step + j] = t/a1[i]; i 1474 modules/core/test/test_math.cpp *rank = i; i 1497 modules/core/test/test_math.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 1589 modules/core/test/test_math.cpp int i, nm = MIN( mat->rows, mat->cols ); i 1597 modules/core/test/test_math.cpp for( i = 0; i < nm; i++ ) i 1598 modules/core/test/test_math.cpp det *= w->data.fl[i]; i 1603 modules/core/test/test_math.cpp for( i = 0; i < nm; i++ ) i 1604 modules/core/test/test_math.cpp det *= w->data.db[i]; i 1653 modules/core/test/test_math.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 1791 modules/core/test/test_math.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 1819 modules/core/test/test_math.cpp int min_size, i, m, n; i 1856 modules/core/test/test_math.cpp CV_SWAP( sizes[TEMP][1].width, sizes[TEMP][1].height, i ); i 1866 modules/core/test/test_math.cpp CV_SWAP( sizes[TEMP][2].width, sizes[TEMP][2].height, i ); i 1879 modules/core/test/test_math.cpp for( i = 0; i < 4; i++ ) i 1881 modules/core/test/test_math.cpp sizes[REF_OUTPUT][i] = sizes[OUTPUT][i]; i 1882 modules/core/test/test_math.cpp types[REF_OUTPUT][i] = types[OUTPUT][i]; i 1916 modules/core/test/test_math.cpp double Core_SVDTest::get_success_error_level( int test_case_idx, int i, int j ) i 1920 modules/core/test/test_math.cpp double output_precision = Base::get_success_error_level( test_case_idx, i, j ); i 1937 modules/core/test/test_math.cpp int i, m = input.rows, n = input.cols, min_size = MIN(m, n); i 1958 modules/core/test/test_math.cpp for( i = 0; i < min_size; i++ ) i 1963 modules/core/test/test_math.cpp normval = cvtest::norm( w->row(i), NORM_L1 ); i 1964 modules/core/test/test_math.cpp aii = depth == CV_32F ? w->at<float>(i,i) : w->at<double>(i,i); i 1968 modules/core/test/test_math.cpp normval = aii = depth == CV_32F ? w->at<float>(i) : w->at<double>(i); i 1972 modules/core/test/test_math.cpp test_mat[OUTPUT][3].at<uchar>(i) = aii >= 0 && normval < threshold && (i == 0 || aii <= prev); i 1983 modules/core/test/test_math.cpp for( i = 0; i < min_size; i++ ) i 1985 modules/core/test/test_math.cpp double val = depth == CV_32F ? w->at<float>(i) : w->at<double>(i); i 1986 modules/core/test/test_math.cpp cvSetReal2D( test_array[TEMP][3], i, i, val ); i 2021 modules/core/test/test_math.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 2047 modules/core/test/test_math.cpp int min_size, i, m, n; i 2089 modules/core/test/test_math.cpp CV_SWAP( sizes[TEMP][1].width, sizes[TEMP][1].height, i ); i 2094 modules/core/test/test_math.cpp CV_SWAP( sizes[TEMP][2].width, sizes[TEMP][2].height, i ); i 2148 modules/core/test/test_math.cpp int i, m = input.rows, n = input.cols, min_size = MIN(m, n); i 2159 modules/core/test/test_math.cpp for( i = 0; i < min_size; i++ ) i 2161 modules/core/test/test_math.cpp double wii = vector_w ? cvGetReal1D(&_w,i) : cvGetReal2D(&_w,i,i); i 2162 modules/core/test/test_math.cpp cvSetReal2D( &_wdb, i, i, wii > threshold ? 1./wii : 0. ); i 2568 modules/core/test/test_math.cpp cv::Mat c, i = Mat_<float>::eye(3, 3); i 2570 modules/core/test/test_math.cpp ASSERT_LT( cvtest::norm(b*c, i, CV_C), 0.1 ); i 2572 modules/core/test/test_math.cpp ASSERT_LT( cvtest::norm(b*c, i, CV_C), 0.1 ); i 2574 modules/core/test/test_math.cpp ASSERT_LT( cvtest::norm(b*c, i, CV_C), 0.1 ); i 2646 modules/core/test/test_math.cpp int i, iter = 0, N = 0, N0 = 0, K = 0, dims = 0; i 2669 modules/core/test/test_math.cpp for( i = 0; i < N; i++ ) i 2670 modules/core/test/test_math.cpp data[i] = data0[rng.uniform(0, N0)]; i 2686 modules/core/test/test_math.cpp for( i = 0; i < N; i++ ) i 2687 modules/core/test/test_math.cpp data0.row(rng.uniform(0, N0)).copyTo(data.row(i)); i 2692 modules/core/test/test_math.cpp for( i = 0; i < N; i++ ) i 2693 modules/core/test/test_math.cpp memcpy(data.ptr(i), data0.ptr(rng.uniform(0, N0)), dims * sizeof(float)); i 2698 modules/core/test/test_math.cpp for( i = 0; i < N; i++ ) i 2699 modules/core/test/test_math.cpp memcpy(data.ptr() + i * dims * sizeof(float), data0.ptr(rng.uniform(0, N0)), dims * sizeof(float)); i 2705 modules/core/test/test_math.cpp for( i = 0; i < N; i++ ) i 2706 modules/core/test/test_math.cpp data0.row(rng.uniform(0, N0)).copyTo(data.row(i)); i 2712 modules/core/test/test_math.cpp for( i = 0; i < N; i++ ) i 2713 modules/core/test/test_math.cpp memcpy(data.ptr(i), data0.ptr(rng.uniform(0, N0)), dims * sizeof(float)); i 2722 modules/core/test/test_math.cpp for( i = 0; i < N; i++ ) i 2724 modules/core/test/test_math.cpp int l = labels.at<int>(i); i 2728 modules/core/test/test_math.cpp for( i = 0; i < K; i++ ) i 2729 modules/core/test/test_math.cpp CV_Assert( hist.at<int>(i) != 0 ); i 2768 modules/core/test/test_math.cpp for(size_t i = 0; i < vector_size; i++) i 2770 modules/core/test/test_math.cpp srcVec.push_back(src.row(static_cast<int>(i)).reshape(0,col_problem_size)); i 2803 modules/core/test/test_math.cpp for(size_t i = 0; i < vector_size; i++) i 2805 modules/core/test/test_math.cpp srcVec.push_back(src.row(static_cast<int>(i)).reshape(0,col_problem_size)); i 2825 modules/core/test/test_math.cpp for( int i = 0; i < 100; i++ ) i 486 modules/core/test/test_operations.cpp for (int i=0; i<16; i++) i 488 modules/core/test/test_operations.cpp coords.push_back(T_bs(i)); i 923 modules/core/test/test_operations.cpp int i = 0,j = 0; i 928 modules/core/test/test_operations.cpp hsvImage_f.at<cv::Vec3f>(i,j) = cv::Vec3f((float)i,0,1); i 929 modules/core/test/test_operations.cpp hsvImage_b.at<cv::Vec3b>(i,j) = cv::Vec3b(cv::Vec3f((float)i,0,1)); i 935 modules/core/test/test_operations.cpp hsvImage_b.at<cv::Vec3b>(i,j) = cv::Vec3f((float)i,0,1); i 936 modules/core/test/test_operations.cpp hsvImage_b.at<cv::Vec3b>(i,j) = a; i 937 modules/core/test/test_operations.cpp hsvImage_b.at<cv::Vec3b>(i,j) = cv::Vec3f(1,2,3); i 996 modules/core/test/test_operations.cpp for( int i = 0; i < A.cols; i++ ) i 997 modules/core/test/test_operations.cpp A.at<float>(i) = (float)(i <= 12 ? i : 24 - i); i 1039 modules/core/test/test_operations.cpp z.i = 0x80000000; i 42 modules/core/test/test_rand.cpp int i, hsz = hist.cols; i 45 modules/core/test/test_rand.cpp for( i = 0; i < hsz; i++ ) i 46 modules/core/test/test_rand.cpp sum += H[i]; i 52 modules/core/test/test_rand.cpp for( i = 0; i < hsz; i++ ) i 53 modules/core/test/test_rand.cpp H0[i] = scale0; i 59 modules/core/test/test_rand.cpp for( i = 0; i < hsz; i++ ) i 61 modules/core/test/test_rand.cpp double x = i*alpha + beta; i 62 modules/core/test/test_rand.cpp H0[i] = (float)exp(-x*x); i 63 modules/core/test/test_rand.cpp sum2 += H0[i]; i 66 modules/core/test/test_rand.cpp for( i = 0; i < hsz; i++ ) i 67 modules/core/test/test_rand.cpp H0[i] = (float)(H0[i]*sum2); i 71 modules/core/test/test_rand.cpp for( i = 0; i < hsz; i++ ) i 73 modules/core/test/test_rand.cpp double a = H0[i]; i 74 modules/core/test/test_rand.cpp double b = H[i]*scale; i 110 modules/core/test/test_rand.cpp int i, k, SZ = N/cn; i 196 modules/core/test/test_rand.cpp for( i = c; i < SZ*cn; i += cn ) i 198 modules/core/test/test_rand.cpp double val = depth == CV_8U ? ((const uchar*)data)[i] : i 199 modules/core/test/test_rand.cpp depth == CV_8S ? ((const schar*)data)[i] : i 200 modules/core/test/test_rand.cpp depth == CV_16U ? ((const ushort*)data)[i] : i 201 modules/core/test/test_rand.cpp depth == CV_16S ? ((const short*)data)[i] : i 202 modules/core/test/test_rand.cpp depth == CV_32S ? ((const int*)data)[i] : i 203 modules/core/test/test_rand.cpp depth == CV_32F ? ((const float*)data)[i] : i 204 modules/core/test/test_rand.cpp ((const double*)data)[i]; i 266 modules/core/test/test_rand.cpp for( i = k = c = 0; i <= SZ*cn - SDIM; i++, k++, c++ ) i 268 modules/core/test/test_rand.cpp double val = depth == CV_8U ? ((const uchar*)data)[i] : i 269 modules/core/test/test_rand.cpp depth == CV_8S ? ((const schar*)data)[i] : i 270 modules/core/test/test_rand.cpp depth == CV_16U ? ((const ushort*)data)[i] : i 271 modules/core/test/test_rand.cpp depth == CV_16S ? ((const short*)data)[i] : i 272 modules/core/test/test_rand.cpp depth == CV_32S ? ((const int*)data)[i] : i 273 modules/core/test/test_rand.cpp depth == CV_32F ? ((const float*)data)[i] : ((const double*)data)[i]; i 323 modules/core/test/test_rand.cpp for( int i = 0; i < a.rows; i++ ) i 326 modules/core/test/test_rand.cpp int v = a.at<uchar>(i,j); i 327 modules/core/test/test_rand.cpp double vf = af.at<float>(i,j); i 348 modules/core/test/test_rand.cpp for (int i = 0; i < 10000; ++i ) i 350 modules/core/test/test_rand.cpp actual[(unsigned)(rng.next() ^ i) % length]++; i 363 modules/core/test/test_rand.cpp for (size_t i = 0; i < length; ++i) i 365 modules/core/test/test_rand.cpp ASSERT_EQ(expected[i], actual[i]); i 94 modules/core/test/test_rotatedrect.cpp for( int i = 0; i < 4; i++ ) i 96 modules/core/test/test_rotatedrect.cpp if( norm(vertices[i] - a) <= 0.001 ) count_match++; i 97 modules/core/test/test_rotatedrect.cpp else if( norm(vertices[i] - b) <= 0.001 ) count_match++; i 98 modules/core/test/test_rotatedrect.cpp else if( norm(vertices[i] - c) <= 0.001 ) count_match++; i 93 modules/core/test/test_umat.cpp for( int i = 0; i<dims; i++) i 95 modules/core/test/test_umat.cpp _sz[i] = randomInt(1,50); i 102 modules/core/test/test_umat.cpp for(int i = 0; i<dims; i++) i 104 modules/core/test/test_umat.cpp ASSERT_EQ(ua.size[i], sz[i]); i 166 modules/core/test/test_umat.cpp for(int i = 0; i<dims; i++) i 168 modules/core/test/test_umat.cpp sz[i] = randomInt(1,45); i 169 modules/core/test/test_umat.cpp total *= (size_t)sz[i]; i 180 modules/core/test/test_umat.cpp int i; i 201 modules/core/test/test_umat.cpp i = randomInt(0, ua.cols-1); i 202 modules/core/test/test_umat.cpp a.col(i).copyTo(ub); i 203 modules/core/test/test_umat.cpp EXPECT_MAT_NEAR(a.col(i), ub, 0); i 207 modules/core/test/test_umat.cpp ua.col(i).copyTo(ub); i 208 modules/core/test/test_umat.cpp EXPECT_MAT_NEAR(ua.col(i), ub, 0); i 212 modules/core/test/test_umat.cpp ua.col(i).copyTo(b); i 213 modules/core/test/test_umat.cpp EXPECT_MAT_NEAR(ua.col(i), b, 0); i 217 modules/core/test/test_umat.cpp i = randomInt(0, a.rows-1); i 218 modules/core/test/test_umat.cpp ua.row(i).copyTo(ub); i 219 modules/core/test/test_umat.cpp EXPECT_MAT_NEAR(ua.row(i), ub, 0); i 223 modules/core/test/test_umat.cpp a.row(i).copyTo(ub); i 224 modules/core/test/test_umat.cpp EXPECT_MAT_NEAR(a.row(i), ub, 0); i 228 modules/core/test/test_umat.cpp ua.row(i).copyTo(b); i 229 modules/core/test/test_umat.cpp EXPECT_MAT_NEAR(ua.row(i), b, 0); i 541 modules/core/test/test_umat.cpp for (int i = 0; i < ITERATIONS; i++) i 543 modules/core/test/test_umat.cpp UMat um(Size(sz.width + i, sz.height + i), CV_8UC1); i 544 modules/core/test/test_umat.cpp UMat um2(Size(sz.width + 2 * i, sz.height + 2 * i), CV_8UC1); i 833 modules/core/test/test_umat.cpp for (int i = 0; i < 10; i++) i 835 modules/core/test/test_umat.cpp printf("%d: %d map...\n", range.start, i); i 838 modules/core/test/test_umat.cpp printf("%d: %d unmap...\n", range.start, i); i 864 modules/core/test/test_umat.cpp for (int i = 0; i < 20; i++) i 877 modules/core/test/test_umat.cpp printf("i = %d... %s\n", i, e.what()); i 882 modules/core/test/test_umat.cpp printf("i = %d...\n", i); i 64 modules/cudaarithm/perf/perf_core.cpp for (int i = 0; i < channels; ++i) i 66 modules/cudaarithm/perf/perf_core.cpp src[i].create(size, depth); i 67 modules/cudaarithm/perf/perf_core.cpp declare.in(src[i], WARMUP_RNG); i 73 modules/cudaarithm/perf/perf_core.cpp for (int i = 0; i < channels; ++i) i 74 modules/cudaarithm/perf/perf_core.cpp d_src[i].upload(src[i]); i 231 modules/cudaarithm/test/test_arithm.cpp for (int i = 0; i < 2; ++i) i 233 modules/cudaarithm/test/test_arithm.cpp bool inplace = i != 0; i 76 modules/cudaarithm/test/test_core.cpp for (int i = 0; i < channels; ++i) i 77 modules/cudaarithm/test/test_core.cpp src.push_back(cv::Mat(size, depth, cv::Scalar::all(i))); i 80 modules/cudaarithm/test/test_core.cpp for (int i = 0; i < channels; ++i) i 81 modules/cudaarithm/test/test_core.cpp d_src.push_back(loadMat(src[i], useRoi)); i 167 modules/cudaarithm/test/test_core.cpp for (size_t i = 0; i < dst_gold.size(); ++i) i 169 modules/cudaarithm/test/test_core.cpp EXPECT_MAT_NEAR(dst_gold[i], dst[i], 0.0); i 107 modules/cudabgsegm/perf/perf_bgsegm.cpp int i = 0; i 110 modules/cudabgsegm/perf/perf_bgsegm.cpp for (; i < numIters; ++i) i 137 modules/cudabgsegm/perf/perf_bgsegm.cpp for (; i < numIters; ++i) i 211 modules/cudabgsegm/perf/perf_bgsegm.cpp int i = 0; i 214 modules/cudabgsegm/perf/perf_bgsegm.cpp for (; i < numIters; ++i) i 241 modules/cudabgsegm/perf/perf_bgsegm.cpp for (; i < numIters; ++i) i 272 modules/cudabgsegm/perf/perf_bgsegm.cpp int i = 0; i 275 modules/cudabgsegm/perf/perf_bgsegm.cpp for (; i < numIters; ++i) i 300 modules/cudabgsegm/perf/perf_bgsegm.cpp for (; i < numIters; ++i) i 348 modules/cudabgsegm/perf/perf_bgsegm.cpp for (int i = 0; i < 10; ++i) i 379 modules/cudabgsegm/perf/perf_bgsegm.cpp for (int i = 0; i < 10; ++i) i 110 modules/cudabgsegm/test/test_bgsegm.cpp for (int i = 0; i < 10; ++i) i 155 modules/cudabgsegm/test/test_bgsegm.cpp for (int i = 0; i < 10; ++i) i 126 modules/cudacodec/perf/perf_video.cpp for (int i = 0; i < 10; ++i) i 145 modules/cudacodec/perf/perf_video.cpp for (int i = 0; i < 10; ++i) i 64 modules/cudacodec/test/test_video.cpp for (int i = 0; i < 10; ++i) i 93 modules/cudacodec/test/test_video.cpp for (int i = 0; i < 10; ++i) i 112 modules/cudacodec/test/test_video.cpp for (int i = 0; i < 5; ++i) i 201 modules/cudafeatures2d/perf/perf_features2d.cpp for (size_t i = 0; i < src.size(); ++i) i 202 modules/cudafeatures2d/perf/perf_features2d.cpp for (size_t j = 0; j < src[i].size(); ++j) i 203 modules/cudafeatures2d/perf/perf_features2d.cpp dst.push_back(src[i][j]); i 144 modules/cudafeatures2d/src/brute_force_matcher.cpp for (size_t i = 0, size = trainDescCollection.size(); i < size; ++i, ++trainCollectionCPU_ptr) i 145 modules/cudafeatures2d/src/brute_force_matcher.cpp *trainCollectionCPU_ptr = trainDescCollection[i]; i 160 modules/cudafeatures2d/src/brute_force_matcher.cpp for (size_t i = 0, size = trainDescCollection.size(); i < size; ++i, ++trainCollectionCPU_ptr, ++maskCollectionCPU_ptr) i 162 modules/cudafeatures2d/src/brute_force_matcher.cpp const GpuMat& train = trainDescCollection[i]; i 163 modules/cudafeatures2d/src/brute_force_matcher.cpp const GpuMat& mask = masks[i]; i 541 modules/cudafeatures2d/src/brute_force_matcher.cpp for (size_t i = 0; i < matches.size(); ++i) i 542 modules/cudafeatures2d/src/brute_force_matcher.cpp matches[i].reserve(k); i 553 modules/cudafeatures2d/src/brute_force_matcher.cpp for (size_t i = 0; i < localMatch.size(); ++i) i 554 modules/cudafeatures2d/src/brute_force_matcher.cpp localMatch[i].imgIdx = imgIdx; i 790 modules/cudafeatures2d/src/brute_force_matcher.cpp for (int i = 0; i < k; ++i) i 1049 modules/cudafeatures2d/src/brute_force_matcher.cpp for (int i = 0; i < nMatched; ++i) i 1051 modules/cudafeatures2d/src/brute_force_matcher.cpp const int trainIdx = trainIdxPtr[i]; i 1053 modules/cudafeatures2d/src/brute_force_matcher.cpp const int imgIdx = imgIdxPtr ? imgIdxPtr[i] : 0; i 1054 modules/cudafeatures2d/src/brute_force_matcher.cpp const float distance = distancePtr[i]; i 1058 modules/cudafeatures2d/src/brute_force_matcher.cpp curMatches[i] = m; i 194 modules/cudafeatures2d/src/fast.cpp for (int i = 0; i < npoints; ++i) i 196 modules/cudafeatures2d/src/fast.cpp KeyPoint kp(loc_row[i].x, loc_row[i].y, static_cast<float>(FEATURE_SIZE), -1, response_row[i]); i 197 modules/cudafeatures2d/src/fast.cpp keypoints[i] = kp; i 441 modules/cudafeatures2d/src/orb.cpp for (int i = 0; i < ntuples; i++) i 452 modules/cudafeatures2d/src/orb.cpp if (pattern_x_ptr[tupleSize * i + k1] == pt.x && pattern_y_ptr[tupleSize * i + k1] == pt.y) i 457 modules/cudafeatures2d/src/orb.cpp pattern_x_ptr[tupleSize * i + k] = pt.x; i 458 modules/cudafeatures2d/src/orb.cpp pattern_y_ptr[tupleSize * i + k] = pt.y; i 472 modules/cudafeatures2d/src/orb.cpp for (int i = 0; i < npoints; i++) i 474 modules/cudafeatures2d/src/orb.cpp pattern[i].x = rng.uniform(-patchSize / 2, patchSize / 2 + 1); i 475 modules/cudafeatures2d/src/orb.cpp pattern[i].y = rng.uniform(-patchSize / 2, patchSize / 2 + 1); i 556 modules/cudafeatures2d/src/orb.cpp for (int i = 0; i < npoints; ++i) i 558 modules/cudafeatures2d/src/orb.cpp pattern_x_ptr[i] = pattern0[i].x; i 559 modules/cudafeatures2d/src/orb.cpp pattern_y_ptr[i] = pattern0[i].y; i 838 modules/cudafeatures2d/src/orb.cpp for (int i = 0; i < npoints; ++i) i 842 modules/cudafeatures2d/src/orb.cpp kp.pt.x = x_ptr[i]; i 843 modules/cudafeatures2d/src/orb.cpp kp.pt.y = y_ptr[i]; i 844 modules/cudafeatures2d/src/orb.cpp kp.response = response_ptr[i]; i 845 modules/cudafeatures2d/src/orb.cpp kp.angle = angle_ptr[i]; i 846 modules/cudafeatures2d/src/orb.cpp kp.octave = static_cast<int>(octave_ptr[i]); i 847 modules/cudafeatures2d/src/orb.cpp kp.size = size_ptr[i]; i 849 modules/cudafeatures2d/src/orb.cpp keypoints[i] = kp; i 304 modules/cudafeatures2d/test/test_features2d.cpp for (size_t i = 0; i < matches.size(); i++) i 306 modules/cudafeatures2d/test/test_features2d.cpp cv::DMatch match = matches[i]; i 307 modules/cudafeatures2d/test/test_features2d.cpp if ((match.queryIdx != (int)i) || (match.trainIdx != (int)i * countFactor) || (match.imgIdx != 0)) i 344 modules/cudafeatures2d/test/test_features2d.cpp for (size_t i = 0; i < matches.size(); i++) i 346 modules/cudafeatures2d/test/test_features2d.cpp cv::DMatch match = matches[i]; i 348 modules/cudafeatures2d/test/test_features2d.cpp if ((int)i < queryDescCount / 2) i 350 modules/cudafeatures2d/test/test_features2d.cpp bool validQueryIdx = (match.queryIdx == (int)i); i 351 modules/cudafeatures2d/test/test_features2d.cpp bool validTrainIdx = (match.trainIdx == (int)i * countFactor + shift); i 358 modules/cudafeatures2d/test/test_features2d.cpp bool validQueryIdx = (match.queryIdx == (int)i); i 359 modules/cudafeatures2d/test/test_features2d.cpp bool validTrainIdx = (match.trainIdx == ((int)i - queryDescCount / 2) * countFactor + shift); i 389 modules/cudafeatures2d/test/test_features2d.cpp for (size_t i = 0; i < matches.size(); i++) i 391 modules/cudafeatures2d/test/test_features2d.cpp if ((int)matches[i].size() != knn) i 398 modules/cudafeatures2d/test/test_features2d.cpp cv::DMatch match = matches[i][k]; i 399 modules/cudafeatures2d/test/test_features2d.cpp if ((match.queryIdx != (int)i) || (match.trainIdx != (int)i * countFactor + k) || (match.imgIdx != 0)) i 429 modules/cudafeatures2d/test/test_features2d.cpp for (size_t i = 0; i < matches.size(); i++) i 431 modules/cudafeatures2d/test/test_features2d.cpp if ((int)matches[i].size() != knn) i 438 modules/cudafeatures2d/test/test_features2d.cpp cv::DMatch match = matches[i][k]; i 439 modules/cudafeatures2d/test/test_features2d.cpp if ((match.queryIdx != (int)i) || (match.trainIdx != (int)i * countFactor + k) || (match.imgIdx != 0)) i 482 modules/cudafeatures2d/test/test_features2d.cpp for (size_t i = 0; i < matches.size(); i++) i 484 modules/cudafeatures2d/test/test_features2d.cpp if ((int)matches[i].size() != knn) i 491 modules/cudafeatures2d/test/test_features2d.cpp cv::DMatch match = matches[i][k]; i 493 modules/cudafeatures2d/test/test_features2d.cpp if ((int)i < queryDescCount / 2) i 495 modules/cudafeatures2d/test/test_features2d.cpp if ((match.queryIdx != (int)i) || (match.trainIdx != (int)i * countFactor + k + shift) || (match.imgIdx != 0) ) i 500 modules/cudafeatures2d/test/test_features2d.cpp if ((match.queryIdx != (int)i) || (match.trainIdx != ((int)i - queryDescCount / 2) * countFactor + k + shift) || (match.imgIdx != 1) ) i 545 modules/cudafeatures2d/test/test_features2d.cpp for (size_t i = 0; i < matches.size(); i++) i 547 modules/cudafeatures2d/test/test_features2d.cpp if ((int)matches[i].size() != knn) i 554 modules/cudafeatures2d/test/test_features2d.cpp cv::DMatch match = matches[i][k]; i 556 modules/cudafeatures2d/test/test_features2d.cpp if ((int)i < queryDescCount / 2) i 558 modules/cudafeatures2d/test/test_features2d.cpp if ((match.queryIdx != (int)i) || (match.trainIdx != (int)i * countFactor + k + shift) || (match.imgIdx != 0) ) i 563 modules/cudafeatures2d/test/test_features2d.cpp if ((match.queryIdx != (int)i) || (match.trainIdx != ((int)i - queryDescCount / 2) * countFactor + k + shift) || (match.imgIdx != 1) ) i 609 modules/cudafeatures2d/test/test_features2d.cpp for (size_t i = 0; i < matches.size(); i++) i 611 modules/cudafeatures2d/test/test_features2d.cpp if ((int)matches[i].size() != 1) i 615 modules/cudafeatures2d/test/test_features2d.cpp cv::DMatch match = matches[i][0]; i 616 modules/cudafeatures2d/test/test_features2d.cpp if ((match.queryIdx != (int)i) || (match.trainIdx != (int)i*countFactor) || (match.imgIdx != 0)) i 674 modules/cudafeatures2d/test/test_features2d.cpp for (size_t i = 0; i < matches.size(); i++) i 676 modules/cudafeatures2d/test/test_features2d.cpp if ((int)matches[i].size() != needMatchCount) i 683 modules/cudafeatures2d/test/test_features2d.cpp cv::DMatch match = matches[i][k]; i 685 modules/cudafeatures2d/test/test_features2d.cpp if ((int)i < queryDescCount / 2) i 687 modules/cudafeatures2d/test/test_features2d.cpp if ((match.queryIdx != (int)i) || (match.trainIdx != (int)i * countFactor + k + shift) || (match.imgIdx != 0) ) i 692 modules/cudafeatures2d/test/test_features2d.cpp if ((match.queryIdx != (int)i) || (match.trainIdx != ((int)i - queryDescCount / 2) * countFactor + k + shift) || (match.imgIdx != 1) ) i 605 modules/cudafilters/src/filtering.cpp for(int i = 1; i < iters_; ++i) i 292 modules/cudaimgproc/perf/perf_hough.cpp for (int i = 0; i < objCount; ++i) i 350 modules/cudaimgproc/src/generalized_hough.cpp for (int i = 0; i < posCount_; ++i) i 351 modules/cudaimgproc/src/generalized_hough.cpp indexies_[i] = i; i 367 modules/cudaimgproc/src/generalized_hough.cpp for (int i = 0; i < posCount_; ++i) i 369 modules/cudaimgproc/src/generalized_hough.cpp const int ind = indexies_[i]; i 779 modules/cudaimgproc/src/generalized_hough.cpp for (size_t i = 0; i < angles_.size(); ++i) i 781 modules/cudaimgproc/src/generalized_hough.cpp const double angle = angles_[i].first; i 782 modules/cudaimgproc/src/generalized_hough.cpp const int angleVotes = angles_[i].second; i 147 modules/cudaimgproc/src/gftt.cpp for (int i = 0; i < total; ++i) i 149 modules/cudaimgproc/src/gftt.cpp Point2f p = tmp[i]; i 231 modules/cudaimgproc/src/hough_circles.cpp for(int i=0; i<centersCount; i++){ i 233 modules/cudaimgproc/src/hough_circles.cpp temp[0] = oldBuf[i].x; i 234 modules/cudaimgproc/src/hough_circles.cpp temp[1] = oldBuf[i].y; i 240 modules/cudaimgproc/src/hough_circles.cpp for (int i = 0; i < centersCount; ++i) i 243 modules/cudaimgproc/src/hough_circles.cpp p.x = sortBuf[i][0]; i 244 modules/cudaimgproc/src/hough_circles.cpp p.y = sortBuf[i][1]; i 454 modules/cudaimgproc/src/match_template.cpp for (int i = 0; i < image.channels(); ++i) i 455 modules/cudaimgproc/src/match_template.cpp cuda::integral(images_[i], image_sums_[i], stream); i 543 modules/cudaimgproc/src/match_template.cpp for (int i = 0; i < image.channels(); ++i) i 545 modules/cudaimgproc/src/match_template.cpp cuda::integral(images_[i], image_sums_[i], stream); i 546 modules/cudaimgproc/src/match_template.cpp cuda::sqrIntegral(images_[i], image_sqsums_[i], stream); i 140 modules/cudaimgproc/src/mssegmentation.cpp for (int i = 0; i < n; ++i) i 141 modules/cudaimgproc/src/mssegmentation.cpp parent[i] = i; i 349 modules/cudaimgproc/src/mssegmentation.cpp for (size_t i = 0; i < edges.size(); ++i) i 351 modules/cudaimgproc/src/mssegmentation.cpp int c1 = comps.find(edges[i].from); i 352 modules/cudaimgproc/src/mssegmentation.cpp int c2 = comps.find(edges[i].to); i 96 modules/cudaimgproc/test/test_gftt.cpp for (size_t i = 0; i < pts.size(); ++i) i 98 modules/cudaimgproc/test/test_gftt.cpp cv::Point2i a = pts_gold[i]; i 99 modules/cudaimgproc/test/test_gftt.cpp cv::Point2i b = pts[i]; i 68 modules/cudaimgproc/test/test_hough.cpp for (size_t i = 0; i < lines.size(); ++i) i 70 modules/cudaimgproc/test/test_hough.cpp float rho = lines[i][0], theta = lines[i][1]; i 125 modules/cudaimgproc/test/test_hough.cpp for (size_t i = 0; i < circles.size(); ++i) i 126 modules/cudaimgproc/test/test_hough.cpp cv::circle(dst, cv::Point2f(circles[i][0], circles[i][1]), (int)circles[i][2], cv::Scalar::all(255), fill ? -1 : 1); i 163 modules/cudaimgproc/test/test_hough.cpp for (size_t i = 0; i < circles.size(); ++i) i 165 modules/cudaimgproc/test/test_hough.cpp cv::Vec3f cur = circles[i]; i 214 modules/cudaimgproc/test/test_hough.cpp for (size_t i = 0; i < gold_count; ++i) i 216 modules/cudaimgproc/test/test_hough.cpp cv::Rect rec(pos_gold[i].x - templCenter.x, pos_gold[i].y - templCenter.y, templ.cols, templ.rows); i 234 modules/cudaimgproc/test/test_hough.cpp for (size_t i = 0; i < gold_count; ++i) i 236 modules/cudaimgproc/test/test_hough.cpp cv::Point gold = pos_gold[i]; i 72 modules/cudalegacy/include/opencv2/cudalegacy/NCVPyramid.hpp for (Ncv32u i=0; i<nElem; i++) i 79 modules/cudalegacy/include/opencv2/cudalegacy/NCVPyramid.hpp NCVMatrix<T> * operator [] (int i) const {return this->_arr[i].get();} i 96 modules/cudalegacy/perf/perf_bgsegm.cpp int i = 0; i 99 modules/cudalegacy/perf/perf_bgsegm.cpp for (; i < numIters; ++i) i 116 modules/cudalegacy/perf/perf_bgsegm.cpp for (; i < numIters; ++i) i 181 modules/cudalegacy/perf/perf_bgsegm.cpp int i = 0; i 184 modules/cudalegacy/perf/perf_bgsegm.cpp for (; i < numIters; ++i) i 216 modules/cudalegacy/perf/perf_bgsegm.cpp for (; i < numIters; ++i) i 58 modules/cudalegacy/perf/perf_labeling.cpp static dot make(int i, int j) i 60 modules/cudalegacy/perf/perf_labeling.cpp dot d; d.x = i; d.y = j; i 101 modules/cudalegacy/perf/perf_labeling.cpp for (int i = 0; i < image.cols; ++i) i 103 modules/cudalegacy/perf/perf_labeling.cpp if (dist_labels[j * pitch + i] != -1) continue; i 106 modules/cudalegacy/perf/perf_labeling.cpp dot p = dot::make(i, j); i 109 modules/cudalegacy/perf/perf_labeling.cpp dist_labels[j * pitch + i] = cc; i 263 modules/cudalegacy/src/NCV.cpp for (Ncv32u i=0; i<height; i++) i 265 modules/cudalegacy/src/NCV.cpp memcpy((char*)dst + i * dstPitch, (char*)src + i * srcPitch, widthbytes); i 829 modules/cudalegacy/src/NCV.cpp for (Ncv32u i=0; i<numRects; i++) i 831 modules/cudalegacy/src/NCV.cpp NcvRect32u rect = h_rects[i]; i 87 modules/cudalegacy/src/bm.cpp for (int i = 0; i < minCount; ++i) i 90 modules/cudalegacy/src/bm.cpp int x = -i - 1, y = x; i 93 modules/cudalegacy/src/bm.cpp for (int j = -i; j <= i + 1; ++j, ++ssCount) i 100 modules/cudalegacy/src/bm.cpp for (int j = -i; j <= i + 1; ++j, ++ssCount) i 107 modules/cudalegacy/src/bm.cpp for (int j = -i; j <= i + 1; ++j, ++ssCount) i 114 modules/cudalegacy/src/bm.cpp for (int j = -i; j <= i + 1; ++j, ++ssCount) i 127 modules/cudalegacy/src/bm.cpp for (int i = minCount; i < maxRange.height; ++i) i 130 modules/cudalegacy/src/bm.cpp int y = -(i + 1); i 156 modules/cudalegacy/src/bm.cpp for (int i = minCount; i < maxRange.width; ++i) i 159 modules/cudalegacy/src/bm.cpp int x = -(i + 1); i 135 modules/cudalegacy/src/calib3d.cpp for (int i = 0; i < subset_size; ++i) i 140 modules/cudalegacy/src/calib3d.cpp subset[i] = rand() % num_points; i 142 modules/cudalegacy/src/calib3d.cpp for (int j = 0; j < i; ++j) i 143 modules/cudalegacy/src/calib3d.cpp if (subset[j] == subset[i]) i 178 modules/cudalegacy/src/calib3d.cpp for (int i = 0; i < subset_size; ++i) i 180 modules/cudalegacy/src/calib3d.cpp object_subset(0, i) = object->at<Point3f>(subset_indices[i]); i 181 modules/cudalegacy/src/calib3d.cpp image_subset(0, i) = image->at<Point2f>(subset_indices[i]); i 278 modules/cudalegacy/src/calib3d.cpp for (int i = 0; i < num_points; ++i) i 280 modules/cudalegacy/src/calib3d.cpp p = object.at<Point3f>(0, i); i 286 modules/cudalegacy/src/calib3d.cpp if (norm(p_proj - image_normalized.at<Point2f>(0, i)) < max_dist) i 287 modules/cudalegacy/src/calib3d.cpp inliers->push_back(i); i 87 modules/cudalegacy/src/cuda/NCVColorConversion.hpp for (Ncv32u i=0; i<h_imgIn.height(); i++) i 91 modules/cudalegacy/src/cuda/NCVColorConversion.hpp __pixColorConv<CSin, CSout, Tin, Tout>::_pixColorConv(h_imgIn.at(j,i), h_imgOut.at(j,i)); i 129 modules/cudalegacy/src/cuda/NCVRuntimeTemplates.hpp template <class Head, class Tail, unsigned int i> i 130 modules/cudalegacy/src/cuda/NCVRuntimeTemplates.hpp struct TypeAt<Typelist<Head, Tail>, i> i 132 modules/cudalegacy/src/cuda/NCVRuntimeTemplates.hpp typedef typename TypeAt<Tail, i - 1>::Result Result; i 163 modules/cudalegacy/src/cuda/NCVRuntimeTemplates.hpp for(int i=0; i<NumArguments; i++) i 54 modules/cudalegacy/src/cuda/fgd.hpp __device__ float& Pbc(int i, int j); i 55 modules/cudalegacy/src/cuda/fgd.hpp __device__ float& Pbcc(int i, int j); i 57 modules/cudalegacy/src/cuda/fgd.hpp __device__ unsigned char& is_trained_st_model(int i, int j); i 58 modules/cudalegacy/src/cuda/fgd.hpp __device__ unsigned char& is_trained_dyn_model(int i, int j); i 60 modules/cudalegacy/src/cuda/fgd.hpp __device__ float& PV_C(int i, int j, int k); i 61 modules/cudalegacy/src/cuda/fgd.hpp __device__ float& PVB_C(int i, int j, int k); i 62 modules/cudalegacy/src/cuda/fgd.hpp template <typename T> __device__ T& V_C(int i, int j, int k); i 64 modules/cudalegacy/src/cuda/fgd.hpp __device__ float& PV_CC(int i, int j, int k); i 65 modules/cudalegacy/src/cuda/fgd.hpp __device__ float& PVB_CC(int i, int j, int k); i 66 modules/cudalegacy/src/cuda/fgd.hpp template <typename T> __device__ T& V1_CC(int i, int j, int k); i 67 modules/cudalegacy/src/cuda/fgd.hpp template <typename T> __device__ T& V2_CC(int i, int j, int k); i 107 modules/cudalegacy/src/cuda/fgd.hpp __device__ __forceinline__ float& BGPixelStat::Pbc(int i, int j) i 109 modules/cudalegacy/src/cuda/fgd.hpp return *((float*)(Pbc_data_ + i * Pbc_step_) + j); i 112 modules/cudalegacy/src/cuda/fgd.hpp __device__ __forceinline__ float& BGPixelStat::Pbcc(int i, int j) i 114 modules/cudalegacy/src/cuda/fgd.hpp return *((float*)(Pbcc_data_ + i * Pbcc_step_) + j); i 117 modules/cudalegacy/src/cuda/fgd.hpp __device__ __forceinline__ unsigned char& BGPixelStat::is_trained_st_model(int i, int j) i 119 modules/cudalegacy/src/cuda/fgd.hpp return *((unsigned char*)(is_trained_st_model_data_ + i * is_trained_st_model_step_) + j); i 122 modules/cudalegacy/src/cuda/fgd.hpp __device__ __forceinline__ unsigned char& BGPixelStat::is_trained_dyn_model(int i, int j) i 124 modules/cudalegacy/src/cuda/fgd.hpp return *((unsigned char*)(is_trained_dyn_model_data_ + i * is_trained_dyn_model_step_) + j); i 127 modules/cudalegacy/src/cuda/fgd.hpp __device__ __forceinline__ float& BGPixelStat::PV_C(int i, int j, int k) i 129 modules/cudalegacy/src/cuda/fgd.hpp return *((float*)(ctable_Pv_data_ + ((k * rows_) + i) * ctable_Pv_step_) + j); i 132 modules/cudalegacy/src/cuda/fgd.hpp __device__ __forceinline__ float& BGPixelStat::PVB_C(int i, int j, int k) i 134 modules/cudalegacy/src/cuda/fgd.hpp return *((float*)(ctable_Pvb_data_ + ((k * rows_) + i) * ctable_Pvb_step_) + j); i 137 modules/cudalegacy/src/cuda/fgd.hpp template <typename T> __device__ __forceinline__ T& BGPixelStat::V_C(int i, int j, int k) i 139 modules/cudalegacy/src/cuda/fgd.hpp return *((T*)(ctable_v_data_ + ((k * rows_) + i) * ctable_v_step_) + j); i 142 modules/cudalegacy/src/cuda/fgd.hpp __device__ __forceinline__ float& BGPixelStat::PV_CC(int i, int j, int k) i 144 modules/cudalegacy/src/cuda/fgd.hpp return *((float*)(cctable_Pv_data_ + ((k * rows_) + i) * cctable_Pv_step_) + j); i 147 modules/cudalegacy/src/cuda/fgd.hpp __device__ __forceinline__ float& BGPixelStat::PVB_CC(int i, int j, int k) i 149 modules/cudalegacy/src/cuda/fgd.hpp return *((float*)(cctable_Pvb_data_ + ((k * rows_) + i) * cctable_Pvb_step_) + j); i 152 modules/cudalegacy/src/cuda/fgd.hpp template <typename T> __device__ __forceinline__ T& BGPixelStat::V1_CC(int i, int j, int k) i 154 modules/cudalegacy/src/cuda/fgd.hpp return *((T*)(cctable_v1_data_ + ((k * rows_) + i) * cctable_v1_step_) + j); i 157 modules/cudalegacy/src/cuda/fgd.hpp template <typename T> __device__ __forceinline__ T& BGPixelStat::V2_CC(int i, int j, int k) i 159 modules/cudalegacy/src/cuda/fgd.hpp return *((T*)(cctable_v2_data_ + ((k * rows_) + i) * cctable_v2_step_) + j); i 251 modules/cudalegacy/src/fgd.cpp for (int i = 0; i < fgd::HISTOGRAM_BIN_COUNT; ++i) i 253 modules/cudalegacy/src/fgd.cpp bestThres[0] = std::max(bestThres[0], relativeVariance[0][i]); i 254 modules/cudalegacy/src/fgd.cpp bestThres[1] = std::max(bestThres[1], relativeVariance[1][i]); i 255 modules/cudalegacy/src/fgd.cpp bestThres[2] = std::max(bestThres[2], relativeVariance[2][i]); i 357 modules/cudalegacy/src/fgd.cpp for (size_t i = 0; i < total; ++i, ++it) i 360 modules/cudalegacy/src/fgd.cpp ((CvContour*)c)->color = (int)i; i 361 modules/cudalegacy/src/fgd.cpp _contours.create((int)c->total, 1, CV_32SC2, (int)i, true); i 362 modules/cudalegacy/src/fgd.cpp Mat ci = _contours.getMat((int)i); i 683 modules/cudalegacy/src/fgd.cpp for (size_t i = 0; i < total; ++i) i 685 modules/cudalegacy/src/fgd.cpp std::vector<Point>& c = foreground_regions_[i]; i 687 modules/cudalegacy/src/fgd.cpp dst.create((int) c.size(), 1, CV_32SC2, (int) i, true); i 688 modules/cudalegacy/src/fgd.cpp Mat ci = dst.getMat((int) i); i 85 modules/cudalegacy/src/image_pyramid.cpp for (int i = 0; i < numLayers - 1; ++i) i 92 modules/cudalegacy/src/image_pyramid.cpp ensureSizeIsEnough(szCurLayer, img.type(), pyramid_[i]); i 95 modules/cudalegacy/src/image_pyramid.cpp const GpuMat& prevLayer = i == 0 ? layer0_ : pyramid_[i - 1]; i 97 modules/cudalegacy/src/image_pyramid.cpp cv::cuda::device::pyramid::downsampleX2(prevLayer, pyramid_[i], img.depth(), img.channels(), StreamAccessor::getStream(stream)); i 121 modules/cudalegacy/src/image_pyramid.cpp for (int i = 0; i < nLayers_ - 1; ++i) i 124 modules/cudalegacy/src/image_pyramid.cpp curLayer = pyramid_[i]; i 81 modules/cudalegacy/test/NCVAutoTestLister.hpp for (Ncv32u i=0; i<this->tests.size(); i++) i 83 modules/cudalegacy/test/NCVAutoTestLister.hpp INCVTest &curTest = *tests[i]; i 91 modules/cudalegacy/test/NCVAutoTestLister.hpp i, i 152 modules/cudalegacy/test/NCVAutoTestLister.hpp for (Ncv32u i=0; i<this->tests.size(); i++) i 154 modules/cudalegacy/test/NCVAutoTestLister.hpp delete tests[i]; i 79 modules/cudalegacy/test/NCVTestSourceProvider.hpp for (Ncv32u i=0; i<maxHeight; i++) i 83 modules/cudalegacy/test/NCVTestSourceProvider.hpp data.get()->ptr()[i * data.get()->stride() + j] = i 128 modules/cudalegacy/test/NCVTestSourceProvider.hpp for (Ncv32u i=0; i<dst.height(); i++) i 130 modules/cudalegacy/test/NCVTestSourceProvider.hpp Ncv32u srcLine = i % this->dataHeight; i 135 modules/cudalegacy/test/NCVTestSourceProvider.hpp memcpy(dst.ptr() + i * dst.stride() + j * this->dataWidth, i 141 modules/cudalegacy/test/NCVTestSourceProvider.hpp memcpy(dst.ptr() + i * dst.stride() + srcFullChunks * this->dataWidth, i 92 modules/cudalegacy/test/TestCompact.cpp for (Ncv32u i=0; i<this->length; i++) i 94 modules/cudalegacy/test/TestCompact.cpp Ncv32u tmp = (h_vecSrc.ptr()[i]) & 0xFF; i 98 modules/cudalegacy/test/TestCompact.cpp h_vecSrc.ptr()[i] = this->badElem; i 137 modules/cudalegacy/test/TestCompact.cpp for (Ncv32u i=0; bLoopVirgin && i < h_outElemNum_h; i++) i 139 modules/cudalegacy/test/TestCompact.cpp if (h_vecDst.ptr()[i] != h_vecDst_d.ptr()[i]) i 110 modules/cudalegacy/test/TestDrawRects.cpp for (Ncv32u i=0; i<this->numRects; i++) i 112 modules/cudalegacy/test/TestDrawRects.cpp h_rects.ptr()[i].x = (Ncv32u)(((1.0 * h_rects.ptr()[i].x) / RAND_MAX) * (this->width-2)); i 113 modules/cudalegacy/test/TestDrawRects.cpp h_rects.ptr()[i].y = (Ncv32u)(((1.0 * h_rects.ptr()[i].y) / RAND_MAX) * (this->height-2)); i 114 modules/cudalegacy/test/TestDrawRects.cpp h_rects.ptr()[i].width = (Ncv32u)(((1.0 * h_rects.ptr()[i].width) / RAND_MAX) * (this->width+10 - h_rects.ptr()[i].x)); i 115 modules/cudalegacy/test/TestDrawRects.cpp h_rects.ptr()[i].height = (Ncv32u)(((1.0 * h_rects.ptr()[i].height) / RAND_MAX) * (this->height+10 - h_rects.ptr()[i].y)); i 165 modules/cudalegacy/test/TestDrawRects.cpp for (Ncv32u i=0; bLoopVirgin && i < h_img.height(); i++) i 169 modules/cudalegacy/test/TestDrawRects.cpp if (h_img.ptr()[h_img.stride()*i+j] != h_img_d.ptr()[h_img_d.stride()*i+j]) i 249 modules/cudalegacy/test/TestHaarCascadeApplication.cpp for (Ncv32u i=0; i<searchRoiU.height; i++) i 255 modules/cudalegacy/test/TestHaarCascadeApplication.cpp h_pixelMask.ptr()[i*h_pixelMask.stride()+j] = (i << 16) | j; i 259 modules/cudalegacy/test/TestHaarCascadeApplication.cpp h_pixelMask.ptr()[i*h_pixelMask.stride()+j] = OBJDET_MASK_ELEMENT_INVALID_32U; i 312 modules/cudalegacy/test/TestHaarCascadeApplication.cpp for (Ncv32u i=0; i<detectionsOnThisScale_d && bLoopVirgin; i++) i 314 modules/cudalegacy/test/TestHaarCascadeApplication.cpp if (h_pixelMask.ptr()[i] != h_pixelMask_d.ptr()[i]) i 113 modules/cudalegacy/test/TestHypothesesFilter.cpp for (Ncv32u i=0; i<this->numDstRects; i++) i 115 modules/cudalegacy/test/TestHypothesesFilter.cpp h_vecDst_groundTruth.ptr()[i].x = i * this->canvasWidth / this->numDstRects + this->canvasWidth / (this->numDstRects * 4); i 116 modules/cudalegacy/test/TestHypothesesFilter.cpp h_vecDst_groundTruth.ptr()[i].y = i * this->canvasHeight / this->numDstRects + this->canvasHeight / (this->numDstRects * 4); i 117 modules/cudalegacy/test/TestHypothesesFilter.cpp h_vecDst_groundTruth.ptr()[i].width = this->canvasWidth / (this->numDstRects * 2); i 118 modules/cudalegacy/test/TestHypothesesFilter.cpp h_vecDst_groundTruth.ptr()[i].height = this->canvasHeight / (this->numDstRects * 2); i 120 modules/cudalegacy/test/TestHypothesesFilter.cpp Ncv32u numNeighbors = this->minNeighbors + 1 + (Ncv32u)(((1.0 * h_random32u.ptr()[i]) * (this->minNeighbors + 1)) / 0xFFFFFFFF); i 127 modules/cudalegacy/test/TestHypothesesFilter.cpp h_vecSrc.ptr()[srcSlotSize * i + j].x = i 128 modules/cudalegacy/test/TestHypothesesFilter.cpp h_vecDst_groundTruth.ptr()[i].x + i 129 modules/cudalegacy/test/TestHypothesesFilter.cpp (Ncv32s)(h_vecDst_groundTruth.ptr()[i].width * this->eps * (randVal - 0.5)); i 131 modules/cudalegacy/test/TestHypothesesFilter.cpp h_vecSrc.ptr()[srcSlotSize * i + j].y = i 132 modules/cudalegacy/test/TestHypothesesFilter.cpp h_vecDst_groundTruth.ptr()[i].y + i 133 modules/cudalegacy/test/TestHypothesesFilter.cpp (Ncv32s)(h_vecDst_groundTruth.ptr()[i].height * this->eps * (randVal - 0.5)); i 134 modules/cudalegacy/test/TestHypothesesFilter.cpp h_vecSrc.ptr()[srcSlotSize * i + j].width = h_vecDst_groundTruth.ptr()[i].width; i 135 modules/cudalegacy/test/TestHypothesesFilter.cpp h_vecSrc.ptr()[srcSlotSize * i + j].height = h_vecDst_groundTruth.ptr()[i].height; i 142 modules/cudalegacy/test/TestHypothesesFilter.cpp h_vecSrc.ptr()[srcSlotSize * i + j].x = i 143 modules/cudalegacy/test/TestHypothesesFilter.cpp this->canvasWidth + h_vecDst_groundTruth.ptr()[i].x + i 144 modules/cudalegacy/test/TestHypothesesFilter.cpp (Ncv32s)(h_vecDst_groundTruth.ptr()[i].width * this->eps * (randVal - 0.5)); i 146 modules/cudalegacy/test/TestHypothesesFilter.cpp h_vecSrc.ptr()[srcSlotSize * i + j].y = i 147 modules/cudalegacy/test/TestHypothesesFilter.cpp this->canvasHeight + h_vecDst_groundTruth.ptr()[i].y + i 148 modules/cudalegacy/test/TestHypothesesFilter.cpp (Ncv32s)(h_vecDst_groundTruth.ptr()[i].height * this->eps * (randVal - 0.5)); i 149 modules/cudalegacy/test/TestHypothesesFilter.cpp h_vecSrc.ptr()[srcSlotSize * i + j].width = h_vecDst_groundTruth.ptr()[i].width; i 150 modules/cudalegacy/test/TestHypothesesFilter.cpp h_vecSrc.ptr()[srcSlotSize * i + j].height = h_vecDst_groundTruth.ptr()[i].height; i 155 modules/cudalegacy/test/TestHypothesesFilter.cpp for (Ncv32u i=0; i<this->numDstRects*srcSlotSize-1; i++) i 158 modules/cudalegacy/test/TestHypothesesFilter.cpp Ncv32u secondSwap = randValLocal % (this->numDstRects*srcSlotSize-1 - i); i 159 modules/cudalegacy/test/TestHypothesesFilter.cpp NcvRect32u tmp = h_vecSrc.ptr()[i + secondSwap]; i 160 modules/cudalegacy/test/TestHypothesesFilter.cpp h_vecSrc.ptr()[i + secondSwap] = h_vecSrc.ptr()[i]; i 161 modules/cudalegacy/test/TestHypothesesFilter.cpp h_vecSrc.ptr()[i] = tmp; i 184 modules/cudalegacy/test/TestHypothesesFilter.cpp for (Ncv32u i=0; i<numHypothesesSrc && bLoopVirgin; i++) i 186 modules/cudalegacy/test/TestHypothesesFilter.cpp if (!compareRects(tmpRects[i], h_vecDst_groundTruth.ptr()[i], this->eps)) i 172 modules/cudalegacy/test/TestIntegralImage.cpp for (Ncv32u i=0; bLoopVirgin && i < h_img.height() + 1; i++) i 178 modules/cudalegacy/test/TestIntegralImage.cpp if (h_imgII.ptr()[h_imgII.stride()*i+j] != h_imgII_d.ptr()[h_imgII_d.stride()*i+j]) i 185 modules/cudalegacy/test/TestIntegralImage.cpp if (fabsf((float)h_imgII.ptr()[h_imgII.stride()*i+j] - (float)h_imgII_d.ptr()[h_imgII_d.stride()*i+j]) > 0.01f) i 124 modules/cudalegacy/test/TestIntegralImageSquared.cpp for (Ncv32u i=0; bLoopVirgin && i < h_img.height() + 1; i++) i 128 modules/cudalegacy/test/TestIntegralImageSquared.cpp if (h_imgSII.ptr()[h_imgSII.stride()*i+j] != h_imgSII_d.ptr()[h_imgSII_d.stride()*i+j]) i 182 modules/cudalegacy/test/TestRectStdDev.cpp for (Ncv32u i=0; bLoopVirgin && i < h_norm.height(); i++) i 186 modules/cudalegacy/test/TestRectStdDev.cpp Ncv64f absErr = fabs(h_norm.ptr()[h_norm.stride()*i+j] - h_norm_d.ptr()[h_norm_d.stride()*i+j]); i 187 modules/cudalegacy/test/TestRectStdDev.cpp Ncv64f relErr = absErr / h_norm.ptr()[h_norm.stride()*i+j]; i 161 modules/cudalegacy/test/TestResize.cpp for (Ncv32u i=0; bLoopVirgin && i < h_small.height(); i++) i 165 modules/cudalegacy/test/TestResize.cpp if (h_small.ptr()[h_small.stride()*i+j] != h_small_d.ptr()[h_small_d.stride()*i+j]) i 148 modules/cudalegacy/test/TestTranspose.cpp for (Ncv32u i=0; bLoopVirgin && i < this->width; i++) i 152 modules/cudalegacy/test/TestTranspose.cpp if (h_dst.ptr()[h_dst.stride()*i+j] != h_dst_d.ptr()[h_dst_d.stride()*i+j]) i 60 modules/cudalegacy/test/main_nvidia.cpp Ncv32u i = (Ncv32u)_i; i 62 modules/cudalegacy/test/main_nvidia.cpp sprintf(testName, "LinIntImgW%dH%d", i, 2); i 63 modules/cudalegacy/test/main_nvidia.cpp testLister.add(new TestIntegralImage<T_in, T_out>(testName, src, i, 2)); i 67 modules/cudalegacy/test/main_nvidia.cpp Ncv32u i = (Ncv32u)_i; i 69 modules/cudalegacy/test/main_nvidia.cpp sprintf(testName, "LinIntImgW%dH%d", 2, i); i 70 modules/cudalegacy/test/main_nvidia.cpp testLister.add(new TestIntegralImage<T_in, T_out>(testName, src, 2, i)); i 81 modules/cudalegacy/test/main_nvidia.cpp Ncv32u i = (Ncv32u)_i; i 83 modules/cudalegacy/test/main_nvidia.cpp sprintf(testName, "SqIntImgW%dH%d", i, 32); i 84 modules/cudalegacy/test/main_nvidia.cpp testLister.add(new TestIntegralImageSquared(testName, src, i, 32)); i 88 modules/cudalegacy/test/main_nvidia.cpp Ncv32u i = (Ncv32u)_i; i 90 modules/cudalegacy/test/main_nvidia.cpp sprintf(testName, "SqIntImgW%dH%d", 32, i); i 91 modules/cudalegacy/test/main_nvidia.cpp testLister.add(new TestIntegralImageSquared(testName, src, 32, i)); i 104 modules/cudalegacy/test/main_nvidia.cpp Ncv32u i = (Ncv32u)_i; i 106 modules/cudalegacy/test/main_nvidia.cpp sprintf(testName, "RectStdDevW%dH%d", i*2, i); i 107 modules/cudalegacy/test/main_nvidia.cpp testLister.add(new TestRectStdDev(testName, src, i*2, i, rect, 1, true)); i 108 modules/cudalegacy/test/main_nvidia.cpp testLister.add(new TestRectStdDev(testName, src, i*2, i, rect, 1.5, false)); i 109 modules/cudalegacy/test/main_nvidia.cpp testLister.add(new TestRectStdDev(testName, src, i-1, i*2-1, rect, 1, false)); i 110 modules/cudalegacy/test/main_nvidia.cpp testLister.add(new TestRectStdDev(testName, src, i-1, i*2-1, rect, 2.5, true)); i 119 modules/cudalegacy/test/main_nvidia.cpp for (Ncv32u i=2; i<10; ++i) i 122 modules/cudalegacy/test/main_nvidia.cpp sprintf(testName, "TestResize_VGA_s%d", i); i 123 modules/cudalegacy/test/main_nvidia.cpp testLister.add(new TestResize<T>(testName, src, 640, 480, i, true)); i 124 modules/cudalegacy/test/main_nvidia.cpp testLister.add(new TestResize<T>(testName, src, 640, 480, i, false)); i 127 modules/cudalegacy/test/main_nvidia.cpp for (Ncv32u i=2; i<10; ++i) i 130 modules/cudalegacy/test/main_nvidia.cpp sprintf(testName, "TestResize_1080_s%d", i); i 131 modules/cudalegacy/test/main_nvidia.cpp testLister.add(new TestResize<T>(testName, src, 1920, 1080, i, true)); i 132 modules/cudalegacy/test/main_nvidia.cpp testLister.add(new TestResize<T>(testName, src, 1920, 1080, i, false)); i 141 modules/cudalegacy/test/main_nvidia.cpp Ncv32u i = (Ncv32u)_i; i 143 modules/cudalegacy/test/main_nvidia.cpp sprintf(testName, "Compaction%d", i); i 144 modules/cudalegacy/test/main_nvidia.cpp testLister.add(new TestCompact(testName, src, i, 0xFFFFFFFF, 30)); i 146 modules/cudalegacy/test/main_nvidia.cpp for (Ncv32u i=1; i<260; i++) i 149 modules/cudalegacy/test/main_nvidia.cpp sprintf(testName, "Compaction%d", i); i 150 modules/cudalegacy/test/main_nvidia.cpp testLister.add(new TestCompact(testName, src, i, 0xC001C0DE, 70)); i 151 modules/cudalegacy/test/main_nvidia.cpp testLister.add(new TestCompact(testName, src, i, 0xC001C0DE, 0)); i 152 modules/cudalegacy/test/main_nvidia.cpp testLister.add(new TestCompact(testName, src, i, 0xC001C0DE, 100)); i 154 modules/cudalegacy/test/main_nvidia.cpp for (Ncv32u i=256*256-10; i<256*256+10; i++) i 157 modules/cudalegacy/test/main_nvidia.cpp sprintf(testName, "Compaction%d", i); i 158 modules/cudalegacy/test/main_nvidia.cpp testLister.add(new TestCompact(testName, src, i, 0xFFFFFFFF, 40)); i 160 modules/cudalegacy/test/main_nvidia.cpp for (Ncv32u i=256*256*256-2; i<256*256*256+2; i++) i 163 modules/cudalegacy/test/main_nvidia.cpp sprintf(testName, "Compaction%d", i); i 164 modules/cudalegacy/test/main_nvidia.cpp testLister.add(new TestCompact(testName, src, i, 0x00000000, 2)); i 172 modules/cudalegacy/test/main_nvidia.cpp for (int i=2; i<64; i+=4) i 177 modules/cudalegacy/test/main_nvidia.cpp sprintf(testName, "TestTranspose_%dx%d", i, j); i 178 modules/cudalegacy/test/main_nvidia.cpp testLister.add(new TestTranspose<T>(testName, src, i, j)); i 182 modules/cudalegacy/test/main_nvidia.cpp for (int i=1; i<128; i+=1) i 187 modules/cudalegacy/test/main_nvidia.cpp sprintf(testName, "TestTranspose_%dx%d", i, j); i 188 modules/cudalegacy/test/main_nvidia.cpp testLister.add(new TestTranspose<T>(testName, src, i, j)); i 207 modules/cudalegacy/test/main_nvidia.cpp Ncv32u i = (Ncv32u)_i; i 208 modules/cudalegacy/test/main_nvidia.cpp Ncv32u j = maxHeight * i / maxWidth; i 211 modules/cudalegacy/test/main_nvidia.cpp sprintf(testName, "DrawRectsW%dH%d", i, j); i 215 modules/cudalegacy/test/main_nvidia.cpp testLister.add(new TestDrawRects<T>(testName, src, src32u, i, j, i*j/1000+1, (T)0xFFFFFFFF)); i 219 modules/cudalegacy/test/main_nvidia.cpp testLister.add(new TestDrawRects<T>(testName, src, src32u, i, j, i*j/1000+1, (T)0xFF)); i 236 modules/cudalegacy/test/main_nvidia.cpp Ncv32u i = (Ncv32u)_i; i 238 modules/cudalegacy/test/main_nvidia.cpp sprintf(testName, "VectorGrow%d", i); i 239 modules/cudalegacy/test/main_nvidia.cpp testLister.add(new TestHypothesesGrow(testName, src, 20, 20, 2.2f, i, i/2, i, i/4)); i 240 modules/cudalegacy/test/main_nvidia.cpp testLister.add(new TestHypothesesGrow(testName, src, 10, 42, 1.2f, i, i, i, 0)); i 252 modules/cudalegacy/test/main_nvidia.cpp Ncv32u i = (Ncv32u)_i; i 254 modules/cudalegacy/test/main_nvidia.cpp sprintf(testName, "HypFilter%d", i); i 255 modules/cudalegacy/test/main_nvidia.cpp testLister.add(new TestHypothesesFilter(testName, src, i, 3, 0.2f)); i 256 modules/cudalegacy/test/main_nvidia.cpp testLister.add(new TestHypothesesFilter(testName, src, i, 0, 0.2f)); i 257 modules/cudalegacy/test/main_nvidia.cpp testLister.add(new TestHypothesesFilter(testName, src, i, 1, 0.1f)); i 275 modules/cudalegacy/test/main_nvidia.cpp for (Ncv32u i=100; i<512; i+=41) i 280 modules/cudalegacy/test/main_nvidia.cpp sprintf(testName, "HaarAppl%d_%d", i, j); i 281 modules/cudalegacy/test/main_nvidia.cpp testLister.add(new TestHaarCascadeApplication(testName, src, path + "haarcascade_frontalface_alt.xml", j, i)); i 286 modules/cudalegacy/test/main_nvidia.cpp Ncv32u i = (Ncv32u)_i; i 288 modules/cudalegacy/test/main_nvidia.cpp sprintf(testName, "HaarAppl%d", i); i 289 modules/cudalegacy/test/main_nvidia.cpp testLister.add(new TestHaarCascadeApplication(testName, src, path + "haarcascade_frontalface_alt.xml", i, i)); i 83 modules/cudalegacy/test/test_calib3d.cpp for (int i = 0; i < h_dst.cols; ++i) i 85 modules/cudalegacy/test/test_calib3d.cpp cv::Point3f res = h_dst.at<cv::Point3f>(0, i); i 87 modules/cudalegacy/test/test_calib3d.cpp cv::Point3f p = src.at<cv::Point3f>(0, i); i 138 modules/cudalegacy/test/test_calib3d.cpp for (size_t i = 0; i < dst_gold.size(); ++i) i 140 modules/cudalegacy/test/test_calib3d.cpp cv::Point2f res = h_dst.at<cv::Point2f>(0, (int)i); i 141 modules/cudalegacy/test/test_calib3d.cpp cv::Point2f res_gold = dst_gold[i]; i 56 modules/cudalegacy/test/test_labeling.cpp static dot make(int i, int j) i 58 modules/cudalegacy/test/test_labeling.cpp dot d; d.x = i; d.y = j; i 94 modules/cudalegacy/test/test_labeling.cpp for (int i = 0; i < image.cols; ++i) i 96 modules/cudalegacy/test/test_labeling.cpp if (dist_labels[j * pitch + i] != -1) continue; i 99 modules/cudalegacy/test/test_labeling.cpp dot p = dot::make(i, j); i 102 modules/cudalegacy/test/test_labeling.cpp dist_labels[j * pitch + i] = cc; i 139 modules/cudalegacy/test/test_labeling.cpp for (int i = 0; i < image.cols - 1; ++i) i 141 modules/cudalegacy/test/test_labeling.cpp if ( (_labels.at<int>(j,i) == gpu.at<int>(j,i + 1)) && (diff.at<int>(j, i) != diff.at<int>(j,i + 1))) i 412 modules/cudaobjdetect/src/cascadeclassifier.cpp cv::Size operator +(const cv::Size& a, const int& i) i 414 modules/cudaobjdetect/src/cascadeclassifier.cpp return cv::Size(a.width + i, a.height + i); i 258 modules/cudaobjdetect/src/hog.cpp for (int i = 0; i < blocks_per_win.height; ++i) i 262 modules/cudaobjdetect/src/hog.cpp const float* src = detector.ptr<float>() + (j * blocks_per_win.height + i) * block_hist_size; i 263 modules/cudaobjdetect/src/hog.cpp float* dst = &detector_reordered[0] + (i * blocks_per_win.width + j) * block_hist_size; i 322 modules/cudaobjdetect/src/hog.cpp for (int i = 0; i < wins_per_img.area(); i++) i 324 modules/cudaobjdetect/src/hog.cpp int y = i / wins_per_img.width; i 325 modules/cudaobjdetect/src/hog.cpp int x = i - wins_per_img.width * y; i 326 modules/cudaobjdetect/src/hog.cpp if (vec[i]) i 349 modules/cudaobjdetect/src/hog.cpp for (int i = 0; i < wins_per_img.area(); i++) i 351 modules/cudaobjdetect/src/hog.cpp int y = i / wins_per_img.width; i 352 modules/cudaobjdetect/src/hog.cpp int x = i - wins_per_img.width * y; i 354 modules/cudaobjdetect/src/hog.cpp if (vec[i] >= hit_threshold_) i 357 modules/cudaobjdetect/src/hog.cpp confidences->push_back((double)vec[i]); i 397 modules/cudaobjdetect/src/hog.cpp for (size_t i = 0; i < level_scale.size(); i++) i 399 modules/cudaobjdetect/src/hog.cpp scale = level_scale[i]; i 83 modules/cudaobjdetect/test/test_objdetect.cpp for (int i = 0; i < locations.size(); ++i) i 84 modules/cudaobjdetect/test/test_objdetect.cpp f.write((char*)&locations[i], sizeof(locations[i])); i 93 modules/cudaobjdetect/test/test_objdetect.cpp for (int i = 0; i < rows; ++i) i 106 modules/cudaobjdetect/test/test_objdetect.cpp for (int i = 0; i < nlocations; ++i) i 110 modules/cudaobjdetect/test/test_objdetect.cpp ASSERT_EQ(location, locations[i]); i 209 modules/cudaobjdetect/test/test_objdetect.cpp for (int i = 0; i < wins_per_img_x * wins_per_img_y; ++i) i 211 modules/cudaobjdetect/test/test_objdetect.cpp const float* l = dr.rowRange(i, i + 1).ptr<float>(); i 212 modules/cudaobjdetect/test/test_objdetect.cpp const float* r = dc.rowRange(i, i + 1).ptr<float>(); i 253 modules/cudaobjdetect/test/test_objdetect.cpp for (int i = 0; i < (int)found_locations.size(); i++) i 255 modules/cudaobjdetect/test/test_objdetect.cpp cv::Rect r = found_locations[i]; i 349 modules/cudaobjdetect/test/test_objdetect.cpp for (size_t i = 0; i < gpu_rects.size(); i++) i 351 modules/cudaobjdetect/test/test_objdetect.cpp cv::Rect r = gpu_rects[i]; i 266 modules/cudaoptflow/src/farneback.cpp for (int i = 1; i < 5; ++i) i 267 modules/cudaoptflow/src/farneback.cpp streams[i].waitForCompletion(); i 331 modules/cudaoptflow/src/farneback.cpp for (int i = 1; i <= numLevelsCropped; ++i) i 333 modules/cudaoptflow/src/farneback.cpp cuda::pyrDown(pyramid0_[i - 1], pyramid0_[i], streams[0]); i 334 modules/cudaoptflow/src/farneback.cpp cuda::pyrDown(pyramid1_[i - 1], pyramid1_[i], streams[1]); i 346 modules/cudaoptflow/src/farneback.cpp for (int i = 0; i < k; i++) i 425 modules/cudaoptflow/src/farneback.cpp for (int i = 0; i < 2; i++) i 428 modules/cudaoptflow/src/farneback.cpp frames_[i], smoothSize/2, blurredFrame[i], BORDER_REFLECT101, StreamAccessor::getStream(streams[i])); i 429 modules/cudaoptflow/src/farneback.cpp cuda::resize(blurredFrame[i], pyrLevel[i], Size(width, height), 0.0, 0.0, INTER_LINEAR, streams[i]); i 430 modules/cudaoptflow/src/farneback.cpp device::optflow_farneback::polynomialExpansionGpu(pyrLevel[i], polyN_, R[i], StreamAccessor::getStream(streams[i])); i 442 modules/cudaoptflow/src/farneback.cpp for (int i = 0; i < numIters_; i++) i 445 modules/cudaoptflow/src/farneback.cpp updateFlow_gaussianBlur(R[0], R[1], curFlowX, curFlowY, M, bufM, winSize_, i < numIters_-1, streams); i 447 modules/cudaoptflow/src/farneback.cpp updateFlow_boxFilter(R[0], R[1], curFlowX, curFlowY, M, bufM, winSize_, i < numIters_-1, streams); i 103 modules/cudaoptflow/test/test_optflow.cpp for (int i = 0; i < u_gold.rows; ++i) i 104 modules/cudaoptflow/test/test_optflow.cpp f.read(u_gold.ptr<char>(i), u_gold.cols * sizeof(float)); i 108 modules/cudaoptflow/test/test_optflow.cpp for (int i = 0; i < v_gold.rows; ++i) i 109 modules/cudaoptflow/test/test_optflow.cpp f.read(v_gold.ptr<char>(i), v_gold.cols * sizeof(float)); i 122 modules/cudaoptflow/test/test_optflow.cpp for (int i = 0; i < u.rows; ++i) i 123 modules/cudaoptflow/test/test_optflow.cpp f.write(h_u.ptr<char>(i), u.cols * sizeof(float)); i 125 modules/cudaoptflow/test/test_optflow.cpp for (int i = 0; i < v.rows; ++i) i 126 modules/cudaoptflow/test/test_optflow.cpp f.write(h_v.ptr<char>(i), v.cols * sizeof(float)); i 231 modules/cudaoptflow/test/test_optflow.cpp for (size_t i = 0; i < nextPts.size(); ++i) i 233 modules/cudaoptflow/test/test_optflow.cpp cv::Point2i a = nextPts[i]; i 234 modules/cudaoptflow/test/test_optflow.cpp cv::Point2i b = nextPts_gold[i]; i 236 modules/cudaoptflow/test/test_optflow.cpp if (status[i] != status_gold[i]) i 242 modules/cudaoptflow/test/test_optflow.cpp if (status[i]) i 101 modules/cudastereo/src/disparity_bilateral_filter.cpp for(int i = 0; i < len; i++) i 102 modules/cudastereo/src/disparity_bilateral_filter.cpp line[i] = static_cast<float>(std::exp(-double(i * i) / (2 * sigma_range * sigma_range))); i 314 modules/cudastereo/src/stereobp.cpp for (int i = 1; i < levels_; ++i) i 316 modules/cudastereo/src/stereobp.cpp cols_all_[i] = (cols_all_[i-1] + 1) / 2; i 317 modules/cudastereo/src/stereobp.cpp rows_all_[i] = (rows_all_[i-1] + 1) / 2; i 319 modules/cudastereo/src/stereobp.cpp datas_[i].create(rows_all_[i] * ndisp_, cols_all_[i], msg_type_); i 321 modules/cudastereo/src/stereobp.cpp data_step_down_callers[funcIdx](cols_all_[i], rows_all_[i], rows_all_[i-1], datas_[i-1], datas_[i], stream); i 331 modules/cudastereo/src/stereobp.cpp for (int i = levels_ - 1; i >= 0; --i) i 334 modules/cudastereo/src/stereobp.cpp if (i != levels_ - 1) i 335 modules/cudastereo/src/stereobp.cpp level_up_messages_callers[funcIdx](mem_idx, cols_all_[i], rows_all_[i], rows_all_[i+1], mus, mds, mls, mrs, stream); i 337 modules/cudastereo/src/stereobp.cpp calc_all_iterations_callers[funcIdx](cols_all_[i], rows_all_[i], iters_, mus[mem_idx], mds[mem_idx], mls[mem_idx], mrs[mem_idx], datas_[i], stream); i 183 modules/cudastereo/src/stereocsbp.cpp for (int i = 1; i < levels_; i++) i 185 modules/cudastereo/src/stereocsbp.cpp cols_pyr[i] = cols_pyr[i-1] / 2; i 186 modules/cudastereo/src/stereocsbp.cpp rows_pyr[i] = rows_pyr[i-1] / 2; i 187 modules/cudastereo/src/stereocsbp.cpp nr_plane_pyr[i] = nr_plane_pyr[i-1] * 2; i 242 modules/cudastereo/src/stereocsbp.cpp for (int i = levels_ - 1; i >= 0; i--) i 244 modules/cudastereo/src/stereocsbp.cpp if (i == levels_ - 1) i 247 modules/cudastereo/src/stereocsbp.cpp elem_step, rows_pyr[i], cols_pyr[i], i, nr_plane_pyr[i], ndisp_, left.channels(), data_weight_, max_data_term_, min_disp_th_, use_local_init_data_cost_, stream); i 252 modules/cudastereo/src/stereocsbp.cpp left.rows, left.cols, rows_pyr[i], cols_pyr[i], rows_pyr[i+1], i, nr_plane_pyr[i+1], left.channels(), data_weight_, max_data_term_, min_disp_th_, stream); i 260 modules/cudastereo/src/stereocsbp.cpp data_cost_selected.ptr<float>(), data_cost.ptr<float>(), elem_step, rows_pyr[i], i 261 modules/cudastereo/src/stereocsbp.cpp cols_pyr[i], nr_plane_pyr[i], rows_pyr[i+1], cols_pyr[i+1], nr_plane_pyr[i+1], stream); i 268 modules/cudastereo/src/stereocsbp.cpp rows_pyr[i], cols_pyr[i], nr_plane_pyr[i], iters_, max_disc_term_, disc_single_jump_, stream); i 273 modules/cudastereo/src/stereocsbp.cpp for (int i = levels_ - 1; i >= 0; i--) i 275 modules/cudastereo/src/stereocsbp.cpp if (i == levels_ - 1) i 278 modules/cudastereo/src/stereocsbp.cpp elem_step, rows_pyr[i], cols_pyr[i], i, nr_plane_pyr[i], ndisp_, left.channels(), data_weight_, max_data_term_, min_disp_th_, use_local_init_data_cost_, stream); i 283 modules/cudastereo/src/stereocsbp.cpp left.rows, left.cols, rows_pyr[i], cols_pyr[i], rows_pyr[i+1], i, nr_plane_pyr[i+1], left.channels(), data_weight_, max_data_term_, min_disp_th_, stream); i 291 modules/cudastereo/src/stereocsbp.cpp data_cost_selected.ptr<short>(), data_cost.ptr<short>(), elem_step, rows_pyr[i], i 292 modules/cudastereo/src/stereocsbp.cpp cols_pyr[i], nr_plane_pyr[i], rows_pyr[i+1], cols_pyr[i+1], nr_plane_pyr[i+1], stream); i 299 modules/cudastereo/src/stereocsbp.cpp rows_pyr[i], cols_pyr[i], nr_plane_pyr[i], iters_, max_disc_term_, disc_single_jump_, stream); i 59 modules/cudawarping/perf/perf_warping.cpp for (int i = 0; i < map_x.cols; ++i) i 64 modules/cudawarping/perf/perf_warping.cpp if (i > map_x.cols*0.25 && i < map_x.cols*0.75 && j > map_x.rows*0.25 && j < map_x.rows*0.75) i 66 modules/cudawarping/perf/perf_warping.cpp map_x.at<float>(j,i) = 2.f * (i - map_x.cols * 0.25f) + 0.5f; i 67 modules/cudawarping/perf/perf_warping.cpp map_y.at<float>(j,i) = 2.f * (j - map_x.rows * 0.25f) + 0.5f; i 71 modules/cudawarping/perf/perf_warping.cpp map_x.at<float>(j,i) = 0.f; i 72 modules/cudawarping/perf/perf_warping.cpp map_y.at<float>(j,i) = 0.f; i 76 modules/cudawarping/perf/perf_warping.cpp map_x.at<float>(j,i) = static_cast<float>(i); i 77 modules/cudawarping/perf/perf_warping.cpp map_y.at<float>(j,i) = static_cast<float>(map_x.rows - j); i 80 modules/cudawarping/perf/perf_warping.cpp map_x.at<float>(j,i) = static_cast<float>(map_x.cols - i); i 81 modules/cudawarping/perf/perf_warping.cpp map_y.at<float>(j,i) = static_cast<float>(j); i 84 modules/cudawarping/perf/perf_warping.cpp map_x.at<float>(j,i) = static_cast<float>(map_x.cols - i); i 85 modules/cudawarping/perf/perf_warping.cpp map_y.at<float>(j,i) = static_cast<float>(map_x.rows - j); i 942 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp __device__ static int LabCbrt_b(int i) i 944 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp float x = i * (1.f / (255.f * (1 << gamma_shift))); i 65 modules/cudev/include/opencv2/cudev/grid/detail/histogram.hpp for (int i = tid; i < BIN_COUNT; i += BLOCK_SIZE) i 66 modules/cudev/include/opencv2/cudev/grid/detail/histogram.hpp smem[i] = 0; i 84 modules/cudev/include/opencv2/cudev/grid/detail/histogram.hpp for (int i = tid; i < BIN_COUNT; i += BLOCK_SIZE) i 86 modules/cudev/include/opencv2/cudev/grid/detail/histogram.hpp const ResType histVal = smem[i]; i 88 modules/cudev/include/opencv2/cudev/grid/detail/histogram.hpp atomicAdd(hist + i, histVal); i 216 modules/cudev/include/opencv2/cudev/grid/detail/integral.hpp for (int i = 1; i < 32; i *= 2) i 218 modules/cudev/include/opencv2/cudev/grid/detail/integral.hpp const int n = shfl_up(sum, i, 32); i 220 modules/cudev/include/opencv2/cudev/grid/detail/integral.hpp if (lane_id >= i) i 248 modules/cudev/include/opencv2/cudev/grid/detail/integral.hpp for (int i = 1; i <= 32; i *= 2) i 250 modules/cudev/include/opencv2/cudev/grid/detail/integral.hpp const int n = shfl_up(warp_sum, i, 32); i 252 modules/cudev/include/opencv2/cudev/grid/detail/integral.hpp if (lane_id >= i) i 364 modules/cudev/include/opencv2/cudev/grid/detail/integral.hpp for (int i = 0; i < 16; ++i) i 365 modules/cudev/include/opencv2/cudev/grid/detail/integral.hpp result[i] = shfl_xor(result[i], 1, 32); i 454 modules/cudev/include/opencv2/cudev/grid/detail/integral.hpp for (int i = 1; i <= 8; i *= 2) i 456 modules/cudev/include/opencv2/cudev/grid/detail/integral.hpp T n = shfl_up(partial_sum, i, 32); i 458 modules/cudev/include/opencv2/cudev/grid/detail/integral.hpp if (lane_id >= i) i 512 modules/cudev/include/opencv2/cudev/grid/detail/integral.hpp for (int i = 0; i < 4; ++i) i 514 modules/cudev/include/opencv2/cudev/grid/detail/integral.hpp if (curRowOffs + i * 8 < rows) i 515 modules/cudev/include/opencv2/cudev/grid/detail/integral.hpp smem[threadIdx.y + i * 8][threadIdx.x] = integral(curRowOffs + i * 8, x); i 562 modules/cudev/include/opencv2/cudev/grid/detail/integral.hpp for (int i = 0; i < 4; ++i) i 564 modules/cudev/include/opencv2/cudev/grid/detail/integral.hpp if (curRowOffs + i * 8 < rows) i 565 modules/cudev/include/opencv2/cudev/grid/detail/integral.hpp integral(curRowOffs + i * 8, x) = smem[threadIdx.x][threadIdx.y + i * 8]; i 75 modules/cudev/include/opencv2/cudev/grid/detail/minmaxloc.hpp for (int i = 0, y = y0; i < patch_y && y < rows; ++i, y += blockDim.y) i 399 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp for (int i = 0, y = y0; i < PATCH_Y && y < rows; ++i, y += blockDim.y) i 85 modules/cudev/include/opencv2/cudev/grid/detail/transpose.hpp for (int i = 0; i < TILE_DIM; i += BLOCK_DIM_Y) i 87 modules/cudev/include/opencv2/cudev/grid/detail/transpose.hpp if (yIndex + i < rows) i 89 modules/cudev/include/opencv2/cudev/grid/detail/transpose.hpp tile[threadIdx.y + i][threadIdx.x] = src(yIndex + i, xIndex); i 101 modules/cudev/include/opencv2/cudev/grid/detail/transpose.hpp for (int i = 0; i < TILE_DIM; i += BLOCK_DIM_Y) i 103 modules/cudev/include/opencv2/cudev/grid/detail/transpose.hpp if (yIndex + i < cols) i 105 modules/cudev/include/opencv2/cudev/grid/detail/transpose.hpp dst(yIndex + i, xIndex) = saturate_cast<DstType>(tile[threadIdx.x][threadIdx.y + i]); i 122 modules/cudev/include/opencv2/cudev/ptr2d/extrapolation.hpp __device__ __forceinline__ static int idx_low(int i, int len) i 124 modules/cudev/include/opencv2/cudev/ptr2d/extrapolation.hpp return ::max(i, 0); i 127 modules/cudev/include/opencv2/cudev/ptr2d/extrapolation.hpp __device__ __forceinline__ static int idx_high(int i, int len) i 129 modules/cudev/include/opencv2/cudev/ptr2d/extrapolation.hpp return ::min(i, len - 1); i 147 modules/cudev/include/opencv2/cudev/ptr2d/extrapolation.hpp __device__ __forceinline__ static int idx_low(int i, int len) i 149 modules/cudev/include/opencv2/cudev/ptr2d/extrapolation.hpp return ::abs(i) % len; i 152 modules/cudev/include/opencv2/cudev/ptr2d/extrapolation.hpp __device__ __forceinline__ static int idx_high(int i, int len) i 155 modules/cudev/include/opencv2/cudev/ptr2d/extrapolation.hpp return ::abs(last_ind - ::abs(last_ind - i)) % len; i 173 modules/cudev/include/opencv2/cudev/ptr2d/extrapolation.hpp __device__ __forceinline__ static int idx_low(int i, int len) i 175 modules/cudev/include/opencv2/cudev/ptr2d/extrapolation.hpp return (::abs(i) - (i < 0)) % len; i 178 modules/cudev/include/opencv2/cudev/ptr2d/extrapolation.hpp __device__ __forceinline__ static int idx_high(int i, int len) i 181 modules/cudev/include/opencv2/cudev/ptr2d/extrapolation.hpp return (last_ind - ::abs(last_ind - i) + (i > last_ind)); i 199 modules/cudev/include/opencv2/cudev/ptr2d/extrapolation.hpp __device__ __forceinline__ static int idx_low(int i, int len) i 201 modules/cudev/include/opencv2/cudev/ptr2d/extrapolation.hpp return (i >= 0) * i + (i < 0) * (i - ((i - len + 1) / len) * len); i 204 modules/cudev/include/opencv2/cudev/ptr2d/extrapolation.hpp __device__ __forceinline__ static int idx_high(int i, int len) i 206 modules/cudev/include/opencv2/cudev/ptr2d/extrapolation.hpp return (i < len) * i + (i >= len) * (i % len); i 84 modules/cudev/include/opencv2/cudev/ptr2d/interpolation.hpp NearestInterPtrSz<typename PtrTraits<SrcPtr>::ptr_type> i; i 85 modules/cudev/include/opencv2/cudev/ptr2d/interpolation.hpp i.src = shrinkPtr(src); i 86 modules/cudev/include/opencv2/cudev/ptr2d/interpolation.hpp i.rows = getRows(src); i 87 modules/cudev/include/opencv2/cudev/ptr2d/interpolation.hpp i.cols = getCols(src); i 88 modules/cudev/include/opencv2/cudev/ptr2d/interpolation.hpp return i; i 142 modules/cudev/include/opencv2/cudev/ptr2d/interpolation.hpp LinearInterPtrSz<typename PtrTraits<SrcPtr>::ptr_type> i; i 143 modules/cudev/include/opencv2/cudev/ptr2d/interpolation.hpp i.src = shrinkPtr(src); i 144 modules/cudev/include/opencv2/cudev/ptr2d/interpolation.hpp i.rows = getRows(src); i 145 modules/cudev/include/opencv2/cudev/ptr2d/interpolation.hpp i.cols = getCols(src); i 146 modules/cudev/include/opencv2/cudev/ptr2d/interpolation.hpp return i; i 221 modules/cudev/include/opencv2/cudev/ptr2d/interpolation.hpp CubicInterPtrSz<typename PtrTraits<SrcPtr>::ptr_type> i; i 222 modules/cudev/include/opencv2/cudev/ptr2d/interpolation.hpp i.src = shrinkPtr(src); i 223 modules/cudev/include/opencv2/cudev/ptr2d/interpolation.hpp i.rows = getRows(src); i 224 modules/cudev/include/opencv2/cudev/ptr2d/interpolation.hpp i.cols = getCols(src); i 225 modules/cudev/include/opencv2/cudev/ptr2d/interpolation.hpp return i; i 279 modules/cudev/include/opencv2/cudev/ptr2d/interpolation.hpp IntegerAreaInterPtrSz<typename PtrTraits<SrcPtr>::ptr_type> i; i 280 modules/cudev/include/opencv2/cudev/ptr2d/interpolation.hpp i.src = shrinkPtr(src); i 281 modules/cudev/include/opencv2/cudev/ptr2d/interpolation.hpp i.area_width = areaSize.width; i 282 modules/cudev/include/opencv2/cudev/ptr2d/interpolation.hpp i.area_height = areaSize.height; i 283 modules/cudev/include/opencv2/cudev/ptr2d/interpolation.hpp i.rows = getRows(src); i 284 modules/cudev/include/opencv2/cudev/ptr2d/interpolation.hpp i.cols = getCols(src); i 285 modules/cudev/include/opencv2/cudev/ptr2d/interpolation.hpp return i; i 373 modules/cudev/include/opencv2/cudev/ptr2d/interpolation.hpp CommonAreaInterPtrSz<typename PtrTraits<SrcPtr>::ptr_type> i; i 374 modules/cudev/include/opencv2/cudev/ptr2d/interpolation.hpp i.src = shrinkPtr(src); i 375 modules/cudev/include/opencv2/cudev/ptr2d/interpolation.hpp i.area_width = areaSize.width; i 376 modules/cudev/include/opencv2/cudev/ptr2d/interpolation.hpp i.area_height = areaSize.height; i 377 modules/cudev/include/opencv2/cudev/ptr2d/interpolation.hpp i.rows = getRows(src); i 378 modules/cudev/include/opencv2/cudev/ptr2d/interpolation.hpp i.cols = getCols(src); i 379 modules/cudev/include/opencv2/cudev/ptr2d/interpolation.hpp return i; i 69 modules/cudev/include/opencv2/cudev/warp/scan.hpp for (int i = 1; i <= (WARP_SIZE / 2); i *= 2) i 71 modules/cudev/include/opencv2/cudev/warp/scan.hpp const T val = shfl_up(data, i); i 72 modules/cudev/include/opencv2/cudev/warp/scan.hpp if (laneId >= i) i 15 modules/features2d/misc/java/src/cpp/features2d_converters.cpp for(int i=0; i<mat.rows; i++) i 17 modules/features2d/misc/java/src/cpp/features2d_converters.cpp Vec<float, 7> v = mat.at< Vec<float, 7> >(i, 0); i 29 modules/features2d/misc/java/src/cpp/features2d_converters.cpp for(int i=0; i<count; i++) i 31 modules/features2d/misc/java/src/cpp/features2d_converters.cpp KeyPoint kp = v_kp[i]; i 32 modules/features2d/misc/java/src/cpp/features2d_converters.cpp mat.at< Vec<float, 7> >(i, 0) = Vec<float, 7>(kp.pt.x, kp.pt.y, kp.size, kp.angle, kp.response, (float)kp.octave, (float)kp.class_id); i 41 modules/features2d/misc/java/src/cpp/features2d_converters.cpp for(int i=0; i<mat.rows; i++) i 43 modules/features2d/misc/java/src/cpp/features2d_converters.cpp Vec<float, 4> v = mat.at< Vec<float, 4> >(i, 0); i 55 modules/features2d/misc/java/src/cpp/features2d_converters.cpp for(int i=0; i<count; i++) i 57 modules/features2d/misc/java/src/cpp/features2d_converters.cpp DMatch dm = v_dm[i]; i 58 modules/features2d/misc/java/src/cpp/features2d_converters.cpp mat.at< Vec<float, 4> >(i, 0) = Vec<float, 4>((float)dm.queryIdx, (float)dm.trainIdx, (float)dm.imgIdx, dm.distance); i 67 modules/features2d/misc/java/src/cpp/features2d_converters.cpp for(size_t i=0; i<vm.size(); i++) i 70 modules/features2d/misc/java/src/cpp/features2d_converters.cpp Mat_to_vector_KeyPoint(vm[i], vkp); i 79 modules/features2d/misc/java/src/cpp/features2d_converters.cpp for(size_t i=0; i<vv_kp.size(); i++) i 82 modules/features2d/misc/java/src/cpp/features2d_converters.cpp vector_KeyPoint_to_Mat(vv_kp[i], m); i 93 modules/features2d/misc/java/src/cpp/features2d_converters.cpp for(size_t i=0; i<vm.size(); i++) i 96 modules/features2d/misc/java/src/cpp/features2d_converters.cpp Mat_to_vector_DMatch(vm[i], vdm); i 105 modules/features2d/misc/java/src/cpp/features2d_converters.cpp for(size_t i=0; i<vv_dm.size(); i++) i 108 modules/features2d/misc/java/src/cpp/features2d_converters.cpp vector_DMatch_to_Mat(vv_dm[i], m); i 182 modules/features2d/misc/java/test/BruteForceDescriptorMatcherTest.java for(int i = 0; i<matches.size(); i++) i 184 modules/features2d/misc/java/test/BruteForceDescriptorMatcherTest.java MatOfDMatch vdm = matches.get(i); i 189 modules/features2d/misc/java/test/BruteForceDescriptorMatcherTest.java assertEquals(dm.queryIdx, i); i 126 modules/features2d/misc/java/test/Features2dTest.java for (int i = 0; i < adm.length; i++) { i 127 modules/features2d/misc/java/test/Features2dTest.java DMatch dm = adm[i]; i 95 modules/features2d/src/bagofwords.cpp for( size_t i = 0; i < descriptors.size(); i++ ) i 96 modules/features2d/src/bagofwords.cpp descCount += descriptors[i].rows; i 99 modules/features2d/src/bagofwords.cpp for( size_t i = 0, start = 0; i < descriptors.size(); i++ ) i 101 modules/features2d/src/bagofwords.cpp Mat submut = mergedDescriptors.rowRange((int)start, (int)(start + descriptors[i].rows)); i 102 modules/features2d/src/bagofwords.cpp descriptors[i].copyTo(submut); i 103 modules/features2d/src/bagofwords.cpp start += descriptors[i].rows; i 196 modules/features2d/src/bagofwords.cpp for( size_t i = 0; i < matches.size(); i++ ) i 198 modules/features2d/src/bagofwords.cpp int queryIdx = matches[i].queryIdx; i 199 modules/features2d/src/bagofwords.cpp int trainIdx = matches[i].trainIdx; // cluster index i 200 modules/features2d/src/bagofwords.cpp CV_Assert( queryIdx == (int)i ); i 323 modules/features2d/src/blobdetector.cpp for (size_t i = 0; i < curCenters.size(); i++) i 328 modules/features2d/src/blobdetector.cpp double dist = norm(centers[j][ centers[j].size() / 2 ].location - curCenters[i].location); i 329 modules/features2d/src/blobdetector.cpp isNew = dist >= params.minDistBetweenBlobs && dist >= centers[j][ centers[j].size() / 2 ].radius && dist >= curCenters[i].radius; i 332 modules/features2d/src/blobdetector.cpp centers[j].push_back(curCenters[i]); i 340 modules/features2d/src/blobdetector.cpp centers[j][k] = curCenters[i]; i 346 modules/features2d/src/blobdetector.cpp newCenters.push_back(std::vector<Center> (1, curCenters[i])); i 351 modules/features2d/src/blobdetector.cpp for (size_t i = 0; i < centers.size(); i++) i 353 modules/features2d/src/blobdetector.cpp if (centers[i].size() < params.minRepeatability) i 357 modules/features2d/src/blobdetector.cpp for (size_t j = 0; j < centers[i].size(); j++) i 359 modules/features2d/src/blobdetector.cpp sumPoint += centers[i][j].confidence * centers[i][j].location; i 360 modules/features2d/src/blobdetector.cpp normalizer += centers[i][j].confidence; i 363 modules/features2d/src/blobdetector.cpp KeyPoint kpt(sumPoint, (float)(centers[i][centers[i].size() / 2].radius) * 2.0f); i 109 modules/features2d/src/brisk.cpp unsigned int i; // index of the first pattern point i 113 modules/features2d/src/brisk.cpp unsigned int i; // index of the first pattern point i 408 modules/features2d/src/brisk.cpp for (unsigned int i = 0; i < indSize; i++) i 409 modules/features2d/src/brisk.cpp indexChange[i] = i; i 413 modules/features2d/src/brisk.cpp for (unsigned int i = 1; i < points_; i++) i 415 modules/features2d/src/brisk.cpp for (unsigned int j = 0; j < i; j++) i 418 modules/features2d/src/brisk.cpp const float dx = patternPoints_[j].x - patternPoints_[i].x; i 419 modules/features2d/src/brisk.cpp const float dy = patternPoints_[j].y - patternPoints_[i].y; i 427 modules/features2d/src/brisk.cpp longPair.i = i; i 438 modules/features2d/src/brisk.cpp shortPair.i = i; i 713 modules/features2d/src/brisk.cpp for (unsigned int i = 0; i < points_; i++) i 715 modules/features2d/src/brisk.cpp *(pvalues++) = smoothedIntensity(image, _integral, x, y, scale, 0, i); i 724 modules/features2d/src/brisk.cpp t1 = *(_values + iter->i); i 770 modules/features2d/src/brisk.cpp for (unsigned int i = 0; i < points_; i++) i 772 modules/features2d/src/brisk.cpp *(pvalues++) = smoothedIntensity(image, _integral, x, y, scale, theta, i); i 780 modules/features2d/src/brisk.cpp t1 = *(_values + iter->i); i 856 modules/features2d/src/brisk.cpp for (uchar i = 2; i < octaves2; i += 2) i 858 modules/features2d/src/brisk.cpp pyramid_.push_back(BriskLayer(pyramid_[i - 2], BriskLayer::CommonParams::HALFSAMPLE)); i 859 modules/features2d/src/brisk.cpp pyramid_.push_back(BriskLayer(pyramid_[i - 1], BriskLayer::CommonParams::HALFSAMPLE)); i 876 modules/features2d/src/brisk.cpp for (int i = 0; i < layers_; i++) i 879 modules/features2d/src/brisk.cpp BriskLayer& l = pyramid_[i]; i 880 modules/features2d/src/brisk.cpp l.getAgastPoints(safeThreshold_, agastPoints[i]); i 917 modules/features2d/src/brisk.cpp for (int i = 0; i < layers_; i++) i 919 modules/features2d/src/brisk.cpp BriskLayer& l = pyramid_[i]; i 920 modules/features2d/src/brisk.cpp const size_t num = agastPoints[i].size(); i 921 modules/features2d/src/brisk.cpp if (i == layers_ - 1) i 925 modules/features2d/src/brisk.cpp const cv::Point2f& point = agastPoints.at(i)[n].pt; i 927 modules/features2d/src/brisk.cpp if (!isMax2D(i, (int)point.x, (int)point.y)) i 932 modules/features2d/src/brisk.cpp getScoreMaxBelow(i, (int)point.x, (int)point.y, l.getAgastScore(point.x, point.y, safeThreshold_), ismax, dx, dy); i 952 modules/features2d/src/brisk.cpp (float(point.y) + delta_y) * l.scale() + l.offset(), basicSize_ * l.scale(), -1, max, i)); i 960 modules/features2d/src/brisk.cpp const cv::Point2f& point = agastPoints.at(i)[n].pt; i 963 modules/features2d/src/brisk.cpp if (!isMax2D(i, (int)point.x, (int)point.y)) i 968 modules/features2d/src/brisk.cpp score = refine3D(i, (int)point.x, (int)point.y, x, y, scale, ismax); i 977 modules/features2d/src/brisk.cpp keypoints.push_back(cv::KeyPoint(x, y, basicSize_ * scale, -1, score, i)); i 1220 modules/features2d/src/brisk.cpp for (unsigned int i = 0; i < deltasize; i += 2) i 1222 modules/features2d/src/brisk.cpp data = scores.ptr() + (y_layer - 1 + delta[i + 1]) * scorescols + x_layer + delta[i] - 1; i 2113 modules/features2d/src/brisk.cpp for (size_t i = 0; i < num; i++) i 2114 modules/features2d/src/brisk.cpp scores_((int)keypoints[i].pt.y, (int)keypoints[i].pt.x) = saturate_cast<uchar>(keypoints[i].response); i 232 modules/features2d/src/draw.cpp for( size_t i = 0; i < matches1to2.size(); i++ ) i 234 modules/features2d/src/draw.cpp for( size_t j = 0; j < matches1to2[i].size(); j++ ) i 236 modules/features2d/src/draw.cpp int i1 = matches1to2[i][j].queryIdx; i 237 modules/features2d/src/draw.cpp int i2 = matches1to2[i][j].trainIdx; i 238 modules/features2d/src/draw.cpp if( matchesMask.empty() || matchesMask[i][j] ) i 185 modules/features2d/src/evaluation.cpp for( size_t i = 0; i < src.size(); i++ ) i 187 modules/features2d/src/evaluation.cpp float rad = src[i].size/2; i 190 modules/features2d/src/evaluation.cpp dst[i] = EllipticKeyPoint( src[i].pt, Scalar(fac, 0, fac) ); i 200 modules/features2d/src/evaluation.cpp for( size_t i = 0; i < src.size(); i++ ) i 202 modules/features2d/src/evaluation.cpp Size_<float> axes = src[i].axes; i 204 modules/features2d/src/evaluation.cpp dst[i] = KeyPoint(src[i].center, 2*rad ); i 229 modules/features2d/src/evaluation.cpp for( int i = 0; it != keypoints.end(); ++it, i++ ) i 262 modules/features2d/src/evaluation.cpp for( int i = range.begin(); i != range.end(); i++ ) i 264 modules/features2d/src/evaluation.cpp float rx1 = minx + i*dr; i 445 modules/features2d/src/evaluation.cpp for( size_t i = 0; i < overlaps.size(); i++ ) i 447 modules/features2d/src/evaluation.cpp int y = overlaps[i].i1; i 448 modules/features2d/src/evaluation.cpp int x = overlaps[i].i2; i 499 modules/features2d/src/evaluation.cpp for( size_t i = 0; i < matches1to2.size(); i++ ) i 501 modules/features2d/src/evaluation.cpp for( size_t j = 0; j < matches1to2[i].size(); j++ ) i 503 modules/features2d/src/evaluation.cpp DMatchForEvaluation match = matches1to2[i][j]; i 504 modules/features2d/src/evaluation.cpp match.isCorrect = correctMatches1to2Mask[i][j] ; i 514 modules/features2d/src/evaluation.cpp for( size_t i = 0; i < allMatches.size(); i++ ) i 516 modules/features2d/src/evaluation.cpp if( allMatches[i].isCorrect ) i 523 modules/features2d/src/evaluation.cpp recallPrecisionCurve[i] = Point2f(1-p, r); i 546 modules/features2d/src/evaluation.cpp for( size_t i = 0; i < recallPrecisionCurve.size(); i++ ) i 548 modules/features2d/src/evaluation.cpp float curDiff = std::fabs(l_precision - recallPrecisionCurve[i].x); i 551 modules/features2d/src/evaluation.cpp nearestPointIndex = (int)i; i 64 modules/features2d/src/fast.cpp int i, j, k, pixel[25]; i 78 modules/features2d/src/fast.cpp for( i = -255; i <= 255; i++ ) i 79 modules/features2d/src/fast.cpp threshold_tab[i+255] = (uchar)(i < -threshold ? 1 : i > threshold ? 2 : 0); i 90 modules/features2d/src/fast.cpp for(i = 3; i < img.rows-2; i++) i 92 modules/features2d/src/fast.cpp const uchar* ptr = img.ptr<uchar>(i) + 3; i 93 modules/features2d/src/fast.cpp uchar* curr = buf[(i - 3)%3]; i 94 modules/features2d/src/fast.cpp int* cornerpos = cpbuf[(i - 3)%3]; i 98 modules/features2d/src/fast.cpp if( i < img.rows - 3 ) i 230 modules/features2d/src/fast.cpp if( i == 3 ) i 233 modules/features2d/src/fast.cpp const uchar* prev = buf[(i - 4 + 3)%3]; i 234 modules/features2d/src/fast.cpp const uchar* pprev = buf[(i - 5 + 3)%3]; i 235 modules/features2d/src/fast.cpp cornerpos = cpbuf[(i - 4 + 3)%3]; i 247 modules/features2d/src/fast.cpp keypoints.push_back(KeyPoint((float)j, (float)(i-1), 7.f, -1, (float)score)); i 283 modules/features2d/src/fast.cpp int i, counter = mcounter.at<int>(0); i 296 modules/features2d/src/fast.cpp for( i = 0; i < counter; i++ ) i 297 modules/features2d/src/fast.cpp keypoints.push_back(KeyPoint((float)pt[i].x, (float)pt[i].y, 7.f, -1, 1.f)); i 323 modules/features2d/src/fast.cpp for( i = 0; i < newcounter; i++ ) i 324 modules/features2d/src/fast.cpp keypoints.push_back(KeyPoint((float)pt2[i].x, (float)pt2[i].y, 7.f, -1, (float)pt2[i].z)); i 79 modules/features2d/src/feature2d.cpp size_t i, nimages = images.size(); i 89 modules/features2d/src/feature2d.cpp for( i = 0; i < nimages; i++ ) i 91 modules/features2d/src/feature2d.cpp detect(images[i], keypoints[i], masks.empty() ? Mat() : masks[i] ); i 123 modules/features2d/src/feature2d.cpp size_t i, nimages = images.size(); i 131 modules/features2d/src/feature2d.cpp for( i = 0; i < nimages; i++ ) i 133 modules/features2d/src/feature2d.cpp compute(images[i], keypoints[i], descriptors[i]); i 51 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int i = 0, power = 1; i <= options_.omax - 1; i++, power *= 2) { i 57 modules/features2d/src/kaze/AKAZEFeatures.cpp if ((level_width < 80 || level_height < 40) && i != 0) { i 58 modules/features2d/src/kaze/AKAZEFeatures.cpp options_.omax = i; i 72 modules/features2d/src/kaze/AKAZEFeatures.cpp step.esigma = options_.soffset*pow(2.f, (float)(j) / (float)(options_.nsublevels) + i); i 75 modules/features2d/src/kaze/AKAZEFeatures.cpp step.octave = i; i 82 modules/features2d/src/kaze/AKAZEFeatures.cpp for (size_t i = 1; i < evolution_.size(); i++) { i 86 modules/features2d/src/kaze/AKAZEFeatures.cpp ttime = evolution_[i].etime - evolution_[i - 1].etime; i 117 modules/features2d/src/kaze/AKAZEFeatures.cpp for (size_t i = 1; i < evolution_.size(); i++) { i 119 modules/features2d/src/kaze/AKAZEFeatures.cpp if (evolution_[i].octave > evolution_[i - 1].octave) { i 120 modules/features2d/src/kaze/AKAZEFeatures.cpp halfsample_image(evolution_[i - 1].Lt, evolution_[i].Lt); i 124 modules/features2d/src/kaze/AKAZEFeatures.cpp Lflow = Mat::zeros(evolution_[i].Lt.rows, evolution_[i].Lt.cols, CV_32F); i 125 modules/features2d/src/kaze/AKAZEFeatures.cpp Lstep = Mat::zeros(evolution_[i].Lt.rows, evolution_[i].Lt.cols, CV_32F); i 128 modules/features2d/src/kaze/AKAZEFeatures.cpp evolution_[i - 1].Lt.copyTo(evolution_[i].Lt); i 131 modules/features2d/src/kaze/AKAZEFeatures.cpp gaussian_2D_convolution(evolution_[i].Lt, evolution_[i].Lsmooth, 0, 0, 1.0f); i 134 modules/features2d/src/kaze/AKAZEFeatures.cpp image_derivatives_scharr(evolution_[i].Lsmooth, evolution_[i].Lx, 1, 0); i 135 modules/features2d/src/kaze/AKAZEFeatures.cpp image_derivatives_scharr(evolution_[i].Lsmooth, evolution_[i].Ly, 0, 1); i 140 modules/features2d/src/kaze/AKAZEFeatures.cpp pm_g1(evolution_[i].Lx, evolution_[i].Ly, Lflow, options_.kcontrast); i 143 modules/features2d/src/kaze/AKAZEFeatures.cpp pm_g2(evolution_[i].Lx, evolution_[i].Ly, Lflow, options_.kcontrast); i 146 modules/features2d/src/kaze/AKAZEFeatures.cpp weickert_diffusivity(evolution_[i].Lx, evolution_[i].Ly, Lflow, options_.kcontrast); i 149 modules/features2d/src/kaze/AKAZEFeatures.cpp charbonnier_diffusivity(evolution_[i].Lx, evolution_[i].Ly, Lflow, options_.kcontrast); i 157 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int j = 0; j < nsteps_[i - 1]; j++) { i 158 modules/features2d/src/kaze/AKAZEFeatures.cpp nld_step_scalar(evolution_[i].Lt, Lflow, Lstep, tsteps_[i - 1][j]); i 192 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int i = range.start; i < range.end; i++) i 194 modules/features2d/src/kaze/AKAZEFeatures.cpp float ratio = (float)fastpow(2, evolution[i].octave); i 195 modules/features2d/src/kaze/AKAZEFeatures.cpp int sigma_size_ = fRound(evolution[i].esigma * options_.derivative_factor / ratio); i 197 modules/features2d/src/kaze/AKAZEFeatures.cpp compute_scharr_derivatives(evolution[i].Lsmooth, evolution[i].Lx, 1, 0, sigma_size_); i 198 modules/features2d/src/kaze/AKAZEFeatures.cpp compute_scharr_derivatives(evolution[i].Lsmooth, evolution[i].Ly, 0, 1, sigma_size_); i 199 modules/features2d/src/kaze/AKAZEFeatures.cpp compute_scharr_derivatives(evolution[i].Lx, evolution[i].Lxx, 1, 0, sigma_size_); i 200 modules/features2d/src/kaze/AKAZEFeatures.cpp compute_scharr_derivatives(evolution[i].Ly, evolution[i].Lyy, 0, 1, sigma_size_); i 201 modules/features2d/src/kaze/AKAZEFeatures.cpp compute_scharr_derivatives(evolution[i].Lx, evolution[i].Lxy, 0, 1, sigma_size_); i 203 modules/features2d/src/kaze/AKAZEFeatures.cpp evolution[i].Lx = evolution[i].Lx*((sigma_size_)); i 204 modules/features2d/src/kaze/AKAZEFeatures.cpp evolution[i].Ly = evolution[i].Ly*((sigma_size_)); i 205 modules/features2d/src/kaze/AKAZEFeatures.cpp evolution[i].Lxx = evolution[i].Lxx*((sigma_size_)*(sigma_size_)); i 206 modules/features2d/src/kaze/AKAZEFeatures.cpp evolution[i].Lxy = evolution[i].Lxy*((sigma_size_)*(sigma_size_)); i 207 modules/features2d/src/kaze/AKAZEFeatures.cpp evolution[i].Lyy = evolution[i].Lyy*((sigma_size_)*(sigma_size_)); i 236 modules/features2d/src/kaze/AKAZEFeatures.cpp for (size_t i = 0; i < evolution_.size(); i++) i 238 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int ix = 0; ix < evolution_[i].Ldet.rows; ix++) i 240 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int jx = 0; jx < evolution_[i].Ldet.cols; jx++) i 242 modules/features2d/src/kaze/AKAZEFeatures.cpp float lxx = *(evolution_[i].Lxx.ptr<float>(ix)+jx); i 243 modules/features2d/src/kaze/AKAZEFeatures.cpp float lxy = *(evolution_[i].Lxy.ptr<float>(ix)+jx); i 244 modules/features2d/src/kaze/AKAZEFeatures.cpp float lyy = *(evolution_[i].Lyy.ptr<float>(ix)+jx); i 245 modules/features2d/src/kaze/AKAZEFeatures.cpp *(evolution_[i].Ldet.ptr<float>(ix)+jx) = (lxx*lyy - lxy*lxy); i 275 modules/features2d/src/kaze/AKAZEFeatures.cpp for (size_t i = 0; i < evolution_.size(); i++) { i 276 modules/features2d/src/kaze/AKAZEFeatures.cpp float* prev = evolution_[i].Ldet.ptr<float>(0); i 277 modules/features2d/src/kaze/AKAZEFeatures.cpp float* curr = evolution_[i].Ldet.ptr<float>(1); i 278 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int ix = 1; ix < evolution_[i].Ldet.rows - 1; ix++) { i 279 modules/features2d/src/kaze/AKAZEFeatures.cpp float* next = evolution_[i].Ldet.ptr<float>(ix + 1); i 281 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int jx = 1; jx < evolution_[i].Ldet.cols - 1; jx++) { i 285 modules/features2d/src/kaze/AKAZEFeatures.cpp value = *(evolution_[i].Ldet.ptr<float>(ix)+jx); i 300 modules/features2d/src/kaze/AKAZEFeatures.cpp point.size = evolution_[i].esigma*options_.derivative_factor; i 301 modules/features2d/src/kaze/AKAZEFeatures.cpp point.octave = (int)evolution_[i].octave; i 302 modules/features2d/src/kaze/AKAZEFeatures.cpp point.class_id = (int)i; i 338 modules/features2d/src/kaze/AKAZEFeatures.cpp if (left_x < 0 || right_x >= evolution_[i].Ldet.cols || i 339 modules/features2d/src/kaze/AKAZEFeatures.cpp up_y < 0 || down_y >= evolution_[i].Ldet.rows) { i 365 modules/features2d/src/kaze/AKAZEFeatures.cpp for (size_t i = 0; i < kpts_aux.size(); i++) { i 368 modules/features2d/src/kaze/AKAZEFeatures.cpp const KeyPoint& pt = kpts_aux[i]; i 369 modules/features2d/src/kaze/AKAZEFeatures.cpp for (size_t j = i + 1; j < kpts_aux.size(); j++) { i 404 modules/features2d/src/kaze/AKAZEFeatures.cpp for (size_t i = 0; i < kpts.size(); i++) { i 405 modules/features2d/src/kaze/AKAZEFeatures.cpp ratio = (float)fastpow(2, kpts[i].octave); i 406 modules/features2d/src/kaze/AKAZEFeatures.cpp x = fRound(kpts[i].pt.x / ratio); i 407 modules/features2d/src/kaze/AKAZEFeatures.cpp y = fRound(kpts[i].pt.y / ratio); i 410 modules/features2d/src/kaze/AKAZEFeatures.cpp Dx = (0.5f)*(*(evolution_[kpts[i].class_id].Ldet.ptr<float>(y)+x + 1) i 411 modules/features2d/src/kaze/AKAZEFeatures.cpp - *(evolution_[kpts[i].class_id].Ldet.ptr<float>(y)+x - 1)); i 412 modules/features2d/src/kaze/AKAZEFeatures.cpp Dy = (0.5f)*(*(evolution_[kpts[i].class_id].Ldet.ptr<float>(y + 1) + x) i 413 modules/features2d/src/kaze/AKAZEFeatures.cpp - *(evolution_[kpts[i].class_id].Ldet.ptr<float>(y - 1) + x)); i 416 modules/features2d/src/kaze/AKAZEFeatures.cpp Dxx = (*(evolution_[kpts[i].class_id].Ldet.ptr<float>(y)+x + 1) i 417 modules/features2d/src/kaze/AKAZEFeatures.cpp + *(evolution_[kpts[i].class_id].Ldet.ptr<float>(y)+x - 1) i 418 modules/features2d/src/kaze/AKAZEFeatures.cpp - 2.0f*(*(evolution_[kpts[i].class_id].Ldet.ptr<float>(y)+x))); i 420 modules/features2d/src/kaze/AKAZEFeatures.cpp Dyy = (*(evolution_[kpts[i].class_id].Ldet.ptr<float>(y + 1) + x) i 421 modules/features2d/src/kaze/AKAZEFeatures.cpp + *(evolution_[kpts[i].class_id].Ldet.ptr<float>(y - 1) + x) i 422 modules/features2d/src/kaze/AKAZEFeatures.cpp - 2.0f*(*(evolution_[kpts[i].class_id].Ldet.ptr<float>(y)+x))); i 424 modules/features2d/src/kaze/AKAZEFeatures.cpp Dxy = (0.25f)*(*(evolution_[kpts[i].class_id].Ldet.ptr<float>(y + 1) + x + 1) i 425 modules/features2d/src/kaze/AKAZEFeatures.cpp + (*(evolution_[kpts[i].class_id].Ldet.ptr<float>(y - 1) + x - 1))) i 426 modules/features2d/src/kaze/AKAZEFeatures.cpp - (0.25f)*(*(evolution_[kpts[i].class_id].Ldet.ptr<float>(y - 1) + x + 1) i 427 modules/features2d/src/kaze/AKAZEFeatures.cpp + (*(evolution_[kpts[i].class_id].Ldet.ptr<float>(y + 1) + x - 1))); i 439 modules/features2d/src/kaze/AKAZEFeatures.cpp kpts[i].pt.x = x + dst(0); i 440 modules/features2d/src/kaze/AKAZEFeatures.cpp kpts[i].pt.y = y + dst(1); i 441 modules/features2d/src/kaze/AKAZEFeatures.cpp int power = fastpow(2, evolution_[kpts[i].class_id].octave); i 442 modules/features2d/src/kaze/AKAZEFeatures.cpp kpts[i].pt.x *= power; i 443 modules/features2d/src/kaze/AKAZEFeatures.cpp kpts[i].pt.y *= power; i 444 modules/features2d/src/kaze/AKAZEFeatures.cpp kpts[i].angle = 0.0; i 447 modules/features2d/src/kaze/AKAZEFeatures.cpp kpts[i].size *= 2.0f; i 451 modules/features2d/src/kaze/AKAZEFeatures.cpp kpts.erase(kpts.begin() + i); i 452 modules/features2d/src/kaze/AKAZEFeatures.cpp i--; i 471 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int i = range.start; i < range.end; i++) i 473 modules/features2d/src/kaze/AKAZEFeatures.cpp Get_SURF_Descriptor_Upright_64((*keypoints_)[i], descriptors_->ptr<float>(i)); i 497 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int i = range.start; i < range.end; i++) i 499 modules/features2d/src/kaze/AKAZEFeatures.cpp AKAZEFeatures::Compute_Main_Orientation((*keypoints_)[i], *evolution_); i 500 modules/features2d/src/kaze/AKAZEFeatures.cpp Get_SURF_Descriptor_64((*keypoints_)[i], descriptors_->ptr<float>(i)); i 524 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int i = range.start; i < range.end; i++) i 526 modules/features2d/src/kaze/AKAZEFeatures.cpp Get_MSURF_Upright_Descriptor_64((*keypoints_)[i], descriptors_->ptr<float>(i)); i 550 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int i = range.start; i < range.end; i++) i 552 modules/features2d/src/kaze/AKAZEFeatures.cpp AKAZEFeatures::Compute_Main_Orientation((*keypoints_)[i], *evolution_); i 553 modules/features2d/src/kaze/AKAZEFeatures.cpp Get_MSURF_Descriptor_64((*keypoints_)[i], descriptors_->ptr<float>(i)); i 578 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int i = range.start; i < range.end; i++) i 580 modules/features2d/src/kaze/AKAZEFeatures.cpp Get_Upright_MLDB_Full_Descriptor((*keypoints_)[i], descriptors_->ptr<unsigned char>(i)); i 613 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int i = range.start; i < range.end; i++) i 615 modules/features2d/src/kaze/AKAZEFeatures.cpp Get_Upright_MLDB_Descriptor_Subset((*keypoints_)[i], descriptors_->ptr<unsigned char>(i)); i 644 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int i = range.start; i < range.end; i++) i 646 modules/features2d/src/kaze/AKAZEFeatures.cpp AKAZEFeatures::Compute_Main_Orientation((*keypoints_)[i], *evolution_); i 647 modules/features2d/src/kaze/AKAZEFeatures.cpp Get_MLDB_Full_Descriptor((*keypoints_)[i], descriptors_->ptr<unsigned char>(i)); i 684 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int i = range.start; i < range.end; i++) i 686 modules/features2d/src/kaze/AKAZEFeatures.cpp AKAZEFeatures::Compute_Main_Orientation((*keypoints_)[i], *evolution_); i 687 modules/features2d/src/kaze/AKAZEFeatures.cpp Get_MLDB_Descriptor_Subset((*keypoints_)[i], descriptors_->ptr<unsigned char>(i)); i 710 modules/features2d/src/kaze/AKAZEFeatures.cpp for(size_t i = 0; i < kpts.size(); i++) i 712 modules/features2d/src/kaze/AKAZEFeatures.cpp CV_Assert(0 <= kpts[i].class_id && kpts[i].class_id < static_cast<int>(evolution_.size())); i 801 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int i = -6; i <= 6; ++i) { i 803 modules/features2d/src/kaze/AKAZEFeatures.cpp if (i*i + j*j < 36) { i 805 modules/features2d/src/kaze/AKAZEFeatures.cpp ix = fRound(xf + i*s); i 807 modules/features2d/src/kaze/AKAZEFeatures.cpp gweight = gauss25[id[i + 6]][id[j + 6]]; i 863 modules/features2d/src/kaze/AKAZEFeatures.cpp int x2 = 0, y2 = 0, kx = 0, ky = 0, i = 0, j = 0, dcount = 0; i 884 modules/features2d/src/kaze/AKAZEFeatures.cpp i = -8; i 888 modules/features2d/src/kaze/AKAZEFeatures.cpp while (i < pattern_size) { i 890 modules/features2d/src/kaze/AKAZEFeatures.cpp i = i - 4; i 900 modules/features2d/src/kaze/AKAZEFeatures.cpp ky = i + sample_step; i 906 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int k = i; k < i + 9; k++) { i 959 modules/features2d/src/kaze/AKAZEFeatures.cpp i += 9; i 965 modules/features2d/src/kaze/AKAZEFeatures.cpp for (i = 0; i < dsize; i++) { i 966 modules/features2d/src/kaze/AKAZEFeatures.cpp desc[i] /= len; i 987 modules/features2d/src/kaze/AKAZEFeatures.cpp int kx = 0, ky = 0, i = 0, j = 0, dcount = 0; i 1010 modules/features2d/src/kaze/AKAZEFeatures.cpp i = -8; i 1014 modules/features2d/src/kaze/AKAZEFeatures.cpp while (i < pattern_size) { i 1016 modules/features2d/src/kaze/AKAZEFeatures.cpp i = i - 4; i 1026 modules/features2d/src/kaze/AKAZEFeatures.cpp ky = i + sample_step; i 1032 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int k = i; k < i + 9; ++k) { i 1086 modules/features2d/src/kaze/AKAZEFeatures.cpp i += 9; i 1092 modules/features2d/src/kaze/AKAZEFeatures.cpp for (i = 0; i < dsize; i++) { i 1093 modules/features2d/src/kaze/AKAZEFeatures.cpp desc[i] /= len; i 1132 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int i = -pattern_size; i < pattern_size; i += sample_step) { i 1137 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int k = i; k < i + sample_step; k++) { i 1170 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int i = 0; i < 4; i++) { i 1171 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int j = i + 1; j < 4; j++) { i 1172 modules/features2d/src/kaze/AKAZEFeatures.cpp if (*(values_1.ptr<float>(i)) > *(values_1.ptr<float>(j))) { i 1177 modules/features2d/src/kaze/AKAZEFeatures.cpp if (*(values_1.ptr<float>(i)+1) > *(values_1.ptr<float>(j)+1)) { i 1182 modules/features2d/src/kaze/AKAZEFeatures.cpp if (*(values_1.ptr<float>(i)+2) > *(values_1.ptr<float>(j)+2)) { i 1193 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int i = -pattern_size; i < pattern_size; i += sample_step) { i 1198 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int k = i; k < i + sample_step; k++) { i 1232 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int i = 0; i < 9; i++) { i 1233 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int j = i + 1; j < 9; j++) { i 1234 modules/features2d/src/kaze/AKAZEFeatures.cpp if (*(values_2.ptr<float>(i)) > *(values_2.ptr<float>(j))) { i 1239 modules/features2d/src/kaze/AKAZEFeatures.cpp if (*(values_2.ptr<float>(i)+1) > *(values_2.ptr<float>(j)+1)) { i 1244 modules/features2d/src/kaze/AKAZEFeatures.cpp if (*(values_2.ptr<float>(i)+2) > *(values_2.ptr<float>(j)+2)) { i 1255 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int i = -pattern_size; i < pattern_size; i += sample_step) { i 1260 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int k = i; k < i + sample_step; k++) { i 1294 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int i = 0; i < 16; i++) { i 1295 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int j = i + 1; j < 16; j++) { i 1296 modules/features2d/src/kaze/AKAZEFeatures.cpp if (*(values_3.ptr<float>(i)) > *(values_3.ptr<float>(j))) { i 1301 modules/features2d/src/kaze/AKAZEFeatures.cpp if (*(values_3.ptr<float>(i)+1) > *(values_3.ptr<float>(j)+1)) { i 1306 modules/features2d/src/kaze/AKAZEFeatures.cpp if (*(values_3.ptr<float>(i)+2) > *(values_3.ptr<float>(j)+2)) { i 1322 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int i = -pattern_size; i < pattern_size; i += sample_step) { i 1328 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int k = i; k < i + sample_step; k++) { i 1375 modules/features2d/src/kaze/AKAZEFeatures.cpp for(int i = 0; i < count * chan; i++) { i 1376 modules/features2d/src/kaze/AKAZEFeatures.cpp ivalues[i] = CV_TOGGLE_FLT(ivalues[i]); i 1380 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int i = 0; i < count; i++) { i 1381 modules/features2d/src/kaze/AKAZEFeatures.cpp int ival = ivalues[chan * i + pos]; i 1382 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int j = i + 1; j < count; j++) { i 1460 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int i = 0; i < descriptorSamples_.rows; i++) { i 1461 modules/features2d/src/kaze/AKAZEFeatures.cpp const int *coords = descriptorSamples_.ptr<int>(i); i 1495 modules/features2d/src/kaze/AKAZEFeatures.cpp *(values.ptr<float>(options.descriptor_channels*i)) = di; i 1498 modules/features2d/src/kaze/AKAZEFeatures.cpp *(values.ptr<float>(options.descriptor_channels*i + 1)) = dx; i 1501 modules/features2d/src/kaze/AKAZEFeatures.cpp *(values.ptr<float>(options.descriptor_channels*i + 1)) = dx; i 1502 modules/features2d/src/kaze/AKAZEFeatures.cpp *(values.ptr<float>(options.descriptor_channels*i + 2)) = dy; i 1510 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int i = 0; i<descriptorBits_.rows; i++) { i 1511 modules/features2d/src/kaze/AKAZEFeatures.cpp if (vals[comps[2 * i]] > vals[comps[2 * i + 1]]) { i 1512 modules/features2d/src/kaze/AKAZEFeatures.cpp desc[i / 8] |= (1 << (i % 8)); i 1550 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int i = 0; i < descriptorSamples_.rows; i++) { i 1551 modules/features2d/src/kaze/AKAZEFeatures.cpp const int *coords = descriptorSamples_.ptr<int>(i); i 1581 modules/features2d/src/kaze/AKAZEFeatures.cpp *(values.ptr<float>(options.descriptor_channels*i)) = di; i 1584 modules/features2d/src/kaze/AKAZEFeatures.cpp *(values.ptr<float>(options.descriptor_channels*i + 1)) = dx; i 1587 modules/features2d/src/kaze/AKAZEFeatures.cpp *(values.ptr<float>(options.descriptor_channels*i + 1)) = dx; i 1588 modules/features2d/src/kaze/AKAZEFeatures.cpp *(values.ptr<float>(options.descriptor_channels*i + 2)) = dy; i 1596 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int i = 0; i<descriptorBits_.rows; i++) { i 1597 modules/features2d/src/kaze/AKAZEFeatures.cpp if (vals[comps[2 * i]] > vals[comps[2 * i + 1]]) { i 1598 modules/features2d/src/kaze/AKAZEFeatures.cpp desc[i / 8] |= (1 << (i % 8)); i 1621 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int i = 0; i < 3; i++) { i 1622 modules/features2d/src/kaze/AKAZEFeatures.cpp int gz = (i + 2)*(i + 2); i 1635 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int i = 0, c = 0; i < 3; i++) { i 1636 modules/features2d/src/kaze/AKAZEFeatures.cpp int gdiv = i + 2; //grid divisions, per row i 1642 modules/features2d/src/kaze/AKAZEFeatures.cpp fullM(c, 0) = i; i 1662 modules/features2d/src/kaze/AKAZEFeatures.cpp for (int i = 0; i < npicks; i++) { i 1663 modules/features2d/src/kaze/AKAZEFeatures.cpp int k = rand() % (fullM.rows - i); i 1664 modules/features2d/src/kaze/AKAZEFeatures.cpp if (i < 6) { i 1666 modules/features2d/src/kaze/AKAZEFeatures.cpp k = i; i 1674 modules/features2d/src/kaze/AKAZEFeatures.cpp comps(i*nchannels, 0) = nchannels*j; i 1675 modules/features2d/src/kaze/AKAZEFeatures.cpp comps(i*nchannels + 1, 0) = nchannels*j + 1; i 1676 modules/features2d/src/kaze/AKAZEFeatures.cpp comps(i*nchannels + 2, 0) = nchannels*j + 2; i 1685 modules/features2d/src/kaze/AKAZEFeatures.cpp comps(i*nchannels, 0) = nchannels*count; i 1686 modules/features2d/src/kaze/AKAZEFeatures.cpp comps(i*nchannels + 1, 0) = nchannels*count + 1; i 1687 modules/features2d/src/kaze/AKAZEFeatures.cpp comps(i*nchannels + 2, 0) = nchannels*count + 2; i 1695 modules/features2d/src/kaze/AKAZEFeatures.cpp comps(i*nchannels, 1) = nchannels*j; i 1696 modules/features2d/src/kaze/AKAZEFeatures.cpp comps(i*nchannels + 1, 1) = nchannels*j + 1; i 1697 modules/features2d/src/kaze/AKAZEFeatures.cpp comps(i*nchannels + 2, 1) = nchannels*j + 2; i 1706 modules/features2d/src/kaze/AKAZEFeatures.cpp comps(i*nchannels, 1) = nchannels*count; i 1707 modules/features2d/src/kaze/AKAZEFeatures.cpp comps(i*nchannels + 1, 1) = nchannels*count + 1; i 1708 modules/features2d/src/kaze/AKAZEFeatures.cpp comps(i*nchannels + 2, 1) = nchannels*count + 2; i 1713 modules/features2d/src/kaze/AKAZEFeatures.cpp fullcopy.row(fullcopy.rows - i - 1).copyTo(tmp); i 56 modules/features2d/src/kaze/KAZEFeatures.cpp for (int i = 0; i <= options_.omax - 1; i++) i 69 modules/features2d/src/kaze/KAZEFeatures.cpp aux.esigma = options_.soffset*pow((float)2.0f, (float)(j) / (float)(options_.nsublevels)+i); i 72 modules/features2d/src/kaze/KAZEFeatures.cpp aux.octave = i; i 79 modules/features2d/src/kaze/KAZEFeatures.cpp for (size_t i = 1; i < evolution_.size(); i++) i 84 modules/features2d/src/kaze/KAZEFeatures.cpp ttime = evolution_[i].etime - evolution_[i - 1].etime; i 115 modules/features2d/src/kaze/KAZEFeatures.cpp for (size_t i = 1; i < evolution_.size(); i++) i 117 modules/features2d/src/kaze/KAZEFeatures.cpp evolution_[i - 1].Lt.copyTo(evolution_[i].Lt); i 118 modules/features2d/src/kaze/KAZEFeatures.cpp gaussian_2D_convolution(evolution_[i - 1].Lt, evolution_[i].Lsmooth, 0, 0, options_.sderivatives); i 121 modules/features2d/src/kaze/KAZEFeatures.cpp Scharr(evolution_[i].Lsmooth, evolution_[i].Lx, CV_32F, 1, 0, 1, 0, BORDER_DEFAULT); i 122 modules/features2d/src/kaze/KAZEFeatures.cpp Scharr(evolution_[i].Lsmooth, evolution_[i].Ly, CV_32F, 0, 1, 1, 0, BORDER_DEFAULT); i 126 modules/features2d/src/kaze/KAZEFeatures.cpp pm_g1(evolution_[i].Lx, evolution_[i].Ly, Lflow, options_.kcontrast); i 128 modules/features2d/src/kaze/KAZEFeatures.cpp pm_g2(evolution_[i].Lx, evolution_[i].Ly, Lflow, options_.kcontrast); i 130 modules/features2d/src/kaze/KAZEFeatures.cpp weickert_diffusivity(evolution_[i].Lx, evolution_[i].Ly, Lflow, options_.kcontrast); i 133 modules/features2d/src/kaze/KAZEFeatures.cpp for (int j = 0; j < nsteps_[i - 1]; j++) i 134 modules/features2d/src/kaze/KAZEFeatures.cpp nld_step_scalar(evolution_[i].Lt, Lflow, Lstep, tsteps_[i - 1][j]); i 163 modules/features2d/src/kaze/KAZEFeatures.cpp for (size_t i = 0; i < evolution_.size(); i++) i 169 modules/features2d/src/kaze/KAZEFeatures.cpp lxx = *(evolution_[i].Lxx.ptr<float>(ix)+jx); i 170 modules/features2d/src/kaze/KAZEFeatures.cpp lxy = *(evolution_[i].Lxy.ptr<float>(ix)+jx); i 171 modules/features2d/src/kaze/KAZEFeatures.cpp lyy = *(evolution_[i].Lyy.ptr<float>(ix)+jx); i 172 modules/features2d/src/kaze/KAZEFeatures.cpp *(evolution_[i].Ldet.ptr<float>(ix)+jx) = (lxx*lyy - lxy*lxy); i 202 modules/features2d/src/kaze/KAZEFeatures.cpp for (int i = range.start; i < range.end; i++) i 204 modules/features2d/src/kaze/KAZEFeatures.cpp compute_scharr_derivatives(evolution[i].Lsmooth, evolution[i].Lx, 1, 0, evolution[i].sigma_size); i 205 modules/features2d/src/kaze/KAZEFeatures.cpp compute_scharr_derivatives(evolution[i].Lsmooth, evolution[i].Ly, 0, 1, evolution[i].sigma_size); i 206 modules/features2d/src/kaze/KAZEFeatures.cpp compute_scharr_derivatives(evolution[i].Lx, evolution[i].Lxx, 1, 0, evolution[i].sigma_size); i 207 modules/features2d/src/kaze/KAZEFeatures.cpp compute_scharr_derivatives(evolution[i].Ly, evolution[i].Lyy, 0, 1, evolution[i].sigma_size); i 208 modules/features2d/src/kaze/KAZEFeatures.cpp compute_scharr_derivatives(evolution[i].Lx, evolution[i].Lxy, 0, 1, evolution[i].sigma_size); i 210 modules/features2d/src/kaze/KAZEFeatures.cpp evolution[i].Lx = evolution[i].Lx*((evolution[i].sigma_size)); i 211 modules/features2d/src/kaze/KAZEFeatures.cpp evolution[i].Ly = evolution[i].Ly*((evolution[i].sigma_size)); i 212 modules/features2d/src/kaze/KAZEFeatures.cpp evolution[i].Lxx = evolution[i].Lxx*((evolution[i].sigma_size)*(evolution[i].sigma_size)); i 213 modules/features2d/src/kaze/KAZEFeatures.cpp evolution[i].Lxy = evolution[i].Lxy*((evolution[i].sigma_size)*(evolution[i].sigma_size)); i 214 modules/features2d/src/kaze/KAZEFeatures.cpp evolution[i].Lyy = evolution[i].Lyy*((evolution[i].sigma_size)*(evolution[i].sigma_size)); i 246 modules/features2d/src/kaze/KAZEFeatures.cpp for (int i = range.start; i < range.end; i++) i 256 modules/features2d/src/kaze/KAZEFeatures.cpp value = *(evolution[i].Ldet.ptr<float>(ix)+jx); i 261 modules/features2d/src/kaze/KAZEFeatures.cpp if (value >= *(evolution[i].Ldet.ptr<float>(ix)+jx - 1)) i 264 modules/features2d/src/kaze/KAZEFeatures.cpp if (check_maximum_neighbourhood(evolution[i].Ldet, 1, value, ix, jx, 1)) i 267 modules/features2d/src/kaze/KAZEFeatures.cpp if (check_maximum_neighbourhood(evolution[i - 1].Ldet, 1, value, ix, jx, 0)) i 270 modules/features2d/src/kaze/KAZEFeatures.cpp if (check_maximum_neighbourhood(evolution[i + 1].Ldet, 1, value, ix, jx, 0)) i 284 modules/features2d/src/kaze/KAZEFeatures.cpp point.size = evolution[i].esigma; i 285 modules/features2d/src/kaze/KAZEFeatures.cpp point.octave = (int)evolution[i].octave; i 286 modules/features2d/src/kaze/KAZEFeatures.cpp point.class_id = i; i 290 modules/features2d/src/kaze/KAZEFeatures.cpp point.angle = static_cast<float>(evolution[i].sublevel); i 291 modules/features2d/src/kaze/KAZEFeatures.cpp kpts_par[i - 1].push_back(point); i 321 modules/features2d/src/kaze/KAZEFeatures.cpp for (size_t i = 0; i < kpts_par_.size(); i++) { i 322 modules/features2d/src/kaze/KAZEFeatures.cpp vector<KeyPoint>().swap(kpts_par_[i]); i 328 modules/features2d/src/kaze/KAZEFeatures.cpp for (size_t i = 1; i < evolution_.size() - 1; i++) { i 336 modules/features2d/src/kaze/KAZEFeatures.cpp for (int i = 0; i < (int)kpts_par_.size(); i++) i 338 modules/features2d/src/kaze/KAZEFeatures.cpp for (int j = 0; j < (int)kpts_par_[i].size(); j++) i 340 modules/features2d/src/kaze/KAZEFeatures.cpp level = i + 1; i 348 modules/features2d/src/kaze/KAZEFeatures.cpp dist = pow(kpts_par_[i][j].pt.x - kpts[ik].pt.x, 2) + pow(kpts_par_[i][j].pt.y - kpts[ik].pt.y, 2); i 351 modules/features2d/src/kaze/KAZEFeatures.cpp if (kpts_par_[i][j].response > kpts[ik].response) { i 366 modules/features2d/src/kaze/KAZEFeatures.cpp left_x = fRound(kpts_par_[i][j].pt.x - smax*kpts_par_[i][j].size); i 367 modules/features2d/src/kaze/KAZEFeatures.cpp right_x = fRound(kpts_par_[i][j].pt.x + smax*kpts_par_[i][j].size); i 368 modules/features2d/src/kaze/KAZEFeatures.cpp up_y = fRound(kpts_par_[i][j].pt.y - smax*kpts_par_[i][j].size); i 369 modules/features2d/src/kaze/KAZEFeatures.cpp down_y = fRound(kpts_par_[i][j].pt.y + smax*kpts_par_[i][j].size); i 380 modules/features2d/src/kaze/KAZEFeatures.cpp kpts.push_back(kpts_par_[i][j]); i 384 modules/features2d/src/kaze/KAZEFeatures.cpp kpts[id_repeated] = kpts_par_[i][j]; i 409 modules/features2d/src/kaze/KAZEFeatures.cpp for (size_t i = 0; i < kpts_.size(); i++) { i 411 modules/features2d/src/kaze/KAZEFeatures.cpp x = static_cast<int>(kpts_[i].pt.x); i 412 modules/features2d/src/kaze/KAZEFeatures.cpp y = static_cast<int>(kpts_[i].pt.y); i 415 modules/features2d/src/kaze/KAZEFeatures.cpp Dx = (1.0f / (2.0f*step))*(*(evolution_[kpts_[i].class_id].Ldet.ptr<float>(y)+x + step) i 416 modules/features2d/src/kaze/KAZEFeatures.cpp - *(evolution_[kpts_[i].class_id].Ldet.ptr<float>(y)+x - step)); i 417 modules/features2d/src/kaze/KAZEFeatures.cpp Dy = (1.0f / (2.0f*step))*(*(evolution_[kpts_[i].class_id].Ldet.ptr<float>(y + step) + x) i 418 modules/features2d/src/kaze/KAZEFeatures.cpp - *(evolution_[kpts_[i].class_id].Ldet.ptr<float>(y - step) + x)); i 419 modules/features2d/src/kaze/KAZEFeatures.cpp Ds = 0.5f*(*(evolution_[kpts_[i].class_id + 1].Ldet.ptr<float>(y)+x) i 420 modules/features2d/src/kaze/KAZEFeatures.cpp - *(evolution_[kpts_[i].class_id - 1].Ldet.ptr<float>(y)+x)); i 423 modules/features2d/src/kaze/KAZEFeatures.cpp Dxx = (1.0f / (step*step))*(*(evolution_[kpts_[i].class_id].Ldet.ptr<float>(y)+x + step) i 424 modules/features2d/src/kaze/KAZEFeatures.cpp + *(evolution_[kpts_[i].class_id].Ldet.ptr<float>(y)+x - step) i 425 modules/features2d/src/kaze/KAZEFeatures.cpp - 2.0f*(*(evolution_[kpts_[i].class_id].Ldet.ptr<float>(y)+x))); i 427 modules/features2d/src/kaze/KAZEFeatures.cpp Dyy = (1.0f / (step*step))*(*(evolution_[kpts_[i].class_id].Ldet.ptr<float>(y + step) + x) i 428 modules/features2d/src/kaze/KAZEFeatures.cpp + *(evolution_[kpts_[i].class_id].Ldet.ptr<float>(y - step) + x) i 429 modules/features2d/src/kaze/KAZEFeatures.cpp - 2.0f*(*(evolution_[kpts_[i].class_id].Ldet.ptr<float>(y)+x))); i 431 modules/features2d/src/kaze/KAZEFeatures.cpp Dss = *(evolution_[kpts_[i].class_id + 1].Ldet.ptr<float>(y)+x) i 432 modules/features2d/src/kaze/KAZEFeatures.cpp + *(evolution_[kpts_[i].class_id - 1].Ldet.ptr<float>(y)+x) i 433 modules/features2d/src/kaze/KAZEFeatures.cpp - 2.0f*(*(evolution_[kpts_[i].class_id].Ldet.ptr<float>(y)+x)); i 435 modules/features2d/src/kaze/KAZEFeatures.cpp Dxy = (1.0f / (4.0f*step))*(*(evolution_[kpts_[i].class_id].Ldet.ptr<float>(y + step) + x + step) i 436 modules/features2d/src/kaze/KAZEFeatures.cpp + (*(evolution_[kpts_[i].class_id].Ldet.ptr<float>(y - step) + x - step))) i 437 modules/features2d/src/kaze/KAZEFeatures.cpp - (1.0f / (4.0f*step))*(*(evolution_[kpts_[i].class_id].Ldet.ptr<float>(y - step) + x + step) i 438 modules/features2d/src/kaze/KAZEFeatures.cpp + (*(evolution_[kpts_[i].class_id].Ldet.ptr<float>(y + step) + x - step))); i 440 modules/features2d/src/kaze/KAZEFeatures.cpp Dxs = (1.0f / (4.0f*step))*(*(evolution_[kpts_[i].class_id + 1].Ldet.ptr<float>(y)+x + step) i 441 modules/features2d/src/kaze/KAZEFeatures.cpp + (*(evolution_[kpts_[i].class_id - 1].Ldet.ptr<float>(y)+x - step))) i 442 modules/features2d/src/kaze/KAZEFeatures.cpp - (1.0f / (4.0f*step))*(*(evolution_[kpts_[i].class_id + 1].Ldet.ptr<float>(y)+x - step) i 443 modules/features2d/src/kaze/KAZEFeatures.cpp + (*(evolution_[kpts_[i].class_id - 1].Ldet.ptr<float>(y)+x + step))); i 445 modules/features2d/src/kaze/KAZEFeatures.cpp Dys = (1.0f / (4.0f*step))*(*(evolution_[kpts_[i].class_id + 1].Ldet.ptr<float>(y + step) + x) i 446 modules/features2d/src/kaze/KAZEFeatures.cpp + (*(evolution_[kpts_[i].class_id - 1].Ldet.ptr<float>(y - step) + x))) i 447 modules/features2d/src/kaze/KAZEFeatures.cpp - (1.0f / (4.0f*step))*(*(evolution_[kpts_[i].class_id + 1].Ldet.ptr<float>(y - step) + x) i 448 modules/features2d/src/kaze/KAZEFeatures.cpp + (*(evolution_[kpts_[i].class_id - 1].Ldet.ptr<float>(y + step) + x))); i 466 modules/features2d/src/kaze/KAZEFeatures.cpp kpts_[i].pt.x += *(dst.ptr<float>(0)); i 467 modules/features2d/src/kaze/KAZEFeatures.cpp kpts_[i].pt.y += *(dst.ptr<float>(1)); i 468 modules/features2d/src/kaze/KAZEFeatures.cpp dsc = kpts_[i].octave + (kpts_[i].angle + *(dst.ptr<float>(2))) / ((float)(options_.nsublevels)); i 471 modules/features2d/src/kaze/KAZEFeatures.cpp kpts_[i].size = 2.0f*options_.soffset*pow((float)2.0f, dsc); i 472 modules/features2d/src/kaze/KAZEFeatures.cpp kpts_[i].angle = 0.0; i 476 modules/features2d/src/kaze/KAZEFeatures.cpp kpts_[i].response = -1; i 483 modules/features2d/src/kaze/KAZEFeatures.cpp for (size_t i = 0; i < kpts_.size(); i++) { i 484 modules/features2d/src/kaze/KAZEFeatures.cpp if (kpts_[i].response != -1) { i 485 modules/features2d/src/kaze/KAZEFeatures.cpp kpts.push_back(kpts_[i]); i 512 modules/features2d/src/kaze/KAZEFeatures.cpp for (int i = range.start; i < range.end; i++) i 514 modules/features2d/src/kaze/KAZEFeatures.cpp kpts[i].angle = 0.0; i 517 modules/features2d/src/kaze/KAZEFeatures.cpp kpts[i].angle = 0.0; i 519 modules/features2d/src/kaze/KAZEFeatures.cpp Get_KAZE_Upright_Descriptor_128(kpts[i], desc.ptr<float>((int)i)); i 521 modules/features2d/src/kaze/KAZEFeatures.cpp Get_KAZE_Upright_Descriptor_64(kpts[i], desc.ptr<float>((int)i)); i 525 modules/features2d/src/kaze/KAZEFeatures.cpp KAZEFeatures::Compute_Main_Orientation(kpts[i], evolution, options_); i 528 modules/features2d/src/kaze/KAZEFeatures.cpp Get_KAZE_Descriptor_128(kpts[i], desc.ptr<float>((int)i)); i 530 modules/features2d/src/kaze/KAZEFeatures.cpp Get_KAZE_Descriptor_64(kpts[i], desc.ptr<float>((int)i)); i 554 modules/features2d/src/kaze/KAZEFeatures.cpp for(size_t i = 0; i < kpts.size(); i++) i 556 modules/features2d/src/kaze/KAZEFeatures.cpp CV_Assert(0 <= kpts[i].class_id && kpts[i].class_id < static_cast<int>(evolution_.size())); i 593 modules/features2d/src/kaze/KAZEFeatures.cpp for (int i = -6; i <= 6; ++i) { i 595 modules/features2d/src/kaze/KAZEFeatures.cpp if (i*i + j*j < 36) { i 597 modules/features2d/src/kaze/KAZEFeatures.cpp ix = fRound(xf + i*s); i 662 modules/features2d/src/kaze/KAZEFeatures.cpp int x2 = 0, y2 = 0, kx = 0, ky = 0, i = 0, j = 0, dcount = 0; i 682 modules/features2d/src/kaze/KAZEFeatures.cpp i = -8; i 686 modules/features2d/src/kaze/KAZEFeatures.cpp while (i < pattern_size) { i 688 modules/features2d/src/kaze/KAZEFeatures.cpp i = i - 4; i 699 modules/features2d/src/kaze/KAZEFeatures.cpp ky = i + sample_step; i 705 modules/features2d/src/kaze/KAZEFeatures.cpp for (int k = i; k < i + 9; k++) { i 763 modules/features2d/src/kaze/KAZEFeatures.cpp i += 9; i 769 modules/features2d/src/kaze/KAZEFeatures.cpp for (i = 0; i < dsize; i++) { i 770 modules/features2d/src/kaze/KAZEFeatures.cpp desc[i] /= len; i 791 modules/features2d/src/kaze/KAZEFeatures.cpp int kx = 0, ky = 0, i = 0, j = 0, dcount = 0; i 813 modules/features2d/src/kaze/KAZEFeatures.cpp i = -8; i 817 modules/features2d/src/kaze/KAZEFeatures.cpp while (i < pattern_size) { i 820 modules/features2d/src/kaze/KAZEFeatures.cpp i = i - 4; i 831 modules/features2d/src/kaze/KAZEFeatures.cpp ky = i + sample_step; i 837 modules/features2d/src/kaze/KAZEFeatures.cpp for (int k = i; k < i + 9; ++k) { i 892 modules/features2d/src/kaze/KAZEFeatures.cpp i += 9; i 898 modules/features2d/src/kaze/KAZEFeatures.cpp for (i = 0; i < dsize; i++) { i 899 modules/features2d/src/kaze/KAZEFeatures.cpp desc[i] /= len; i 919 modules/features2d/src/kaze/KAZEFeatures.cpp int x2 = 0, y2 = 0, kx = 0, ky = 0, i = 0, j = 0, dcount = 0; i 941 modules/features2d/src/kaze/KAZEFeatures.cpp i = -8; i 945 modules/features2d/src/kaze/KAZEFeatures.cpp while (i < pattern_size) { i 948 modules/features2d/src/kaze/KAZEFeatures.cpp i = i - 4; i 961 modules/features2d/src/kaze/KAZEFeatures.cpp ky = i + sample_step; i 967 modules/features2d/src/kaze/KAZEFeatures.cpp for (int k = i; k < i + 9; k++) { i 1044 modules/features2d/src/kaze/KAZEFeatures.cpp i += 9; i 1050 modules/features2d/src/kaze/KAZEFeatures.cpp for (i = 0; i < dsize; i++) { i 1051 modules/features2d/src/kaze/KAZEFeatures.cpp desc[i] /= len; i 1074 modules/features2d/src/kaze/KAZEFeatures.cpp int kx = 0, ky = 0, i = 0, j = 0, dcount = 0; i 1096 modules/features2d/src/kaze/KAZEFeatures.cpp i = -8; i 1100 modules/features2d/src/kaze/KAZEFeatures.cpp while (i < pattern_size) { i 1103 modules/features2d/src/kaze/KAZEFeatures.cpp i = i - 4; i 1116 modules/features2d/src/kaze/KAZEFeatures.cpp ky = i + sample_step; i 1122 modules/features2d/src/kaze/KAZEFeatures.cpp for (int k = i; k < i + 9; ++k) { i 1201 modules/features2d/src/kaze/KAZEFeatures.cpp i += 9; i 1207 modules/features2d/src/kaze/KAZEFeatures.cpp for (i = 0; i < dsize; i++) { i 1208 modules/features2d/src/kaze/KAZEFeatures.cpp desc[i] /= len; i 234 modules/features2d/src/kaze/nldiffusion_functions.cpp for (int i = 1; i < gaussian.rows - 1; i++) { i 235 modules/features2d/src/kaze/nldiffusion_functions.cpp const float *lx = Lx.ptr<float>(i); i 236 modules/features2d/src/kaze/nldiffusion_functions.cpp const float *ly = Ly.ptr<float>(i); i 248 modules/features2d/src/kaze/nldiffusion_functions.cpp for (int i = 1; i < gaussian.rows - 1; i++) { i 249 modules/features2d/src/kaze/nldiffusion_functions.cpp const float *lx = Lx.ptr<float>(i); i 250 modules/features2d/src/kaze/nldiffusion_functions.cpp const float *ly = Ly.ptr<float>(i); i 366 modules/features2d/src/kaze/nldiffusion_functions.cpp for (int i = range.start; i < range.end; i++) i 368 modules/features2d/src/kaze/nldiffusion_functions.cpp const float *c_prev = c.ptr<float>(i - 1); i 369 modules/features2d/src/kaze/nldiffusion_functions.cpp const float *c_curr = c.ptr<float>(i); i 370 modules/features2d/src/kaze/nldiffusion_functions.cpp const float *c_next = c.ptr<float>(i + 1); i 371 modules/features2d/src/kaze/nldiffusion_functions.cpp const float *ld_prev = Ld.ptr<float>(i - 1); i 372 modules/features2d/src/kaze/nldiffusion_functions.cpp const float *ld_curr = Ld.ptr<float>(i); i 373 modules/features2d/src/kaze/nldiffusion_functions.cpp const float *ld_next = Ld.ptr<float>(i + 1); i 375 modules/features2d/src/kaze/nldiffusion_functions.cpp float *dst = Lstep.ptr<float>(i); i 445 modules/features2d/src/kaze/nldiffusion_functions.cpp for (int i = 1; i < Lstep.rows - 1; i++) { i 446 modules/features2d/src/kaze/nldiffusion_functions.cpp cnxt = c.ptr<float>(i + 1); i 447 modules/features2d/src/kaze/nldiffusion_functions.cpp ldnxt = Ld.ptr<float>(i + 1); i 448 modules/features2d/src/kaze/nldiffusion_functions.cpp dst = Lstep.ptr<float>(i); i 497 modules/features2d/src/kaze/nldiffusion_functions.cpp for (int i = row - dsize; i <= row + dsize; i++) { i 499 modules/features2d/src/kaze/nldiffusion_functions.cpp if (i >= 0 && i < img.rows && j >= 0 && j < img.cols) { i 501 modules/features2d/src/kaze/nldiffusion_functions.cpp if (i != row || j != col) { i 502 modules/features2d/src/kaze/nldiffusion_functions.cpp if ((*(img.ptr<float>(i)+j)) > value) { i 509 modules/features2d/src/kaze/nldiffusion_functions.cpp if ((*(img.ptr<float>(i)+j)) > value) { i 168 modules/features2d/src/keypoint.cpp bool operator()(int i, int j) const i 170 modules/features2d/src/keypoint.cpp const KeyPoint& kp1 = (*kp)[i]; i 187 modules/features2d/src/keypoint.cpp return i < j; i 194 modules/features2d/src/keypoint.cpp int i, j, n = (int)keypoints.size(); i 198 modules/features2d/src/keypoint.cpp for( i = 0; i < n; i++ ) i 199 modules/features2d/src/keypoint.cpp kpidx[i] = i; i 201 modules/features2d/src/keypoint.cpp for( i = 1, j = 0; i < n; i++ ) i 203 modules/features2d/src/keypoint.cpp KeyPoint& kp1 = keypoints[kpidx[i]]; i 207 modules/features2d/src/keypoint.cpp j = i; i 209 modules/features2d/src/keypoint.cpp mask[kpidx[i]] = 0; i 212 modules/features2d/src/keypoint.cpp for( i = j = 0; i < n; i++ ) i 214 modules/features2d/src/keypoint.cpp if( mask[i] ) i 216 modules/features2d/src/keypoint.cpp if( i != j ) i 217 modules/features2d/src/keypoint.cpp keypoints[j] = keypoints[i]; i 242 modules/features2d/src/matchers.cpp for (int i = 0; i < k; ++i, ++trainIdx_ptr, ++distance_ptr) i 365 modules/features2d/src/matchers.cpp for (int i = 0; i < nMatches; ++i, ++trainIdx_ptr, ++distance_ptr) i 373 modules/features2d/src/matchers.cpp curMatches[i] = m; i 421 modules/features2d/src/matchers.cpp for( size_t i = 1; i < imageCount; i++ ) i 424 modules/features2d/src/matchers.cpp if( !descriptors[i-1].empty() ) i 426 modules/features2d/src/matchers.cpp dim = descriptors[i-1].cols; i 427 modules/features2d/src/matchers.cpp type = descriptors[i-1].type(); i 428 modules/features2d/src/matchers.cpp s = descriptors[i-1].rows; i 430 modules/features2d/src/matchers.cpp startIdxs[i] = startIdxs[i-1] + s; i 446 modules/features2d/src/matchers.cpp for( size_t i = 0; i < imageCount; i++ ) i 448 modules/features2d/src/matchers.cpp if( !descriptors[i].empty() ) i 450 modules/features2d/src/matchers.cpp CV_Assert( descriptors[i].cols == dim && descriptors[i].type() == type ); i 451 modules/features2d/src/matchers.cpp Mat m = mergedDescriptors.rowRange( startIdxs[i], startIdxs[i] + descriptors[i].rows ); i 452 modules/features2d/src/matchers.cpp descriptors[i].copyTo(m); i 505 modules/features2d/src/matchers.cpp for( size_t i = 0; i < knnMatches.size(); i++ ) i 507 modules/features2d/src/matchers.cpp CV_Assert( knnMatches[i].size() <= 1 ); i 508 modules/features2d/src/matchers.cpp if( !knnMatches[i].empty() ) i 509 modules/features2d/src/matchers.cpp matches.push_back( knnMatches[i][0] ); i 606 modules/features2d/src/matchers.cpp for( size_t i = 0; i < imageCount; i++ ) i 608 modules/features2d/src/matchers.cpp if( !masks[i].empty() && (!trainDescCollection[i].empty() || !utrainDescCollection[i].empty() ) ) i 610 modules/features2d/src/matchers.cpp int rows = trainDescCollection[i].empty() ? utrainDescCollection[i].rows : trainDescCollection[i].rows; i 611 modules/features2d/src/matchers.cpp CV_Assert( masks[i].rows == queryDescriptorsCount && i 612 modules/features2d/src/matchers.cpp (masks[i].cols == rows || masks[i].cols == rows) && i 613 modules/features2d/src/matchers.cpp masks[i].type() == CV_8UC1 ); i 666 modules/features2d/src/matchers.cpp for( size_t i = 0; i < masks.size(); i++ ) i 668 modules/features2d/src/matchers.cpp if( !masks[i].empty() && (countNonZero(masks[i].row(queryIdx)) == 0) ) i 738 modules/features2d/src/matchers.cpp for(int i = 0; i < (int)utrainDescCollection.size(); i++) i 741 modules/features2d/src/matchers.cpp utrainDescCollection[i].copyTo(tempMat); i 798 modules/features2d/src/matchers.cpp for(int i = 0; i < (int)utrainDescCollection.size(); i++) i 801 modules/features2d/src/matchers.cpp utrainDescCollection[i].copyTo(tempMat); i 882 modules/features2d/src/matchers.cpp for(int i = 0; i < (int)utrainDescCollection.size(); i++) i 885 modules/features2d/src/matchers.cpp utrainDescCollection[i].copyTo(tempMat); i 920 modules/features2d/src/matchers.cpp for(int i = 0; i < (int)utrainDescCollection.size(); i++) i 923 modules/features2d/src/matchers.cpp utrainDescCollection[i].copyTo(tempMat); i 1028 modules/features2d/src/matchers.cpp for( size_t i = 0; i < descriptors.size(); i++ ) i 1030 modules/features2d/src/matchers.cpp addedDescCount += descriptors[i].rows; i 1052 modules/features2d/src/matchers.cpp for (size_t i = 0; i < utrainDescCollection.size(); ++i) i 1053 modules/features2d/src/matchers.cpp trainDescCollection.push_back(utrainDescCollection[i].getMat(ACCESS_READ)); i 1068 modules/features2d/src/matchers.cpp for(int i = 0; i < (int)ip.size(); ++i) i 1070 modules/features2d/src/matchers.cpp CV_Assert(ip[i].type() == FileNode::MAP); i 1071 modules/features2d/src/matchers.cpp String _name = (String)ip[i]["name"]; i 1072 modules/features2d/src/matchers.cpp int type = (int)ip[i]["type"]; i 1081 modules/features2d/src/matchers.cpp indexParams->setInt(_name, (int) ip[i]["value"]); i 1084 modules/features2d/src/matchers.cpp indexParams->setFloat(_name, (float) ip[i]["value"]); i 1087 modules/features2d/src/matchers.cpp indexParams->setDouble(_name, (double) ip[i]["value"]); i 1090 modules/features2d/src/matchers.cpp indexParams->setString(_name, (String) ip[i]["value"]); i 1093 modules/features2d/src/matchers.cpp indexParams->setBool(_name, (int) ip[i]["value"] != 0); i 1096 modules/features2d/src/matchers.cpp indexParams->setAlgorithm((int) ip[i]["value"]); i 1107 modules/features2d/src/matchers.cpp for(int i = 0; i < (int)sp.size(); ++i) i 1109 modules/features2d/src/matchers.cpp CV_Assert(sp[i].type() == FileNode::MAP); i 1110 modules/features2d/src/matchers.cpp String _name = (String)sp[i]["name"]; i 1111 modules/features2d/src/matchers.cpp int type = (int)sp[i]["type"]; i 1120 modules/features2d/src/matchers.cpp searchParams->setInt(_name, (int) sp[i]["value"]); i 1123 modules/features2d/src/matchers.cpp searchParams->setFloat(_name, (float) ip[i]["value"]); i 1126 modules/features2d/src/matchers.cpp searchParams->setDouble(_name, (double) ip[i]["value"]); i 1129 modules/features2d/src/matchers.cpp searchParams->setString(_name, (String) ip[i]["value"]); i 1132 modules/features2d/src/matchers.cpp searchParams->setBool(_name, (int) ip[i]["value"] != 0); i 1135 modules/features2d/src/matchers.cpp searchParams->setAlgorithm((int) ip[i]["value"]); i 1156 modules/features2d/src/matchers.cpp for(size_t i = 0; i < names.size(); ++i) i 1158 modules/features2d/src/matchers.cpp fs << "{" << "name" << names[i] << "type" << types[i] << "value"; i 1159 modules/features2d/src/matchers.cpp switch(types[i]) i 1162 modules/features2d/src/matchers.cpp fs << (uchar)numValues[i]; i 1165 modules/features2d/src/matchers.cpp fs << (char)numValues[i]; i 1168 modules/features2d/src/matchers.cpp fs << (ushort)numValues[i]; i 1171 modules/features2d/src/matchers.cpp fs << (short)numValues[i]; i 1176 modules/features2d/src/matchers.cpp fs << (int)numValues[i]; i 1179 modules/features2d/src/matchers.cpp fs << (float)numValues[i]; i 1182 modules/features2d/src/matchers.cpp fs << (double)numValues[i]; i 1185 modules/features2d/src/matchers.cpp fs << strValues[i]; i 1188 modules/features2d/src/matchers.cpp fs << (double)numValues[i]; i 1189 modules/features2d/src/matchers.cpp fs << "typename" << strValues[i]; i 1207 modules/features2d/src/matchers.cpp for(size_t i = 0; i < names.size(); ++i) i 1209 modules/features2d/src/matchers.cpp fs << "{" << "name" << names[i] << "type" << types[i] << "value"; i 1210 modules/features2d/src/matchers.cpp switch(types[i]) i 1213 modules/features2d/src/matchers.cpp fs << (uchar)numValues[i]; i 1216 modules/features2d/src/matchers.cpp fs << (char)numValues[i]; i 1219 modules/features2d/src/matchers.cpp fs << (ushort)numValues[i]; i 1222 modules/features2d/src/matchers.cpp fs << (short)numValues[i]; i 1227 modules/features2d/src/matchers.cpp fs << (int)numValues[i]; i 1230 modules/features2d/src/matchers.cpp fs << (float)numValues[i]; i 1233 modules/features2d/src/matchers.cpp fs << (double)numValues[i]; i 1236 modules/features2d/src/matchers.cpp fs << strValues[i]; i 1239 modules/features2d/src/matchers.cpp fs << (double)numValues[i]; i 1240 modules/features2d/src/matchers.cpp fs << "typename" << strValues[i]; i 1274 modules/features2d/src/matchers.cpp for( int i = 0; i < indices.rows; i++ ) i 1278 modules/features2d/src/matchers.cpp int idx = indices.at<int>(i, j); i 1285 modules/features2d/src/matchers.cpp dist = static_cast<float>( dists.at<int>(i,j) ); i 1287 modules/features2d/src/matchers.cpp dist = std::sqrt(dists.at<float>(i,j)); i 1288 modules/features2d/src/matchers.cpp matches[i].push_back( DMatch( i, trainIdx, imgIdx, dist ) ); i 353 modules/features2d/src/mser.cpp int i, j, cols = img.cols, rows = img.rows; i 366 modules/features2d/src/mser.cpp for( i = 1; i < rows-1; i++ ) i 368 modules/features2d/src/mser.cpp const uchar* imgptr = img.ptr(i); i 369 modules/features2d/src/mser.cpp Pixel* pptr = &pixbuf[i*step]; i 382 modules/features2d/src/mser.cpp int i; i 384 modules/features2d/src/mser.cpp for( i = 0; i < 128; i++ ) i 385 modules/features2d/src/mser.cpp std::swap(level_size[i], level_size[255-i]); i 391 modules/features2d/src/mser.cpp for( i = 1; i < rows-1; i++ ) i 393 modules/features2d/src/mser.cpp Pixel* pptr = &pixbuf[i*step + 1]; i 422 modules/features2d/src/mser.cpp for( int i = 1; i < 256; i++ ) i 424 modules/features2d/src/mser.cpp heap[i] = heap[i-1] + level_size[i-1] + 1; i 425 modules/features2d/src/mser.cpp heap[i][0] = 0; i 713 modules/features2d/src/mser.cpp for ( int i = 0; i < src.rows; i++ ) i 728 modules/features2d/src/mser.cpp for ( int i = 0; i < src.rows-1; i++ ) i 759 modules/features2d/src/mser.cpp for ( int i = 1; i < src.cols-1; i++ ) i 762 modules/features2d/src/mser.cpp nodeptr->index = i; i 773 modules/features2d/src/mser.cpp for ( int i = 1; i < src.rows-1; i++ ) i 776 modules/features2d/src/mser.cpp nodeptr->index = i<<16; i 791 modules/features2d/src/mser.cpp nodeptr->index = (i<<16)|j; i 805 modules/features2d/src/mser.cpp nodeptr->index = (i<<16)|(src.cols-1); i 826 modules/features2d/src/mser.cpp for ( int i = 1; i < src.cols-1; i++ ) i 829 modules/features2d/src/mser.cpp nodeptr->index = ((src.rows-1)<<16)|i; i 915 modules/features2d/src/mser.cpp for ( int i = 0; i < params.maxEvolution; i++ ) i 917 modules/features2d/src/mser.cpp double k = (double)i/(double)params.maxEvolution*(TABLE_SIZE-1); i 954 modules/features2d/src/mser.cpp lr->reinit = i; i 964 modules/features2d/src/mser.cpp if ( i > lr->reinit ) i 970 modules/features2d/src/mser.cpp if ( i > lr->reinit+1 && MSCRStableCheck( lr, params ) ) i 1000 modules/features2d/src/mser.cpp for ( int i = 0; i < ptr->size; i++ ) i 1064 modules/features2d/src/mser.cpp int i, ncomps = (int)msers.size(); i 1067 modules/features2d/src/mser.cpp for( i = 0; i < ncomps; i++ ) i 1069 modules/features2d/src/mser.cpp Rect r = bboxes[i]; i 1071 modules/features2d/src/mser.cpp RotatedRect rect = fitEllipse(Mat(msers[i])); i 146 modules/features2d/src/orb.cpp for( int i = 0; i < blockSize; i++ ) i 148 modules/features2d/src/orb.cpp ofs[i*blockSize + j] = (int)(i*step + j); i 219 modules/features2d/src/orb.cpp int j, i, nkeypoints = (int)keypoints.size(); i 257 modules/features2d/src/orb.cpp for (i = 0; i < dsize; ++i, pattern += 16) i 277 modules/features2d/src/orb.cpp desc[i] = (uchar)val; i 282 modules/features2d/src/orb.cpp for (i = 0; i < dsize; ++i, pattern += 12) i 297 modules/features2d/src/orb.cpp desc[i] = (uchar)val; i 302 modules/features2d/src/orb.cpp for (i = 0; i < dsize; ++i, pattern += 16) i 337 modules/features2d/src/orb.cpp desc[i] = (uchar)val; i 350 modules/features2d/src/orb.cpp int i, k, k1; i 353 modules/features2d/src/orb.cpp for( i = 0; i < ntuples; i++ ) i 362 modules/features2d/src/orb.cpp if( pattern[tupleSize*i + k1] == pt ) i 366 modules/features2d/src/orb.cpp pattern[tupleSize*i + k] = pt; i 639 modules/features2d/src/orb.cpp for( int i = 0; i < npoints; i++ ) i 641 modules/features2d/src/orb.cpp pattern[i].x = rng.uniform(-patchSize/2, patchSize/2+1); i 642 modules/features2d/src/orb.cpp pattern[i].y = rng.uniform(-patchSize/2, patchSize/2+1); i 731 modules/features2d/src/orb.cpp size_t i, n = src.size(); i 733 modules/features2d/src/orb.cpp for( i = 0; i < n; i++ ) i 734 modules/features2d/src/orb.cpp buf[i] = Vec3i(cvRound(src[i].pt.x), cvRound(src[i].pt.y), src[i].octave); i 740 modules/features2d/src/orb.cpp int i; i 749 modules/features2d/src/orb.cpp size_t i, n = src.size(); i 751 modules/features2d/src/orb.cpp for( i = 0; i < n; i++ ) i 753 modules/features2d/src/orb.cpp int z = src[i].octave; i 756 modules/features2d/src/orb.cpp angle.f = src[i].angle; i 757 modules/features2d/src/orb.cpp buf[i] = Vec4i(cvRound(src[i].pt.x*scale), cvRound(src[i].pt.y*scale), z, angle.i); i 779 modules/features2d/src/orb.cpp int i, nkeypoints, level, nlevels = (int)layerInfo.size(); i 843 modules/features2d/src/orb.cpp for( i = 0; i < nkeypoints; i++ ) i 845 modules/features2d/src/orb.cpp keypoints[i].octave = level; i 846 modules/features2d/src/orb.cpp keypoints[i].size = patchSize*sf; i 874 modules/features2d/src/orb.cpp for( i = 0; i < nkeypoints; i++ ) i 875 modules/features2d/src/orb.cpp allKeypoints[i].response = responses.at<float>(i); i 919 modules/features2d/src/orb.cpp for( i = 0; i < nkeypoints; i++ ) i 920 modules/features2d/src/orb.cpp allKeypoints[i].angle = responses.at<float>(i); i 929 modules/features2d/src/orb.cpp for( i = 0; i < nkeypoints; i++ ) i 931 modules/features2d/src/orb.cpp float scale = layerScale[allKeypoints[i].octave]; i 932 modules/features2d/src/orb.cpp allKeypoints[i].pt *= scale; i 968 modules/features2d/src/orb.cpp int i, level, nLevels = this->nlevels, nkeypoints = (int)keypoints.size(); i 983 modules/features2d/src/orb.cpp for( i = 0; i < nkeypoints; i++ ) i 985 modules/features2d/src/orb.cpp level = keypoints[i].octave; i 987 modules/features2d/src/orb.cpp if( i > 0 && level < keypoints[i-1].octave ) i 1095 modules/features2d/src/orb.cpp for( i = 0; i < nkeypoints; i++ ) i 1097 modules/features2d/src/orb.cpp level = keypoints[i].octave; i 1099 modules/features2d/src/orb.cpp allKeypoints[level].push_back(keypoints[i]); i 128 modules/features2d/test/ocl/test_brute_force_matcher.cpp for (size_t i = 0; i < matches.size(); i++) i 130 modules/features2d/test/ocl/test_brute_force_matcher.cpp cv::DMatch match = matches[i]; i 131 modules/features2d/test/ocl/test_brute_force_matcher.cpp if ((match.queryIdx != (int)i) || (match.trainIdx != (int)i * countFactor) || (match.imgIdx != 0)) i 154 modules/features2d/test/ocl/test_brute_force_matcher.cpp for (size_t i = 0; i < matches.size(); i++) i 156 modules/features2d/test/ocl/test_brute_force_matcher.cpp if ((int)matches[i].size() != knn) i 163 modules/features2d/test/ocl/test_brute_force_matcher.cpp cv::DMatch match = matches[i][k]; i 164 modules/features2d/test/ocl/test_brute_force_matcher.cpp if ((match.queryIdx != (int)i) || (match.trainIdx != (int)i * countFactor + k) || (match.imgIdx != 0)) i 190 modules/features2d/test/ocl/test_brute_force_matcher.cpp for (size_t i = 0; i < matches.size(); i++) i 192 modules/features2d/test/ocl/test_brute_force_matcher.cpp if ((int)matches[i].size() != 1) i 198 modules/features2d/test/ocl/test_brute_force_matcher.cpp cv::DMatch match = matches[i][0]; i 199 modules/features2d/test/ocl/test_brute_force_matcher.cpp if ((match.queryIdx != (int)i) || (match.trainIdx != (int)i * countFactor) || (match.imgIdx != 0)) i 82 modules/features2d/test/test_agast.cpp for(size_t i = 0; i < keypoints1.size(); ++i) i 84 modules/features2d/test/test_agast.cpp const KeyPoint& kp = keypoints1[i]; i 88 modules/features2d/test/test_agast.cpp for(size_t i = 0; i < keypoints2.size(); ++i) i 90 modules/features2d/test/test_agast.cpp const KeyPoint& kp = keypoints2[i]; i 82 modules/features2d/test/test_brisk.cpp for(size_t i = 0; i < keypoints1.size(); ++i) i 84 modules/features2d/test/test_brisk.cpp const KeyPoint& kp = keypoints1[i]; i 88 modules/features2d/test/test_brisk.cpp for(size_t i = 0; i < keypoints2.size(); ++i) i 90 modules/features2d/test/test_brisk.cpp const KeyPoint& kp = keypoints2[i]; i 356 modules/features2d/test/test_descriptors_regression.cpp int i, n = 6; i 359 modules/features2d/test/test_descriptors_regression.cpp for( i = 0; i < n; i++ ) i 361 modules/features2d/test/test_descriptors_regression.cpp string imgname = format("%s/img%d.png", path.c_str(), i+1); i 372 modules/features2d/test/test_descriptors_regression.cpp for( i = 0; i < n; i++ ) i 374 modules/features2d/test/test_descriptors_regression.cpp EXPECT_GT((int)keypoints[i].size(), 100); i 375 modules/features2d/test/test_descriptors_regression.cpp EXPECT_GT(descriptors[i].rows, 100); i 390 modules/features2d/test/test_descriptors_regression.cpp size_t i, n = fnames.size(); i 395 modules/features2d/test/test_descriptors_regression.cpp for( i = 0; i < n; i++ ) i 397 modules/features2d/test/test_descriptors_regression.cpp printf("%d. image: %s:\n", (int)i, fnames[i].c_str()); i 398 modules/features2d/test/test_descriptors_regression.cpp if( strstr(fnames[i].c_str(), "MP.png") != 0 ) i 400 modules/features2d/test/test_descriptors_regression.cpp bool checkCount = strstr(fnames[i].c_str(), "templ.png") == 0; i 402 modules/features2d/test/test_descriptors_regression.cpp Mat img = imread(fnames[i], -1); i 82 modules/features2d/test/test_fast.cpp for(size_t i = 0; i < keypoints1.size(); ++i) i 84 modules/features2d/test/test_fast.cpp const KeyPoint& kp = keypoints1[i]; i 88 modules/features2d/test/test_fast.cpp for(size_t i = 0; i < keypoints2.size(); ++i) i 90 modules/features2d/test/test_fast.cpp const KeyPoint& kp = keypoints2[i]; i 88 modules/features2d/test/test_keypoints.cpp for(size_t i = 0; i < keypoints.size(); i++) i 90 modules/features2d/test/test_keypoints.cpp const KeyPoint& kp = keypoints[i]; i 210 modules/features2d/test/test_matchers_algorithmic.cpp for( size_t i = 0; i < matches.size(); i++ ) i 212 modules/features2d/test/test_matchers_algorithmic.cpp DMatch& match = matches[i]; i 213 modules/features2d/test/test_matchers_algorithmic.cpp if( (match.queryIdx != (int)i) || (match.trainIdx != (int)i*countFactor) || (match.imgIdx != 0) ) i 237 modules/features2d/test/test_matchers_algorithmic.cpp for( size_t i = 0; i < matches.size(); i++ ) i 239 modules/features2d/test/test_matchers_algorithmic.cpp DMatch& match = matches[i]; i 242 modules/features2d/test/test_matchers_algorithmic.cpp if( match.queryIdx != (int)i || match.trainIdx != (int)i || std::abs(match.distance) > FLT_EPSILON ) i 245 modules/features2d/test/test_matchers_algorithmic.cpp i, match.queryIdx, match.trainIdx, match.distance ); i 277 modules/features2d/test/test_matchers_algorithmic.cpp for( size_t i = 0; i < matches.size(); i++ ) i 279 modules/features2d/test/test_matchers_algorithmic.cpp DMatch& match = matches[i]; i 282 modules/features2d/test/test_matchers_algorithmic.cpp if( i < queryDescCount/2 ) i 284 modules/features2d/test/test_matchers_algorithmic.cpp if( (match.queryIdx != (int)i) || (match.trainIdx != (int)i*countFactor + shift) || (match.imgIdx != 0) ) i 289 modules/features2d/test/test_matchers_algorithmic.cpp if( (match.queryIdx != (int)i) || (match.trainIdx != ((int)i-queryDescCount/2)*countFactor + shift) || (match.imgIdx != 1) ) i 323 modules/features2d/test/test_matchers_algorithmic.cpp for( size_t i = 0; i < matches.size(); i++ ) i 325 modules/features2d/test/test_matchers_algorithmic.cpp if( (int)matches[i].size() != knn ) i 332 modules/features2d/test/test_matchers_algorithmic.cpp DMatch& match = matches[i][k]; i 333 modules/features2d/test/test_matchers_algorithmic.cpp if( (match.queryIdx != (int)i) || (match.trainIdx != (int)i*countFactor+k) || (match.imgIdx != 0) ) i 375 modules/features2d/test/test_matchers_algorithmic.cpp for( size_t i = 0; i < matches.size(); i++ ) i 377 modules/features2d/test/test_matchers_algorithmic.cpp if( (int)matches[i].size() != knn ) i 384 modules/features2d/test/test_matchers_algorithmic.cpp DMatch& match = matches[i][k]; i 386 modules/features2d/test/test_matchers_algorithmic.cpp if( i < queryDescCount/2 ) i 388 modules/features2d/test/test_matchers_algorithmic.cpp if( (match.queryIdx != (int)i) || (match.trainIdx != (int)i*countFactor + k + shift) || i 394 modules/features2d/test/test_matchers_algorithmic.cpp if( (match.queryIdx != (int)i) || (match.trainIdx != ((int)i-queryDescCount/2)*countFactor + k + shift) || i 430 modules/features2d/test/test_matchers_algorithmic.cpp for( size_t i = 0; i < matches.size(); i++ ) i 432 modules/features2d/test/test_matchers_algorithmic.cpp if( (int)matches[i].size() != 1 ) i 436 modules/features2d/test/test_matchers_algorithmic.cpp DMatch& match = matches[i][0]; i 437 modules/features2d/test/test_matchers_algorithmic.cpp if( (match.queryIdx != (int)i) || (match.trainIdx != (int)i*countFactor) || (match.imgIdx != 0) ) i 479 modules/features2d/test/test_matchers_algorithmic.cpp for( size_t i = 0; i < matches.size(); i++ ) i 481 modules/features2d/test/test_matchers_algorithmic.cpp if( (int)matches[i].size() != needMatchCount ) i 488 modules/features2d/test/test_matchers_algorithmic.cpp DMatch& match = matches[i][k]; i 490 modules/features2d/test/test_matchers_algorithmic.cpp if( i < queryDescCount/2 ) i 492 modules/features2d/test/test_matchers_algorithmic.cpp if( (match.queryIdx != (int)i) || (match.trainIdx != (int)i*countFactor + k + shift) || i 498 modules/features2d/test/test_matchers_algorithmic.cpp if( (match.queryIdx != (int)i) || (match.trainIdx != ((int)i-queryDescCount/2)*countFactor + k + shift) || i 59 modules/features2d/test/test_mser.cpp for( int i = 0; i < (int)msers.size(); i++ ) i 66 modules/features2d/test/test_mser.cpp const Point* pt = &msers[i][0]; i 67 modules/features2d/test/test_mser.cpp size_t j, n = msers[i].size(); i 104 modules/features2d/test/test_mser.cpp for( int i = 0; i < 100; i++ ) i 147 modules/features2d/test/test_mser.cpp i, kMinArea, kMaxArea, nmsers, minRegs, maxRegs, use_big_image ? "big" : "small", i 188 modules/features2d/test/test_nearestneighbors.cpp for( int i = 0; i < points.rows; i++ ) i 190 modules/features2d/test/test_nearestneighbors.cpp float* fltPtr = points.ptr<float>(i); i 197 modules/features2d/test/test_nearestneighbors.cpp neighbors1.at<int>(i,j) = *it; i 215 modules/features2d/test/test_nearestneighbors.cpp for( int i = 0; i < points.rows; i++ ) i 218 modules/features2d/test/test_nearestneighbors.cpp Mat p( 1, points.cols, CV_32FC1, points.ptr<float>(i) ), i 219 modules/features2d/test/test_nearestneighbors.cpp n( 1, neighbors.cols, CV_32SC1, neighbors.ptr<int>(i) ); i 223 modules/features2d/test/test_nearestneighbors.cpp float* fltPtr = points.ptr<float>(i); i 230 modules/features2d/test/test_nearestneighbors.cpp neighbors1.at<int>(i,j) = *it; i 97 modules/features2d/test/test_rotation_and_scale_invariance.cpp for(size_t i = 0; i < dst.size(); i++) i 99 modules/features2d/test/test_rotation_and_scale_invariance.cpp dst[i].pt = dstCenters[i]; i 100 modules/features2d/test/test_rotation_and_scale_invariance.cpp float dstAngle = src[i].angle + angle; i 103 modules/features2d/test/test_rotation_and_scale_invariance.cpp dst[i].angle = dstAngle; i 110 modules/features2d/test/test_rotation_and_scale_invariance.cpp for(size_t i = 0; i < src.size(); i++) i 111 modules/features2d/test/test_rotation_and_scale_invariance.cpp dst[i] = KeyPoint(src[i].pt.x * scale, src[i].pt.y * scale, src[i].size * scale, src[i].angle); i 334 modules/flann/include/opencv2/flann/autotuned_index.h for (size_t i = 0; i < FLANN_ARRAY_LEN(maxIterations); ++i) { i 339 modules/flann/include/opencv2/flann/autotuned_index.h cost.params["iterations"] = maxIterations[i]; i 378 modules/flann/include/opencv2/flann/autotuned_index.h for (size_t i = 0; i < FLANN_ARRAY_LEN(testTrees); ++i) { i 380 modules/flann/include/opencv2/flann/autotuned_index.h cost.params["trees"] = testTrees[i]; i 455 modules/flann/include/opencv2/flann/autotuned_index.h for (size_t i = 0; i < costs.size(); ++i) { i 456 modules/flann/include/opencv2/flann/autotuned_index.h float timeCost = costs[i].buildTimeCost * build_weight_ + costs[i].searchTimeCost; i 465 modules/flann/include/opencv2/flann/autotuned_index.h for (size_t i = 0; i < costs.size(); ++i) { i 466 modules/flann/include/opencv2/flann/autotuned_index.h float crtCost = (costs[i].buildTimeCost * build_weight_ + costs[i].searchTimeCost) / bestTimeCost + i 467 modules/flann/include/opencv2/flann/autotuned_index.h memory_weight_ * costs[i].memoryCost; i 470 modules/flann/include/opencv2/flann/autotuned_index.h bestParams = costs[i].params; i 116 modules/flann/include/opencv2/flann/dist.h for(size_t i = 0; i < size; ++i ) { i 403 modules/flann/include/opencv2/flann/dist.h for (size_t i = 0; i < size; i++) { i 404 modules/flann/include/opencv2/flann/dist.h result += popCountTable[a[i] ^ b[i]]; i 431 modules/flann/include/opencv2/flann/dist.h for (size_t i = 0; i < size; i += 16) { i 432 modules/flann/include/opencv2/flann/dist.h uint8x16_t A_vec = vld1q_u8 (a + i); i 433 modules/flann/include/opencv2/flann/dist.h uint8x16_t B_vec = vld1q_u8 (b + i); i 509 modules/flann/include/opencv2/flann/dist.h for(size_t i = 0; i < size; ++i ) { i 519 modules/flann/include/opencv2/flann/dist.h for(size_t i = 0; i < size; ++i ) { i 55 modules/flann/include/opencv2/flann/ground_truth.h for (size_t i=1; i<dataset.rows; ++i) { i 56 modules/flann/include/opencv2/flann/ground_truth.h DistanceType tmp = distance(dataset[i], query, dataset.cols); i 59 modules/flann/include/opencv2/flann/ground_truth.h match[dcnt] = (int)i; i 64 modules/flann/include/opencv2/flann/ground_truth.h match[dcnt-1] = (int)i; i 76 modules/flann/include/opencv2/flann/ground_truth.h for (int i=0; i<nn; ++i) { i 77 modules/flann/include/opencv2/flann/ground_truth.h matches[i] = match[i+skip]; i 86 modules/flann/include/opencv2/flann/ground_truth.h for (size_t i=0; i<testset.rows; ++i) { i 87 modules/flann/include/opencv2/flann/ground_truth.h find_nearest<Distance>(dataset, testset[i], matches[i], (int)matches.cols, skip, d); i 165 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h for (int i=1; i<index; ++i) { i 166 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h DistanceType tmp_dist = distance(dataset[centers[i]],dataset[dsindices[j]],dataset.cols); i 214 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h for (int i = 0; i < n; i++) { i 215 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h closestDistSq[i] = distance(dataset[dsindices[i]], dataset[dsindices[index]], dataset.cols); i 216 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h closestDistSq[i] = ensureSquareDistance<Distance>( closestDistSq[i] ); i 217 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h currentPot += closestDistSq[i]; i 242 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h for (int i = 0; i < n; i++) { i 243 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h DistanceType dist = distance(dataset[dsindices[i]], dataset[dsindices[index]], dataset.cols); i 244 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h newPot += std::min( ensureSquareDistance<Distance>(dist), closestDistSq[i] ); i 257 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h for (int i = 0; i < n; i++) { i 258 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h DistanceType dist = distance(dataset[dsindices[i]], dataset[dsindices[bestNewIndex]], dataset.cols); i 259 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h closestDistSq[i] = std::min( ensureSquareDistance<Distance>(dist), closestDistSq[i] ); i 299 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h for (int i = 0; i < n; i++) { i 300 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h closestDistSq[i] = distance(dataset[dsindices[i]], dataset[dsindices[index]], dataset.cols); i 319 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h for (int i = 0; i < n; i++) { i 320 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h newPot += std::min( distance(dataset[dsindices[i]], dataset[dsindices[index]], dataset.cols) i 321 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h , closestDistSq[i] ); i 335 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h for (int i = 0; i < n; i++) { i 336 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h closestDistSq[i] = std::min( distance(dataset[dsindices[i]], dataset[dsindices[bestNewIndex]], dataset.cols) i 337 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h , closestDistSq[i] ); i 391 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h for (int i=0; i<trees_; ++i) { i 392 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h root[i] = NULL; i 393 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h indices[i] = NULL; i 425 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h for(int i=0; i<trees_; ++i) { i 426 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h if (indices[i]!=NULL) { i 427 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h delete[] indices[i]; i 428 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h indices[i] = NULL; i 472 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h for (int i=0; i<trees_; ++i) { i 473 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h indices[i] = new int[size_]; i 475 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h indices[i][j] = (int)j; i 477 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h root[i] = pool.allocate<Node>(); i 478 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h computeClustering(root[i], indices[i], (int)size_, branching_,0); i 496 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h for (int i=0; i<trees_; ++i) { i 497 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h save_value(stream, *indices[i], size_); i 498 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h save_tree(stream, root[i], i); i 524 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h for (int i=0; i<trees_; ++i) { i 525 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h indices[i] = new int[size_]; i 526 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h load_value(stream, *indices[i], size_); i 527 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h load_tree(stream, root[i], i); i 557 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h for (int i=0; i<trees_; ++i) { i 558 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h findNN(root[i], result, vec, checks, maxChecks, heap, checked); i 625 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h for(int i=0; i<branching_; ++i) { i 626 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h save_tree(stream, node->childs[i], num); i 643 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h for(int i=0; i<branching_; ++i) { i 644 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h load_tree(stream, node->childs[i], num); i 655 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h for (int i=0; i<indices_length; ++i) { i 656 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h ElementType* point = dataset[dsindices[i]]; i 658 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h labels[i] = 0; i 662 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h labels[i] = j; i 714 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h for (int i=0; i<branching; ++i) { i 716 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h if (labels[j]==i) { i 723 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h node->childs[i] = pool.allocate<Node>(); i 724 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h node->childs[i]->pivot = centers[i]; i 725 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h node->childs[i]->indices = NULL; i 726 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h computeClustering(node->childs[i],dsindices+start, end-start, branching, level+1); i 753 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h for (int i=0; i<node->size; ++i) { i 754 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h int index = node->indices[i]; i 767 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h for (int i=1; i<branching_; ++i) { i 768 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h domain_distances[i] = distance(vec, dataset[node->childs[i]->pivot], veclen_); i 769 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h if (domain_distances[i]<domain_distances[best_index]) { i 770 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h best_index = i; i 773 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h for (int i=0; i<branching_; ++i) { i 774 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h if (i!=best_index) { i 775 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h heap->insert(BranchSt(node->childs[i],domain_distances[i])); i 51 modules/flann/include/opencv2/flann/index_testing.h for (int i=0; i<n; ++i) { i 53 modules/flann/include/opencv2/flann/index_testing.h if (neighbors[i]==groundTruth[k]) { i 70 modules/flann/include/opencv2/flann/index_testing.h for (int i=0; i<n; ++i) { i 71 modules/flann/include/opencv2/flann/index_testing.h DistanceType den = distance(inputData[groundTruth[i]], target, veclen); i 72 modules/flann/include/opencv2/flann/index_testing.h DistanceType num = distance(inputData[neighbors[i]], target, veclen); i 114 modules/flann/include/opencv2/flann/index_testing.h for (size_t i = 0; i < testData.rows; i++) { i 116 modules/flann/include/opencv2/flann/index_testing.h index.findNeighbors(resultSet, testData[i], searchParams); i 118 modules/flann/include/opencv2/flann/index_testing.h correct += countCorrectMatches(neighbors,matches[i], nn); i 119 modules/flann/include/opencv2/flann/index_testing.h distR += computeDistanceRaport<Distance>(inputData, testData[i], neighbors, matches[i], (int)testData.cols, nn, distance); i 267 modules/flann/include/opencv2/flann/index_testing.h for (int i=pindex; i<precisions_length; ++i) { i 269 modules/flann/include/opencv2/flann/index_testing.h precision = precisions[i]; i 96 modules/flann/include/opencv2/flann/kdtree_index.h for (size_t i = 0; i < size_; ++i) { i 97 modules/flann/include/opencv2/flann/kdtree_index.h vind_[i] = int(i); i 126 modules/flann/include/opencv2/flann/kdtree_index.h for (int i = 0; i < trees_; i++) { i 129 modules/flann/include/opencv2/flann/kdtree_index.h tree_roots_[i] = divideTree(&vind_[0], int(size_) ); i 143 modules/flann/include/opencv2/flann/kdtree_index.h for (int i=0; i<trees_; ++i) { i 144 modules/flann/include/opencv2/flann/kdtree_index.h save_tree(stream, tree_roots_[i]); i 157 modules/flann/include/opencv2/flann/kdtree_index.h for (int i=0; i<trees_; ++i) { i 158 modules/flann/include/opencv2/flann/kdtree_index.h load_tree(stream,tree_roots_[i]); i 361 modules/flann/include/opencv2/flann/kdtree_index.h for (size_t i = 0; i < veclen_; ++i) { i 362 modules/flann/include/opencv2/flann/kdtree_index.h if ((num < RAND_DIM)||(v[i] > v[topind[num-1]])) { i 365 modules/flann/include/opencv2/flann/kdtree_index.h topind[num++] = i; /* Add to list. */ i 368 modules/flann/include/opencv2/flann/kdtree_index.h topind[num-1] = i; /* Replace last element. */ i 439 modules/flann/include/opencv2/flann/kdtree_index.h int i; i 447 modules/flann/include/opencv2/flann/kdtree_index.h for (i = 0; i < trees_; ++i) { i 448 modules/flann/include/opencv2/flann/kdtree_index.h searchLevel(result, vec, tree_roots_[i], 0, checkCount, maxCheck, epsError, heap, checked); i 97 modules/flann/include/opencv2/flann/kdtree_single_index.h for (size_t i = 0; i < size_; i++) { i 98 modules/flann/include/opencv2/flann/kdtree_single_index.h vind_[i] = (int)i; i 124 modules/flann/include/opencv2/flann/kdtree_single_index.h for (size_t i=0; i<size_; ++i) { i 126 modules/flann/include/opencv2/flann/kdtree_single_index.h data_[i][j] = dataset_[vind_[i]][j]; i 221 modules/flann/include/opencv2/flann/kdtree_single_index.h for (size_t i = 0; i < queries.rows; i++) { i 222 modules/flann/include/opencv2/flann/kdtree_single_index.h resultSet.init(indices[i], dists[i]); i 223 modules/flann/include/opencv2/flann/kdtree_single_index.h findNeighbors(resultSet, queries[i], params); i 317 modules/flann/include/opencv2/flann/kdtree_single_index.h for (size_t i=0; i<dim_; ++i) { i 318 modules/flann/include/opencv2/flann/kdtree_single_index.h bbox[i].low = (DistanceType)dataset_[0][i]; i 319 modules/flann/include/opencv2/flann/kdtree_single_index.h bbox[i].high = (DistanceType)dataset_[0][i]; i 322 modules/flann/include/opencv2/flann/kdtree_single_index.h for (size_t i=0; i<dim_; ++i) { i 323 modules/flann/include/opencv2/flann/kdtree_single_index.h if (dataset_[k][i]<bbox[i].low) bbox[i].low = (DistanceType)dataset_[k][i]; i 324 modules/flann/include/opencv2/flann/kdtree_single_index.h if (dataset_[k][i]>bbox[i].high) bbox[i].high = (DistanceType)dataset_[k][i]; i 350 modules/flann/include/opencv2/flann/kdtree_single_index.h for (size_t i=0; i<dim_; ++i) { i 351 modules/flann/include/opencv2/flann/kdtree_single_index.h bbox[i].low = (DistanceType)dataset_[vind_[left]][i]; i 352 modules/flann/include/opencv2/flann/kdtree_single_index.h bbox[i].high = (DistanceType)dataset_[vind_[left]][i]; i 355 modules/flann/include/opencv2/flann/kdtree_single_index.h for (size_t i=0; i<dim_; ++i) { i 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]; i 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]; i 380 modules/flann/include/opencv2/flann/kdtree_single_index.h for (size_t i=0; i<dim_; ++i) { i 381 modules/flann/include/opencv2/flann/kdtree_single_index.h bbox[i].low = std::min(left_bbox[i].low, right_bbox[i].low); i 382 modules/flann/include/opencv2/flann/kdtree_single_index.h bbox[i].high = std::max(left_bbox[i].high, right_bbox[i].high); i 393 modules/flann/include/opencv2/flann/kdtree_single_index.h for (int i=1; i<count; ++i) { i 394 modules/flann/include/opencv2/flann/kdtree_single_index.h ElementType val = dataset_[ind[i]][dim]; i 406 modules/flann/include/opencv2/flann/kdtree_single_index.h for (size_t i=1; i<dim_; ++i) { i 407 modules/flann/include/opencv2/flann/kdtree_single_index.h ElementType span = bbox[i].high-bbox[i].low; i 410 modules/flann/include/opencv2/flann/kdtree_single_index.h cutfeat = i; i 411 modules/flann/include/opencv2/flann/kdtree_single_index.h cutval = (bbox[i].high+bbox[i].low)/2; i 423 modules/flann/include/opencv2/flann/kdtree_single_index.h for (size_t i=0; i<dim_; ++i) { i 424 modules/flann/include/opencv2/flann/kdtree_single_index.h if (i==k) continue; i 425 modules/flann/include/opencv2/flann/kdtree_single_index.h ElementType span = bbox[i].high-bbox[i].low; i 427 modules/flann/include/opencv2/flann/kdtree_single_index.h computeMinMax(ind, count, i, min_elem, max_elem); i 431 modules/flann/include/opencv2/flann/kdtree_single_index.h cutfeat = i; i 449 modules/flann/include/opencv2/flann/kdtree_single_index.h for (size_t i=1; i<dim_; ++i) { i 450 modules/flann/include/opencv2/flann/kdtree_single_index.h DistanceType span = bbox[i].high-bbox[i].low; i 457 modules/flann/include/opencv2/flann/kdtree_single_index.h for (size_t i=0; i<dim_; ++i) { i 458 modules/flann/include/opencv2/flann/kdtree_single_index.h DistanceType span = bbox[i].high-bbox[i].low; i 464 modules/flann/include/opencv2/flann/kdtree_single_index.h cutfeat = (int)i; i 525 modules/flann/include/opencv2/flann/kdtree_single_index.h for (size_t i = 0; i < dim_; ++i) { i 526 modules/flann/include/opencv2/flann/kdtree_single_index.h if (vec[i] < root_bbox_[i].low) { i 527 modules/flann/include/opencv2/flann/kdtree_single_index.h dists[i] = distance_.accum_dist(vec[i], root_bbox_[i].low, (int)i); i 528 modules/flann/include/opencv2/flann/kdtree_single_index.h distsq += dists[i]; i 530 modules/flann/include/opencv2/flann/kdtree_single_index.h if (vec[i] > root_bbox_[i].high) { i 531 modules/flann/include/opencv2/flann/kdtree_single_index.h dists[i] = distance_.accum_dist(vec[i], root_bbox_[i].high, (int)i); i 532 modules/flann/include/opencv2/flann/kdtree_single_index.h distsq += dists[i]; i 548 modules/flann/include/opencv2/flann/kdtree_single_index.h for (int i=node->left; i<node->right; ++i) { i 549 modules/flann/include/opencv2/flann/kdtree_single_index.h int index = reorder_ ? i : vind_[i]; i 552 modules/flann/include/opencv2/flann/kdtree_single_index.h result_set.addPoint(dist,vind_[i]); i 164 modules/flann/include/opencv2/flann/kmeans_index.h for (int i=1; i<index; ++i) { i 165 modules/flann/include/opencv2/flann/kmeans_index.h DistanceType tmp_dist = distance_(dataset_[centers[i]],dataset_[indices[j]],dataset_.cols); i 211 modules/flann/include/opencv2/flann/kmeans_index.h for (int i = 0; i < n; i++) { i 212 modules/flann/include/opencv2/flann/kmeans_index.h closestDistSq[i] = distance_(dataset_[indices[i]], dataset_[indices[index]], dataset_.cols); i 213 modules/flann/include/opencv2/flann/kmeans_index.h closestDistSq[i] = ensureSquareDistance<Distance>( closestDistSq[i] ); i 214 modules/flann/include/opencv2/flann/kmeans_index.h currentPot += closestDistSq[i]; i 239 modules/flann/include/opencv2/flann/kmeans_index.h for (int i = 0; i < n; i++) { i 240 modules/flann/include/opencv2/flann/kmeans_index.h DistanceType dist = distance_(dataset_[indices[i]], dataset_[indices[index]], dataset_.cols); i 241 modules/flann/include/opencv2/flann/kmeans_index.h newPot += std::min( ensureSquareDistance<Distance>(dist), closestDistSq[i] ); i 254 modules/flann/include/opencv2/flann/kmeans_index.h for (int i = 0; i < n; i++) { i 255 modules/flann/include/opencv2/flann/kmeans_index.h DistanceType dist = distance_(dataset_[indices[i]], dataset_[indices[bestNewIndex]], dataset_.cols); i 256 modules/flann/include/opencv2/flann/kmeans_index.h closestDistSq[i] = std::min( ensureSquareDistance<Distance>(dist), closestDistSq[i] ); i 299 modules/flann/include/opencv2/flann/kmeans_index.h for( int i = begin; i<end; ++i) i 301 modules/flann/include/opencv2/flann/kmeans_index.h DistanceType sq_dist = distance(dataset[indices[i]], dcenters[0], veclen); i 304 modules/flann/include/opencv2/flann/kmeans_index.h DistanceType new_sq_dist = distance(dataset[indices[i]], dcenters[j], veclen); i 313 modules/flann/include/opencv2/flann/kmeans_index.h if (new_centroid != belongs_to[i]) { i 314 modules/flann/include/opencv2/flann/kmeans_index.h count[belongs_to[i]]--; i 316 modules/flann/include/opencv2/flann/kmeans_index.h belongs_to[i] = new_centroid; i 439 modules/flann/include/opencv2/flann/kmeans_index.h for (size_t i=0; i<size_; ++i) { i 440 modules/flann/include/opencv2/flann/kmeans_index.h indices_[i] = int(i); i 544 modules/flann/include/opencv2/flann/kmeans_index.h for (int i=0; i<clusterCount; ++i) { i 545 modules/flann/include/opencv2/flann/kmeans_index.h DistanceType* center = clusters[i]->pivot; i 547 modules/flann/include/opencv2/flann/kmeans_index.h centers[i][j] = center[j]; i 619 modules/flann/include/opencv2/flann/kmeans_index.h for(int i=0; i<branching_; ++i) { i 620 modules/flann/include/opencv2/flann/kmeans_index.h save_tree(stream, node->childs[i]); i 639 modules/flann/include/opencv2/flann/kmeans_index.h for(int i=0; i<branching_; ++i) { i 640 modules/flann/include/opencv2/flann/kmeans_index.h load_tree(stream, node->childs[i]); i 676 modules/flann/include/opencv2/flann/kmeans_index.h for (size_t i=0; i<size_; ++i) { i 677 modules/flann/include/opencv2/flann/kmeans_index.h ElementType* vec = dataset_[indices[i]]; i 690 modules/flann/include/opencv2/flann/kmeans_index.h for (int i=0; i<indices_length; ++i) { i 691 modules/flann/include/opencv2/flann/kmeans_index.h tmp = distance_(mean, dataset_[indices[i]], veclen_); i 741 modules/flann/include/opencv2/flann/kmeans_index.h for (int i=0; i<centers_length; ++i) { i 742 modules/flann/include/opencv2/flann/kmeans_index.h ElementType* vec = dataset_[centers_idx[i]]; i 744 modules/flann/include/opencv2/flann/kmeans_index.h dcenters[i][k] = double(vec[k]); i 751 modules/flann/include/opencv2/flann/kmeans_index.h for (int i=0; i<branching; ++i) { i 752 modules/flann/include/opencv2/flann/kmeans_index.h radiuses[i] = 0; i 753 modules/flann/include/opencv2/flann/kmeans_index.h count[i] = 0; i 759 modules/flann/include/opencv2/flann/kmeans_index.h for (int i=0; i<indices_length; ++i) { i 761 modules/flann/include/opencv2/flann/kmeans_index.h DistanceType sq_dist = distance_(dataset_[indices[i]], dcenters[0], veclen_); i 762 modules/flann/include/opencv2/flann/kmeans_index.h belongs_to[i] = 0; i 764 modules/flann/include/opencv2/flann/kmeans_index.h DistanceType new_sq_dist = distance_(dataset_[indices[i]], dcenters[j], veclen_); i 766 modules/flann/include/opencv2/flann/kmeans_index.h belongs_to[i] = j; i 770 modules/flann/include/opencv2/flann/kmeans_index.h if (sq_dist>radiuses[belongs_to[i]]) { i 771 modules/flann/include/opencv2/flann/kmeans_index.h radiuses[belongs_to[i]] = sq_dist; i 773 modules/flann/include/opencv2/flann/kmeans_index.h count[belongs_to[i]]++; i 783 modules/flann/include/opencv2/flann/kmeans_index.h for (int i=0; i<branching; ++i) { i 784 modules/flann/include/opencv2/flann/kmeans_index.h memset(dcenters[i],0,sizeof(double)*veclen_); i 785 modules/flann/include/opencv2/flann/kmeans_index.h radiuses[i] = 0; i 787 modules/flann/include/opencv2/flann/kmeans_index.h for (int i=0; i<indices_length; ++i) { i 788 modules/flann/include/opencv2/flann/kmeans_index.h ElementType* vec = dataset_[indices[i]]; i 789 modules/flann/include/opencv2/flann/kmeans_index.h double* center = dcenters[belongs_to[i]]; i 794 modules/flann/include/opencv2/flann/kmeans_index.h for (int i=0; i<branching; ++i) { i 795 modules/flann/include/opencv2/flann/kmeans_index.h int cnt = count[i]; i 797 modules/flann/include/opencv2/flann/kmeans_index.h dcenters[i][k] /= cnt; i 806 modules/flann/include/opencv2/flann/kmeans_index.h for (int i=0; i<branching; ++i) { i 809 modules/flann/include/opencv2/flann/kmeans_index.h if (count[i]==0) { i 810 modules/flann/include/opencv2/flann/kmeans_index.h int j = (i+1)%branching; i 819 modules/flann/include/opencv2/flann/kmeans_index.h belongs_to[k] = i; i 821 modules/flann/include/opencv2/flann/kmeans_index.h count[i]++; i 834 modules/flann/include/opencv2/flann/kmeans_index.h for (int i=0; i<branching; ++i) { i 835 modules/flann/include/opencv2/flann/kmeans_index.h centers[i] = new DistanceType[veclen_]; i 838 modules/flann/include/opencv2/flann/kmeans_index.h centers[i][k] = (DistanceType)dcenters[i][k]; i 852 modules/flann/include/opencv2/flann/kmeans_index.h for (int i=0; i<indices_length; ++i) { i 853 modules/flann/include/opencv2/flann/kmeans_index.h if (belongs_to[i]==c) { i 854 modules/flann/include/opencv2/flann/kmeans_index.h DistanceType d = distance_(dataset_[indices[i]], ZeroIterator<ElementType>(), veclen_); i 857 modules/flann/include/opencv2/flann/kmeans_index.h std::swap(indices[i],indices[end]); i 858 modules/flann/include/opencv2/flann/kmeans_index.h std::swap(belongs_to[i],belongs_to[end]); i 915 modules/flann/include/opencv2/flann/kmeans_index.h for (int i=0; i<node->size; ++i) { i 916 modules/flann/include/opencv2/flann/kmeans_index.h int index = node->indices[i]; i 942 modules/flann/include/opencv2/flann/kmeans_index.h for (int i=1; i<branching_; ++i) { i 943 modules/flann/include/opencv2/flann/kmeans_index.h domain_distances[i] = distance_(q, node->childs[i]->pivot, veclen_); i 944 modules/flann/include/opencv2/flann/kmeans_index.h if (domain_distances[i]<domain_distances[best_index]) { i 945 modules/flann/include/opencv2/flann/kmeans_index.h best_index = i; i 950 modules/flann/include/opencv2/flann/kmeans_index.h for (int i=0; i<branching_; ++i) { i 951 modules/flann/include/opencv2/flann/kmeans_index.h if (i != best_index) { i 952 modules/flann/include/opencv2/flann/kmeans_index.h domain_distances[i] -= cb_index_*node->childs[i]->variance; i 958 modules/flann/include/opencv2/flann/kmeans_index.h heap->insert(BranchSt(node->childs[i],domain_distances[i])); i 988 modules/flann/include/opencv2/flann/kmeans_index.h for (int i=0; i<node->size; ++i) { i 989 modules/flann/include/opencv2/flann/kmeans_index.h int index = node->indices[i]; i 999 modules/flann/include/opencv2/flann/kmeans_index.h for (int i=0; i<branching_; ++i) { i 1000 modules/flann/include/opencv2/flann/kmeans_index.h findExactNN(node->childs[sort_indices[i]],result,vec); i 1016 modules/flann/include/opencv2/flann/kmeans_index.h for (int i=0; i<branching_; ++i) { i 1017 modules/flann/include/opencv2/flann/kmeans_index.h DistanceType dist = distance_(q, node->childs[i]->pivot, veclen_); i 1020 modules/flann/include/opencv2/flann/kmeans_index.h while (domain_distances[j]<dist && j<i) j++; i 1021 modules/flann/include/opencv2/flann/kmeans_index.h for (int k=i; k>j; --k) { i 1026 modules/flann/include/opencv2/flann/kmeans_index.h sort_indices[j] = i; i 1041 modules/flann/include/opencv2/flann/kmeans_index.h for (int i=0; i<veclen_; ++i) { i 1042 modules/flann/include/opencv2/flann/kmeans_index.h DistanceType t = c[i]-p[i]; i 1043 modules/flann/include/opencv2/flann/kmeans_index.h sum += t*(q[i]-(c[i]+p[i])/2); i 1071 modules/flann/include/opencv2/flann/kmeans_index.h for (int i=0; i<clusterCount; ++i) { i 1072 modules/flann/include/opencv2/flann/kmeans_index.h if (clusters[i]->childs != NULL) { i 1074 modules/flann/include/opencv2/flann/kmeans_index.h DistanceType variance = meanVariance - clusters[i]->variance*clusters[i]->size; i 1077 modules/flann/include/opencv2/flann/kmeans_index.h variance += clusters[i]->childs[j]->variance*clusters[i]->childs[j]->size; i 1081 modules/flann/include/opencv2/flann/kmeans_index.h splitIndex = i; i 1094 modules/flann/include/opencv2/flann/kmeans_index.h for (int i=1; i<branching_; ++i) { i 1095 modules/flann/include/opencv2/flann/kmeans_index.h clusters[clusterCount++] = toSplit->childs[i]; i 109 modules/flann/include/opencv2/flann/linear_index.h for (size_t i = 0; i < dataset_.rows; ++i, data += dataset_.cols) { i 111 modules/flann/include/opencv2/flann/linear_index.h resultSet.addPoint(dist, (int)i); i 113 modules/flann/include/opencv2/flann/lsh_index.h for (unsigned int i = 0; i < table_number_; ++i) { i 114 modules/flann/include/opencv2/flann/lsh_index.h lsh::LshTable<ElementType>& table = tables_[i]; i 200 modules/flann/include/opencv2/flann/lsh_index.h for (size_t i = 0; i < queries.rows; i++) { i 202 modules/flann/include/opencv2/flann/lsh_index.h std::fill_n(indices[i], knn, -1); i 203 modules/flann/include/opencv2/flann/lsh_index.h std::fill_n(dists[i], knn, std::numeric_limits<DistanceType>::max()); i 204 modules/flann/include/opencv2/flann/lsh_index.h findNeighbors(resultSet, queries[i], params); i 205 modules/flann/include/opencv2/flann/lsh_index.h if (get_param(params,"sorted",true)) resultSet.sortAndCopy(indices[i], dists[i], knn); i 206 modules/flann/include/opencv2/flann/lsh_index.h else resultSet.copy(indices[i], dists[i], knn); i 201 modules/flann/include/opencv2/flann/lsh_table.h for (unsigned int i = 0; i < dataset.rows; ++i) add(i, dataset[i]); i 352 modules/flann/include/opencv2/flann/lsh_table.h for (size_t i = 0; i < feature_size * CHAR_BIT; ++i) indices[i] = i; i 356 modules/flann/include/opencv2/flann/lsh_table.h for (unsigned int i = 0; i < key_size_; ++i) { i 357 modules/flann/include/opencv2/flann/lsh_table.h size_t index = indices[i]; i 78 modules/flann/include/opencv2/flann/nn_index.h for (size_t i = 0; i < queries.rows; i++) { i 79 modules/flann/include/opencv2/flann/nn_index.h resultSet.init(indices[i], dists[i]); i 80 modules/flann/include/opencv2/flann/nn_index.h findNeighbors(resultSet, queries[i], params); i 84 modules/flann/include/opencv2/flann/nn_index.h for (size_t i = 0; i < queries.rows; i++) { i 86 modules/flann/include/opencv2/flann/nn_index.h findNeighbors(resultSet, queries[i], params); i 87 modules/flann/include/opencv2/flann/nn_index.h if (get_param(params,"sorted",true)) resultSet.sortAndCopy(indices[i], dists[i], knn); i 88 modules/flann/include/opencv2/flann/nn_index.h else resultSet.copy(indices[i], dists[i], knn); i 107 modules/flann/include/opencv2/flann/random.h for (int i = 0; i < size_; ++i) vals_[i] = i; i 121 modules/flann/include/opencv2/flann/result_set.h int i; i 122 modules/flann/include/opencv2/flann/result_set.h for (i=count; i>0; --i) { i 124 modules/flann/include/opencv2/flann/result_set.h if ( (dists[i-1]>dist) || ((dist==dists[i-1])&&(indices[i-1]>index)) ) i 126 modules/flann/include/opencv2/flann/result_set.h if (dists[i-1]>dist) i 129 modules/flann/include/opencv2/flann/result_set.h if (i<capacity) { i 130 modules/flann/include/opencv2/flann/result_set.h dists[i] = dists[i-1]; i 131 modules/flann/include/opencv2/flann/result_set.h indices[i] = indices[i-1]; i 137 modules/flann/include/opencv2/flann/result_set.h dists[i] = dist; i 138 modules/flann/include/opencv2/flann/result_set.h indices[i] = index; i 188 modules/flann/include/opencv2/flann/result_set.h int i; i 189 modules/flann/include/opencv2/flann/result_set.h for (i = count; i > 0; --i) { i 191 modules/flann/include/opencv2/flann/result_set.h if ( (dists[i-1]<=dist) && ((dist!=dists[i-1])||(indices[i-1]<=index)) ) i 193 modules/flann/include/opencv2/flann/result_set.h if (dists[i-1]<=dist) i 197 modules/flann/include/opencv2/flann/result_set.h int j = i - 1; i 209 modules/flann/include/opencv2/flann/result_set.h for (int j = count-1; j > i; --j) { i 213 modules/flann/include/opencv2/flann/result_set.h dists[i] = dist; i 214 modules/flann/include/opencv2/flann/result_set.h indices[i] = index; i 337 modules/flann/include/opencv2/flann/result_set.h int i = 0; i 339 modules/flann/include/opencv2/flann/result_set.h dist_indices_.end(); (dist_index != dist_index_end) && (i < n_neighbors); ++dist_index, ++indices, ++dist, ++i) { i 45 modules/flann/include/opencv2/flann/sampling.h for (long i=0; i<size; ++i) { i 46 modules/flann/include/opencv2/flann/sampling.h long r = rand_int((int)(srcMatrix.rows-i)); i 47 modules/flann/include/opencv2/flann/sampling.h dest = newSet[i]; i 51 modules/flann/include/opencv2/flann/sampling.h src = srcMatrix[srcMatrix.rows-i-1]; i 69 modules/flann/include/opencv2/flann/sampling.h for (size_t i=0; i<size; ++i) { i 71 modules/flann/include/opencv2/flann/sampling.h dest = newSet[i]; i 44 modules/flann/include/opencv2/flann/simplex_downhill.h for (int i=0; i<n; ++i) { i 45 modules/flann/include/opencv2/flann/simplex_downhill.h points[pos*n+i] = point[i]; i 52 modules/flann/include/opencv2/flann/simplex_downhill.h for (int i=0; i<n; ++i) { i 53 modules/flann/include/opencv2/flann/simplex_downhill.h swap(points[j*n+i],points[(j-1)*n+i]); i 87 modules/flann/include/opencv2/flann/simplex_downhill.h for (int i=0; i<n+1; ++i) { i 88 modules/flann/include/opencv2/flann/simplex_downhill.h float val = func(points+i*n); i 89 modules/flann/include/opencv2/flann/simplex_downhill.h addValue(i, val, vals, points+i*n, points, n); i 101 modules/flann/include/opencv2/flann/simplex_downhill.h for (int i=0; i<n; ++i) { i 102 modules/flann/include/opencv2/flann/simplex_downhill.h p_o[i] += points[j*n+i]; i 105 modules/flann/include/opencv2/flann/simplex_downhill.h for (int i=0; i<n; ++i) { i 106 modules/flann/include/opencv2/flann/simplex_downhill.h p_o[i] /= n; i 110 modules/flann/include/opencv2/flann/simplex_downhill.h for (int i=0; i<n; ++i) { i 111 modules/flann/include/opencv2/flann/simplex_downhill.h if (p_o[i] != points[nn+i]) { i 118 modules/flann/include/opencv2/flann/simplex_downhill.h for (int i=0; i<n; ++i) { i 119 modules/flann/include/opencv2/flann/simplex_downhill.h p_r[i] = p_o[i] + alpha*(p_o[i]-points[nn+i]); i 135 modules/flann/include/opencv2/flann/simplex_downhill.h for (int i=0; i<n; ++i) { i 136 modules/flann/include/opencv2/flann/simplex_downhill.h p_e[i] = 2*p_r[i]-p_o[i]; i 151 modules/flann/include/opencv2/flann/simplex_downhill.h for (int i=0; i<n; ++i) { i 152 modules/flann/include/opencv2/flann/simplex_downhill.h p_e[i] = (p_o[i]+points[nn+i])/2; i 165 modules/flann/include/opencv2/flann/simplex_downhill.h for (int i=0; i<n; ++i) { i 166 modules/flann/include/opencv2/flann/simplex_downhill.h points[j*n+i] = (points[j*n+i]+points[i])/2; i 307 modules/hal/include/opencv2/hal/defs.h int i; i 315 modules/hal/include/opencv2/hal/defs.h int64 i; i 406 modules/hal/include/opencv2/hal/defs.h int i = _mm_cvtsd_si32(t); i 407 modules/hal/include/opencv2/hal/defs.h return i - _mm_movemask_pd(_mm_cmplt_sd(t, _mm_cvtsi32_sd(t,i))); i 409 modules/hal/include/opencv2/hal/defs.h int i = (int)value; i 410 modules/hal/include/opencv2/hal/defs.h return i - (i > value); i 412 modules/hal/include/opencv2/hal/defs.h int i = cvRound(value); i 413 modules/hal/include/opencv2/hal/defs.h float diff = (float)(value - i); i 414 modules/hal/include/opencv2/hal/defs.h return i - (diff < 0); i 429 modules/hal/include/opencv2/hal/defs.h int i = _mm_cvtsd_si32(t); i 430 modules/hal/include/opencv2/hal/defs.h return i + _mm_movemask_pd(_mm_cmplt_sd(_mm_cvtsi32_sd(t,i), t)); i 432 modules/hal/include/opencv2/hal/defs.h int i = (int)value; i 433 modules/hal/include/opencv2/hal/defs.h return i + (i < value); i 435 modules/hal/include/opencv2/hal/defs.h int i = cvRound(value); i 436 modules/hal/include/opencv2/hal/defs.h float diff = (float)(i - value); i 437 modules/hal/include/opencv2/hal/defs.h return i + (diff < 0); i 513 modules/hal/include/opencv2/hal/defs.h int i = _mm_cvtss_si32(t); i 514 modules/hal/include/opencv2/hal/defs.h return i - _mm_movemask_ps(_mm_cmplt_ss(t, _mm_cvtsi32_ss(t,i))); i 516 modules/hal/include/opencv2/hal/defs.h int i = (int)value; i 517 modules/hal/include/opencv2/hal/defs.h return i - (i > value); i 519 modules/hal/include/opencv2/hal/defs.h int i = cvRound(value); i 520 modules/hal/include/opencv2/hal/defs.h float diff = (float)(value - i); i 521 modules/hal/include/opencv2/hal/defs.h return i - (diff < 0); i 536 modules/hal/include/opencv2/hal/defs.h int i = _mm_cvtss_si32(t); i 537 modules/hal/include/opencv2/hal/defs.h return i + _mm_movemask_ps(_mm_cmplt_ss(_mm_cvtsi32_ss(t,i), t)); i 539 modules/hal/include/opencv2/hal/defs.h int i = (int)value; i 540 modules/hal/include/opencv2/hal/defs.h return i + (i < value); i 542 modules/hal/include/opencv2/hal/defs.h int i = cvRound(value); i 543 modules/hal/include/opencv2/hal/defs.h float diff = (float)(i - value); i 544 modules/hal/include/opencv2/hal/defs.h return i + (diff < 0); i 225 modules/hal/include/opencv2/hal/intrin.hpp return u.i; i 236 modules/hal/include/opencv2/hal/intrin.hpp u.i = x; i 252 modules/hal/include/opencv2/hal/intrin.hpp return u.i; i 263 modules/hal/include/opencv2/hal/intrin.hpp u.i = x; i 58 modules/hal/include/opencv2/hal/intrin_cpp.hpp explicit v_reg(const _Tp* ptr) { for( int i = 0; i < n; i++ ) s[i] = ptr[i]; } i 81 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) i 82 modules/hal/include/opencv2/hal/intrin_cpp.hpp s[i] = r.s[i]; i 85 modules/hal/include/opencv2/hal/intrin_cpp.hpp _Tp get(const int i) const { return s[i]; } i 90 modules/hal/include/opencv2/hal/intrin_cpp.hpp int i; i 91 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( i = 0; i < n/2; i++ ) i 93 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = s[i+(n/2)]; i 94 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i+(n/2)] = 0; i 102 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) i 103 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = (_Tp)0; i 110 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) i 111 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = s; i 131 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) \ i 132 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = saturate_cast<_Tp>(a.s[i] bin_op b.s[i]); \ i 138 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) \ i 139 modules/hal/include/opencv2/hal/intrin_cpp.hpp a.s[i] = saturate_cast<_Tp>(a.s[i] bin_op b.s[i]); \ i 154 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) \ i 155 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = V_TypeTraits<_Tp>::reinterpret_from_int((itype)(V_TypeTraits<_Tp>::reinterpret_int(a.s[i]) bit_op \ i 156 modules/hal/include/opencv2/hal/intrin_cpp.hpp V_TypeTraits<_Tp>::reinterpret_int(b.s[i]))); \ i 163 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) \ i 164 modules/hal/include/opencv2/hal/intrin_cpp.hpp a.s[i] = V_TypeTraits<_Tp>::reinterpret_from_int((itype)(V_TypeTraits<_Tp>::reinterpret_int(a.s[i]) bit_op \ i 165 modules/hal/include/opencv2/hal/intrin_cpp.hpp V_TypeTraits<_Tp>::reinterpret_int(b.s[i]))); \ i 176 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) i 177 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = V_TypeTraits<_Tp>::reinterpret_from_int(~V_TypeTraits<_Tp>::reinterpret_int(a.s[i])); i 185 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) \ i 186 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = cfunc(a.s[i]); \ i 206 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) \ i 207 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = cfunc(a.s[i], b.s[i]); \ i 213 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 1; i < n; i++ ) \ i 214 modules/hal/include/opencv2/hal/intrin_cpp.hpp c = cfunc(c, a.s[i]); \ i 225 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) i 227 modules/hal/include/opencv2/hal/intrin_cpp.hpp minval.s[i] = std::min(a.s[i], b.s[i]); i 228 modules/hal/include/opencv2/hal/intrin_cpp.hpp maxval.s[i] = std::max(a.s[i], b.s[i]); i 239 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) \ i 240 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = V_TypeTraits<_Tp>::reinterpret_from_int((itype)-(int)(a.s[i] cmp_op b.s[i])); \ i 257 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) \ i 258 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = cast_op(a.s[i] bin_op b.s[i]); \ i 270 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) i 271 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = 1.f/std::sqrt(a.s[i]); i 279 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) i 280 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = std::sqrt(a.s[i]*a.s[i] + b.s[i]*b.s[i]); i 289 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) i 290 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = a.s[i]*a.s[i] + b.s[i]*b.s[i]; i 299 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) i 300 modules/hal/include/opencv2/hal/intrin_cpp.hpp d.s[i] = a.s[i]*b.s[i] + c.s[i]; i 309 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < (n/2); i++ ) i 310 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = (w_type)a.s[i*2]*b.s[i*2] + (w_type)a.s[i*2+1]*b.s[i*2+1]; i 319 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < (n/2); i++ ) i 321 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = (w_type)a.s[i]*b.s[i]*2; i 322 modules/hal/include/opencv2/hal/intrin_cpp.hpp d.s[i] = (w_type)a.s[i+(n/2)]*b.s[i+(n/2)]; i 330 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < (n/2); i++ ) i 332 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = (w_type)a.s[i*2] + a.s[i*2+1]; i 340 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) \ i 341 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = (_Tp)(a.s[i] shift_op imm); \ i 351 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 1; i < n; i++ ) i 352 modules/hal/include/opencv2/hal/intrin_cpp.hpp c += a.s[i]; i 359 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) i 360 modules/hal/include/opencv2/hal/intrin_cpp.hpp mask |= (V_TypeTraits<_Tp>::reinterpret_int(a.s[i]) < 0) << i; i 366 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) i 367 modules/hal/include/opencv2/hal/intrin_cpp.hpp if( V_TypeTraits<_Tp>::reinterpret_int(a.s[i]) >= 0 ) i 374 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) i 375 modules/hal/include/opencv2/hal/intrin_cpp.hpp if( V_TypeTraits<_Tp>::reinterpret_int(a.s[i]) < 0 ) i 384 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) i 385 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = V_TypeTraits<_Tp>::reinterpret_int(mask.s[i]) < 0 ? b.s[i] : a.s[i]; i 393 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < (n/2); i++ ) i 395 modules/hal/include/opencv2/hal/intrin_cpp.hpp b0.s[i] = a.s[i]; i 396 modules/hal/include/opencv2/hal/intrin_cpp.hpp b1.s[i] = a.s[i+(n/2)]; i 404 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) i 405 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = V_TypeTraits<_Tp>::reinterpret_int(a.s[i]); i 413 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) i 414 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = V_TypeTraits<_Tp>::reinterpret_uint(a.s[i]); i 421 modules/hal/include/opencv2/hal/intrin_cpp.hpp int i; i 422 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( i = 0; i < n/2; i++ ) i 424 modules/hal/include/opencv2/hal/intrin_cpp.hpp b0.s[i*2] = a0.s[i]; i 425 modules/hal/include/opencv2/hal/intrin_cpp.hpp b0.s[i*2+1] = a1.s[i]; i 427 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( ; i < n; i++ ) i 429 modules/hal/include/opencv2/hal/intrin_cpp.hpp b1.s[i*2-n] = a0.s[i]; i 430 modules/hal/include/opencv2/hal/intrin_cpp.hpp b1.s[i*2-n+1] = a1.s[i]; i 447 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n/2; i++ ) i 449 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = loptr[i]; i 450 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i+n/2] = hiptr[i]; i 459 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) i 461 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = ptr[i]; i 471 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) i 473 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = ptr[i]; i 481 modules/hal/include/opencv2/hal/intrin_cpp.hpp int i, i3; i 482 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( i = i3 = 0; i < n; i++, i3 += 3 ) i 484 modules/hal/include/opencv2/hal/intrin_cpp.hpp a.s[i] = ptr[i3]; i 485 modules/hal/include/opencv2/hal/intrin_cpp.hpp b.s[i] = ptr[i3+1]; i 486 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = ptr[i3+2]; i 495 modules/hal/include/opencv2/hal/intrin_cpp.hpp int i, i4; i 496 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( i = i4 = 0; i < n; i++, i4 += 4 ) i 498 modules/hal/include/opencv2/hal/intrin_cpp.hpp a.s[i] = ptr[i4]; i 499 modules/hal/include/opencv2/hal/intrin_cpp.hpp b.s[i] = ptr[i4+1]; i 500 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = ptr[i4+2]; i 501 modules/hal/include/opencv2/hal/intrin_cpp.hpp d.s[i] = ptr[i4+3]; i 509 modules/hal/include/opencv2/hal/intrin_cpp.hpp int i, i3; i 510 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( i = i3 = 0; i < n; i++, i3 += 3 ) i 512 modules/hal/include/opencv2/hal/intrin_cpp.hpp ptr[i3] = a.s[i]; i 513 modules/hal/include/opencv2/hal/intrin_cpp.hpp ptr[i3+1] = b.s[i]; i 514 modules/hal/include/opencv2/hal/intrin_cpp.hpp ptr[i3+2] = c.s[i]; i 522 modules/hal/include/opencv2/hal/intrin_cpp.hpp int i, i4; i 523 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( i = i4 = 0; i < n; i++, i4 += 4 ) i 525 modules/hal/include/opencv2/hal/intrin_cpp.hpp ptr[i4] = a.s[i]; i 526 modules/hal/include/opencv2/hal/intrin_cpp.hpp ptr[i4+1] = b.s[i]; i 527 modules/hal/include/opencv2/hal/intrin_cpp.hpp ptr[i4+2] = c.s[i]; i 528 modules/hal/include/opencv2/hal/intrin_cpp.hpp ptr[i4+3] = d.s[i]; i 535 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) i 536 modules/hal/include/opencv2/hal/intrin_cpp.hpp ptr[i] = a.s[i]; i 542 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < (n/2); i++ ) i 543 modules/hal/include/opencv2/hal/intrin_cpp.hpp ptr[i] = a.s[i]; i 549 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < (n/2); i++ ) i 550 modules/hal/include/opencv2/hal/intrin_cpp.hpp ptr[i] = a.s[i+(n/2)]; i 556 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) i 557 modules/hal/include/opencv2/hal/intrin_cpp.hpp ptr[i] = a.s[i]; i 564 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < (n/2); i++ ) i 566 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = a.s[i]; i 567 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i+(n/2)] = b.s[i]; i 575 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < (n/2); i++ ) i 577 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = a.s[i+(n/2)]; i 578 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i+(n/2)] = b.s[i+(n/2)]; i 586 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < (n/2); i++ ) i 588 modules/hal/include/opencv2/hal/intrin_cpp.hpp low.s[i] = a.s[i]; i 589 modules/hal/include/opencv2/hal/intrin_cpp.hpp low.s[i+(n/2)] = b.s[i]; i 590 modules/hal/include/opencv2/hal/intrin_cpp.hpp high.s[i] = a.s[i+(n/2)]; i 591 modules/hal/include/opencv2/hal/intrin_cpp.hpp high.s[i+(n/2)] = b.s[i+(n/2)]; i 598 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) i 599 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = cvRound(a.s[i]); i 606 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) i 607 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = cvFloor(a.s[i]); i 614 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) i 615 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = cvCeil(a.s[i]); i 622 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) i 623 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = (int)(a.s[i]); i 630 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) i 632 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = cvRound(a.s[i]); i 633 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i+n] = 0; i 641 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) i 643 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = cvFloor(a.s[i]); i 644 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i+n] = 0; i 652 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) i 654 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = cvCeil(a.s[i]); i 655 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i+n] = 0; i 663 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) i 665 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = cvCeil(a.s[i]); i 666 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i+n] = 0; i 674 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) i 675 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = (float)a.s[i]; i 682 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) i 683 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = (double)a.s[i]; i 690 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < n; i++ ) i 691 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = (double)a.s[i]; i 745 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < _Tpvec::nlanes; i++ ) \ i 746 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = (_Tp)((a.s[i] + ((_Tp)1 << (n - 1))) >> n); \ i 762 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < _Tpvec::nlanes; i++ ) \ i 764 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = saturate_cast<_Tpn>(a.s[i]); \ i 765 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i+_Tpvec::nlanes] = saturate_cast<_Tpn>(b.s[i]); \ i 772 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < _Tpvec::nlanes; i++ ) \ i 774 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i] = saturate_cast<_Tpn>((a.s[i] + ((_Tp)1 << (n - 1))) >> n); \ i 775 modules/hal/include/opencv2/hal/intrin_cpp.hpp c.s[i+_Tpvec::nlanes] = saturate_cast<_Tpn>((b.s[i] + ((_Tp)1 << (n - 1))) >> n); \ i 781 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < _Tpvec::nlanes; i++ ) \ i 782 modules/hal/include/opencv2/hal/intrin_cpp.hpp ptr[i] = saturate_cast<_Tpn>(a.s[i]); \ i 786 modules/hal/include/opencv2/hal/intrin_cpp.hpp for( int i = 0; i < _Tpvec::nlanes; i++ ) \ i 787 modules/hal/include/opencv2/hal/intrin_cpp.hpp ptr[i] = saturate_cast<_Tpn>((a.s[i] + ((_Tp)1 << (n - 1))) >> n); \ i 67 modules/hal/src/mathfuncs.cpp int i = 0; i 76 modules/hal/src/mathfuncs.cpp Cv32suf iabsmask; iabsmask.i = 0x7fffffff; i 83 modules/hal/src/mathfuncs.cpp for( ; i <= len - 4; i += 4 ) i 85 modules/hal/src/mathfuncs.cpp __m128 x = _mm_loadu_ps(X + i), y = _mm_loadu_ps(Y + i); i 108 modules/hal/src/mathfuncs.cpp _mm_storeu_ps(angle + i, a); i 117 modules/hal/src/mathfuncs.cpp for( ; i <= len - 4; i += 4 ) i 119 modules/hal/src/mathfuncs.cpp float32x4_t x = vld1q_f32(X + i), y = vld1q_f32(Y + i); i 133 modules/hal/src/mathfuncs.cpp vst1q_f32(angle + i, vmulq_f32(a, scale4)); i 137 modules/hal/src/mathfuncs.cpp for( ; i < len; i++ ) i 139 modules/hal/src/mathfuncs.cpp float x = X[i], y = Y[i]; i 158 modules/hal/src/mathfuncs.cpp angle[i] = (float)(a*scale); i 178 modules/hal/src/mathfuncs.cpp int i = 0; i 181 modules/hal/src/mathfuncs.cpp for( ; i <= len - 8; i += 8 ) i 183 modules/hal/src/mathfuncs.cpp v_float32x4 x0 = v_load(x + i), x1 = v_load(x + i + 4); i 184 modules/hal/src/mathfuncs.cpp v_float32x4 y0 = v_load(y + i), y1 = v_load(y + i + 4); i 187 modules/hal/src/mathfuncs.cpp v_store(mag + i, x0); i 188 modules/hal/src/mathfuncs.cpp v_store(mag + i + 4, x1); i 192 modules/hal/src/mathfuncs.cpp for( ; i < len; i++ ) i 194 modules/hal/src/mathfuncs.cpp float x0 = x[i], y0 = y[i]; i 195 modules/hal/src/mathfuncs.cpp mag[i] = std::sqrt(x0*x0 + y0*y0); i 214 modules/hal/src/mathfuncs.cpp int i = 0; i 217 modules/hal/src/mathfuncs.cpp for( ; i <= len - 4; i += 4 ) i 219 modules/hal/src/mathfuncs.cpp v_float64x2 x0 = v_load(x + i), x1 = v_load(x + i + 2); i 220 modules/hal/src/mathfuncs.cpp v_float64x2 y0 = v_load(y + i), y1 = v_load(y + i + 2); i 223 modules/hal/src/mathfuncs.cpp v_store(mag + i, x0); i 224 modules/hal/src/mathfuncs.cpp v_store(mag + i + 2, x1); i 228 modules/hal/src/mathfuncs.cpp for( ; i < len; i++ ) i 230 modules/hal/src/mathfuncs.cpp double x0 = x[i], y0 = y[i]; i 231 modules/hal/src/mathfuncs.cpp mag[i] = std::sqrt(x0*x0 + y0*y0); i 250 modules/hal/src/mathfuncs.cpp int i = 0; i 253 modules/hal/src/mathfuncs.cpp for( ; i <= len - 8; i += 8 ) i 255 modules/hal/src/mathfuncs.cpp v_float32x4 t0 = v_load(src + i), t1 = v_load(src + i + 4); i 258 modules/hal/src/mathfuncs.cpp v_store(dst + i, t0); v_store(dst + i + 4, t1); i 262 modules/hal/src/mathfuncs.cpp for( ; i < len; i++ ) i 263 modules/hal/src/mathfuncs.cpp dst[i] = 1/std::sqrt(src[i]); i 269 modules/hal/src/mathfuncs.cpp int i = 0; i 273 modules/hal/src/mathfuncs.cpp for ( ; i <= len - 2; i += 2) i 274 modules/hal/src/mathfuncs.cpp _mm_storeu_pd(dst + i, _mm_div_pd(v_1, _mm_sqrt_pd(_mm_loadu_pd(src + i)))); i 277 modules/hal/src/mathfuncs.cpp for( ; i < len; i++ ) i 278 modules/hal/src/mathfuncs.cpp dst[i] = 1/std::sqrt(src[i]); i 296 modules/hal/src/mathfuncs.cpp int i = 0; i 299 modules/hal/src/mathfuncs.cpp for( ; i <= len - 8; i += 8 ) i 301 modules/hal/src/mathfuncs.cpp v_float32x4 t0 = v_load(src + i), t1 = v_load(src + i + 4); i 304 modules/hal/src/mathfuncs.cpp v_store(dst + i, t0); v_store(dst + i + 4, t1); i 308 modules/hal/src/mathfuncs.cpp for( ; i < len; i++ ) i 309 modules/hal/src/mathfuncs.cpp dst[i] = std::sqrt(src[i]); i 327 modules/hal/src/mathfuncs.cpp int i = 0; i 330 modules/hal/src/mathfuncs.cpp for( ; i <= len - 4; i += 4 ) i 332 modules/hal/src/mathfuncs.cpp v_float64x2 t0 = v_load(src + i), t1 = v_load(src + i + 2); i 335 modules/hal/src/mathfuncs.cpp v_store(dst + i, t0); v_store(dst + i + 2, t1); i 339 modules/hal/src/mathfuncs.cpp for( ; i < len; i++ ) i 340 modules/hal/src/mathfuncs.cpp dst[i] = std::sqrt(src[i]); i 355 modules/hal/src/mathfuncs.cpp } i; i 456 modules/hal/src/mathfuncs.cpp int i = 0; i 476 modules/hal/src/mathfuncs.cpp for( ; i <= n - 8; i += 8 ) i 479 modules/hal/src/mathfuncs.cpp xf0 = _mm_loadu_ps(&x[i].f); i 480 modules/hal/src/mathfuncs.cpp xf1 = _mm_loadu_ps(&x[i+4].f); i 553 modules/hal/src/mathfuncs.cpp _mm_store_ps(y + i, zf0); i 554 modules/hal/src/mathfuncs.cpp _mm_store_ps(y + i + 4, zf1); i 558 modules/hal/src/mathfuncs.cpp _mm_storeu_ps(y + i, zf0); i 559 modules/hal/src/mathfuncs.cpp _mm_storeu_ps(y + i + 4, zf1); i 565 modules/hal/src/mathfuncs.cpp for( ; i <= n - 4; i += 4 ) i 567 modules/hal/src/mathfuncs.cpp double x0 = x[i].f * exp_prescale; i 568 modules/hal/src/mathfuncs.cpp double x1 = x[i + 1].f * exp_prescale; i 569 modules/hal/src/mathfuncs.cpp double x2 = x[i + 2].f * exp_prescale; i 570 modules/hal/src/mathfuncs.cpp double x3 = x[i + 3].f * exp_prescale; i 573 modules/hal/src/mathfuncs.cpp if( ((x[i].i >> 23) & 255) > 127 + 10 ) i 574 modules/hal/src/mathfuncs.cpp x0 = x[i].i < 0 ? -exp_max_val : exp_max_val; i 576 modules/hal/src/mathfuncs.cpp if( ((x[i+1].i >> 23) & 255) > 127 + 10 ) i 577 modules/hal/src/mathfuncs.cpp x1 = x[i+1].i < 0 ? -exp_max_val : exp_max_val; i 579 modules/hal/src/mathfuncs.cpp if( ((x[i+2].i >> 23) & 255) > 127 + 10 ) i 580 modules/hal/src/mathfuncs.cpp x2 = x[i+2].i < 0 ? -exp_max_val : exp_max_val; i 582 modules/hal/src/mathfuncs.cpp if( ((x[i+3].i >> 23) & 255) > 127 + 10 ) i 583 modules/hal/src/mathfuncs.cpp x3 = x[i+3].i < 0 ? -exp_max_val : exp_max_val; i 597 modules/hal/src/mathfuncs.cpp buf[0].i = t << 23; i 601 modules/hal/src/mathfuncs.cpp buf[1].i = t << 23; i 605 modules/hal/src/mathfuncs.cpp buf[2].i = t << 23; i 609 modules/hal/src/mathfuncs.cpp buf[3].i = t << 23; i 614 modules/hal/src/mathfuncs.cpp y[i] = (float)x0; i 615 modules/hal/src/mathfuncs.cpp y[i + 1] = (float)x1; i 620 modules/hal/src/mathfuncs.cpp y[i + 2] = (float)x2; i 621 modules/hal/src/mathfuncs.cpp y[i + 3] = (float)x3; i 624 modules/hal/src/mathfuncs.cpp for( ; i < n; i++ ) i 626 modules/hal/src/mathfuncs.cpp double x0 = x[i].f * exp_prescale; i 629 modules/hal/src/mathfuncs.cpp if( ((x[i].i >> 23) & 255) > 127 + 10 ) i 630 modules/hal/src/mathfuncs.cpp x0 = x[i].i < 0 ? -exp_max_val : exp_max_val; i 636 modules/hal/src/mathfuncs.cpp buf[0].i = t << 23; i 639 modules/hal/src/mathfuncs.cpp y[i] = (float)(buf[0].f * expTab[val0 & EXPTAB_MASK] * EXPPOLY(x0)); i 656 modules/hal/src/mathfuncs.cpp int i = 0; i 675 modules/hal/src/mathfuncs.cpp for( ; i <= n - 4; i += 4 ) i 677 modules/hal/src/mathfuncs.cpp __m128d xf0 = _mm_loadu_pd(&x[i].f), xf1 = _mm_loadu_pd(&x[i+2].f); i 723 modules/hal/src/mathfuncs.cpp _mm_storeu_pd(y + i, zf0); i 724 modules/hal/src/mathfuncs.cpp _mm_storeu_pd(y + i + 2, zf1); i 727 modules/hal/src/mathfuncs.cpp for( ; i <= n - 4; i += 4 ) i 729 modules/hal/src/mathfuncs.cpp double x0 = x[i].f * exp_prescale; i 730 modules/hal/src/mathfuncs.cpp double x1 = x[i + 1].f * exp_prescale; i 731 modules/hal/src/mathfuncs.cpp double x2 = x[i + 2].f * exp_prescale; i 732 modules/hal/src/mathfuncs.cpp double x3 = x[i + 3].f * exp_prescale; i 737 modules/hal/src/mathfuncs.cpp t = (int)(x[i].i >> 52); i 741 modules/hal/src/mathfuncs.cpp t = (int)(x[i+1].i >> 52); i 745 modules/hal/src/mathfuncs.cpp t = (int)(x[i+2].i >> 52); i 749 modules/hal/src/mathfuncs.cpp t = (int)(x[i+3].i >> 52); i 765 modules/hal/src/mathfuncs.cpp buf[0].i = (int64)t << 52; i 769 modules/hal/src/mathfuncs.cpp buf[1].i = (int64)t << 52; i 773 modules/hal/src/mathfuncs.cpp buf[2].i = (int64)t << 52; i 777 modules/hal/src/mathfuncs.cpp buf[3].i = (int64)t << 52; i 782 modules/hal/src/mathfuncs.cpp y[i] = y0; i 783 modules/hal/src/mathfuncs.cpp y[i + 1] = y1; i 788 modules/hal/src/mathfuncs.cpp y[i + 2] = y2; i 789 modules/hal/src/mathfuncs.cpp y[i + 3] = y3; i 792 modules/hal/src/mathfuncs.cpp for( ; i < n; i++ ) i 794 modules/hal/src/mathfuncs.cpp double x0 = x[i].f * exp_prescale; i 797 modules/hal/src/mathfuncs.cpp t = (int)(x[i].i >> 52); i 805 modules/hal/src/mathfuncs.cpp buf[0].i = (int64)t << 52; i 808 modules/hal/src/mathfuncs.cpp y[i] = buf[0].f * expTab[val0 & EXPTAB_MASK] * EXPPOLY( x0 ); i 1098 modules/hal/src/mathfuncs.cpp int i = 0; i 1113 modules/hal/src/mathfuncs.cpp for( ; i <= n - 4; i += 4 ) i 1115 modules/hal/src/mathfuncs.cpp __m128i h0 = _mm_loadu_si128((const __m128i*)(x + i)); i 1150 modules/hal/src/mathfuncs.cpp _mm_storeu_ps(y + i, yf0); i 1153 modules/hal/src/mathfuncs.cpp for( ; i <= n - 4; i += 4 ) i 1159 modules/hal/src/mathfuncs.cpp h0 = x[i]; i 1160 modules/hal/src/mathfuncs.cpp h1 = x[i+1]; i 1161 modules/hal/src/mathfuncs.cpp buf[0].i = (h0 & LOGTAB_MASK2_32F) | (127 << 23); i 1162 modules/hal/src/mathfuncs.cpp buf[1].i = (h1 & LOGTAB_MASK2_32F) | (127 << 23); i 1173 modules/hal/src/mathfuncs.cpp h2 = x[i+2]; i 1174 modules/hal/src/mathfuncs.cpp h3 = x[i+3]; i 1179 modules/hal/src/mathfuncs.cpp buf[2].i = (h2 & LOGTAB_MASK2_32F) | (127 << 23); i 1180 modules/hal/src/mathfuncs.cpp buf[3].i = (h3 & LOGTAB_MASK2_32F) | (127 << 23); i 1199 modules/hal/src/mathfuncs.cpp y[i] = (float) y0; i 1200 modules/hal/src/mathfuncs.cpp y[i + 1] = (float) y1; i 1207 modules/hal/src/mathfuncs.cpp y[i + 2] = (float) y2; i 1208 modules/hal/src/mathfuncs.cpp y[i + 3] = (float) y3; i 1211 modules/hal/src/mathfuncs.cpp for( ; i < n; i++ ) i 1213 modules/hal/src/mathfuncs.cpp int h0 = x[i]; i 1219 modules/hal/src/mathfuncs.cpp buf[0].i = (h0 & LOGTAB_MASK2_32F) | (127 << 23); i 1227 modules/hal/src/mathfuncs.cpp y[i] = (float)y0; i 1249 modules/hal/src/mathfuncs.cpp int i = 0; i 1272 modules/hal/src/mathfuncs.cpp for( ; i <= n - 4; i += 4 ) i 1274 modules/hal/src/mathfuncs.cpp __m128i h0 = _mm_loadu_si128((const __m128i*)(x + i)); i 1275 modules/hal/src/mathfuncs.cpp __m128i h1 = _mm_loadu_si128((const __m128i*)(x + i + 2)); i 1330 modules/hal/src/mathfuncs.cpp _mm_storeu_pd(y + i, yd0); i 1331 modules/hal/src/mathfuncs.cpp _mm_storeu_pd(y + i + 2, yd1); i 1334 modules/hal/src/mathfuncs.cpp for( ; i <= n - 4; i += 4 ) i 1341 modules/hal/src/mathfuncs.cpp h0 = X[i].i.lo; i 1342 modules/hal/src/mathfuncs.cpp h1 = X[i + 1].i.lo; i 1343 modules/hal/src/mathfuncs.cpp buf[0].i.lo = h0; i 1344 modules/hal/src/mathfuncs.cpp buf[1].i.lo = h1; i 1346 modules/hal/src/mathfuncs.cpp h0 = X[i].i.hi; i 1347 modules/hal/src/mathfuncs.cpp h1 = X[i + 1].i.hi; i 1348 modules/hal/src/mathfuncs.cpp buf[0].i.hi = (h0 & LOGTAB_MASK2) | (1023 << 20); i 1349 modules/hal/src/mathfuncs.cpp buf[1].i.hi = (h1 & LOGTAB_MASK2) | (1023 << 20); i 1354 modules/hal/src/mathfuncs.cpp h2 = X[i + 2].i.lo; i 1355 modules/hal/src/mathfuncs.cpp h3 = X[i + 3].i.lo; i 1356 modules/hal/src/mathfuncs.cpp buf[2].i.lo = h2; i 1357 modules/hal/src/mathfuncs.cpp buf[3].i.lo = h3; i 1365 modules/hal/src/mathfuncs.cpp h2 = X[i + 2].i.hi; i 1366 modules/hal/src/mathfuncs.cpp h3 = X[i + 3].i.hi; i 1371 modules/hal/src/mathfuncs.cpp buf[2].i.hi = (h2 & LOGTAB_MASK2) | (1023 << 20); i 1372 modules/hal/src/mathfuncs.cpp buf[3].i.hi = (h3 & LOGTAB_MASK2) | (1023 << 20); i 1389 modules/hal/src/mathfuncs.cpp y[i] = y0; i 1390 modules/hal/src/mathfuncs.cpp y[i + 1] = y1; i 1395 modules/hal/src/mathfuncs.cpp y[i + 2] = y2; i 1396 modules/hal/src/mathfuncs.cpp y[i + 3] = y3; i 1399 modules/hal/src/mathfuncs.cpp for( ; i < n; i++ ) i 1401 modules/hal/src/mathfuncs.cpp int h0 = X[i].i.hi; i 1405 modules/hal/src/mathfuncs.cpp buf[0].i.hi = (h0 & LOGTAB_MASK2) | (1023 << 20); i 1406 modules/hal/src/mathfuncs.cpp buf[0].i.lo = X[i].i.lo; i 1412 modules/hal/src/mathfuncs.cpp y[i] = y0; i 54 modules/hal/src/matrix.cpp int i, j, k, p = 1; i 58 modules/hal/src/matrix.cpp for( i = 0; i < m; i++ ) i 60 modules/hal/src/matrix.cpp k = i; i 62 modules/hal/src/matrix.cpp for( j = i+1; j < m; j++ ) i 63 modules/hal/src/matrix.cpp if( std::abs(A[j*astep + i]) > std::abs(A[k*astep + i]) ) i 66 modules/hal/src/matrix.cpp if( std::abs(A[k*astep + i]) < eps ) i 69 modules/hal/src/matrix.cpp if( k != i ) i 71 modules/hal/src/matrix.cpp for( j = i; j < m; j++ ) i 72 modules/hal/src/matrix.cpp std::swap(A[i*astep + j], A[k*astep + j]); i 75 modules/hal/src/matrix.cpp std::swap(b[i*bstep + j], b[k*bstep + j]); i 79 modules/hal/src/matrix.cpp _Tp d = -1/A[i*astep + i]; i 81 modules/hal/src/matrix.cpp for( j = i+1; j < m; j++ ) i 83 modules/hal/src/matrix.cpp _Tp alpha = A[j*astep + i]*d; i 85 modules/hal/src/matrix.cpp for( k = i+1; k < m; k++ ) i 86 modules/hal/src/matrix.cpp A[j*astep + k] += alpha*A[i*astep + k]; i 90 modules/hal/src/matrix.cpp b[j*bstep + k] += alpha*b[i*bstep + k]; i 93 modules/hal/src/matrix.cpp A[i*astep + i] = -d; i 98 modules/hal/src/matrix.cpp for( i = m-1; i >= 0; i-- ) i 101 modules/hal/src/matrix.cpp _Tp s = b[i*bstep + j]; i 102 modules/hal/src/matrix.cpp for( k = i+1; k < m; k++ ) i 103 modules/hal/src/matrix.cpp s -= A[i*astep + k]*b[k*bstep + j]; i 104 modules/hal/src/matrix.cpp b[i*bstep + j] = s*A[i*astep + i]; i 128 modules/hal/src/matrix.cpp int i, j, k; i 133 modules/hal/src/matrix.cpp for( i = 0; i < m; i++ ) i 135 modules/hal/src/matrix.cpp for( j = 0; j < i; j++ ) i 137 modules/hal/src/matrix.cpp s = A[i*astep + j]; i 139 modules/hal/src/matrix.cpp s -= L[i*astep + k]*L[j*astep + k]; i 140 modules/hal/src/matrix.cpp L[i*astep + j] = (_Tp)(s*L[j*astep + j]); i 142 modules/hal/src/matrix.cpp s = A[i*astep + i]; i 145 modules/hal/src/matrix.cpp double t = L[i*astep + k]; i 150 modules/hal/src/matrix.cpp L[i*astep + i] = (_Tp)(1./std::sqrt(s)); i 172 modules/hal/src/matrix.cpp for( i = 0; i < m; i++ ) i 176 modules/hal/src/matrix.cpp s = b[i*bstep + j]; i 177 modules/hal/src/matrix.cpp for( k = 0; k < i; k++ ) i 178 modules/hal/src/matrix.cpp s -= L[i*astep + k]*b[k*bstep + j]; i 179 modules/hal/src/matrix.cpp b[i*bstep + j] = (_Tp)(s*L[i*astep + i]); i 183 modules/hal/src/matrix.cpp for( i = m-1; i >= 0; i-- ) i 187 modules/hal/src/matrix.cpp s = b[i*bstep + j]; i 188 modules/hal/src/matrix.cpp for( k = m-1; k > i; k-- ) i 189 modules/hal/src/matrix.cpp s -= L[k*astep + i]*b[k*bstep + j]; i 190 modules/hal/src/matrix.cpp b[i*bstep + j] = (_Tp)(s*L[i*astep + i]); i 85 modules/hal/src/stat.cpp int i = 0; i 90 modules/hal/src/stat.cpp for (; i <= n - 16; i += 16) { i 91 modules/hal/src/stat.cpp uint8x16_t A_vec = vld1q_u8 (a + i); i 102 modules/hal/src/stat.cpp for( ; i <= n - 4; i += 4 ) i 103 modules/hal/src/stat.cpp result += popCountTable[a[i]] + popCountTable[a[i+1]] + i 104 modules/hal/src/stat.cpp popCountTable[a[i+2]] + popCountTable[a[i+3]]; i 105 modules/hal/src/stat.cpp for( ; i < n; i++ ) i 106 modules/hal/src/stat.cpp result += popCountTable[a[i]]; i 112 modules/hal/src/stat.cpp int i = 0; i 117 modules/hal/src/stat.cpp for (; i <= n - 16; i += 16) { i 118 modules/hal/src/stat.cpp uint8x16_t A_vec = vld1q_u8 (a + i); i 119 modules/hal/src/stat.cpp uint8x16_t B_vec = vld1q_u8 (b + i); i 131 modules/hal/src/stat.cpp for( ; i <= n - 4; i += 4 ) i 132 modules/hal/src/stat.cpp result += popCountTable[a[i] ^ b[i]] + popCountTable[a[i+1] ^ b[i+1]] + i 133 modules/hal/src/stat.cpp popCountTable[a[i+2] ^ b[i+2]] + popCountTable[a[i+3] ^ b[i+3]]; i 134 modules/hal/src/stat.cpp for( ; i < n; i++ ) i 135 modules/hal/src/stat.cpp result += popCountTable[a[i] ^ b[i]]; i 150 modules/hal/src/stat.cpp int i = 0; i 153 modules/hal/src/stat.cpp for( ; i <= n - 4; i += 4 ) i 154 modules/hal/src/stat.cpp result += tab[a[i]] + tab[a[i+1]] + tab[a[i+2]] + tab[a[i+3]]; i 156 modules/hal/src/stat.cpp for( ; i < n; i++ ) i 157 modules/hal/src/stat.cpp result += tab[a[i]]; i 172 modules/hal/src/stat.cpp int i = 0; i 175 modules/hal/src/stat.cpp for( ; i <= n - 4; i += 4 ) i 176 modules/hal/src/stat.cpp result += tab[a[i] ^ b[i]] + tab[a[i+1] ^ b[i+1]] + i 177 modules/hal/src/stat.cpp tab[a[i+2] ^ b[i+2]] + tab[a[i+3] ^ b[i+3]]; i 179 modules/hal/src/stat.cpp for( ; i < n; i++ ) i 180 modules/hal/src/stat.cpp result += tab[a[i] ^ b[i]]; i 406 modules/highgui/src/window_QT.cpp for (int i = 0; i < stop_index; ++i) i 408 modules/highgui/src/window_QT.cpp CvBar* t = (CvBar*) layout->layout()->itemAt(i); i 1052 modules/highgui/src/window_QT.cpp for (int i = 0; i < list.count(); i++) i 1054 modules/highgui/src/window_QT.cpp QObject *obj = list.at(i); i 1325 modules/highgui/src/window_QT.cpp int i = i 1341 modules/highgui/src/window_QT.cpp slider->setValue(i); i 2119 modules/highgui/src/window_QT.cpp for (int i = 0; i < bsize; ++i) i 2121 modules/highgui/src/window_QT.cpp CvBar* t = (CvBar*) global_control_panel->myLayout->layout()->itemAt(i); i 2122 modules/highgui/src/window_QT.cpp settings.setArrayIndex(i); i 2132 modules/highgui/src/window_QT.cpp int subsize = settings.beginReadArray(QString("buttonbar")+i); i 2152 modules/highgui/src/window_QT.cpp for (int i = 0; i < global_control_panel->myLayout->layout()->count(); ++i) i 2154 modules/highgui/src/window_QT.cpp CvBar* t = (CvBar*) global_control_panel->myLayout->layout()->itemAt(i); i 2155 modules/highgui/src/window_QT.cpp settings.setArrayIndex(i); i 2163 modules/highgui/src/window_QT.cpp settings.beginWriteArray(QString("buttonbar")+i); i 2175 modules/highgui/src/window_QT.cpp for (int i = 0, count = b->layout()->count(); i < count; ++i) i 2177 modules/highgui/src/window_QT.cpp settings->setArrayIndex(i); i 2179 modules/highgui/src/window_QT.cpp QWidget* temp = (QWidget*) b->layout()->itemAt(i)->widget(); i 2206 modules/highgui/src/window_QT.cpp for (int i = 0, count = b->layout()->count(); i < count; ++i) i 2208 modules/highgui/src/window_QT.cpp settings->setArrayIndex(i); i 2210 modules/highgui/src/window_QT.cpp QWidget* temp = (QWidget*) b->layout()->itemAt(i)->widget(); i 2247 modules/highgui/src/window_QT.cpp for (int i = 0; i < bsize; ++i) i 2249 modules/highgui/src/window_QT.cpp settings->setArrayIndex(i); i 2251 modules/highgui/src/window_QT.cpp CvTrackbar* t = (CvTrackbar*) myBarLayout->layout()->itemAt(i); i 2267 modules/highgui/src/window_QT.cpp for (int i = 0; i < myBarLayout->layout()->count(); ++i) i 2269 modules/highgui/src/window_QT.cpp settings->setArrayIndex(i); i 2271 modules/highgui/src/window_QT.cpp CvTrackbar* t = (CvTrackbar*) myBarLayout->layout()->itemAt(i); i 2967 modules/highgui/src/window_QT.cpp for (int i=-1;i<width()/pixel_width;i++)//-1 i 2970 modules/highgui/src/window_QT.cpp QPointF pos_in_view((i+offsetX)*pixel_width, (j+offsetY)*pixel_height); i 119 modules/highgui/src/window_w32.cpp int i; i 120 modules/highgui/src/window_w32.cpp for( i = 0; i < 256; i++ ) i 122 modules/highgui/src/window_w32.cpp palette[i].rgbBlue = palette[i].rgbGreen = palette[i].rgbRed = (BYTE)i; i 123 modules/highgui/src/window_w32.cpp palette[i].rgbReserved = 0; i 1059 modules/highgui/src/window_w32.cpp int i; i 1065 modules/highgui/src/window_w32.cpp for(i = 0; i < (window->toolbar.toolbar ? 2 : 1); i++) i 1252 modules/highgui/src/window_w32.cpp int i; i 1265 modules/highgui/src/window_w32.cpp for(i = 0; i < (window->toolbar.toolbar ? 2 : 1); i++) i 1530 modules/highgui/src/window_w32.cpp for(int i = 0; i < 256; ++i) i 1532 modules/highgui/src/window_w32.cpp table[i].rgbBlue = (unsigned char)i; i 1533 modules/highgui/src/window_w32.cpp table[i].rgbGreen = (unsigned char)i; i 1534 modules/highgui/src/window_w32.cpp table[i].rgbRed = (unsigned char)i; i 1645 modules/highgui/src/window_w32.cpp int i; i 1646 modules/highgui/src/window_w32.cpp for(i = 0; i < 256; i++) i 1648 modules/highgui/src/window_w32.cpp table[i].rgbBlue = (unsigned char)i; i 1649 modules/highgui/src/window_w32.cpp table[i].rgbGreen = (unsigned char)i; i 1650 modules/highgui/src/window_w32.cpp table[i].rgbRed = (unsigned char)i; i 397 modules/imgcodecs/src/grfmt_exr.cpp for( int i = 0; i < ysample; i++ ) i 402 modules/imgcodecs/src/grfmt_exr.cpp data[(yre + i) * ystep + (xre + n) * xstep] = data[y * ystep + x * xstep]; i 404 modules/imgcodecs/src/grfmt_exr.cpp ((float *)data)[(yre + i) * ystep + (xre + n) * xstep] = ((float *)data)[y * ystep + x * xstep]; i 406 modules/imgcodecs/src/grfmt_exr.cpp ((unsigned *)data)[(yre + i) * ystep + (xre + n) * xstep] = ((unsigned *)data)[y * ystep + x * xstep]; i 441 modules/imgcodecs/src/grfmt_exr.cpp for( int i = 1; i < ysample; i++ ) i 444 modules/imgcodecs/src/grfmt_exr.cpp data[(yre + i) * ystep + x * xstep] = data[y * ystep + x * xstep]; i 446 modules/imgcodecs/src/grfmt_exr.cpp ((float *)data)[(yre + i) * ystep + x * xstep] = ((float *)data)[y * ystep + x * xstep]; i 448 modules/imgcodecs/src/grfmt_exr.cpp ((unsigned *)data)[(yre + i) * ystep + x * xstep] = ((unsigned *)data)[y * ystep + x * xstep]; i 521 modules/imgcodecs/src/grfmt_exr.cpp for( int i = 0, n = 0; i < m_width; i++, n += 3 ) i 522 modules/imgcodecs/src/grfmt_exr.cpp out[i] = in[n] * m_chroma.blue[0] + in[n + 1] * m_chroma.green[0] + in[n + 2] * m_chroma.red[0]; i 527 modules/imgcodecs/src/grfmt_exr.cpp for( int i = 0, n = 0; i < m_width; i++, n += 3 ) i 528 modules/imgcodecs/src/grfmt_exr.cpp o[i] = (uchar) (in[n] * m_chroma.blue[0] + in[n + 1] * m_chroma.green[0] + in[n + 2] * m_chroma.red[0]); i 536 modules/imgcodecs/src/grfmt_exr.cpp for( int i = 0; i < m_width * 3; i++ ) i 537 modules/imgcodecs/src/grfmt_exr.cpp ui[i] -= 0x80000000; i 539 modules/imgcodecs/src/grfmt_exr.cpp for( int i = 0, n = 0; i < m_width; i++, n += 3 ) i 540 modules/imgcodecs/src/grfmt_exr.cpp ((int *)out)[i] = int(si[n] * m_chroma.blue[0] + si[n + 1] * m_chroma.green[0] + si[n + 2] * m_chroma.red[0]); i 545 modules/imgcodecs/src/grfmt_exr.cpp for( int i = 0, n = 0; i < m_width; i++, n += 3 ) i 546 modules/imgcodecs/src/grfmt_exr.cpp ((uchar *)out)[i] = uchar((ui[n] * m_chroma.blue[0] + ui[n + 1] * m_chroma.green[0] + ui[n + 2] * m_chroma.red[0]) * (256.0 / 4294967296.0)); i 677 modules/imgcodecs/src/grfmt_exr.cpp for(int i = 0; i < width * channels; i++) i 678 modules/imgcodecs/src/grfmt_exr.cpp buf[i] = sd[i] + offset; i 683 modules/imgcodecs/src/grfmt_exr.cpp for(int i = 0; i < width * channels; i++) i 684 modules/imgcodecs/src/grfmt_exr.cpp buf[i] = sd[i] + offset; i 689 modules/imgcodecs/src/grfmt_exr.cpp for(int i = 0; i < width * channels; i++) i 690 modules/imgcodecs/src/grfmt_exr.cpp buf[i] = (unsigned) sd[i] + offset; i 700 modules/imgcodecs/src/grfmt_exr.cpp for(int i = 0; i < width * channels; i++) i 701 modules/imgcodecs/src/grfmt_exr.cpp buf[i] = sd[i]; i 706 modules/imgcodecs/src/grfmt_exr.cpp for(int i = 0; i < width * channels; i++) i 707 modules/imgcodecs/src/grfmt_exr.cpp buf[i] = sd[i]; i 151 modules/imgcodecs/src/grfmt_gdal.cpp for( size_t i=0; i<160; i++ ){ i 335 modules/imgcodecs/src/grfmt_jpeg.cpp unsigned int count, i; i 347 modules/imgcodecs/src/grfmt_jpeg.cpp for (i = 1; i <= 16; ++i) i 349 modules/imgcodecs/src/grfmt_jpeg.cpp bits[i] = dht[pos++]; i 350 modules/imgcodecs/src/grfmt_jpeg.cpp count += bits[i]; i 357 modules/imgcodecs/src/grfmt_jpeg.cpp for (i = 0; i < count; ++i) i 358 modules/imgcodecs/src/grfmt_jpeg.cpp huffval[i] = dht[pos++]; i 607 modules/imgcodecs/src/grfmt_jpeg.cpp for( size_t i = 0; i < params.size(); i += 2 ) i 609 modules/imgcodecs/src/grfmt_jpeg.cpp if( params[i] == CV_IMWRITE_JPEG_QUALITY ) i 611 modules/imgcodecs/src/grfmt_jpeg.cpp quality = params[i+1]; i 615 modules/imgcodecs/src/grfmt_jpeg.cpp if( params[i] == CV_IMWRITE_JPEG_PROGRESSIVE ) i 617 modules/imgcodecs/src/grfmt_jpeg.cpp progressive = params[i+1]; i 620 modules/imgcodecs/src/grfmt_jpeg.cpp if( params[i] == CV_IMWRITE_JPEG_OPTIMIZE ) i 622 modules/imgcodecs/src/grfmt_jpeg.cpp optimize = params[i+1]; i 625 modules/imgcodecs/src/grfmt_jpeg.cpp if( params[i] == CV_IMWRITE_JPEG_LUMA_QUALITY ) i 627 modules/imgcodecs/src/grfmt_jpeg.cpp if (params[i+1] >= 0) i 629 modules/imgcodecs/src/grfmt_jpeg.cpp luma_quality = MIN(MAX(params[i+1], 0), 100); i 640 modules/imgcodecs/src/grfmt_jpeg.cpp if( params[i] == CV_IMWRITE_JPEG_CHROMA_QUALITY ) i 642 modules/imgcodecs/src/grfmt_jpeg.cpp if (params[i+1] >= 0) i 644 modules/imgcodecs/src/grfmt_jpeg.cpp chroma_quality = MIN(MAX(params[i+1], 0), 100); i 648 modules/imgcodecs/src/grfmt_jpeg.cpp if( params[i] == CV_IMWRITE_JPEG_RST_INTERVAL ) i 650 modules/imgcodecs/src/grfmt_jpeg.cpp rst_interval = params[i+1]; i 130 modules/imgcodecs/src/grfmt_jpeg2000.cpp for( int i = 0; i < numcmpts; i++ ) i 132 modules/imgcodecs/src/grfmt_jpeg2000.cpp int depth_i = jas_image_cmptprec( image, i ); i 134 modules/imgcodecs/src/grfmt_jpeg2000.cpp if( jas_image_cmpttype( image, i ) > 2 ) i 239 modules/imgcodecs/src/grfmt_jpeg2000.cpp for( int i = 0; i < ncmpts; i++ ) i 241 modules/imgcodecs/src/grfmt_jpeg2000.cpp int maxval = 1 << jas_image_cmptprec( image, cmptlut[i] ); i 242 modules/imgcodecs/src/grfmt_jpeg2000.cpp int offset = jas_image_cmptsgnd( image, cmptlut[i] ) ? maxval / 2 : 0; i 244 modules/imgcodecs/src/grfmt_jpeg2000.cpp int yend = jas_image_cmptbry( image, cmptlut[i] ); i 245 modules/imgcodecs/src/grfmt_jpeg2000.cpp int ystep = jas_image_cmptvstep( image, cmptlut[i] ); i 246 modules/imgcodecs/src/grfmt_jpeg2000.cpp int xend = jas_image_cmptbrx( image, cmptlut[i] ); i 247 modules/imgcodecs/src/grfmt_jpeg2000.cpp int xstep = jas_image_cmpthstep( image, cmptlut[i] ); i 252 modules/imgcodecs/src/grfmt_jpeg2000.cpp if( !jas_image_readcmpt( image, cmptlut[i], 0, 0, xend / xstep, yend / ystep, buffer )) i 255 modules/imgcodecs/src/grfmt_jpeg2000.cpp result = readComponent8u( data + i, buffer, step, cmptlut[i], maxval, offset, ncmpts ); i 257 modules/imgcodecs/src/grfmt_jpeg2000.cpp result = readComponent16u( ((unsigned short *)data) + i, buffer, step / 2, cmptlut[i], maxval, offset, ncmpts ); i 260 modules/imgcodecs/src/grfmt_jpeg2000.cpp i = ncmpts; i 448 modules/imgcodecs/src/grfmt_jpeg2000.cpp for( int i = 0; i < channels; i++ ) i 450 modules/imgcodecs/src/grfmt_jpeg2000.cpp component_info[i].tlx = 0; i 451 modules/imgcodecs/src/grfmt_jpeg2000.cpp component_info[i].tly = 0; i 452 modules/imgcodecs/src/grfmt_jpeg2000.cpp component_info[i].hstep = 1; i 453 modules/imgcodecs/src/grfmt_jpeg2000.cpp component_info[i].vstep = 1; i 454 modules/imgcodecs/src/grfmt_jpeg2000.cpp component_info[i].width = width; i 455 modules/imgcodecs/src/grfmt_jpeg2000.cpp component_info[i].height = height; i 456 modules/imgcodecs/src/grfmt_jpeg2000.cpp component_info[i].prec = depth; i 457 modules/imgcodecs/src/grfmt_jpeg2000.cpp component_info[i].sgnd = 0; i 505 modules/imgcodecs/src/grfmt_jpeg2000.cpp for( int i = 0; i < ncmpts; i++ ) i 508 modules/imgcodecs/src/grfmt_jpeg2000.cpp jas_matrix_setv( row, x, data[x * ncmpts + i] ); i 509 modules/imgcodecs/src/grfmt_jpeg2000.cpp jas_image_writecmpt( img, i, 0, y, w, 1, row ); i 529 modules/imgcodecs/src/grfmt_jpeg2000.cpp for( int i = 0; i < ncmpts; i++ ) i 532 modules/imgcodecs/src/grfmt_jpeg2000.cpp jas_matrix_setv( row, x, data[x * ncmpts + i] ); i 533 modules/imgcodecs/src/grfmt_jpeg2000.cpp jas_image_writecmpt( img, i, 0, y, w, 1, row ); i 378 modules/imgcodecs/src/grfmt_png.cpp for( size_t i = 0; i < params.size(); i += 2 ) i 380 modules/imgcodecs/src/grfmt_png.cpp if( params[i] == CV_IMWRITE_PNG_COMPRESSION ) i 382 modules/imgcodecs/src/grfmt_png.cpp compression_level = params[i+1]; i 385 modules/imgcodecs/src/grfmt_png.cpp if( params[i] == CV_IMWRITE_PNG_STRATEGY ) i 387 modules/imgcodecs/src/grfmt_png.cpp compression_strategy = params[i+1]; i 390 modules/imgcodecs/src/grfmt_png.cpp if( params[i] == CV_IMWRITE_PNG_BILEVEL ) i 392 modules/imgcodecs/src/grfmt_png.cpp isBilevel = params[i+1] != 0; i 200 modules/imgcodecs/src/grfmt_pxm.cpp int i, x, y; i 216 modules/imgcodecs/src/grfmt_pxm.cpp for( i = 0; i <= m_maxval; i++ ) i 217 modules/imgcodecs/src/grfmt_pxm.cpp gray_palette[i] = (uchar)((i*255/m_maxval)^(m_bpp == 1 ? 255 : 0)); i 380 modules/imgcodecs/src/grfmt_pxm.cpp for( size_t i = 0; i < params.size(); i += 2 ) i 381 modules/imgcodecs/src/grfmt_pxm.cpp if( params[i] == CV_IMWRITE_PXM_BINARY ) i 382 modules/imgcodecs/src/grfmt_pxm.cpp isBinary = params[i+1] != 0; i 109 modules/imgcodecs/src/grfmt_sunras.cpp int i; i 112 modules/imgcodecs/src/grfmt_sunras.cpp for( i = 0; i < palSize; i++ ) i 114 modules/imgcodecs/src/grfmt_sunras.cpp m_palette[i].b = buffer[i + 2*palSize]; i 115 modules/imgcodecs/src/grfmt_sunras.cpp m_palette[i].g = buffer[i + palSize]; i 116 modules/imgcodecs/src/grfmt_sunras.cpp m_palette[i].r = buffer[i]; i 117 modules/imgcodecs/src/grfmt_sunras.cpp m_palette[i].a = 0; i 214 modules/imgcodecs/src/grfmt_tiff.cpp int x, y, i; i 291 modules/imgcodecs/src/grfmt_tiff.cpp for( i = 0; i < tile_height; i++ ) i 296 modules/imgcodecs/src/grfmt_tiff.cpp icvCvt_BGRA2RGBA_8u_C4R( bstart + i*tile_width0*4, 0, i 297 modules/imgcodecs/src/grfmt_tiff.cpp data + x*4 + img.step*(tile_height - i - 1), 0, i 302 modules/imgcodecs/src/grfmt_tiff.cpp icvCvt_BGRA2BGR_8u_C4C3R( bstart + i*tile_width0*4, 0, i 303 modules/imgcodecs/src/grfmt_tiff.cpp data + x*3 + img.step*(tile_height - i - 1), 0, i 308 modules/imgcodecs/src/grfmt_tiff.cpp icvCvt_BGRA2Gray_8u_C4C1R( bstart + i*tile_width0*4, 0, i 309 modules/imgcodecs/src/grfmt_tiff.cpp data + x + img.step*(tile_height - i - 1), 0, i 327 modules/imgcodecs/src/grfmt_tiff.cpp for( i = 0; i < tile_height; i++ ) i 333 modules/imgcodecs/src/grfmt_tiff.cpp icvCvt_Gray2BGR_16u_C1C3R(buffer16 + i*tile_width0*ncn, 0, i 334 modules/imgcodecs/src/grfmt_tiff.cpp (ushort*)(data + img.step*i) + x*3, 0, i 339 modules/imgcodecs/src/grfmt_tiff.cpp icvCvt_RGB2BGR_16u_C3R(buffer16 + i*tile_width0*ncn, 0, i 340 modules/imgcodecs/src/grfmt_tiff.cpp (ushort*)(data + img.step*i) + x*3, 0, i 347 modules/imgcodecs/src/grfmt_tiff.cpp icvCvt_BGRA2RGBA_16u_C4R(buffer16 + i*tile_width0*ncn, 0, i 348 modules/imgcodecs/src/grfmt_tiff.cpp (ushort*)(data + img.step*i) + x * 4, 0, i 353 modules/imgcodecs/src/grfmt_tiff.cpp icvCvt_BGRA2BGR_16u_C4C3R(buffer16 + i*tile_width0*ncn, 0, i 354 modules/imgcodecs/src/grfmt_tiff.cpp (ushort*)(data + img.step*i) + x * 3, 0, i 360 modules/imgcodecs/src/grfmt_tiff.cpp icvCvt_BGRA2BGR_16u_C4C3R(buffer16 + i*tile_width0*ncn, 0, i 361 modules/imgcodecs/src/grfmt_tiff.cpp (ushort*)(data + img.step*i) + x*3, 0, i 369 modules/imgcodecs/src/grfmt_tiff.cpp memcpy((ushort*)(data + img.step*i)+x, i 370 modules/imgcodecs/src/grfmt_tiff.cpp buffer16 + i*tile_width0*ncn, i 375 modules/imgcodecs/src/grfmt_tiff.cpp icvCvt_BGRA2Gray_16u_CnC1R(buffer16 + i*tile_width0*ncn, 0, i 376 modules/imgcodecs/src/grfmt_tiff.cpp (ushort*)(data + img.step*i) + x, 0, i 398 modules/imgcodecs/src/grfmt_tiff.cpp for( i = 0; i < tile_height; i++ ) i 402 modules/imgcodecs/src/grfmt_tiff.cpp memcpy((float*)(data + img.step*i)+x, i 403 modules/imgcodecs/src/grfmt_tiff.cpp buffer32 + i*tile_width0*ncn, i 408 modules/imgcodecs/src/grfmt_tiff.cpp memcpy((double*)(data + img.step*i)+x, i 409 modules/imgcodecs/src/grfmt_tiff.cpp buffer64 + i*tile_width0*ncn, i 446 modules/imgcodecs/src/grfmt_tiff.cpp for (tstrip_t i = 0; i < TIFFNumberOfStrips(tif); i++, ptr += strip_size) i 448 modules/imgcodecs/src/grfmt_tiff.cpp TIFFReadEncodedStrip(tif, i, ptr, size); i 509 modules/imgcodecs/src/grfmt_tiff.cpp for(size_t i = 0; i + 1 < params.size(); i += 2) i 510 modules/imgcodecs/src/grfmt_tiff.cpp if(params[i] == key) i 512 modules/imgcodecs/src/grfmt_tiff.cpp value = params[i+1]; i 668 modules/imgcodecs/src/grfmt_tiff.cpp for (int i = 0; i < img.rows; i++, ptr += strip_size) i 670 modules/imgcodecs/src/grfmt_tiff.cpp TIFFWriteEncodedStrip(tif, i, ptr, strip_size * sizeof(float)); i 725 modules/imgcodecs/src/grfmt_tiff.cpp int i, stripCount = (height + rowsPerStrip - 1) / rowsPerStrip; i 749 modules/imgcodecs/src/grfmt_tiff.cpp for( i = 0; i < stripCount; i++ ) i 756 modules/imgcodecs/src/grfmt_tiff.cpp stripOffsets[i] = strm.getPos(); i 781 modules/imgcodecs/src/grfmt_tiff.cpp stripCounts[i] = (short)(strm.getPos() - stripOffsets[i]); i 790 modules/imgcodecs/src/grfmt_tiff.cpp for( i = 0; i < stripCount; i++ ) i 791 modules/imgcodecs/src/grfmt_tiff.cpp strm.putDWord( stripOffsets[i] ); i 794 modules/imgcodecs/src/grfmt_tiff.cpp for( i = 0; i < stripCount; i++ ) i 795 modules/imgcodecs/src/grfmt_tiff.cpp strm.putWord( stripCounts[i] ); i 800 modules/imgcodecs/src/grfmt_tiff.cpp for (i = 0; i < stripCount; i++) i 802 modules/imgcodecs/src/grfmt_tiff.cpp strm.putDWord (stripOffsets [i]); i 126 modules/imgcodecs/src/loadsave.cpp size_t i, maxlen = 0; i 129 modules/imgcodecs/src/loadsave.cpp for( i = 0; i < codecs.decoders.size(); i++ ) i 131 modules/imgcodecs/src/loadsave.cpp size_t len = codecs.decoders[i]->signatureLength(); i 149 modules/imgcodecs/src/loadsave.cpp for( i = 0; i < codecs.decoders.size(); i++ ) i 151 modules/imgcodecs/src/loadsave.cpp if( codecs.decoders[i]->checkSignature(signature) ) i 152 modules/imgcodecs/src/loadsave.cpp return codecs.decoders[i]->newDecoder(); i 161 modules/imgcodecs/src/loadsave.cpp size_t i, maxlen = 0; i 166 modules/imgcodecs/src/loadsave.cpp for( i = 0; i < codecs.decoders.size(); i++ ) i 168 modules/imgcodecs/src/loadsave.cpp size_t len = codecs.decoders[i]->signatureLength(); i 177 modules/imgcodecs/src/loadsave.cpp for( i = 0; i < codecs.decoders.size(); i++ ) i 179 modules/imgcodecs/src/loadsave.cpp if( codecs.decoders[i]->checkSignature(signature) ) i 180 modules/imgcodecs/src/loadsave.cpp return codecs.decoders[i]->newDecoder(); i 198 modules/imgcodecs/src/loadsave.cpp for( size_t i = 0; i < codecs.encoders.size(); i++ ) i 200 modules/imgcodecs/src/loadsave.cpp String description = codecs.encoders[i]->getDescription(); i 217 modules/imgcodecs/src/loadsave.cpp return codecs.encoders[i]->newEncoder(); i 652 modules/imgcodecs/src/loadsave.cpp int i = 0; i 655 modules/imgcodecs/src/loadsave.cpp for( ; _params[i] > 0; i += 2 ) i 659 modules/imgcodecs/src/loadsave.cpp i > 0 ? std::vector<int>(_params, _params+i) : std::vector<int>(), i 683 modules/imgcodecs/src/loadsave.cpp int i = 0; i 686 modules/imgcodecs/src/loadsave.cpp for( ; _params[i] > 0; i += 2 ) i 699 modules/imgcodecs/src/loadsave.cpp i > 0 ? std::vector<int>(_params, _params+i) : std::vector<int>() ); i 178 modules/imgcodecs/src/rgbe.cpp int i; i 193 modules/imgcodecs/src/rgbe.cpp for(i=0;i<static_cast<int>(sizeof(info->programtype)-1);i++) { i 194 modules/imgcodecs/src/rgbe.cpp if ((buf[i+2] == 0) || isspace(buf[i+2])) i 196 modules/imgcodecs/src/rgbe.cpp info->programtype[i] = buf[i+2]; i 198 modules/imgcodecs/src/rgbe.cpp info->programtype[i] = 0; i 324 modules/imgcodecs/src/rgbe.cpp int i, err; i 342 modules/imgcodecs/src/rgbe.cpp for(i=0;i<scanline_width;i++) { i 345 modules/imgcodecs/src/rgbe.cpp buffer[i] = rgbe[0]; i 346 modules/imgcodecs/src/rgbe.cpp buffer[i+scanline_width] = rgbe[1]; i 347 modules/imgcodecs/src/rgbe.cpp buffer[i+2*scanline_width] = rgbe[2]; i 348 modules/imgcodecs/src/rgbe.cpp buffer[i+3*scanline_width] = rgbe[3]; i 353 modules/imgcodecs/src/rgbe.cpp for(i=0;i<4;i++) { i 354 modules/imgcodecs/src/rgbe.cpp if ((err = RGBE_WriteBytes_RLE(fp,&buffer[i*scanline_width], i 369 modules/imgcodecs/src/rgbe.cpp int i, count; i 401 modules/imgcodecs/src/rgbe.cpp for(i=0;i<4;i++) { i 402 modules/imgcodecs/src/rgbe.cpp ptr_end = &scanline_buffer[(i+1)*scanline_width]; i 437 modules/imgcodecs/src/rgbe.cpp for(i=0;i<scanline_width;i++) { i 438 modules/imgcodecs/src/rgbe.cpp rgbe[0] = scanline_buffer[i]; i 439 modules/imgcodecs/src/rgbe.cpp rgbe[1] = scanline_buffer[i+scanline_width]; i 440 modules/imgcodecs/src/rgbe.cpp rgbe[2] = scanline_buffer[i+2*scanline_width]; i 441 modules/imgcodecs/src/rgbe.cpp rgbe[3] = scanline_buffer[i+3*scanline_width]; i 54 modules/imgcodecs/src/utils.cpp int i; i 58 modules/imgcodecs/src/utils.cpp for( i = 0; i < size.width; i++, rgb += 3 ) i 61 modules/imgcodecs/src/utils.cpp gray[i] = (uchar)t; i 73 modules/imgcodecs/src/utils.cpp int i; i 77 modules/imgcodecs/src/utils.cpp for( i = 0; i < size.width; i++, rgb += ncn ) i 80 modules/imgcodecs/src/utils.cpp gray[i] = (ushort)t; i 92 modules/imgcodecs/src/utils.cpp int i; i 96 modules/imgcodecs/src/utils.cpp for( i = 0; i < size.width; i++, rgba += 4 ) i 99 modules/imgcodecs/src/utils.cpp gray[i] = (uchar)t; i 110 modules/imgcodecs/src/utils.cpp int i; i 113 modules/imgcodecs/src/utils.cpp for( i = 0; i < size.width; i++, bgr += 3 ) i 115 modules/imgcodecs/src/utils.cpp bgr[0] = bgr[1] = bgr[2] = gray[i]; i 125 modules/imgcodecs/src/utils.cpp int i; i 128 modules/imgcodecs/src/utils.cpp for( i = 0; i < size.width; i++, bgr += 3 ) i 130 modules/imgcodecs/src/utils.cpp bgr[0] = bgr[1] = bgr[2] = gray[i]; i 141 modules/imgcodecs/src/utils.cpp int i; i 145 modules/imgcodecs/src/utils.cpp for( i = 0; i < size.width; i++, bgr += 3, bgra += 4 ) i 161 modules/imgcodecs/src/utils.cpp int i; i 165 modules/imgcodecs/src/utils.cpp for( i = 0; i < size.width; i++, bgr += 3, bgra += 4 ) i 180 modules/imgcodecs/src/utils.cpp int i; i 183 modules/imgcodecs/src/utils.cpp for( i = 0; i < size.width; i++, bgra += 4, rgba += 4 ) i 198 modules/imgcodecs/src/utils.cpp int i; i 201 modules/imgcodecs/src/utils.cpp for( i = 0; i < size.width; i++, bgra += 4, rgba += 4 ) i 218 modules/imgcodecs/src/utils.cpp int i; i 221 modules/imgcodecs/src/utils.cpp for( i = 0; i < size.width; i++, bgr += 3, rgb += 3 ) i 235 modules/imgcodecs/src/utils.cpp int i; i 238 modules/imgcodecs/src/utils.cpp for( i = 0; i < size.width; i++, bgr += 3, rgb += 3 ) i 254 modules/imgcodecs/src/utils.cpp int i; i 257 modules/imgcodecs/src/utils.cpp for( i = 0; i < size.width; i++ ) i 259 modules/imgcodecs/src/utils.cpp int t = descale( ((((ushort*)bgr555)[i] << 3) & 0xf8)*cB + i 260 modules/imgcodecs/src/utils.cpp ((((ushort*)bgr555)[i] >> 2) & 0xf8)*cG + i 261 modules/imgcodecs/src/utils.cpp ((((ushort*)bgr555)[i] >> 7) & 0xf8)*cR, SCALE ); i 262 modules/imgcodecs/src/utils.cpp gray[i] = (uchar)t; i 271 modules/imgcodecs/src/utils.cpp int i; i 274 modules/imgcodecs/src/utils.cpp for( i = 0; i < size.width; i++ ) i 276 modules/imgcodecs/src/utils.cpp int t = descale( ((((ushort*)bgr565)[i] << 3) & 0xf8)*cB + i 277 modules/imgcodecs/src/utils.cpp ((((ushort*)bgr565)[i] >> 3) & 0xfc)*cG + i 278 modules/imgcodecs/src/utils.cpp ((((ushort*)bgr565)[i] >> 8) & 0xf8)*cR, SCALE ); i 279 modules/imgcodecs/src/utils.cpp gray[i] = (uchar)t; i 288 modules/imgcodecs/src/utils.cpp int i; i 291 modules/imgcodecs/src/utils.cpp for( i = 0; i < size.width; i++, bgr += 3 ) i 293 modules/imgcodecs/src/utils.cpp int t0 = (((ushort*)bgr555)[i] << 3) & 0xf8; i 294 modules/imgcodecs/src/utils.cpp int t1 = (((ushort*)bgr555)[i] >> 2) & 0xf8; i 295 modules/imgcodecs/src/utils.cpp int t2 = (((ushort*)bgr555)[i] >> 7) & 0xf8; i 306 modules/imgcodecs/src/utils.cpp int i; i 309 modules/imgcodecs/src/utils.cpp for( i = 0; i < size.width; i++, bgr += 3 ) i 311 modules/imgcodecs/src/utils.cpp int t0 = (((ushort*)bgr565)[i] << 3) & 0xf8; i 312 modules/imgcodecs/src/utils.cpp int t1 = (((ushort*)bgr565)[i] >> 3) & 0xfc; i 313 modules/imgcodecs/src/utils.cpp int t2 = (((ushort*)bgr565)[i] >> 8) & 0xf8; i 324 modules/imgcodecs/src/utils.cpp int i; i 327 modules/imgcodecs/src/utils.cpp for( i = 0; i < size.width; i++, bgr += 3, cmyk += 4 ) i 344 modules/imgcodecs/src/utils.cpp int i; i 347 modules/imgcodecs/src/utils.cpp for( i = 0; i < size.width; i++, cmyk += 4 ) i 354 modules/imgcodecs/src/utils.cpp gray[i] = (uchar)t; i 364 modules/imgcodecs/src/utils.cpp int i; i 365 modules/imgcodecs/src/utils.cpp for( i = 0; i < entries; i++ ) i 367 modules/imgcodecs/src/utils.cpp icvCvt_BGR2Gray_8u_C3C1R( (uchar*)(palette + i), 0, grayPalette + i, 0, cvSize(1,1) ); i 374 modules/imgcodecs/src/utils.cpp int i, length = 1 << bpp; i 377 modules/imgcodecs/src/utils.cpp for( i = 0; i < length; i++ ) i 379 modules/imgcodecs/src/utils.cpp int val = (i * 255/(length - 1)) ^ xor_mask; i 380 modules/imgcodecs/src/utils.cpp palette[i].b = palette[i].g = palette[i].r = (uchar)val; i 381 modules/imgcodecs/src/utils.cpp palette[i].a = 0; i 388 modules/imgcodecs/src/utils.cpp int i, length = 1 << bpp; i 390 modules/imgcodecs/src/utils.cpp for( i = 0; i < length; i++ ) i 392 modules/imgcodecs/src/utils.cpp if( palette[i].b != palette[i].g || i 393 modules/imgcodecs/src/utils.cpp palette[i].b != palette[i].r ) i 480 modules/imgcodecs/src/utils.cpp int i; i 481 modules/imgcodecs/src/utils.cpp for( i = 0; i < len; i++ ) i 483 modules/imgcodecs/src/utils.cpp data[i] = palette[indices[i]]; i 229 modules/imgcodecs/test/test_drawing.cpp for(int i = 0; i < it.count; ++it, i++ ) i 231 modules/imgcodecs/test/test_drawing.cpp Vec3b v = (Vec3b)(*(*it)) - img.at<Vec3b>(300,i); i 398 modules/imgcodecs/test/test_drawing.cpp for(int i = 0; i < count; i++ ) i 400 modules/imgcodecs/test/test_drawing.cpp Vec3b v = (Vec3b)(*(it.ptr)) - _img.at<Vec3b>(300,i); i 63 modules/imgcodecs/test/test_grfmt.cpp for (int i = 0; i < s.channels; ++i) i 65 modules/imgcodecs/test/test_grfmt.cpp if (s[i] != 0) i 105 modules/imgcodecs/test/test_grfmt.cpp for (size_t i = 0; i < sizeof(filenames) / sizeof(filenames[0]); ++i) i 107 modules/imgcodecs/test/test_grfmt.cpp const string path = folder + string(filenames[i]); i 613 modules/imgcodecs/test/test_grfmt.cpp for (int i = 0; i < 2; i++) i 721 modules/imgcodecs/test/test_grfmt.cpp for (int i = 0; i < page_count; i++) i 724 modules/imgcodecs/test/test_grfmt.cpp sprintf(buffer, "%smultipage_p%d.tif", folder.c_str(), i + 1); i 727 modules/imgcodecs/test/test_grfmt.cpp ASSERT_TRUE(mats_equal(page, pages[i])); i 866 modules/imgcodecs/test/test_grfmt.cpp for(int i = 0; i < 2; i++) { i 867 modules/imgcodecs/test/test_grfmt.cpp param[0] = i; i 296 modules/imgproc/misc/java/test/ImgprocTest.java for(int i=0; i<rgbLena.channels(); i++) i 298 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.calcHist(images, new MatOfInt(i), new Mat(), histList.get(i), histSize, ranges); i 300 modules/imgproc/misc/java/test/ImgprocTest.java assertEquals(10, histList.get(i).checkVector(1)); i 1810 modules/imgproc/misc/java/test/ImgprocTest.java for(int i=0; i<src.toList().size(); i++) { i 1812 modules/imgproc/misc/java/test/ImgprocTest.java assertTrue(src.toList().get(i).equals(dst.toList().get(i))); i 49 modules/imgproc/perf/opencl/perf_3vs4.cpp for (int i = 0; i < 3; ++i) i 51 modules/imgproc/perf/opencl/perf_3vs4.cpp dsts[i] = UMat(srcSize, depth); i 52 modules/imgproc/perf/opencl/perf_3vs4.cpp srcs[i] = UMat(srcSize, depth); i 59 modules/imgproc/perf/opencl/perf_3vs4.cpp for (size_t i = 0; i < srcs.size(); ++i) i 60 modules/imgproc/perf/opencl/perf_3vs4.cpp resize(srcs[i], dsts[i], Size(), 0.5, 0.5, INTER_LINEAR); i 103 modules/imgproc/perf/opencl/perf_3vs4.cpp for (int i = 0; i < 3; ++i) i 105 modules/imgproc/perf/opencl/perf_3vs4.cpp dsts[i] = UMat(srcSize, depth); i 106 modules/imgproc/perf/opencl/perf_3vs4.cpp srcs[i] = UMat(srcSize, depth); i 113 modules/imgproc/perf/opencl/perf_3vs4.cpp for (size_t i = 0; i < srcs.size(); ++i) i 114 modules/imgproc/perf/opencl/perf_3vs4.cpp subtract(srcs[i], s, dsts[i]); i 192 modules/imgproc/perf/opencl/perf_imgwarp.cpp for (int i = 0; i < srcSize.height; ++i) i 194 modules/imgproc/perf/opencl/perf_imgwarp.cpp float * const xmap_row = _xmap.ptr<float>(i); i 195 modules/imgproc/perf/opencl/perf_imgwarp.cpp float * const ymap_row = _ymap.ptr<float>(i); i 200 modules/imgproc/perf/opencl/perf_imgwarp.cpp ymap_row[j] = (i - srcSize.height * 0.5f) * 0.75f + srcSize.height * 0.5f; i 44 modules/imgproc/perf/perf_remap.cpp for (int i = 0; i < map1.cols; ++i) i 48 modules/imgproc/perf/perf_remap.cpp map1.at<float>(j, i) = static_cast<float>(src.cols - i - 1); i 49 modules/imgproc/perf/perf_remap.cpp map2.at<float>(j, i) = static_cast<float>(j); i 52 modules/imgproc/perf/perf_remap.cpp map1.at<Vec2f>(j, i)[0] = static_cast<float>(src.cols - i - 1); i 53 modules/imgproc/perf/perf_remap.cpp map1.at<Vec2f>(j, i)[1] = static_cast<float>(j); i 56 modules/imgproc/perf/perf_remap.cpp map1.at<Vec2s>(j, i)[0] = static_cast<short>(src.cols - i - 1); i 57 modules/imgproc/perf/perf_remap.cpp map1.at<Vec2s>(j, i)[1] = static_cast<short>(j); i 175 modules/imgproc/perf/perf_warp.cpp for( int i = 0; i < src.cols; i++ ) i 180 modules/imgproc/perf/perf_warp.cpp if( i > src.cols*0.25 && i < src.cols*0.75 && j > src.rows*0.25 && j < src.rows*0.75 ) i 182 modules/imgproc/perf/perf_warp.cpp map_x.at<float>(j,i) = 2*( i - src.cols*0.25f ) + 0.5f ; i 183 modules/imgproc/perf/perf_warp.cpp map_y.at<float>(j,i) = 2*( j - src.rows*0.25f ) + 0.5f ; i 187 modules/imgproc/perf/perf_warp.cpp map_x.at<float>(j,i) = 0 ; i 188 modules/imgproc/perf/perf_warp.cpp map_y.at<float>(j,i) = 0 ; i 192 modules/imgproc/perf/perf_warp.cpp map_x.at<float>(j,i) = static_cast<float>(i) ; i 193 modules/imgproc/perf/perf_warp.cpp map_y.at<float>(j,i) = static_cast<float>(src.rows - j) ; i 196 modules/imgproc/perf/perf_warp.cpp map_x.at<float>(j,i) = static_cast<float>(src.cols - i) ; i 197 modules/imgproc/perf/perf_warp.cpp map_y.at<float>(j,i) = static_cast<float>(j) ; i 200 modules/imgproc/perf/perf_warp.cpp map_x.at<float>(j,i) = static_cast<float>(src.cols - i) ; i 201 modules/imgproc/perf/perf_warp.cpp map_y.at<float>(j,i) = static_cast<float>(src.rows - j) ; i 476 modules/imgproc/src/accum.cpp int i = Acc_SIMD<T, AT>()(src, dst, mask, len, cn); i 482 modules/imgproc/src/accum.cpp for( ; i <= len - 4; i += 4 ) i 485 modules/imgproc/src/accum.cpp t0 = src[i] + dst[i]; i 486 modules/imgproc/src/accum.cpp t1 = src[i+1] + dst[i+1]; i 487 modules/imgproc/src/accum.cpp dst[i] = t0; dst[i+1] = t1; i 489 modules/imgproc/src/accum.cpp t0 = src[i+2] + dst[i+2]; i 490 modules/imgproc/src/accum.cpp t1 = src[i+3] + dst[i+3]; i 491 modules/imgproc/src/accum.cpp dst[i+2] = t0; dst[i+3] = t1; i 494 modules/imgproc/src/accum.cpp for( ; i < len; i++ ) i 495 modules/imgproc/src/accum.cpp dst[i] += src[i]; i 499 modules/imgproc/src/accum.cpp for( ; i < len; i++ ) i 501 modules/imgproc/src/accum.cpp if( mask[i] ) i 502 modules/imgproc/src/accum.cpp dst[i] += src[i]; i 507 modules/imgproc/src/accum.cpp for( ; i < len; i++, src += 3, dst += 3 ) i 509 modules/imgproc/src/accum.cpp if( mask[i] ) i 521 modules/imgproc/src/accum.cpp for( ; i < len; i++, src += cn, dst += cn ) i 522 modules/imgproc/src/accum.cpp if( mask[i] ) i 534 modules/imgproc/src/accum.cpp int i = AccSqr_SIMD<T, AT>()(src, dst, mask, len, cn); i 540 modules/imgproc/src/accum.cpp for( ; i <= len - 4; i += 4 ) i 543 modules/imgproc/src/accum.cpp t0 = (AT)src[i]*src[i] + dst[i]; i 544 modules/imgproc/src/accum.cpp t1 = (AT)src[i+1]*src[i+1] + dst[i+1]; i 545 modules/imgproc/src/accum.cpp dst[i] = t0; dst[i+1] = t1; i 547 modules/imgproc/src/accum.cpp t0 = (AT)src[i+2]*src[i+2] + dst[i+2]; i 548 modules/imgproc/src/accum.cpp t1 = (AT)src[i+3]*src[i+3] + dst[i+3]; i 549 modules/imgproc/src/accum.cpp dst[i+2] = t0; dst[i+3] = t1; i 552 modules/imgproc/src/accum.cpp for( ; i < len; i++ ) i 553 modules/imgproc/src/accum.cpp dst[i] += (AT)src[i]*src[i]; i 557 modules/imgproc/src/accum.cpp for( ; i < len; i++ ) i 559 modules/imgproc/src/accum.cpp if( mask[i] ) i 560 modules/imgproc/src/accum.cpp dst[i] += (AT)src[i]*src[i]; i 565 modules/imgproc/src/accum.cpp for( ; i < len; i++, src += 3, dst += 3 ) i 567 modules/imgproc/src/accum.cpp if( mask[i] ) i 579 modules/imgproc/src/accum.cpp for( ; i < len; i++, src += cn, dst += cn ) i 580 modules/imgproc/src/accum.cpp if( mask[i] ) i 592 modules/imgproc/src/accum.cpp int i = AccProd_SIMD<T, AT>()(src1, src2, dst, mask, len, cn); i 598 modules/imgproc/src/accum.cpp for( ; i <= len - 4; i += 4 ) i 601 modules/imgproc/src/accum.cpp t0 = (AT)src1[i]*src2[i] + dst[i]; i 602 modules/imgproc/src/accum.cpp t1 = (AT)src1[i+1]*src2[i+1] + dst[i+1]; i 603 modules/imgproc/src/accum.cpp dst[i] = t0; dst[i+1] = t1; i 605 modules/imgproc/src/accum.cpp t0 = (AT)src1[i+2]*src2[i+2] + dst[i+2]; i 606 modules/imgproc/src/accum.cpp t1 = (AT)src1[i+3]*src2[i+3] + dst[i+3]; i 607 modules/imgproc/src/accum.cpp dst[i+2] = t0; dst[i+3] = t1; i 610 modules/imgproc/src/accum.cpp for( ; i < len; i++ ) i 611 modules/imgproc/src/accum.cpp dst[i] += (AT)src1[i]*src2[i]; i 615 modules/imgproc/src/accum.cpp for( ; i < len; i++ ) i 617 modules/imgproc/src/accum.cpp if( mask[i] ) i 618 modules/imgproc/src/accum.cpp dst[i] += (AT)src1[i]*src2[i]; i 623 modules/imgproc/src/accum.cpp for( ; i < len; i++, src1 += 3, src2 += 3, dst += 3 ) i 625 modules/imgproc/src/accum.cpp if( mask[i] ) i 637 modules/imgproc/src/accum.cpp for( ; i < len; i++, src1 += cn, src2 += cn, dst += cn ) i 638 modules/imgproc/src/accum.cpp if( mask[i] ) i 651 modules/imgproc/src/accum.cpp int i = AccW_SIMD<T, AT>()(src, dst, mask, len, cn, a); i 657 modules/imgproc/src/accum.cpp for( ; i <= len - 4; i += 4 ) i 660 modules/imgproc/src/accum.cpp t0 = src[i]*a + dst[i]*b; i 661 modules/imgproc/src/accum.cpp t1 = src[i+1]*a + dst[i+1]*b; i 662 modules/imgproc/src/accum.cpp dst[i] = t0; dst[i+1] = t1; i 664 modules/imgproc/src/accum.cpp t0 = src[i+2]*a + dst[i+2]*b; i 665 modules/imgproc/src/accum.cpp t1 = src[i+3]*a + dst[i+3]*b; i 666 modules/imgproc/src/accum.cpp dst[i+2] = t0; dst[i+3] = t1; i 669 modules/imgproc/src/accum.cpp for( ; i < len; i++ ) i 670 modules/imgproc/src/accum.cpp dst[i] = src[i]*a + dst[i]*b; i 674 modules/imgproc/src/accum.cpp for( ; i < len; i++ ) i 676 modules/imgproc/src/accum.cpp if( mask[i] ) i 677 modules/imgproc/src/accum.cpp dst[i] = src[i]*a + dst[i]*b; i 682 modules/imgproc/src/accum.cpp for( ; i < len; i++, src += 3, dst += 3 ) i 684 modules/imgproc/src/accum.cpp if( mask[i] ) i 696 modules/imgproc/src/accum.cpp for( ; i < len; i++, src += cn, dst += cn ) i 697 modules/imgproc/src/accum.cpp if( mask[i] ) i 927 modules/imgproc/src/accum.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 1010 modules/imgproc/src/accum.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 1098 modules/imgproc/src/accum.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 1184 modules/imgproc/src/accum.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 67 modules/imgproc/src/approx.cpp int i, j, i1, i2, s, len; i 95 modules/imgproc/src/approx.cpp for( i = 0; i < count; i++ ) i 115 modules/imgproc/src/approx.cpp current = current->next = array + i; i 116 modules/imgproc/src/approx.cpp array[i].s = s; i 117 modules/imgproc/src/approx.cpp array[i].pt = pt; i 128 modules/imgproc/src/approx.cpp len = i; i 140 modules/imgproc/src/approx.cpp i = (int)(current - array); i 141 modules/imgproc/src/approx.cpp pt0 = array[i].pt; i 153 modules/imgproc/src/approx.cpp i1 = i - k; i 155 modules/imgproc/src/approx.cpp i2 = i + k; i 168 modules/imgproc/src/approx.cpp if( k > 1 && (l >= lk || ((d_num > 0 && d.i <= 0) || (d_num < 0 && d.i >= 0)))) i 187 modules/imgproc/src/approx.cpp i1 = i - j; i 189 modules/imgproc/src/approx.cpp i2 = i + j; i 208 modules/imgproc/src/approx.cpp if( j < k && sk.i <= s ) i 211 modules/imgproc/src/approx.cpp s = sk.i; i 229 modules/imgproc/src/approx.cpp i = (int)(current - array); i 233 modules/imgproc/src/approx.cpp i2 = i - j; i 239 modules/imgproc/src/approx.cpp i2 = i + j; i 268 modules/imgproc/src/approx.cpp i = (int)(current - array); i 270 modules/imgproc/src/approx.cpp i1 = i - 1; i 273 modules/imgproc/src/approx.cpp i2 = i + 1; i 503 modules/imgproc/src/approx.cpp int i = 0, j, pos = 0, wpos, count = count0, new_count=0; i 538 modules/imgproc/src/approx.cpp for( i = 0; i < init_iters; i++ ) i 640 modules/imgproc/src/approx.cpp for( i = !is_closed; i < count - !is_closed && new_count > 2; i++ ) i 658 modules/imgproc/src/approx.cpp i++; i 347 modules/imgproc/src/canny.cpp for (int i = boundaries.start - 1; i <= boundaries.end; i++) i 349 modules/imgproc/src/canny.cpp int* _norm = mag_buf[(i > boundaries.start) - (i == boundaries.start - 1) + 1] + 1; i 351 modules/imgproc/src/canny.cpp short* _dx = dx.ptr<short>(i - boundaries.start + 1); i 352 modules/imgproc/src/canny.cpp short* _dy = dy.ptr<short>(i - boundaries.start + 1); i 442 modules/imgproc/src/canny.cpp if (i <= boundaries.start) i 445 modules/imgproc/src/canny.cpp uchar* _map = map + mapstep*i + 1; i 452 modules/imgproc/src/canny.cpp const short* _x = dx.ptr<short>(i - boundaries.start); i 453 modules/imgproc/src/canny.cpp const short* _y = dy.ptr<short>(i - boundaries.start); i 513 modules/imgproc/src/canny.cpp if (!prev_flag && m > high && (i <= boundaries.start+1 || _map[j-mapstep] != 2) ) i 663 modules/imgproc/src/canny.cpp for (int i = 0; i < threadsNumber; ++i) i 665 modules/imgproc/src/canny.cpp if (i < threadsNumber - 1) i 666 modules/imgproc/src/canny.cpp g.run(tbbCanny(Range(i * grainSize, (i + 1) * grainSize), src, map, low, high, aperture_size, L2gradient)); i 668 modules/imgproc/src/canny.cpp g.run(tbbCanny(Range(i * grainSize, src.rows), src, map, low, high, aperture_size, L2gradient)); i 750 modules/imgproc/src/canny.cpp for (int i = 0; i <= src.rows; i++) i 752 modules/imgproc/src/canny.cpp int* _norm = mag_buf[(i > 0) + 1] + 1; i 753 modules/imgproc/src/canny.cpp if (i < src.rows) i 755 modules/imgproc/src/canny.cpp short* _dx = dx.ptr<short>(i); i 756 modules/imgproc/src/canny.cpp short* _dy = dy.ptr<short>(i); i 849 modules/imgproc/src/canny.cpp if (i == 0) i 852 modules/imgproc/src/canny.cpp uchar* _map = map + mapstep*i + 1; i 859 modules/imgproc/src/canny.cpp const short* _x = dx.ptr<short>(i-1); i 860 modules/imgproc/src/canny.cpp const short* _y = dy.ptr<short>(i-1); i 956 modules/imgproc/src/canny.cpp for (int i = 0; i < src.rows; i++, pmap += mapstep, pdst += dst.step) i 199 modules/imgproc/src/clahe.cpp for (int i = 0; i < histSize; ++i) i 201 modules/imgproc/src/clahe.cpp if (tileHist[i] > clipLimit_) i 203 modules/imgproc/src/clahe.cpp clipped += tileHist[i] - clipLimit_; i 204 modules/imgproc/src/clahe.cpp tileHist[i] = clipLimit_; i 212 modules/imgproc/src/clahe.cpp for (int i = 0; i < histSize; ++i) i 213 modules/imgproc/src/clahe.cpp tileHist[i] += redistBatch; i 215 modules/imgproc/src/clahe.cpp for (int i = 0; i < residual; ++i) i 216 modules/imgproc/src/clahe.cpp tileHist[i]++; i 222 modules/imgproc/src/clahe.cpp for (int i = 0; i < histSize; ++i) i 224 modules/imgproc/src/clahe.cpp sum += tileHist[i]; i 225 modules/imgproc/src/clahe.cpp tileLut[i] = cv::saturate_cast<T>(sum * lutScale_); i 113 modules/imgproc/src/color.cpp int i; i 116 modules/imgproc/src/color.cpp for(i = 1; i < n-1; i++) i 118 modules/imgproc/src/color.cpp _Tp t = 3*(f[i+1] - 2*f[i] + f[i-1]); i 119 modules/imgproc/src/color.cpp _Tp l = 1/(4 - tab[(i-1)*4]); i 120 modules/imgproc/src/color.cpp tab[i*4] = l; tab[i*4+1] = (t - tab[(i-1)*4+1])*l; i 123 modules/imgproc/src/color.cpp for(i = n-1; i >= 0; i--) i 125 modules/imgproc/src/color.cpp _Tp c = tab[i*4+1] - tab[i*4]*cn; i 126 modules/imgproc/src/color.cpp _Tp b = f[i+1] - f[i] - (cn + c*2)*(_Tp)0.3333333333333333; i 128 modules/imgproc/src/color.cpp tab[i*4] = f[i]; tab[i*4+1] = b; i 129 modules/imgproc/src/color.cpp tab[i*4+2] = c; tab[i*4+3] = d; i 185 modules/imgproc/src/color.cpp for( int i = range.start; i < range.end; ++i, yS += src.step, yD += dst.step ) i 558 modules/imgproc/src/color.cpp for( int i = 0; i < n; i += 3, src += scn ) i 561 modules/imgproc/src/color.cpp dst[i] = t0; dst[i+1] = t1; dst[i+2] = t2; i 568 modules/imgproc/src/color.cpp for( int i = 0; i < n; i += 3, dst += 4 ) i 570 modules/imgproc/src/color.cpp _Tp t0 = src[i], t1 = src[i+1], t2 = src[i+2]; i 577 modules/imgproc/src/color.cpp for( int i = 0; i < n; i += 4 ) i 579 modules/imgproc/src/color.cpp _Tp t0 = src[i], t1 = src[i+1], t2 = src[i+2], t3 = src[i+3]; i 580 modules/imgproc/src/color.cpp dst[i] = t2; dst[i+1] = t1; dst[i+2] = t0; dst[i+3] = t3; i 603 modules/imgproc/src/color.cpp int scn = srccn, dcn = dstcn, bidx = blueIdx, i = 0; i 609 modules/imgproc/src/color.cpp for ( ; i <= n - 48; i += 48, src += 48 ) i 615 modules/imgproc/src/color.cpp vst3q_u8(dst + i, v_dst); i 617 modules/imgproc/src/color.cpp for ( ; i <= n - 24; i += 24, src += 24 ) i 623 modules/imgproc/src/color.cpp vst3_u8(dst + i, v_dst); i 625 modules/imgproc/src/color.cpp for ( ; i < n; i += 3, src += 3 ) i 628 modules/imgproc/src/color.cpp dst[i] = t0; dst[i+1] = t1; dst[i+2] = t2; i 633 modules/imgproc/src/color.cpp for ( ; i <= n - 48; i += 48, src += 64 ) i 640 modules/imgproc/src/color.cpp vst3q_u8(dst + i, v_dst); i 642 modules/imgproc/src/color.cpp for ( ; i <= n - 24; i += 24, src += 32 ) i 649 modules/imgproc/src/color.cpp vst3_u8(dst + i, v_dst); i 651 modules/imgproc/src/color.cpp for ( ; i < n; i += 3, src += 4 ) i 654 modules/imgproc/src/color.cpp dst[i] = t0; dst[i+1] = t1; dst[i+2] = t2; i 661 modules/imgproc/src/color.cpp for ( ; i <= n - 48; i += 48, dst += 64 ) i 663 modules/imgproc/src/color.cpp uint8x16x3_t v_src = vld3q_u8(src + i); i 671 modules/imgproc/src/color.cpp for ( ; i <= n - 24; i += 24, dst += 32 ) i 673 modules/imgproc/src/color.cpp uint8x8x3_t v_src = vld3_u8(src + i); i 682 modules/imgproc/src/color.cpp for (; i < n; i += 3, dst += 4 ) i 684 modules/imgproc/src/color.cpp uchar t0 = src[i], t1 = src[i+1], t2 = src[i+2]; i 691 modules/imgproc/src/color.cpp for ( ; i <= n - 64; i += 64 ) i 693 modules/imgproc/src/color.cpp uint8x16x4_t v_src = vld4q_u8(src + i), v_dst; i 698 modules/imgproc/src/color.cpp vst4q_u8(dst + i, v_dst); i 700 modules/imgproc/src/color.cpp for ( ; i <= n - 32; i += 32 ) i 702 modules/imgproc/src/color.cpp uint8x8x4_t v_src = vld4_u8(src + i), v_dst; i 707 modules/imgproc/src/color.cpp vst4_u8(dst + i, v_dst); i 709 modules/imgproc/src/color.cpp for ( ; i < n; i += 4) i 711 modules/imgproc/src/color.cpp uchar t0 = src[i], t1 = src[i+1], t2 = src[i+2], t3 = src[i+3]; i 712 modules/imgproc/src/color.cpp dst[i] = t2; dst[i+1] = t1; dst[i+2] = t0; dst[i+3] = t3; i 745 modules/imgproc/src/color.cpp int dcn = dstcn, bidx = blueIdx, i = 0; i 749 modules/imgproc/src/color.cpp for ( ; i <= n - 16; i += 16, dst += dcn * 16) i 751 modules/imgproc/src/color.cpp uint16x8_t v_src0 = vld1q_u16((const ushort *)src + i), v_src1 = vld1q_u16((const ushort *)src + i + 8); i 776 modules/imgproc/src/color.cpp for( ; i < n; i++, dst += dcn ) i 778 modules/imgproc/src/color.cpp unsigned t = ((const ushort*)src)[i]; i 789 modules/imgproc/src/color.cpp for ( ; i <= n - 16; i += 16, dst += dcn * 16) i 791 modules/imgproc/src/color.cpp uint16x8_t v_src0 = vld1q_u16((const ushort *)src + i), v_src1 = vld1q_u16((const ushort *)src + i + 8); i 817 modules/imgproc/src/color.cpp for( ; i < n; i++, dst += dcn ) i 819 modules/imgproc/src/color.cpp unsigned t = ((const ushort*)src)[i]; i 855 modules/imgproc/src/color.cpp int scn = srccn, bidx = blueIdx, i = 0; i 861 modules/imgproc/src/color.cpp for ( ; i <= n - 8; i += 8, src += 24 ) i 867 modules/imgproc/src/color.cpp vst1q_u16((ushort *)dst + i, v_dst); i 870 modules/imgproc/src/color.cpp for ( ; i < n; i++, src += 3 ) i 871 modules/imgproc/src/color.cpp ((ushort*)dst)[i] = (ushort)((src[bidx] >> 3)|((src[1]&~3) << 3)|((src[bidx^2]&~7) << 8)); i 876 modules/imgproc/src/color.cpp for ( ; i <= n - 8; i += 8, src += 32 ) i 882 modules/imgproc/src/color.cpp vst1q_u16((ushort *)dst + i, v_dst); i 885 modules/imgproc/src/color.cpp for ( ; i < n; i++, src += 4 ) i 886 modules/imgproc/src/color.cpp ((ushort*)dst)[i] = (ushort)((src[bidx] >> 3)|((src[1]&~3) << 3)|((src[bidx^2]&~7) << 8)); i 892 modules/imgproc/src/color.cpp for ( ; i <= n - 8; i += 8, src += 24 ) i 898 modules/imgproc/src/color.cpp vst1q_u16((ushort *)dst + i, v_dst); i 901 modules/imgproc/src/color.cpp for ( ; i < n; i++, src += 3 ) i 902 modules/imgproc/src/color.cpp ((ushort*)dst)[i] = (ushort)((src[bidx] >> 3)|((src[1]&~7) << 2)|((src[bidx^2]&~7) << 7)); i 907 modules/imgproc/src/color.cpp for ( ; i <= n - 8; i += 8, src += 32 ) i 914 modules/imgproc/src/color.cpp vst1q_u16((ushort *)dst + i, v_dst); i 917 modules/imgproc/src/color.cpp for ( ; i < n; i++, src += 4 ) i 918 modules/imgproc/src/color.cpp ((ushort*)dst)[i] = (ushort)((src[bidx] >> 3)|((src[1]&~7) << 2)| i 941 modules/imgproc/src/color.cpp for( int i = 0; i < n; i++, dst += 3 ) i 943 modules/imgproc/src/color.cpp dst[0] = dst[1] = dst[2] = src[i]; i 948 modules/imgproc/src/color.cpp for( int i = 0; i < n; i++, dst += 4 ) i 950 modules/imgproc/src/color.cpp dst[0] = dst[1] = dst[2] = src[i]; i 979 modules/imgproc/src/color.cpp int i = 0; i 983 modules/imgproc/src/color.cpp for ( ; i <= n - 8; i += 8 ) i 985 modules/imgproc/src/color.cpp uint8x8_t v_src = vld1_u8(src + i); i 989 modules/imgproc/src/color.cpp vst1q_u16((ushort *)dst + i, v_dst); i 994 modules/imgproc/src/color.cpp for ( ; i <= n - 16; i += 16 ) i 996 modules/imgproc/src/color.cpp __m128i v_src = _mm_loadu_si128((__m128i const *)(src + i)); i 1002 modules/imgproc/src/color.cpp _mm_storeu_si128((__m128i *)((ushort *)dst + i), v_dst); i 1008 modules/imgproc/src/color.cpp _mm_storeu_si128((__m128i *)((ushort *)dst + i + 8), v_dst); i 1012 modules/imgproc/src/color.cpp for ( ; i < n; i++ ) i 1014 modules/imgproc/src/color.cpp int t = src[i]; i 1015 modules/imgproc/src/color.cpp ((ushort*)dst)[i] = (ushort)((t >> 3)|((t & ~3) << 3)|((t & ~7) << 8)); i 1021 modules/imgproc/src/color.cpp for ( ; i <= n - 8; i += 8 ) i 1023 modules/imgproc/src/color.cpp uint16x8_t v_src = vmovl_u8(vshr_n_u8(vld1_u8(src + i), 3)); i 1025 modules/imgproc/src/color.cpp vst1q_u16((ushort *)dst + i, v_dst); i 1030 modules/imgproc/src/color.cpp for ( ; i <= n - 16; i += 8 ) i 1032 modules/imgproc/src/color.cpp __m128i v_src = _mm_loadu_si128((__m128i const *)(src + i)); i 1038 modules/imgproc/src/color.cpp _mm_storeu_si128((__m128i *)((ushort *)dst + i), v_dst); i 1044 modules/imgproc/src/color.cpp _mm_storeu_si128((__m128i *)((ushort *)dst + i + 8), v_dst); i 1048 modules/imgproc/src/color.cpp for( ; i < n; i++ ) i 1050 modules/imgproc/src/color.cpp int t = src[i] >> 3; i 1051 modules/imgproc/src/color.cpp ((ushort*)dst)[i] = (ushort)(t|(t << 5)|(t << 10)); i 1107 modules/imgproc/src/color.cpp int i = 0; i 1111 modules/imgproc/src/color.cpp for ( ; i <= n - 8; i += 8) i 1113 modules/imgproc/src/color.cpp uint16x8_t v_src = vld1q_u16((ushort *)src + i); i 1125 modules/imgproc/src/color.cpp vst1_u8(dst + i, vmovn_u16(vcombine_u16(vmovn_u32(v_dst0), vmovn_u32(v_dst1)))); i 1132 modules/imgproc/src/color.cpp for ( ; i <= n - 8; i += 8) i 1134 modules/imgproc/src/color.cpp __m128i v_src = _mm_loadu_si128((__m128i const *)((ushort *)src + i)); i 1160 modules/imgproc/src/color.cpp _mm_storel_epi64((__m128i *)(dst + i), _mm_packus_epi16(v_dst, v_zero)); i 1164 modules/imgproc/src/color.cpp for ( ; i < n; i++) i 1166 modules/imgproc/src/color.cpp int t = ((ushort*)src)[i]; i 1167 modules/imgproc/src/color.cpp dst[i] = (uchar)CV_DESCALE(((t << 3) & 0xf8)*B2Y + i 1175 modules/imgproc/src/color.cpp for ( ; i <= n - 8; i += 8) i 1177 modules/imgproc/src/color.cpp uint16x8_t v_src = vld1q_u16((ushort *)src + i); i 1189 modules/imgproc/src/color.cpp vst1_u8(dst + i, vmovn_u16(vcombine_u16(vmovn_u32(v_dst0), vmovn_u32(v_dst1)))); i 1196 modules/imgproc/src/color.cpp for ( ; i <= n - 8; i += 8) i 1198 modules/imgproc/src/color.cpp __m128i v_src = _mm_loadu_si128((__m128i const *)((ushort *)src + i)); i 1224 modules/imgproc/src/color.cpp _mm_storel_epi64((__m128i *)(dst + i), _mm_packus_epi16(v_dst, v_zero)); i 1228 modules/imgproc/src/color.cpp for ( ; i < n; i++) i 1230 modules/imgproc/src/color.cpp int t = ((ushort*)src)[i]; i 1231 modules/imgproc/src/color.cpp dst[i] = (uchar)CV_DESCALE(((t << 3) & 0xf8)*B2Y + i 1268 modules/imgproc/src/color.cpp for(int i = 0; i < n; i++, src += scn) i 1269 modules/imgproc/src/color.cpp dst[i] = saturate_cast<_Tp>(src[0]*cb + src[1]*cg + src[2]*cr); i 1287 modules/imgproc/src/color.cpp for( int i = 0; i < 256; i++, b += db, g += dg, r += dr ) i 1289 modules/imgproc/src/color.cpp tab[i] = b; i 1290 modules/imgproc/src/color.cpp tab[i+256] = g; i 1291 modules/imgproc/src/color.cpp tab[i+512] = r; i 1298 modules/imgproc/src/color.cpp for(int i = 0; i < n; i++, src += scn) i 1299 modules/imgproc/src/color.cpp dst[i] = (uchar)((_tab[src[0]] + _tab[src[1]+256] + _tab[src[2]+512]) >> yuv_shift); i 1328 modules/imgproc/src/color.cpp int scn = srccn, cb = coeffs[0], cg = coeffs[1], cr = coeffs[2], i = 0; i 1330 modules/imgproc/src/color.cpp for ( ; i <= n - 8; i += 8, src += scn * 8) i 1360 modules/imgproc/src/color.cpp vst1q_u16(dst + i, vcombine_u16(v_dst0, v_dst1)); i 1363 modules/imgproc/src/color.cpp for ( ; i <= n - 4; i += 4, src += scn * 4) i 1386 modules/imgproc/src/color.cpp vst1_u16(dst + i, vmovn_u32(vshrq_n_u32(vaddq_u32(v_dst, v_delta), yuv_shift))); i 1389 modules/imgproc/src/color.cpp for( ; i < n; i++, src += scn) i 1390 modules/imgproc/src/color.cpp dst[i] = (ushort)CV_DESCALE((unsigned)(src[0]*cb + src[1]*cg + src[2]*cr), yuv_shift); i 1417 modules/imgproc/src/color.cpp int scn = srccn, i = 0; i 1422 modules/imgproc/src/color.cpp for ( ; i <= n - 8; i += 8, src += scn * 8) i 1425 modules/imgproc/src/color.cpp vst1q_f32(dst + i, vmlaq_f32(vmlaq_f32(vmulq_f32(v_src.val[0], v_cb), v_src.val[1], v_cg), v_src.val[2], v_cr)); i 1428 modules/imgproc/src/color.cpp vst1q_f32(dst + i + 4, vmlaq_f32(vmlaq_f32(vmulq_f32(v_src.val[0], v_cb), v_src.val[1], v_cg), v_src.val[2], v_cr)); i 1431 modules/imgproc/src/color.cpp for ( ; i <= n - 4; i += 4, src += scn * 4) i 1434 modules/imgproc/src/color.cpp vst1q_f32(dst + i, vmlaq_f32(vmlaq_f32(vmulq_f32(v_src.val[0], v_cb), v_src.val[1], v_cg), v_src.val[2], v_cr)); i 1439 modules/imgproc/src/color.cpp for ( ; i <= n - 8; i += 8, src += scn * 8) i 1442 modules/imgproc/src/color.cpp vst1q_f32(dst + i, vmlaq_f32(vmlaq_f32(vmulq_f32(v_src.val[0], v_cb), v_src.val[1], v_cg), v_src.val[2], v_cr)); i 1445 modules/imgproc/src/color.cpp vst1q_f32(dst + i + 4, vmlaq_f32(vmlaq_f32(vmulq_f32(v_src.val[0], v_cb), v_src.val[1], v_cg), v_src.val[2], v_cr)); i 1448 modules/imgproc/src/color.cpp for ( ; i <= n - 4; i += 4, src += scn * 4) i 1451 modules/imgproc/src/color.cpp vst1q_f32(dst + i, vmlaq_f32(vmlaq_f32(vmulq_f32(v_src.val[0], v_cb), v_src.val[1], v_cg), v_src.val[2], v_cr)); i 1455 modules/imgproc/src/color.cpp for ( ; i < n; i++, src += scn) i 1456 modules/imgproc/src/color.cpp dst[i] = src[0]*cb + src[1]*cg + src[2]*cr; i 1515 modules/imgproc/src/color.cpp int scn = srccn, cb = coeffs[0], cg = coeffs[1], cr = coeffs[2], i = 0; i 1519 modules/imgproc/src/color.cpp for ( ; i <= n - 16; i += 16, src += scn * 16) i 1538 modules/imgproc/src/color.cpp _mm_storeu_si128((__m128i *)(dst + i), v_gray0); i 1539 modules/imgproc/src/color.cpp _mm_storeu_si128((__m128i *)(dst + i + 8), v_gray1); i 1544 modules/imgproc/src/color.cpp for ( ; i <= n - 16; i += 16, src += scn * 16) i 1565 modules/imgproc/src/color.cpp _mm_storeu_si128((__m128i *)(dst + i), v_gray0); i 1566 modules/imgproc/src/color.cpp _mm_storeu_si128((__m128i *)(dst + i + 8), v_gray1); i 1570 modules/imgproc/src/color.cpp for( ; i < n; i++, src += scn) i 1571 modules/imgproc/src/color.cpp dst[i] = (ushort)CV_DESCALE((unsigned)(src[0]*cb + src[1]*cg + src[2]*cr), yuv_shift); i 1611 modules/imgproc/src/color.cpp int scn = srccn, i = 0; i 1616 modules/imgproc/src/color.cpp for ( ; i <= n - 8; i += 8, src += scn * 8) i 1635 modules/imgproc/src/color.cpp _mm_storeu_ps(dst + i, v_gray0); i 1636 modules/imgproc/src/color.cpp _mm_storeu_ps(dst + i + 4, v_gray1); i 1641 modules/imgproc/src/color.cpp for ( ; i <= n - 8; i += 8, src += scn * 8) i 1662 modules/imgproc/src/color.cpp _mm_storeu_ps(dst + i, v_gray0); i 1663 modules/imgproc/src/color.cpp _mm_storeu_ps(dst + i + 4, v_gray1); i 1667 modules/imgproc/src/color.cpp for ( ; i < n; i++, src += scn) i 1668 modules/imgproc/src/color.cpp dst[i] = src[0]*cb + src[1]*cg + src[2]*cr; i 1694 modules/imgproc/src/color.cpp for(int i = 0; i < n; i++, src += scn) i 1695 modules/imgproc/src/color.cpp dst[i] = (ushort)CV_DESCALE((unsigned)(src[0]*cb + src[1]*cg + src[2]*cr), yuv_shift); i 1722 modules/imgproc/src/color.cpp for(int i = 0; i < n; i += 3, src += scn) i 1727 modules/imgproc/src/color.cpp dst[i] = Y; dst[i+1] = Cr; dst[i+2] = Cb; i 1759 modules/imgproc/src/color.cpp int scn = srccn, bidx = blueIdx, i = 0; i 1765 modules/imgproc/src/color.cpp for ( ; i <= n - 12; i += 12, src += 12) i 1772 modules/imgproc/src/color.cpp vst3q_f32(dst + i, v_dst); i 1775 modules/imgproc/src/color.cpp for ( ; i <= n - 12; i += 12, src += 16) i 1783 modules/imgproc/src/color.cpp vst3q_f32(dst + i, v_dst); i 1786 modules/imgproc/src/color.cpp for ( ; i < n; i += 3, src += scn) i 1791 modules/imgproc/src/color.cpp dst[i] = Y; dst[i+1] = Cr; dst[i+2] = Cb; i 1837 modules/imgproc/src/color.cpp int scn = srccn, bidx = blueIdx, i = 0; i 1844 modules/imgproc/src/color.cpp for ( ; i <= n - 24; i += 24, src += 8 * scn) i 1873 modules/imgproc/src/color.cpp _mm_storeu_ps(dst + i, v_y0); i 1874 modules/imgproc/src/color.cpp _mm_storeu_ps(dst + i + 4, v_y1); i 1875 modules/imgproc/src/color.cpp _mm_storeu_ps(dst + i + 8, v_cr0); i 1876 modules/imgproc/src/color.cpp _mm_storeu_ps(dst + i + 12, v_cr1); i 1877 modules/imgproc/src/color.cpp _mm_storeu_ps(dst + i + 16, v_cb0); i 1878 modules/imgproc/src/color.cpp _mm_storeu_ps(dst + i + 20, v_cb1); i 1882 modules/imgproc/src/color.cpp for ( ; i < n; i += 3, src += scn) i 1887 modules/imgproc/src/color.cpp dst[i] = Y; dst[i+1] = Cr; dst[i+2] = Cb; i 1915 modules/imgproc/src/color.cpp for(int i = 0; i < n; i += 3, src += scn) i 1920 modules/imgproc/src/color.cpp dst[i] = saturate_cast<_Tp>(Y); i 1921 modules/imgproc/src/color.cpp dst[i+1] = saturate_cast<_Tp>(Cr); i 1922 modules/imgproc/src/color.cpp dst[i+2] = saturate_cast<_Tp>(Cb); i 1955 modules/imgproc/src/color.cpp int scn = srccn, bidx = blueIdx, i = 0; i 1960 modules/imgproc/src/color.cpp for ( ; i <= n - 24; i += 24, src += scn * 8) i 2007 modules/imgproc/src/color.cpp vst3_u8(dst + i, v_dst); i 2010 modules/imgproc/src/color.cpp for ( ; i < n; i += 3, src += scn) i 2015 modules/imgproc/src/color.cpp dst[i] = saturate_cast<uchar>(Y); i 2016 modules/imgproc/src/color.cpp dst[i+1] = saturate_cast<uchar>(Cr); i 2017 modules/imgproc/src/color.cpp dst[i+2] = saturate_cast<uchar>(Cb); i 2049 modules/imgproc/src/color.cpp int scn = srccn, bidx = blueIdx, i = 0; i 2054 modules/imgproc/src/color.cpp for ( ; i <= n - 24; i += 24, src += scn * 8) i 2095 modules/imgproc/src/color.cpp vst3q_u16(dst + i, v_dst); i 2098 modules/imgproc/src/color.cpp for ( ; i <= n - 12; i += 12, src += scn * 4) i 2129 modules/imgproc/src/color.cpp vst3_u16(dst + i, v_dst); i 2132 modules/imgproc/src/color.cpp for ( ; i < n; i += 3, src += scn) i 2137 modules/imgproc/src/color.cpp dst[i] = saturate_cast<ushort>(Y); i 2138 modules/imgproc/src/color.cpp dst[i+1] = saturate_cast<ushort>(Cr); i 2139 modules/imgproc/src/color.cpp dst[i+2] = saturate_cast<ushort>(Cb); i 2213 modules/imgproc/src/color.cpp int scn = srccn, bidx = blueIdx, i = 0; i 2220 modules/imgproc/src/color.cpp for ( ; i <= n - 96; i += 96, src += scn * 32) i 2271 modules/imgproc/src/color.cpp _mm_storeu_si128((__m128i *)(dst + i), v_y_0); i 2272 modules/imgproc/src/color.cpp _mm_storeu_si128((__m128i *)(dst + i + 16), v_y_1); i 2273 modules/imgproc/src/color.cpp _mm_storeu_si128((__m128i *)(dst + i + 32), v_cr_0); i 2274 modules/imgproc/src/color.cpp _mm_storeu_si128((__m128i *)(dst + i + 48), v_cr_1); i 2275 modules/imgproc/src/color.cpp _mm_storeu_si128((__m128i *)(dst + i + 64), v_cb_0); i 2276 modules/imgproc/src/color.cpp _mm_storeu_si128((__m128i *)(dst + i + 80), v_cb_1); i 2280 modules/imgproc/src/color.cpp for ( ; i < n; i += 3, src += scn) i 2285 modules/imgproc/src/color.cpp dst[i] = saturate_cast<uchar>(Y); i 2286 modules/imgproc/src/color.cpp dst[i+1] = saturate_cast<uchar>(Cr); i 2287 modules/imgproc/src/color.cpp dst[i+2] = saturate_cast<uchar>(Cb); i 2363 modules/imgproc/src/color.cpp int scn = srccn, bidx = blueIdx, i = 0; i 2370 modules/imgproc/src/color.cpp for ( ; i <= n - 48; i += 48, src += scn * 16) i 2400 modules/imgproc/src/color.cpp _mm_storeu_si128((__m128i *)(dst + i), v_y0); i 2401 modules/imgproc/src/color.cpp _mm_storeu_si128((__m128i *)(dst + i + 8), v_y1); i 2402 modules/imgproc/src/color.cpp _mm_storeu_si128((__m128i *)(dst + i + 16), v_cr0); i 2403 modules/imgproc/src/color.cpp _mm_storeu_si128((__m128i *)(dst + i + 24), v_cr1); i 2404 modules/imgproc/src/color.cpp _mm_storeu_si128((__m128i *)(dst + i + 32), v_cb0); i 2405 modules/imgproc/src/color.cpp _mm_storeu_si128((__m128i *)(dst + i + 40), v_cb1); i 2409 modules/imgproc/src/color.cpp for ( ; i < n; i += 3, src += scn) i 2414 modules/imgproc/src/color.cpp dst[i] = saturate_cast<ushort>(Y); i 2415 modules/imgproc/src/color.cpp dst[i+1] = saturate_cast<ushort>(Cr); i 2416 modules/imgproc/src/color.cpp dst[i+2] = saturate_cast<ushort>(Cb); i 2445 modules/imgproc/src/color.cpp for(int i = 0; i < n; i += 3, dst += dcn) i 2447 modules/imgproc/src/color.cpp _Tp Y = src[i]; i 2448 modules/imgproc/src/color.cpp _Tp Cr = src[i+1]; i 2449 modules/imgproc/src/color.cpp _Tp Cb = src[i+2]; i 2487 modules/imgproc/src/color.cpp int dcn = dstcn, bidx = blueIdx, i = 0; i 2493 modules/imgproc/src/color.cpp for ( ; i <= n - 12; i += 12, dst += 12) i 2495 modules/imgproc/src/color.cpp float32x4x3_t v_src = vld3q_f32(src + i), v_dst; i 2505 modules/imgproc/src/color.cpp for ( ; i <= n - 12; i += 12, dst += 16) i 2507 modules/imgproc/src/color.cpp float32x4x3_t v_src = vld3q_f32(src + i); i 2519 modules/imgproc/src/color.cpp for ( ; i < n; i += 3, dst += dcn) i 2521 modules/imgproc/src/color.cpp float Y = src[i], Cr = src[i+1], Cb = src[i+2]; i 2580 modules/imgproc/src/color.cpp int dcn = dstcn, bidx = blueIdx, i = 0; i 2587 modules/imgproc/src/color.cpp for ( ; i <= n - 24; i += 24, dst += 8 * dcn) i 2589 modules/imgproc/src/color.cpp __m128 v_y0 = _mm_loadu_ps(src + i); i 2590 modules/imgproc/src/color.cpp __m128 v_y1 = _mm_loadu_ps(src + i + 4); i 2591 modules/imgproc/src/color.cpp __m128 v_cr0 = _mm_loadu_ps(src + i + 8); i 2592 modules/imgproc/src/color.cpp __m128 v_cr1 = _mm_loadu_ps(src + i + 12); i 2593 modules/imgproc/src/color.cpp __m128 v_cb0 = _mm_loadu_ps(src + i + 16); i 2594 modules/imgproc/src/color.cpp __m128 v_cb1 = _mm_loadu_ps(src + i + 20); i 2629 modules/imgproc/src/color.cpp for ( ; i < n; i += 3, dst += dcn) i 2631 modules/imgproc/src/color.cpp float Y = src[i], Cr = src[i+1], Cb = src[i+2]; i 2668 modules/imgproc/src/color.cpp for(int i = 0; i < n; i += 3, dst += dcn) i 2670 modules/imgproc/src/color.cpp _Tp Y = src[i]; i 2671 modules/imgproc/src/color.cpp _Tp Cr = src[i+1]; i 2672 modules/imgproc/src/color.cpp _Tp Cb = src[i+2]; i 2713 modules/imgproc/src/color.cpp int dcn = dstcn, bidx = blueIdx, i = 0; i 2718 modules/imgproc/src/color.cpp for ( ; i <= n - 24; i += 24, dst += dcn * 8) i 2720 modules/imgproc/src/color.cpp uint8x8x3_t v_src = vld3_u8(src + i); i 2771 modules/imgproc/src/color.cpp for ( ; i < n; i += 3, dst += dcn) i 2773 modules/imgproc/src/color.cpp uchar Y = src[i]; i 2774 modules/imgproc/src/color.cpp uchar Cr = src[i+1]; i 2775 modules/imgproc/src/color.cpp uchar Cb = src[i+2]; i 2819 modules/imgproc/src/color.cpp int dcn = dstcn, bidx = blueIdx, i = 0; i 2824 modules/imgproc/src/color.cpp for ( ; i <= n - 24; i += 24, dst += dcn * 8) i 2826 modules/imgproc/src/color.cpp uint16x8x3_t v_src = vld3q_u16(src + i); i 2873 modules/imgproc/src/color.cpp for ( ; i <= n - 12; i += 12, dst += dcn * 4) i 2875 modules/imgproc/src/color.cpp uint16x4x3_t v_src = vld3_u16(src + i); i 2911 modules/imgproc/src/color.cpp for ( ; i < n; i += 3, dst += dcn) i 2913 modules/imgproc/src/color.cpp ushort Y = src[i]; i 2914 modules/imgproc/src/color.cpp ushort Cr = src[i+1]; i 2915 modules/imgproc/src/color.cpp ushort Cb = src[i+2]; i 3012 modules/imgproc/src/color.cpp int dcn = dstcn, bidx = blueIdx, i = 0; i 3019 modules/imgproc/src/color.cpp for ( ; i <= n - 96; i += 96, dst += dcn * 32) i 3021 modules/imgproc/src/color.cpp __m128i v_y0 = _mm_loadu_si128((__m128i const *)(src + i)); i 3022 modules/imgproc/src/color.cpp __m128i v_y1 = _mm_loadu_si128((__m128i const *)(src + i + 16)); i 3023 modules/imgproc/src/color.cpp __m128i v_cr0 = _mm_loadu_si128((__m128i const *)(src + i + 32)); i 3024 modules/imgproc/src/color.cpp __m128i v_cr1 = _mm_loadu_si128((__m128i const *)(src + i + 48)); i 3025 modules/imgproc/src/color.cpp __m128i v_cb0 = _mm_loadu_si128((__m128i const *)(src + i + 64)); i 3026 modules/imgproc/src/color.cpp __m128i v_cb1 = _mm_loadu_si128((__m128i const *)(src + i + 80)); i 3089 modules/imgproc/src/color.cpp for ( ; i < n; i += 3, dst += dcn) i 3091 modules/imgproc/src/color.cpp uchar Y = src[i]; i 3092 modules/imgproc/src/color.cpp uchar Cr = src[i+1]; i 3093 modules/imgproc/src/color.cpp uchar Cb = src[i+2]; i 3154 modules/imgproc/src/color.cpp for(int i = 0; i < n; i += 3, src += scn) i 3159 modules/imgproc/src/color.cpp dst[i] = X; dst[i+1] = Y; dst[i+2] = Z; i 3196 modules/imgproc/src/color.cpp int scn = srccn, i = 0; i 3204 modules/imgproc/src/color.cpp for ( ; i <= n - 12; i += 12, src += 12) i 3210 modules/imgproc/src/color.cpp vst3q_f32(dst + i, v_dst); i 3213 modules/imgproc/src/color.cpp for ( ; i <= n - 12; i += 12, src += 16) i 3220 modules/imgproc/src/color.cpp vst3q_f32(dst + i, v_dst); i 3223 modules/imgproc/src/color.cpp for ( ; i < n; i += 3, src += scn) i 3228 modules/imgproc/src/color.cpp dst[i] = X; dst[i+1] = Y; dst[i+2] = Z; i 3285 modules/imgproc/src/color.cpp int scn = srccn, i = 0; i 3294 modules/imgproc/src/color.cpp for ( ; i <= n - 24; i += 24, src += 8 * scn) i 3324 modules/imgproc/src/color.cpp _mm_storeu_ps(dst + i, v_x0); i 3325 modules/imgproc/src/color.cpp _mm_storeu_ps(dst + i + 4, v_x1); i 3326 modules/imgproc/src/color.cpp _mm_storeu_ps(dst + i + 8, v_y0); i 3327 modules/imgproc/src/color.cpp _mm_storeu_ps(dst + i + 12, v_y1); i 3328 modules/imgproc/src/color.cpp _mm_storeu_ps(dst + i + 16, v_z0); i 3329 modules/imgproc/src/color.cpp _mm_storeu_ps(dst + i + 20, v_z1); i 3333 modules/imgproc/src/color.cpp for ( ; i < n; i += 3, src += scn) i 3338 modules/imgproc/src/color.cpp dst[i] = X; dst[i+1] = Y; dst[i+2] = Z; i 3363 modules/imgproc/src/color.cpp for( int i = 0; i < 9; i++ ) i 3364 modules/imgproc/src/color.cpp coeffs[i] = _coeffs ? cvRound(_coeffs[i]*(1 << xyz_shift)) : coeffs0[i]; i 3380 modules/imgproc/src/color.cpp for(int i = 0; i < n; i += 3, src += scn) i 3385 modules/imgproc/src/color.cpp dst[i] = saturate_cast<_Tp>(X); dst[i+1] = saturate_cast<_Tp>(Y); i 3386 modules/imgproc/src/color.cpp dst[i+2] = saturate_cast<_Tp>(Z); i 3408 modules/imgproc/src/color.cpp for( int i = 0; i < 9; i++ ) i 3409 modules/imgproc/src/color.cpp coeffs[i] = _coeffs ? cvRound(_coeffs[i]*(1 << xyz_shift)) : coeffs0[i]; i 3430 modules/imgproc/src/color.cpp int scn = srccn, i = 0; i 3436 modules/imgproc/src/color.cpp for ( ; i <= n - 24; i += 24, src += scn * 8) i 3482 modules/imgproc/src/color.cpp vst3_u8(dst + i, v_dst); i 3485 modules/imgproc/src/color.cpp for ( ; i < n; i += 3, src += scn) i 3490 modules/imgproc/src/color.cpp dst[i] = saturate_cast<uchar>(X); i 3491 modules/imgproc/src/color.cpp dst[i+1] = saturate_cast<uchar>(Y); i 3492 modules/imgproc/src/color.cpp dst[i+2] = saturate_cast<uchar>(Z); i 3514 modules/imgproc/src/color.cpp for( int i = 0; i < 9; i++ ) i 3515 modules/imgproc/src/color.cpp coeffs[i] = _coeffs ? cvRound(_coeffs[i]*(1 << xyz_shift)) : coeffs0[i]; i 3537 modules/imgproc/src/color.cpp int scn = srccn, i = 0; i 3543 modules/imgproc/src/color.cpp for ( ; i <= n - 24; i += 24, src += scn * 8) i 3583 modules/imgproc/src/color.cpp vst3q_u16(dst + i, v_dst); i 3586 modules/imgproc/src/color.cpp for ( ; i <= n - 12; i += 12, src += scn * 4) i 3614 modules/imgproc/src/color.cpp vst3_u16(dst + i, v_dst); i 3617 modules/imgproc/src/color.cpp for ( ; i < n; i += 3, src += scn) i 3622 modules/imgproc/src/color.cpp dst[i] = saturate_cast<ushort>(X); i 3623 modules/imgproc/src/color.cpp dst[i+1] = saturate_cast<ushort>(Y); i 3624 modules/imgproc/src/color.cpp dst[i+2] = saturate_cast<ushort>(Z); i 3659 modules/imgproc/src/color.cpp for(int i = 0; i < n; i += 3, dst += dcn) i 3661 modules/imgproc/src/color.cpp _Tp B = saturate_cast<_Tp>(src[i]*C0 + src[i+1]*C1 + src[i+2]*C2); i 3662 modules/imgproc/src/color.cpp _Tp G = saturate_cast<_Tp>(src[i]*C3 + src[i+1]*C4 + src[i+2]*C5); i 3663 modules/imgproc/src/color.cpp _Tp R = saturate_cast<_Tp>(src[i]*C6 + src[i+1]*C7 + src[i+2]*C8); i 3730 modules/imgproc/src/color.cpp int i = 0; i 3734 modules/imgproc/src/color.cpp for ( ; i <= n - 24; i += 24, dst += 8 * dcn) i 3736 modules/imgproc/src/color.cpp __m128 v_x0 = _mm_loadu_ps(src + i); i 3737 modules/imgproc/src/color.cpp __m128 v_x1 = _mm_loadu_ps(src + i + 4); i 3738 modules/imgproc/src/color.cpp __m128 v_y0 = _mm_loadu_ps(src + i + 8); i 3739 modules/imgproc/src/color.cpp __m128 v_y1 = _mm_loadu_ps(src + i + 12); i 3740 modules/imgproc/src/color.cpp __m128 v_z0 = _mm_loadu_ps(src + i + 16); i 3741 modules/imgproc/src/color.cpp __m128 v_z1 = _mm_loadu_ps(src + i + 20); i 3777 modules/imgproc/src/color.cpp for( ; i < n; i += 3, dst += dcn) i 3779 modules/imgproc/src/color.cpp float B = src[i]*C0 + src[i+1]*C1 + src[i+2]*C2; i 3780 modules/imgproc/src/color.cpp float G = src[i]*C3 + src[i+1]*C4 + src[i+2]*C5; i 3781 modules/imgproc/src/color.cpp float R = src[i]*C6 + src[i+1]*C7 + src[i+2]*C8; i 3811 modules/imgproc/src/color.cpp for(int i = 0; i < 9; i++) i 3812 modules/imgproc/src/color.cpp coeffs[i] = _coeffs ? cvRound(_coeffs[i]*(1 << xyz_shift)) : coeffs0[i]; i 3829 modules/imgproc/src/color.cpp for(int i = 0; i < n; i += 3, dst += dcn) i 3831 modules/imgproc/src/color.cpp int B = CV_DESCALE(src[i]*C0 + src[i+1]*C1 + src[i+2]*C2, xyz_shift); i 3832 modules/imgproc/src/color.cpp int G = CV_DESCALE(src[i]*C3 + src[i+1]*C4 + src[i+2]*C5, xyz_shift); i 3833 modules/imgproc/src/color.cpp int R = CV_DESCALE(src[i]*C6 + src[i+1]*C7 + src[i+2]*C8, xyz_shift); i 3860 modules/imgproc/src/color.cpp for(int i = 0; i < 9; i++) i 3861 modules/imgproc/src/color.cpp coeffs[i] = _coeffs ? cvRound(_coeffs[i]*(1 << xyz_shift)) : coeffs0[i]; i 3885 modules/imgproc/src/color.cpp int dcn = dstcn, i = 0; i 3892 modules/imgproc/src/color.cpp for ( ; i <= n - 24; i += 24, dst += dcn * 8) i 3894 modules/imgproc/src/color.cpp uint8x8x3_t v_src = vld3_u8(src + i); i 3945 modules/imgproc/src/color.cpp for ( ; i < n; i += 3, dst += dcn) i 3947 modules/imgproc/src/color.cpp int B = CV_DESCALE(src[i]*C0 + src[i+1]*C1 + src[i+2]*C2, xyz_shift); i 3948 modules/imgproc/src/color.cpp int G = CV_DESCALE(src[i]*C3 + src[i+1]*C4 + src[i+2]*C5, xyz_shift); i 3949 modules/imgproc/src/color.cpp int R = CV_DESCALE(src[i]*C6 + src[i+1]*C7 + src[i+2]*C8, xyz_shift); i 3978 modules/imgproc/src/color.cpp for(int i = 0; i < 9; i++) i 3979 modules/imgproc/src/color.cpp coeffs[i] = _coeffs ? cvRound(_coeffs[i]*(1 << xyz_shift)) : coeffs0[i]; i 4004 modules/imgproc/src/color.cpp int dcn = dstcn, i = 0; i 4011 modules/imgproc/src/color.cpp for ( ; i <= n - 24; i += 24, dst += dcn * 8) i 4013 modules/imgproc/src/color.cpp uint16x8x3_t v_src = vld3q_u16(src + i); i 4059 modules/imgproc/src/color.cpp for ( ; i <= n - 12; i += 12, dst += dcn * 4) i 4061 modules/imgproc/src/color.cpp uint16x4x3_t v_src = vld3_u16(src + i); i 4096 modules/imgproc/src/color.cpp for ( ; i < n; i += 3, dst += dcn) i 4098 modules/imgproc/src/color.cpp int B = CV_DESCALE(src[i]*C0 + src[i+1]*C1 + src[i+2]*C2, xyz_shift); i 4099 modules/imgproc/src/color.cpp int G = CV_DESCALE(src[i]*C3 + src[i+1]*C4 + src[i+2]*C5, xyz_shift); i 4100 modules/imgproc/src/color.cpp int R = CV_DESCALE(src[i]*C6 + src[i+1]*C7 + src[i+2]*C8, xyz_shift); i 4132 modules/imgproc/src/color.cpp int i, bidx = blueIdx, scn = srccn; i 4147 modules/imgproc/src/color.cpp for( i = 1; i < 256; i++ ) i 4149 modules/imgproc/src/color.cpp sdiv_table[i] = saturate_cast<int>((255 << hsv_shift)/(1.*i)); i 4150 modules/imgproc/src/color.cpp hdiv_table180[i] = saturate_cast<int>((180 << hsv_shift)/(6.*i)); i 4151 modules/imgproc/src/color.cpp hdiv_table256[i] = saturate_cast<int>((256 << hsv_shift)/(6.*i)); i 4156 modules/imgproc/src/color.cpp for( i = 0; i < n; i += 3, src += scn ) i 4178 modules/imgproc/src/color.cpp dst[i] = saturate_cast<uchar>(h); i 4179 modules/imgproc/src/color.cpp dst[i+1] = (uchar)s; i 4180 modules/imgproc/src/color.cpp dst[i+2] = (uchar)v; i 4197 modules/imgproc/src/color.cpp int i, bidx = blueIdx, scn = srccn; i 4201 modules/imgproc/src/color.cpp for( i = 0; i < n; i += 3, src += scn ) i 4226 modules/imgproc/src/color.cpp dst[i] = h*hscale; i 4227 modules/imgproc/src/color.cpp dst[i+1] = s; i 4228 modules/imgproc/src/color.cpp dst[i+2] = v; i 4246 modules/imgproc/src/color.cpp int i, bidx = blueIdx, dcn = dstcn; i 4251 modules/imgproc/src/color.cpp for( i = 0; i < n; i += 3, dst += dcn ) i 4253 modules/imgproc/src/color.cpp float h = src[i], s = src[i+1], v = src[i+2]; i 4351 modules/imgproc/src/color.cpp int i, j, dcn = dstcn; i 4355 modules/imgproc/src/color.cpp for( i = 0; i < n; i += BLOCK_SIZE, src += BLOCK_SIZE*3 ) i 4357 modules/imgproc/src/color.cpp int dn = std::min(n - i, (int)BLOCK_SIZE); i 4513 modules/imgproc/src/color.cpp int i, bidx = blueIdx, scn = srccn; i 4517 modules/imgproc/src/color.cpp for( i = 0; i < n; i += 3, src += scn ) i 4547 modules/imgproc/src/color.cpp dst[i] = h*hscale; i 4548 modules/imgproc/src/color.cpp dst[i+1] = l; i 4549 modules/imgproc/src/color.cpp dst[i+2] = s; i 4603 modules/imgproc/src/color.cpp int i, j, scn = srccn; i 4606 modules/imgproc/src/color.cpp for( i = 0; i < n; i += BLOCK_SIZE, dst += BLOCK_SIZE*3 ) i 4608 modules/imgproc/src/color.cpp int dn = std::min(n - i, (int)BLOCK_SIZE); i 4755 modules/imgproc/src/color.cpp int i, bidx = blueIdx, dcn = dstcn; i 4760 modules/imgproc/src/color.cpp for( i = 0; i < n; i += 3, dst += dcn ) i 4762 modules/imgproc/src/color.cpp float h = src[i], l = src[i+1], s = src[i+2]; i 4861 modules/imgproc/src/color.cpp int i, j, dcn = dstcn; i 4865 modules/imgproc/src/color.cpp for( i = 0; i < n; i += BLOCK_SIZE, src += BLOCK_SIZE*3 ) i 4867 modules/imgproc/src/color.cpp int dn = std::min(n - i, (int)BLOCK_SIZE); i 5036 modules/imgproc/src/color.cpp int i; i 5037 modules/imgproc/src/color.cpp for(i = 0; i <= LAB_CBRT_TAB_SIZE; i++) i 5039 modules/imgproc/src/color.cpp float x = i*scale; i 5040 modules/imgproc/src/color.cpp f[i] = x < 0.008856f ? x*7.787f + 0.13793103448275862f : cvCbrt(x); i 5045 modules/imgproc/src/color.cpp for(i = 0; i <= GAMMA_TAB_SIZE; i++) i 5047 modules/imgproc/src/color.cpp float x = i*scale; i 5048 modules/imgproc/src/color.cpp g[i] = x <= 0.04045f ? x*(1.f/12.92f) : (float)std::pow((double)(x + 0.055)*(1./1.055), 2.4); i 5049 modules/imgproc/src/color.cpp ig[i] = x <= 0.0031308 ? x*12.92f : (float)(1.055*std::pow((double)x, 1./2.4) - 0.055); i 5054 modules/imgproc/src/color.cpp for(i = 0; i < 256; i++) i 5056 modules/imgproc/src/color.cpp float x = i*(1.f/255.f); i 5057 modules/imgproc/src/color.cpp sRGBGammaTab_b[i] = saturate_cast<ushort>(255.f*(1 << gamma_shift)*(x <= 0.04045f ? x*(1.f/12.92f) : (float)std::pow((double)(x + 0.055)*(1./1.055), 2.4))); i 5058 modules/imgproc/src/color.cpp linearGammaTab_b[i] = (ushort)(i*(1 << gamma_shift)); i 5061 modules/imgproc/src/color.cpp for(i = 0; i < LAB_CBRT_TAB_SIZE_B; i++) i 5063 modules/imgproc/src/color.cpp float x = i*(1.f/(255.f*(1 << gamma_shift))); i 5064 modules/imgproc/src/color.cpp LabCbrtTab_b[i] = saturate_cast<ushort>((1 << lab_shift2)*(x < 0.008856f ? x*7.787f + 0.13793103448275862f : cvCbrt(x))); i 5093 modules/imgproc/src/color.cpp for( int i = 0; i < _3; i++ ) i 5095 modules/imgproc/src/color.cpp coeffs[i*3+(blueIdx^2)] = cvRound(_coeffs[i*3]*scale[i]); i 5096 modules/imgproc/src/color.cpp coeffs[i*3+1] = cvRound(_coeffs[i*3+1]*scale[i]); i 5097 modules/imgproc/src/color.cpp coeffs[i*3+blueIdx] = cvRound(_coeffs[i*3+2]*scale[i]); i 5099 modules/imgproc/src/color.cpp CV_Assert( coeffs[i] >= 0 && coeffs[i*3+1] >= 0 && coeffs[i*3+2] >= 0 && i 5100 modules/imgproc/src/color.cpp coeffs[i*3] + coeffs[i*3+1] + coeffs[i*3+2] < 2*(1 << lab_shift) ); i 5109 modules/imgproc/src/color.cpp int i, scn = srccn; i 5115 modules/imgproc/src/color.cpp for( i = 0; i < n; i += 3, src += scn ) i 5126 modules/imgproc/src/color.cpp dst[i] = saturate_cast<uchar>(L); i 5127 modules/imgproc/src/color.cpp dst[i+1] = saturate_cast<uchar>(a); i 5128 modules/imgproc/src/color.cpp dst[i+2] = saturate_cast<uchar>(b); i 5159 modules/imgproc/src/color.cpp for( int i = 0; i < _3; i++ ) i 5161 modules/imgproc/src/color.cpp int j = i * 3; i 5162 modules/imgproc/src/color.cpp coeffs[j + (blueIdx ^ 2)] = _coeffs[j] * scale[i]; i 5163 modules/imgproc/src/color.cpp coeffs[j + 1] = _coeffs[j + 1] * scale[i]; i 5164 modules/imgproc/src/color.cpp coeffs[j + blueIdx] = _coeffs[j + 2] * scale[i]; i 5173 modules/imgproc/src/color.cpp int i, scn = srccn; i 5183 modules/imgproc/src/color.cpp for (i = 0; i < n; i += 3, src += scn ) i 5207 modules/imgproc/src/color.cpp dst[i] = L; i 5208 modules/imgproc/src/color.cpp dst[i + 1] = a; i 5209 modules/imgproc/src/color.cpp dst[i + 2] = b; i 5233 modules/imgproc/src/color.cpp for( int i = 0; i < 3; i++ ) i 5235 modules/imgproc/src/color.cpp coeffs[i+(blueIdx^2)*3] = _coeffs[i]*_whitept[i]; i 5236 modules/imgproc/src/color.cpp coeffs[i+3] = _coeffs[i+3]*_whitept[i]; i 5237 modules/imgproc/src/color.cpp coeffs[i+blueIdx*3] = _coeffs[i+6]*_whitept[i]; i 5243 modules/imgproc/src/color.cpp int i, dcn = dstcn; i 5254 modules/imgproc/src/color.cpp for (i = 0; i < n; i += 3, dst += dcn) i 5256 modules/imgproc/src/color.cpp float li = src[i]; i 5257 modules/imgproc/src/color.cpp float ai = src[i + 1]; i 5258 modules/imgproc/src/color.cpp float bi = src[i + 2]; i 5365 modules/imgproc/src/color.cpp int i, j, dcn = dstcn; i 5369 modules/imgproc/src/color.cpp for( i = 0; i < n; i += BLOCK_SIZE, src += BLOCK_SIZE*3 ) i 5371 modules/imgproc/src/color.cpp int dn = std::min(n - i, (int)BLOCK_SIZE); i 5527 modules/imgproc/src/color.cpp volatile int i; i 5533 modules/imgproc/src/color.cpp for( i = 0; i < 3; i++ ) i 5535 modules/imgproc/src/color.cpp coeffs[i*3] = _coeffs[i*3]; i 5536 modules/imgproc/src/color.cpp coeffs[i*3+1] = _coeffs[i*3+1]; i 5537 modules/imgproc/src/color.cpp coeffs[i*3+2] = _coeffs[i*3+2]; i 5539 modules/imgproc/src/color.cpp std::swap(coeffs[i*3], coeffs[i*3+2]); i 5540 modules/imgproc/src/color.cpp CV_Assert( coeffs[i*3] >= 0 && coeffs[i*3+1] >= 0 && coeffs[i*3+2] >= 0 && i 5541 modules/imgproc/src/color.cpp coeffs[i*3] + coeffs[i*3+1] + coeffs[i*3+2] < 1.5f ); i 5553 modules/imgproc/src/color.cpp int i, scn = srccn; i 5562 modules/imgproc/src/color.cpp for( i = 0; i < n; i += 3, src += scn ) i 5583 modules/imgproc/src/color.cpp dst[i] = L; dst[i+1] = u; dst[i+2] = v; i 5606 modules/imgproc/src/color.cpp for( int i = 0; i < 3; i++ ) i 5608 modules/imgproc/src/color.cpp coeffs[i+(blueIdx^2)*3] = _coeffs[i]; i 5609 modules/imgproc/src/color.cpp coeffs[i+3] = _coeffs[i+3]; i 5610 modules/imgproc/src/color.cpp coeffs[i+blueIdx*3] = _coeffs[i+6]; i 5622 modules/imgproc/src/color.cpp int i, dcn = dstcn; i 5632 modules/imgproc/src/color.cpp for( i = 0; i < n; i += 3, dst += dcn ) i 5634 modules/imgproc/src/color.cpp float L = src[i], u = src[i+1], v = src[i+2], d, X, Y, Z; i 5727 modules/imgproc/src/color.cpp int i, j, scn = srccn; i 5730 modules/imgproc/src/color.cpp for( i = 0; i < n; i += BLOCK_SIZE, dst += BLOCK_SIZE*3 ) i 5732 modules/imgproc/src/color.cpp int dn = std::min(n - i, (int)BLOCK_SIZE); i 5935 modules/imgproc/src/color.cpp int i, j, dcn = dstcn; i 5939 modules/imgproc/src/color.cpp for( i = 0; i < n; i += BLOCK_SIZE, src += BLOCK_SIZE*3 ) i 5941 modules/imgproc/src/color.cpp int dn = std::min(n - i, (int)BLOCK_SIZE); i 6141 modules/imgproc/src/color.cpp for (int i = 0; i < width; i += 2, row1 += 6, row2 += 6) i 6143 modules/imgproc/src/color.cpp int u = int(uv[i + 0 + uIdx]) - 128; i 6144 modules/imgproc/src/color.cpp int v = int(uv[i + 1 - uIdx]) - 128; i 6150 modules/imgproc/src/color.cpp int y00 = std::max(0, int(y1[i]) - 16) * ITUR_BT_601_CY; i 6155 modules/imgproc/src/color.cpp int y01 = std::max(0, int(y1[i + 1]) - 16) * ITUR_BT_601_CY; i 6160 modules/imgproc/src/color.cpp int y10 = std::max(0, int(y2[i]) - 16) * ITUR_BT_601_CY; i 6165 modules/imgproc/src/color.cpp int y11 = std::max(0, int(y2[i + 1]) - 16) * ITUR_BT_601_CY; i 6210 modules/imgproc/src/color.cpp for (int i = 0; i < width; i += 2, row1 += 8, row2 += 8) i 6212 modules/imgproc/src/color.cpp int u = int(uv[i + 0 + uIdx]) - 128; i 6213 modules/imgproc/src/color.cpp int v = int(uv[i + 1 - uIdx]) - 128; i 6219 modules/imgproc/src/color.cpp int y00 = std::max(0, int(y1[i]) - 16) * ITUR_BT_601_CY; i 6225 modules/imgproc/src/color.cpp int y01 = std::max(0, int(y1[i + 1]) - 16) * ITUR_BT_601_CY; i 6231 modules/imgproc/src/color.cpp int y10 = std::max(0, int(y2[i]) - 16) * ITUR_BT_601_CY; i 6237 modules/imgproc/src/color.cpp int y11 = std::max(0, int(y2[i + 1]) - 16) * ITUR_BT_601_CY; i 6282 modules/imgproc/src/color.cpp for (int i = 0; i < width / 2; i += 1, row1 += 6, row2 += 6) i 6284 modules/imgproc/src/color.cpp int u = int(u1[i]) - 128; i 6285 modules/imgproc/src/color.cpp int v = int(v1[i]) - 128; i 6291 modules/imgproc/src/color.cpp int y00 = std::max(0, int(y1[2 * i]) - 16) * ITUR_BT_601_CY; i 6296 modules/imgproc/src/color.cpp int y01 = std::max(0, int(y1[2 * i + 1]) - 16) * ITUR_BT_601_CY; i 6301 modules/imgproc/src/color.cpp int y10 = std::max(0, int(y2[2 * i]) - 16) * ITUR_BT_601_CY; i 6306 modules/imgproc/src/color.cpp int y11 = std::max(0, int(y2[2 * i + 1]) - 16) * ITUR_BT_601_CY; i 6350 modules/imgproc/src/color.cpp for (int i = 0; i < width / 2; i += 1, row1 += 8, row2 += 8) i 6352 modules/imgproc/src/color.cpp int u = int(u1[i]) - 128; i 6353 modules/imgproc/src/color.cpp int v = int(v1[i]) - 128; i 6359 modules/imgproc/src/color.cpp int y00 = std::max(0, int(y1[2 * i]) - 16) * ITUR_BT_601_CY; i 6365 modules/imgproc/src/color.cpp int y01 = std::max(0, int(y1[2 * i + 1]) - 16) * ITUR_BT_601_CY; i 6371 modules/imgproc/src/color.cpp int y10 = std::max(0, int(y2[2 * i]) - 16) * ITUR_BT_601_CY; i 6377 modules/imgproc/src/color.cpp int y11 = std::max(0, int(y2[2 * i + 1]) - 16) * ITUR_BT_601_CY; i 6445 modules/imgproc/src/color.cpp for( int i = rowRange.start; i < rowRange.end; i++ ) i 6447 modules/imgproc/src/color.cpp const uchar* row0 = src_.ptr<uchar>(2 * i); i 6448 modules/imgproc/src/color.cpp const uchar* row1 = src_.ptr<uchar>(2 * i + 1); i 6450 modules/imgproc/src/color.cpp uchar* y = dst_->ptr<uchar>(2*i); i 6451 modules/imgproc/src/color.cpp uchar* u = dst_->ptr<uchar>(h + i/2) + (i % 2) * (w/2); i 6452 modules/imgproc/src/color.cpp uchar* v = dst_->ptr<uchar>(h + (i + h/2)/2) + ((i + h/2) % 2) * (w/2); i 6532 modules/imgproc/src/color.cpp for (int i = 0; i < 2 * width; i += 4, row += 6) i 6534 modules/imgproc/src/color.cpp int u = int(yuv_src[i + uidx]) - 128; i 6535 modules/imgproc/src/color.cpp int v = int(yuv_src[i + vidx]) - 128; i 6541 modules/imgproc/src/color.cpp int y00 = std::max(0, int(yuv_src[i + yIdx]) - 16) * ITUR_BT_601_CY; i 6546 modules/imgproc/src/color.cpp int y01 = std::max(0, int(yuv_src[i + yIdx + 2]) - 16) * ITUR_BT_601_CY; i 6578 modules/imgproc/src/color.cpp for (int i = 0; i < 2 * width; i += 4, row += 8) i 6580 modules/imgproc/src/color.cpp int u = int(yuv_src[i + uidx]) - 128; i 6581 modules/imgproc/src/color.cpp int v = int(yuv_src[i + vidx]) - 128; i 6587 modules/imgproc/src/color.cpp int y00 = std::max(0, int(yuv_src[i + yIdx]) - 16) * ITUR_BT_601_CY; i 6593 modules/imgproc/src/color.cpp int y01 = std::max(0, int(yuv_src[i + yIdx + 2]) - 16) * ITUR_BT_601_CY; i 6636 modules/imgproc/src/color.cpp for( int i = 0; i < n; i++ ) i 6660 modules/imgproc/src/color.cpp for( int i = 0; i < n; i++ ) i 7053 modules/imgproc/src/color.cpp for(int i = 1; i < 256; i++ ) i 7054 modules/imgproc/src/color.cpp sdiv_table[i] = saturate_cast<int>(v/(1.*i)); i 7059 modules/imgproc/src/color.cpp for (int i = 1; i < 256; i++ ) i 7060 modules/imgproc/src/color.cpp hdiv_table[i] = saturate_cast<int>(v/(6.*i)); i 7162 modules/imgproc/src/color.cpp for (int i = 0; i < 3; i++ ) i 7164 modules/imgproc/src/color.cpp coeffs[i*3+(bidx^2)] = cvRound(_coeffs[i*3]*scale[i]); i 7165 modules/imgproc/src/color.cpp coeffs[i*3+1] = cvRound(_coeffs[i*3+1]*scale[i]); i 7166 modules/imgproc/src/color.cpp coeffs[i*3+bidx] = cvRound(_coeffs[i*3+2]*scale[i]); i 7168 modules/imgproc/src/color.cpp CV_Assert( coeffs[i] >= 0 && coeffs[i*3+1] >= 0 && coeffs[i*3+2] >= 0 && i 7169 modules/imgproc/src/color.cpp coeffs[i*3] + coeffs[i*3+1] + coeffs[i*3+2] < 2*(1 << lab_shift) ); i 7196 modules/imgproc/src/color.cpp for (int i = 0; i < 3; i++) i 7198 modules/imgproc/src/color.cpp int j = i * 3; i 7199 modules/imgproc/src/color.cpp coeffs[j + (bidx ^ 2)] = _coeffs[j] * (lab ? scale[i] : 1); i 7200 modules/imgproc/src/color.cpp coeffs[j + 1] = _coeffs[j + 1] * (lab ? scale[i] : 1); i 7201 modules/imgproc/src/color.cpp coeffs[j + bidx] = _coeffs[j + 2] * (lab ? scale[i] : 1); i 7267 modules/imgproc/src/color.cpp for( int i = 0; i < 3; i++ ) i 7269 modules/imgproc/src/color.cpp coeffs[i+(bidx^2)*3] = _coeffs[i] * (lab ? _whitept[i] : 1); i 7270 modules/imgproc/src/color.cpp coeffs[i+3] = _coeffs[i+3] * (lab ? _whitept[i] : 1); i 7271 modules/imgproc/src/color.cpp coeffs[i+bidx*3] = _coeffs[i+6] * (lab ? _whitept[i] : 1); i 32 modules/imgproc/src/colormap.cpp for(int i = 0; i < n; i++) i 33 modules/imgproc/src/colormap.cpp pts.at<float>(i,0) = x0+i*step; i 85 modules/imgproc/src/colormap.cpp for(int i = 0; i < n; i++) { i 89 modules/imgproc/src/colormap.cpp if(XI.at<_Tp>(i,0) < X.at<_Tp>(low, 0)) i 91 modules/imgproc/src/colormap.cpp if(XI.at<_Tp>(i,0) > X.at<_Tp>(high, 0)) i 96 modules/imgproc/src/colormap.cpp if(XI.at<_Tp>(i,0) > X.at<_Tp>(c,0)) { i 103 modules/imgproc/src/colormap.cpp yi.at<_Tp>(i,0) += Y.at<_Tp>(low,0) i 104 modules/imgproc/src/colormap.cpp + (XI.at<_Tp>(i,0) - X.at<_Tp>(low,0)) i 122 modules/imgproc/src/connectedcomponents.cpp LabelT findRoot(const LabelT *P, LabelT i){ i 123 modules/imgproc/src/connectedcomponents.cpp LabelT root = i; i 133 modules/imgproc/src/connectedcomponents.cpp void setRoot(LabelT *P, LabelT i, LabelT root){ i 134 modules/imgproc/src/connectedcomponents.cpp while(P[i] < i){ i 135 modules/imgproc/src/connectedcomponents.cpp LabelT j = P[i]; i 136 modules/imgproc/src/connectedcomponents.cpp P[i] = root; i 137 modules/imgproc/src/connectedcomponents.cpp i = j; i 139 modules/imgproc/src/connectedcomponents.cpp P[i] = root; i 145 modules/imgproc/src/connectedcomponents.cpp LabelT find(LabelT *P, LabelT i){ i 146 modules/imgproc/src/connectedcomponents.cpp LabelT root = findRoot(P, i); i 147 modules/imgproc/src/connectedcomponents.cpp setRoot(P, i, root); i 154 modules/imgproc/src/connectedcomponents.cpp LabelT set_union(LabelT *P, LabelT i, LabelT j){ i 155 modules/imgproc/src/connectedcomponents.cpp LabelT root = findRoot(P, i); i 156 modules/imgproc/src/connectedcomponents.cpp if(i != j){ i 163 modules/imgproc/src/connectedcomponents.cpp setRoot(P, i, root); i 172 modules/imgproc/src/connectedcomponents.cpp for(LabelT i = 1; i < length; ++i){ i 173 modules/imgproc/src/connectedcomponents.cpp if(P[i] < i){ i 174 modules/imgproc/src/connectedcomponents.cpp P[i] = P[P[i]]; i 176 modules/imgproc/src/connectedcomponents.cpp P[i] = k; k = k + 1; i 56 modules/imgproc/src/contours.cpp int i; i 67 modules/imgproc/src/contours.cpp for( i = 0; i < 8; i++ ) i 69 modules/imgproc/src/contours.cpp reader->deltas[i][0] = (schar) icvCodeDeltas[i].x; i 70 modules/imgproc/src/contours.cpp reader->deltas[i][1] = (schar) icvCodeDeltas[i].y; i 1304 modules/imgproc/src/contours.cpp int i, j, k, n; i 1369 modules/imgproc/src/contours.cpp i = 0; i 1403 modules/imgproc/src/contours.cpp for( i = 1; i < img_size.height; i++ ) i 1407 modules/imgproc/src/contours.cpp tmp.pt.y = i; i 1727 modules/imgproc/src/contours.cpp int i, total = (int)all_contours.size(); i 1730 modules/imgproc/src/contours.cpp for( i = 0; i < total; i++, ++it ) i 1733 modules/imgproc/src/contours.cpp ((CvContour*)c)->color = (int)i; i 1734 modules/imgproc/src/contours.cpp _contours.create((int)c->total, 1, CV_32SC2, i, true); i 1735 modules/imgproc/src/contours.cpp Mat ci = _contours.getMat(i); i 1746 modules/imgproc/src/contours.cpp for( i = 0; i < total; i++, ++it ) i 1753 modules/imgproc/src/contours.cpp hierarchy[i] = Vec4i(h_next, h_prev, v_next, v_prev); i 132 modules/imgproc/src/convhull.cpp int i, total = points.checkVector(2), depth = points.depth(), nout = 0; i 155 modules/imgproc/src/convhull.cpp for( i = 0; i < total; i++ ) i 156 modules/imgproc/src/convhull.cpp pointer[i] = &data0[i]; i 162 modules/imgproc/src/convhull.cpp for( i = 1; i < total; i++ ) i 164 modules/imgproc/src/convhull.cpp int y = pointer[i]->y; i 166 modules/imgproc/src/convhull.cpp miny_ind = i; i 168 modules/imgproc/src/convhull.cpp maxy_ind = i; i 174 modules/imgproc/src/convhull.cpp for( i = 1; i < total; i++ ) i 176 modules/imgproc/src/convhull.cpp float y = pointerf[i]->y; i 178 modules/imgproc/src/convhull.cpp miny_ind = i; i 180 modules/imgproc/src/convhull.cpp maxy_ind = i; i 208 modules/imgproc/src/convhull.cpp for( i = 0; i < tl_count-1; i++ ) i 209 modules/imgproc/src/convhull.cpp hullbuf[nout++] = int(pointer[tl_stack[i]] - data0); i 210 modules/imgproc/src/convhull.cpp for( i = tr_count - 1; i > 0; i-- ) i 211 modules/imgproc/src/convhull.cpp hullbuf[nout++] = int(pointer[tr_stack[i]] - data0); i 246 modules/imgproc/src/convhull.cpp for( i = 0; i < bl_count-1; i++ ) i 247 modules/imgproc/src/convhull.cpp hullbuf[nout++] = int(pointer[bl_stack[i]] - data0); i 248 modules/imgproc/src/convhull.cpp for( i = br_count-1; i > 0; i-- ) i 249 modules/imgproc/src/convhull.cpp hullbuf[nout++] = int(pointer[br_stack[i]] - data0); i 259 modules/imgproc/src/convhull.cpp for( i = 0; i < nout; i++ ) i 260 modules/imgproc/src/convhull.cpp *(Point*)(hull.ptr() + i*step) = data0[hullbuf[i]]; i 268 modules/imgproc/src/convhull.cpp int i, j = 0, npoints = points.checkVector(2, CV_32S); i 292 modules/imgproc/src/convhull.cpp for( i = 0; i < hpoints; i++ ) i 294 modules/imgproc/src/convhull.cpp int hnext = hptr[rev_orientation ? hpoints - i - 1 : i]; i 350 modules/imgproc/src/convhull.cpp for( int i = 0; i < n; i++ ) i 356 modules/imgproc/src/convhull.cpp cur_pt = p[i]; i 483 modules/imgproc/src/convhull.cpp for( int i = 0; i < ctotal; i++ ) i 485 modules/imgproc/src/convhull.cpp void* ptr = cvGetSeqElem(ptseq, idx[i]); i 519 modules/imgproc/src/convhull.cpp int i, index; i 643 modules/imgproc/src/convhull.cpp for( i = 0; i < hull->total; i++ ) i 52 modules/imgproc/src/corner.cpp int i, j; i 64 modules/imgproc/src/corner.cpp for( i = 0; i < size.height; i++ ) i 66 modules/imgproc/src/corner.cpp const float* cov = _cov.ptr<float>(i); i 67 modules/imgproc/src/corner.cpp float* dst = _dst.ptr<float>(i); i 121 modules/imgproc/src/corner.cpp int i, j; i 133 modules/imgproc/src/corner.cpp for( i = 0; i < size.height; i++ ) i 135 modules/imgproc/src/corner.cpp const float* cov = _cov.ptr<float>(i); i 136 modules/imgproc/src/corner.cpp float* dst = _dst.ptr<float>(i); i 253 modules/imgproc/src/corner.cpp for( int i = 0; i < size.height; i++ ) i 255 modules/imgproc/src/corner.cpp const float* cov = _cov.ptr<float>(i); i 256 modules/imgproc/src/corner.cpp float* dst = _dst.ptr<float>(i); i 303 modules/imgproc/src/corner.cpp int i, j; i 305 modules/imgproc/src/corner.cpp for( i = 0; i < size.height; i++ ) i 307 modules/imgproc/src/corner.cpp float* cov_data = cov.ptr<float>(i); i 308 modules/imgproc/src/corner.cpp const float* dxdata = Dx.ptr<float>(i); i 309 modules/imgproc/src/corner.cpp const float* dydata = Dy.ptr<float>(i); i 703 modules/imgproc/src/corner.cpp int i, j; i 704 modules/imgproc/src/corner.cpp for( i = 0; i < size.height; i++ ) i 706 modules/imgproc/src/corner.cpp float* dstdata = dst.ptr<float>(i); i 707 modules/imgproc/src/corner.cpp const float* dxdata = Dx.ptr<float>(i); i 708 modules/imgproc/src/corner.cpp const float* dydata = Dy.ptr<float>(i); i 709 modules/imgproc/src/corner.cpp const float* d2xdata = D2x.ptr<float>(i); i 710 modules/imgproc/src/corner.cpp const float* d2ydata = D2y.ptr<float>(i); i 711 modules/imgproc/src/corner.cpp const float* dxydata = Dxy.ptr<float>(i); i 49 modules/imgproc/src/cornersubpix.cpp int i, j, k; i 69 modules/imgproc/src/cornersubpix.cpp for( i = 0; i < win_h; i++ ) i 71 modules/imgproc/src/cornersubpix.cpp float y = (float)(i - win.height)/win.height; i 76 modules/imgproc/src/cornersubpix.cpp mask[i * win_w + j] = (float)(vy*std::exp(-x*x)); i 84 modules/imgproc/src/cornersubpix.cpp for( i = win.height - zeroZone.height; i <= win.height + zeroZone.height; i++ ) i 88 modules/imgproc/src/cornersubpix.cpp mask[i * win_w + j] = 0; i 109 modules/imgproc/src/cornersubpix.cpp for( i = 0, k = 0; i < win_h; i++, subpix += win_w + 2 ) i 111 modules/imgproc/src/cornersubpix.cpp double py = i - win.height; i 540 modules/imgproc/src/demosaicing.cpp for(int i = range.start ; i < range.end; ++i, bayer0 += bayer_step, dst0 += dst_step ) i 640 modules/imgproc/src/demosaicing.cpp for( int i = 0; i < size.width; i++ ) i 642 modules/imgproc/src/demosaicing.cpp dst0[i] = dst0[i + dst_step]; i 643 modules/imgproc/src/demosaicing.cpp dst0[i + (size.height-1)*dst_step] = dst0[i + (size.height-2)*dst_step]; i 646 modules/imgproc/src/demosaicing.cpp for( int i = 0; i < size.width; i++ ) i 647 modules/imgproc/src/demosaicing.cpp dst0[i] = dst0[i + (size.height-1)*dst_step] = 0; i 693 modules/imgproc/src/demosaicing.cpp for (int i = range.start; i < range.end; bayer0 += bayer_step, dst0 += dst_step, ++i ) i 900 modules/imgproc/src/demosaicing.cpp for( int i = 0; i < size.width*dcn; i++ ) i 902 modules/imgproc/src/demosaicing.cpp dst0[i] = dst0[i + dst_step]; i 903 modules/imgproc/src/demosaicing.cpp dst0[i + (size.height-1)*dst_step] = dst0[i + (size.height-2)*dst_step]; i 906 modules/imgproc/src/demosaicing.cpp for( int i = 0; i < size.width*dcn; i++ ) i 907 modules/imgproc/src/demosaicing.cpp dst0[i] = dst0[i + (size.height-1)*dst_step] = 0; i 933 modules/imgproc/src/demosaicing.cpp int i, bufstep = N7*bcn; i 954 modules/imgproc/src/demosaicing.cpp for( i = 0; i < bcn; i++ ) i 955 modules/imgproc/src/demosaicing.cpp brow[N*i-1] = brow[(N-2) + N*i] = 0; i 957 modules/imgproc/src/demosaicing.cpp i = 1; i 963 modules/imgproc/src/demosaicing.cpp for( ; i <= N-9; i += 8, srow += 8, brow += 8 ) i 1008 modules/imgproc/src/demosaicing.cpp for( ; i < N-1; i++, srow++, brow++ ) i 1033 modules/imgproc/src/demosaicing.cpp i = 2; i 1042 modules/imgproc/src/demosaicing.cpp for( ; i < limit; i++, srow++, brow0++, brow1++, brow2++, dstrow += 3 ) i 1218 modules/imgproc/src/demosaicing.cpp for( ; i <= N - 10; i += 8, srow += 8, brow0 += 8, brow1 += 8, brow2 += 8 ) i 1443 modules/imgproc/src/demosaicing.cpp while( i < N - 2 ); i 1445 modules/imgproc/src/demosaicing.cpp for( i = 0; i < 6; i++ ) i 1447 modules/imgproc/src/demosaicing.cpp dst[dststep*y + 5 - i] = dst[dststep*y + 8 - i]; i 1448 modules/imgproc/src/demosaicing.cpp dst[dststep*y + (N - 2)*3 + i] = dst[dststep*y + (N - 3)*3 + i]; i 1455 modules/imgproc/src/demosaicing.cpp for( i = 0; i < size.width*3; i++ ) i 1457 modules/imgproc/src/demosaicing.cpp dst[i] = dst[i + dststep] = dst[i + dststep*2]; i 1458 modules/imgproc/src/demosaicing.cpp dst[i + dststep*(size.height-4)] = i 1459 modules/imgproc/src/demosaicing.cpp dst[i + dststep*(size.height-3)] = i 1460 modules/imgproc/src/demosaicing.cpp dst[i + dststep*(size.height-2)] = i 1461 modules/imgproc/src/demosaicing.cpp dst[i + dststep*(size.height-1)] = dst[i + dststep*(size.height-5)]; i 1547 modules/imgproc/src/demosaicing.cpp for (int i = 0; i < dcn; ++i) i 1549 modules/imgproc/src/demosaicing.cpp D[i] = D[-dcn + i]; i 1550 modules/imgproc/src/demosaicing.cpp D[-dstep+dcn+i] = D[-dstep+(dcn<<1)+i]; i 91 modules/imgproc/src/deriv.cpp int i, j, ksizeX = _ksize, ksizeY = _ksize; i 133 modules/imgproc/src/deriv.cpp for( i = 0; i < ksize; i++ ) i 134 modules/imgproc/src/deriv.cpp kerI[i+1] = 0; i 136 modules/imgproc/src/deriv.cpp for( i = 0; i < ksize - order - 1; i++ ) i 147 modules/imgproc/src/deriv.cpp for( i = 0; i < order; i++ ) i 55 modules/imgproc/src/distransform.cpp for( int i = 0; i < border; i++ ) i 57 modules/imgproc/src/distransform.cpp int* ttop = temp.ptr<int>(i); i 58 modules/imgproc/src/distransform.cpp int* tbottom = temp.ptr<int>(size.height - i - 1); i 73 modules/imgproc/src/distransform.cpp int i, j; i 89 modules/imgproc/src/distransform.cpp for( i = 0; i < size.height; i++ ) i 91 modules/imgproc/src/distransform.cpp const uchar* s = src + i*srcstep; i 92 modules/imgproc/src/distransform.cpp int* tmp = (int*)(temp + (i+BORDER)*step) + BORDER; i 116 modules/imgproc/src/distransform.cpp for( i = size.height - 1; i >= 0; i-- ) i 118 modules/imgproc/src/distransform.cpp float* d = (float*)(dist + i*dststep); i 119 modules/imgproc/src/distransform.cpp int* tmp = (int*)(temp + (i+BORDER)*step) + BORDER; i 146 modules/imgproc/src/distransform.cpp int i, j; i 163 modules/imgproc/src/distransform.cpp for( i = 0; i < size.height; i++ ) i 165 modules/imgproc/src/distransform.cpp const uchar* s = src + i*srcstep; i 166 modules/imgproc/src/distransform.cpp int* tmp = (int*)(temp + (i+BORDER)*step) + BORDER; i 198 modules/imgproc/src/distransform.cpp for( i = size.height - 1; i >= 0; i-- ) i 200 modules/imgproc/src/distransform.cpp float* d = (float*)(dist + i*dststep); i 201 modules/imgproc/src/distransform.cpp int* tmp = (int*)(temp + (i+BORDER)*step) + BORDER; i 237 modules/imgproc/src/distransform.cpp int i, j; i 256 modules/imgproc/src/distransform.cpp for( i = 0; i < size.height; i++ ) i 258 modules/imgproc/src/distransform.cpp const uchar* s = src + i*srcstep; i 259 modules/imgproc/src/distransform.cpp int* tmp = (int*)(temp + (i+BORDER)*step) + BORDER; i 260 modules/imgproc/src/distransform.cpp int* lls = (int*)(labels + i*lstep); i 333 modules/imgproc/src/distransform.cpp for( i = size.height - 1; i >= 0; i-- ) i 335 modules/imgproc/src/distransform.cpp float* d = (float*)(dist + i*dststep); i 336 modules/imgproc/src/distransform.cpp int* tmp = (int*)(temp + (i+BORDER)*step) + BORDER; i 337 modules/imgproc/src/distransform.cpp int* lls = (int*)(labels + i*lstep); i 457 modules/imgproc/src/distransform.cpp int i, i1 = range.start, i2 = range.end; i 463 modules/imgproc/src/distransform.cpp for( i = i1; i < i2; i++ ) i 465 modules/imgproc/src/distransform.cpp const uchar* sptr = src->ptr(m-1) + i; i 466 modules/imgproc/src/distransform.cpp float* dptr = dst->ptr<float>() + i; i 503 modules/imgproc/src/distransform.cpp int i, i1 = range.start, i2 = range.end; i 510 modules/imgproc/src/distransform.cpp for( i = i1; i < i2; i++ ) i 512 modules/imgproc/src/distransform.cpp float* d = dst->ptr<float>(i); i 563 modules/imgproc/src/distransform.cpp int i, m = src.rows, n = src.cols; i 571 modules/imgproc/src/distransform.cpp for( i = 0; i < m; i++ ) i 572 modules/imgproc/src/distransform.cpp sqr_tab[i] = (float)(i*i); i 573 modules/imgproc/src/distransform.cpp for( i = m; i < m*2; i++ ) i 574 modules/imgproc/src/distransform.cpp sqr_tab[i] = inf; i 575 modules/imgproc/src/distransform.cpp for( i = 0; i < shift; i++ ) i 576 modules/imgproc/src/distransform.cpp sat_tab[i] = 0; i 577 modules/imgproc/src/distransform.cpp for( ; i <= m*3; i++ ) i 578 modules/imgproc/src/distransform.cpp sat_tab[i] = i - shift; i 586 modules/imgproc/src/distransform.cpp for( i = 1; i < n; i++ ) i 588 modules/imgproc/src/distransform.cpp inv_tab[i] = (float)(0.5/i); i 589 modules/imgproc/src/distransform.cpp sqr_tab[i] = (float)(i*i); i 833 modules/imgproc/src/distransform.cpp for( int i = 0; i < src.rows; i++ ) i 835 modules/imgproc/src/distransform.cpp const uchar* srcptr = src.ptr(i); i 836 modules/imgproc/src/distransform.cpp int* labelptr = labels.ptr<int>(i); i 248 modules/imgproc/src/drawing.cpp int i, count = iterator.count; i 252 modules/imgproc/src/drawing.cpp for( i = 0; i < count; i++, ++iterator ) i 291 modules/imgproc/src/drawing.cpp int i, j; i 323 modules/imgproc/src/drawing.cpp i = dy < 0 ? -1 : 0; i 324 modules/imgproc/src/drawing.cpp ay = (dy ^ i) - i; i 347 modules/imgproc/src/drawing.cpp i = (pt1.x >> (XY_SHIFT - 7)) & 0x78; i 353 modules/imgproc/src/drawing.cpp dx = (dx ^ i) - i; i 354 modules/imgproc/src/drawing.cpp pt1.x ^= pt2.x & i; i 355 modules/imgproc/src/drawing.cpp pt2.x ^= pt1.x & i; i 356 modules/imgproc/src/drawing.cpp pt1.x ^= pt2.x & i; i 357 modules/imgproc/src/drawing.cpp pt1.y ^= pt2.y & i; i 358 modules/imgproc/src/drawing.cpp pt2.y ^= pt1.y & i; i 359 modules/imgproc/src/drawing.cpp pt1.y ^= pt2.y & i; i 371 modules/imgproc/src/drawing.cpp i = (pt1.y >> (XY_SHIFT - 7)) & 0x78; i 380 modules/imgproc/src/drawing.cpp int t1 = ((0x78 - i) | 4) * slope; i 385 modules/imgproc/src/drawing.cpp ep_table[1] = ep_table[3] = ((((j - i) & 0x78) | 4) * slope >> 8) & 0x1ff; i 387 modules/imgproc/src/drawing.cpp ep_table[4] = ((((j - i) + 0x80) | 4) * slope >> 8) & 0x1ff; i 640 modules/imgproc/src/drawing.cpp int i, j, x, y; i 660 modules/imgproc/src/drawing.cpp i = dy < 0 ? -1 : 0; i 661 modules/imgproc/src/drawing.cpp ay = (dy ^ i) - i; i 681 modules/imgproc/src/drawing.cpp dx = (dx ^ i) - i; i 682 modules/imgproc/src/drawing.cpp pt1.x ^= pt2.x & i; i 683 modules/imgproc/src/drawing.cpp pt2.x ^= pt1.x & i; i 684 modules/imgproc/src/drawing.cpp pt1.x ^= pt2.x & i; i 685 modules/imgproc/src/drawing.cpp pt1.y ^= pt2.y & i; i 686 modules/imgproc/src/drawing.cpp pt2.y ^= pt1.y & i; i 687 modules/imgproc/src/drawing.cpp pt1.y ^= pt2.y & i; i 929 modules/imgproc/src/drawing.cpp int i; i 938 modules/imgproc/src/drawing.cpp i = arc_start; i 940 modules/imgproc/src/drawing.cpp arc_end = i; i 960 modules/imgproc/src/drawing.cpp for( i = arc_start; i < arc_end + delta; i += delta ) i 963 modules/imgproc/src/drawing.cpp angle = i; i 1046 modules/imgproc/src/drawing.cpp int i, y, imin = 0, left = 0, right = 1, x1, x2; i 1068 modules/imgproc/src/drawing.cpp for( i = 0; i < npts; i++ ) i 1070 modules/imgproc/src/drawing.cpp Point p = v[i]; i 1074 modules/imgproc/src/drawing.cpp imin = i; i 1124 modules/imgproc/src/drawing.cpp for( i = 0; i < 2; i++ ) i 1126 modules/imgproc/src/drawing.cpp if( y >= edge[i].ye ) i 1128 modules/imgproc/src/drawing.cpp int idx = edge[i].idx, di = edge[i].di; i 1150 modules/imgproc/src/drawing.cpp edge[i].ye = ye; i 1151 modules/imgproc/src/drawing.cpp edge[i].dx = ((xe - xs)*2 + (ye - y)) / (2 * (ye - y)); i 1152 modules/imgproc/src/drawing.cpp edge[i].x = xs; i 1153 modules/imgproc/src/drawing.cpp edge[i].idx = idx; i 1199 modules/imgproc/src/drawing.cpp int i, delta = offset.y + (shift ? 1 << (shift - 1) : 0); i 1206 modules/imgproc/src/drawing.cpp for( i = 0; i < count; i++, pt0 = pt1 ) i 1211 modules/imgproc/src/drawing.cpp pt1 = v[i]; i 1265 modules/imgproc/src/drawing.cpp int i, y, total = (int)edges.size(); i 1274 modules/imgproc/src/drawing.cpp for( i = 0; i < total; i++ ) i 1276 modules/imgproc/src/drawing.cpp PolyEdge& e1 = edges[i]; i 1298 modules/imgproc/src/drawing.cpp i = 0; i 1300 modules/imgproc/src/drawing.cpp e = &edges[i]; i 1328 modules/imgproc/src/drawing.cpp else if( i < total ) i 1334 modules/imgproc/src/drawing.cpp e = &edges[++i]; i 1590 modules/imgproc/src/drawing.cpp int i, oddThickness = thickness & 1; i 1611 modules/imgproc/src/drawing.cpp for( i = 0; i < 2; i++ ) i 1613 modules/imgproc/src/drawing.cpp if( flags & (i+1) ) i 1642 modules/imgproc/src/drawing.cpp int i = is_closed ? count - 1 : 0; i 1647 modules/imgproc/src/drawing.cpp p0 = v[i]; i 1648 modules/imgproc/src/drawing.cpp for( i = !is_closed; i < count; i++ ) i 1650 modules/imgproc/src/drawing.cpp Point p = v[i]; i 1843 modules/imgproc/src/drawing.cpp int i, total = 0; i 1844 modules/imgproc/src/drawing.cpp for( i = 0; i < ncontours; i++ ) i 1845 modules/imgproc/src/drawing.cpp total += npts[i]; i 1848 modules/imgproc/src/drawing.cpp for( i = 0; i < ncontours; i++ ) i 1849 modules/imgproc/src/drawing.cpp CollectPolyEdges( img, pts[i], npts[i], edges, buf, line_type, shift, offset ); i 1868 modules/imgproc/src/drawing.cpp for( int i = 0; i < ncontours; i++ ) i 1869 modules/imgproc/src/drawing.cpp PolyLine( img, pts[i], npts[i], isClosed, buf, thickness, line_type, shift ); i 2042 modules/imgproc/src/drawing.cpp inline void readCheck(int &c, int &i, const String &text, int fontFace) i 2049 modules/imgproc/src/drawing.cpp if(c == 0xD0 && (uchar)text[i + 1] >= 0x90 && (uchar)text[i + 1] <= 0xBF) i 2051 modules/imgproc/src/drawing.cpp c = (uchar)text[++i] - 17; i 2055 modules/imgproc/src/drawing.cpp else if(c == 0xD1 && (uchar)text[i + 1] >= 0x80 && (uchar)text[i + 1] <= 0x8F) i 2057 modules/imgproc/src/drawing.cpp c = (uchar)text[++i] + 47; i 2063 modules/imgproc/src/drawing.cpp if(c >= 0xC0 && text[i+1] != 0) //2 bytes utf i 2064 modules/imgproc/src/drawing.cpp i++; i 2066 modules/imgproc/src/drawing.cpp if(c >= 0xE0 && text[i+1] != 0) //3 bytes utf i 2067 modules/imgproc/src/drawing.cpp i++; i 2069 modules/imgproc/src/drawing.cpp if(c >= 0xF0 && text[i+1] != 0) //4 bytes utf i 2070 modules/imgproc/src/drawing.cpp i++; i 2072 modules/imgproc/src/drawing.cpp if(c >= 0xF8 && text[i+1] != 0) //5 bytes utf i 2073 modules/imgproc/src/drawing.cpp i++; i 2075 modules/imgproc/src/drawing.cpp if(c >= 0xFC && text[i+1] != 0) //6 bytes utf i 2076 modules/imgproc/src/drawing.cpp i++; i 2114 modules/imgproc/src/drawing.cpp for( int i = 0; text[i] != '\0'; i++ ) i 2116 modules/imgproc/src/drawing.cpp int c = (uchar)text[i]; i 2119 modules/imgproc/src/drawing.cpp readCheck(c, i, text, fontFace); i 2161 modules/imgproc/src/drawing.cpp for( int i = 0; text[i] != '\0'; i++ ) i 2163 modules/imgproc/src/drawing.cpp int c = (uchar)text[i]; i 2166 modules/imgproc/src/drawing.cpp readCheck(c, i, text, fontFace); i 2196 modules/imgproc/src/drawing.cpp int i, ncontours = (int)pts.total(); i 2204 modules/imgproc/src/drawing.cpp for( i = 0; i < ncontours; i++ ) i 2206 modules/imgproc/src/drawing.cpp Mat p = pts.getMat(i); i 2208 modules/imgproc/src/drawing.cpp ptsptr[i] = p.ptr<Point>(); i 2209 modules/imgproc/src/drawing.cpp npts[i] = p.rows*p.cols*p.channels()/2; i 2222 modules/imgproc/src/drawing.cpp int i, ncontours = manyContours ? (int)pts.total() : 1; i 2230 modules/imgproc/src/drawing.cpp for( i = 0; i < ncontours; i++ ) i 2232 modules/imgproc/src/drawing.cpp Mat p = pts.getMat(manyContours ? i : -1); i 2235 modules/imgproc/src/drawing.cpp npts[i] = 0; i 2239 modules/imgproc/src/drawing.cpp ptsptr[i] = p.ptr<Point>(); i 2240 modules/imgproc/src/drawing.cpp npts[i] = p.rows*p.cols*p.channels()/2; i 2252 modules/imgproc/src/drawing.cpp int i, std::vector<CvSeq>& seq, i 2255 modules/imgproc/src/drawing.cpp for( ; i >= 0; i = hierarchy[i][0] ) i 2257 modules/imgproc/src/drawing.cpp Mat ci = contours.getMat(i); i 2260 modules/imgproc/src/drawing.cpp &seq[i], &block[i] ); i 2262 modules/imgproc/src/drawing.cpp int h_next = hierarchy[i][0], h_prev = hierarchy[i][1], i 2263 modules/imgproc/src/drawing.cpp v_next = hierarchy[i][2], v_prev = hierarchy[i][3]; i 2264 modules/imgproc/src/drawing.cpp seq[i].h_next = (size_t)h_next < ncontours ? &seq[h_next] : 0; i 2265 modules/imgproc/src/drawing.cpp seq[i].h_prev = (size_t)h_prev < ncontours ? &seq[h_prev] : 0; i 2266 modules/imgproc/src/drawing.cpp seq[i].v_next = (size_t)v_next < ncontours ? &seq[v_next] : 0; i 2267 modules/imgproc/src/drawing.cpp seq[i].v_prev = (size_t)v_prev < ncontours ? &seq[v_prev] : 0; i 2284 modules/imgproc/src/drawing.cpp size_t i = 0, first = 0, last = ncontours; i 2294 modules/imgproc/src/drawing.cpp for( i = first; i < last; i++ ) i 2295 modules/imgproc/src/drawing.cpp seq[i].first = 0; i 2304 modules/imgproc/src/drawing.cpp for( i = first; i < last; i++ ) i 2306 modules/imgproc/src/drawing.cpp Mat ci = _contours.getMat((int)i); i 2312 modules/imgproc/src/drawing.cpp ci.ptr(), npoints, &seq[i], &block[i] ); i 2316 modules/imgproc/src/drawing.cpp for( i = first; i < last; i++ ) i 2318 modules/imgproc/src/drawing.cpp seq[i].h_next = i < last-1 ? &seq[i+1] : 0; i 2319 modules/imgproc/src/drawing.cpp seq[i].h_prev = i > first ? &seq[i-1] : 0; i 2329 modules/imgproc/src/drawing.cpp for( i = first; i < last; i++ ) i 2331 modules/imgproc/src/drawing.cpp int h_next = h[i][0], h_prev = h[i][1], i 2332 modules/imgproc/src/drawing.cpp v_next = h[i][2], v_prev = h[i][3]; i 2333 modules/imgproc/src/drawing.cpp seq[i].h_next = (size_t)h_next < count ? &seq[h_next] : 0; i 2334 modules/imgproc/src/drawing.cpp seq[i].h_prev = (size_t)h_prev < count ? &seq[h_prev] : 0; i 2335 modules/imgproc/src/drawing.cpp seq[i].v_next = (size_t)v_next < count ? &seq[v_next] : 0; i 2336 modules/imgproc/src/drawing.cpp seq[i].v_prev = (size_t)v_prev < count ? &seq[v_prev] : 0; i 2402 modules/imgproc/src/drawing.cpp int i, count = contour->total; i 2418 modules/imgproc/src/drawing.cpp for( i = 0; i < count; i++ ) i 2459 modules/imgproc/src/drawing.cpp for( i = 0; i < count; i++ ) i 78 modules/imgproc/src/emd.cpp int i, j; i 298 modules/imgproc/src/emd.cpp int i = xp->i; i 304 modules/imgproc/src/emd.cpp int ci = state.idx1[i]; i 309 modules/imgproc/src/emd.cpp total_cost += (double)val * state.cost[i][j]; i 331 modules/imgproc/src/emd.cpp int i, j; i 378 modules/imgproc/src/emd.cpp for( i = 0; i < size1; i++ ) i 380 modules/imgproc/src/emd.cpp float weight = signature1[i * (dims + 1)]; i 386 modules/imgproc/src/emd.cpp state->idx1[ssize++] = i; i 393 modules/imgproc/src/emd.cpp for( i = 0; i < size2; i++ ) i 395 modules/imgproc/src/emd.cpp float weight = signature2[i * (dims + 1)]; i 401 modules/imgproc/src/emd.cpp state->idx2[dsize++] = i; i 445 modules/imgproc/src/emd.cpp for( i = 0; i < dims; i++ ) i 446 modules/imgproc/src/emd.cpp xs[i] += signature1[j + i + 1] * weight; i 452 modules/imgproc/src/emd.cpp for( i = 0; i < dims; i++ ) i 453 modules/imgproc/src/emd.cpp xd[i] += signature2[j + i + 1] * weight; i 457 modules/imgproc/src/emd.cpp i = *lower_bound <= lb; i 459 modules/imgproc/src/emd.cpp if( i ) i 469 modules/imgproc/src/emd.cpp for( i = 0; i < ssize; i++ ) i 471 modules/imgproc/src/emd.cpp state->delta[i] = (float *) buffer; i 486 modules/imgproc/src/emd.cpp for( i = 0; i < ssize; i++ ) i 488 modules/imgproc/src/emd.cpp int ci = state->idx1[i]; i 490 modules/imgproc/src/emd.cpp state->cost[i] = (float *) buffer; i 499 modules/imgproc/src/emd.cpp state->cost[i][j] = 0; i 514 modules/imgproc/src/emd.cpp state->cost[i][j] = val; i 523 modules/imgproc/src/emd.cpp state->cost[i][j] = 0; i 547 modules/imgproc/src/emd.cpp for( i = 0; i < ssize; i++ ) i 549 modules/imgproc/src/emd.cpp state->is_x[i] = buffer; i 568 modules/imgproc/src/emd.cpp int i, j, found; i 575 modules/imgproc/src/emd.cpp for( i = 0; i < ssize; i++ ) i 577 modules/imgproc/src/emd.cpp u[i].next = u + i + 1; i 583 modules/imgproc/src/emd.cpp for( i = 1; i < dsize; i++ ) i 585 modules/imgproc/src/emd.cpp v[i].next = v + i + 1; i 615 modules/imgproc/src/emd.cpp i = (int)(cur_u - u); i 616 modules/imgproc/src/emd.cpp if( is_x[i][j] ) i 619 modules/imgproc/src/emd.cpp cur_u->val = cost[i][j] - cur_v_val; i 647 modules/imgproc/src/emd.cpp i = (int)(cur_u - u); i 648 modules/imgproc/src/emd.cpp _cost = cost[i]; i 649 modules/imgproc/src/emd.cpp _is_x = is_x[i]; i 692 modules/imgproc/src/emd.cpp int i, j, min_i = 0, min_j = 0; i 695 modules/imgproc/src/emd.cpp for( i = 0; i < ssize; i++ ) i 697 modules/imgproc/src/emd.cpp float u_val = u[i].val; i 698 modules/imgproc/src/emd.cpp float *_cost = cost[i]; i 699 modules/imgproc/src/emd.cpp char *_is_x = is_x[i]; i 709 modules/imgproc/src/emd.cpp min_i = i; i 716 modules/imgproc/src/emd.cpp enter_x->i = min_i; i 728 modules/imgproc/src/emd.cpp int i, j; i 736 modules/imgproc/src/emd.cpp i = enter_x->i; i 738 modules/imgproc/src/emd.cpp state->is_x[i][j] = 1; i 739 modules/imgproc/src/emd.cpp enter_x->next[0] = state->rows_x[i]; i 742 modules/imgproc/src/emd.cpp state->rows_x[i] = enter_x; i 752 modules/imgproc/src/emd.cpp for( i = 1; i < steps; i += 2 ) i 754 modules/imgproc/src/emd.cpp float temp = loop[i]->val; i 758 modules/imgproc/src/emd.cpp leave_x = loop[i]; i 764 modules/imgproc/src/emd.cpp for( i = 0; i < steps; i += 2 ) i 766 modules/imgproc/src/emd.cpp float temp0 = loop[i]->val + min_val; i 767 modules/imgproc/src/emd.cpp float temp1 = loop[i + 1]->val - min_val; i 769 modules/imgproc/src/emd.cpp loop[i]->val = temp0; i 770 modules/imgproc/src/emd.cpp loop[i + 1]->val = temp1; i 774 modules/imgproc/src/emd.cpp i = leave_x->i; i 776 modules/imgproc/src/emd.cpp state->is_x[i][j] = 0; i 778 modules/imgproc/src/emd.cpp head.next[0] = state->rows_x[i]; i 786 modules/imgproc/src/emd.cpp state->rows_x[i] = head.next[0]; i 812 modules/imgproc/src/emd.cpp int i, steps = 1; i 829 modules/imgproc/src/emd.cpp new_x = state->rows_x[new_x->i]; i 854 modules/imgproc/src/emd.cpp i = steps & 1; i 858 modules/imgproc/src/emd.cpp new_x = new_x->next[i]; i 887 modules/imgproc/src/emd.cpp int i, j, min_i = -1, min_j = -1; i 900 modules/imgproc/src/emd.cpp for( i = 0; i < ssize; i++ ) i 902 modules/imgproc/src/emd.cpp u[i].next = u + i + 1; i 907 modules/imgproc/src/emd.cpp for( i = 0; i < dsize; i++ ) i 909 modules/imgproc/src/emd.cpp v[i].val = -CV_EMD_INF; i 910 modules/imgproc/src/emd.cpp v[i].next = v + i + 1; i 915 modules/imgproc/src/emd.cpp for( i = 0; i < ssize; i++ ) i 918 modules/imgproc/src/emd.cpp float *cost_row = cost[i]; i 929 modules/imgproc/src/emd.cpp u[i].val = u_val; i 933 modules/imgproc/src/emd.cpp for( i = 0; i < ssize; i++ ) i 935 modules/imgproc/src/emd.cpp float u_val = u[i].val; i 936 modules/imgproc/src/emd.cpp float *delta_row = delta[i]; i 937 modules/imgproc/src/emd.cpp float *cost_row = cost[i]; i 954 modules/imgproc/src/emd.cpp i = (int)(cur_u - u); i 955 modules/imgproc/src/emd.cpp float *delta_row = delta[i]; i 964 modules/imgproc/src/emd.cpp min_i = i; i 1015 modules/imgproc/src/emd.cpp i = (int)(cur_u - u); i 1016 modules/imgproc/src/emd.cpp if( cur_u->val == cost[i][min_j] ) /* row i needs updating */ i 1023 modules/imgproc/src/emd.cpp float temp = cost[i][cur_v - v]; i 1036 modules/imgproc/src/emd.cpp delta[i][cur_v - v] += diff; i 1075 modules/imgproc/src/emd.cpp end_x->i = min_i; i 1097 modules/imgproc/src/emd.cpp int i, dims = (int)(size_t)user_param; i 1100 modules/imgproc/src/emd.cpp for( i = 0; i < dims; i++ ) i 1102 modules/imgproc/src/emd.cpp double t = x[i] - y[i]; i 1112 modules/imgproc/src/emd.cpp int i, dims = (int)(size_t)user_param; i 1115 modules/imgproc/src/emd.cpp for( i = 0; i < dims; i++ ) i 1117 modules/imgproc/src/emd.cpp double t = x[i] - y[i]; i 1127 modules/imgproc/src/emd.cpp int i, dims = (int)(size_t)user_param; i 1130 modules/imgproc/src/emd.cpp for( i = 0; i < dims; i++ ) i 1132 modules/imgproc/src/emd.cpp double t = fabs( x[i] - y[i] ); i 84 modules/imgproc/src/featureselect.cpp size_t total, i, j, ncorners = 0, possibleCornersCount = i 190 modules/imgproc/src/featureselect.cpp for( i = 0; i < total; i++ ) i 192 modules/imgproc/src/featureselect.cpp const Corner & c = corner_ptr[i]; i 246 modules/imgproc/src/featureselect.cpp for( i = 0; i < total; i++ ) i 248 modules/imgproc/src/featureselect.cpp const Corner & c = corner_ptr[i]; i 315 modules/imgproc/src/featureselect.cpp size_t i, j, total = tmpCorners.size(), ncorners = 0; i 331 modules/imgproc/src/featureselect.cpp for( i = 0; i < total; i++ ) i 333 modules/imgproc/src/featureselect.cpp int ofs = (int)((const uchar*)tmpCorners[i] - eig.ptr()); i 390 modules/imgproc/src/featureselect.cpp for( i = 0; i < total; i++ ) i 392 modules/imgproc/src/featureselect.cpp int ofs = (int)((const uchar*)tmpCorners[i] - eig.ptr()); i 423 modules/imgproc/src/featureselect.cpp size_t i, ncorners = corners.size(); i 424 modules/imgproc/src/featureselect.cpp for( i = 0; i < ncorners; i++ ) i 425 modules/imgproc/src/featureselect.cpp _corners[i] = corners[i]; i 163 modules/imgproc/src/filter.cpp int i, j; i 193 modules/imgproc/src/filter.cpp for( i = 0; i < N; i += n ) i 195 modules/imgproc/src/filter.cpp n = std::min( n, N - i ); i 197 modules/imgproc/src/filter.cpp tdst[i+j] = constVal[j]; i 221 modules/imgproc/src/filter.cpp for( i = 0; i < nr; i++ ) i 223 modules/imgproc/src/filter.cpp uchar* dst = isSeparable() ? &srcRow[0] : alignPtr(&ringBuf[0],VEC_ALIGN) + bufStep*i; i 235 modules/imgproc/src/filter.cpp for( i = 0; i < dx1; i++ ) i 237 modules/imgproc/src/filter.cpp int p0 = (borderInterpolate(i-dx1, wholeWidth, rowBorderType) + xofs1)*btab_esz; i 239 modules/imgproc/src/filter.cpp btab[i*btab_esz + j] = p0 + j; i 242 modules/imgproc/src/filter.cpp for( i = 0; i < dx2; i++ ) i 244 modules/imgproc/src/filter.cpp int p0 = (borderInterpolate(wholeWidth + i, wholeWidth, rowBorderType) + xofs1)*btab_esz; i 246 modules/imgproc/src/filter.cpp btab[(i + dx1)*btab_esz + j] = p0 + j; i 313 modules/imgproc/src/filter.cpp int dy = 0, i = 0; i 320 modules/imgproc/src/filter.cpp for(;; dst += dststep*i, dy += i) i 347 modules/imgproc/src/filter.cpp for( i = 0; i < _dx1*btab_esz; i++ ) i 348 modules/imgproc/src/filter.cpp irow[i] = isrc[btab[i]]; i 349 modules/imgproc/src/filter.cpp for( i = 0; i < _dx2*btab_esz; i++ ) i 350 modules/imgproc/src/filter.cpp irow[i + (width1 - _dx2)*btab_esz] = isrc[btab[i+_dx1*btab_esz]]; i 354 modules/imgproc/src/filter.cpp for( i = 0; i < _dx1*esz; i++ ) i 355 modules/imgproc/src/filter.cpp row[i] = src[btab[i]]; i 356 modules/imgproc/src/filter.cpp for( i = 0; i < _dx2*esz; i++ ) i 357 modules/imgproc/src/filter.cpp row[i + (width1 - _dx2)*esz] = src[btab[i+_dx1*esz]]; i 366 modules/imgproc/src/filter.cpp for( i = 0; i < max_i; i++ ) i 368 modules/imgproc/src/filter.cpp int srcY = borderInterpolate(dstY + dy + i + roi.y - ay, i 371 modules/imgproc/src/filter.cpp brows[i] = alignPtr(&constBorderRow[0], VEC_ALIGN); i 378 modules/imgproc/src/filter.cpp brows[i] = alignPtr(&ringBuf[0], VEC_ALIGN) + bi*bufStep; i 381 modules/imgproc/src/filter.cpp if( i < kheight ) i 383 modules/imgproc/src/filter.cpp i -= kheight - 1; i 385 modules/imgproc/src/filter.cpp (*columnFilter)((const uchar**)brows, dst, dststep, i, roi.width*cn); i 387 modules/imgproc/src/filter.cpp (*filter2D)((const uchar**)brows, dst, dststep, i, roi.width, cn); i 429 modules/imgproc/src/filter.cpp int i, sz = _kernel.rows*_kernel.cols; i 442 modules/imgproc/src/filter.cpp for( i = 0; i < sz; i++ ) i 444 modules/imgproc/src/filter.cpp double a = coeffs[i], b = coeffs[sz - i - 1]; i 529 modules/imgproc/src/filter.cpp int i = 0, k, _ksize = kernel.rows + kernel.cols - 1; i 536 modules/imgproc/src/filter.cpp for( ; i <= width - 16; i += 16 ) i 538 modules/imgproc/src/filter.cpp const uchar* src = _src + i; i 562 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i), s0); i 563 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i + 4), s1); i 564 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i + 8), s2); i 565 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i + 12), s3); i 568 modules/imgproc/src/filter.cpp for( ; i <= width - 4; i += 4 ) i 570 modules/imgproc/src/filter.cpp const uchar* src = _src + i; i 585 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i), s0); i 588 modules/imgproc/src/filter.cpp return i; i 621 modules/imgproc/src/filter.cpp int i = 0, j, k, _ksize = kernel.rows + kernel.cols - 1; i 639 modules/imgproc/src/filter.cpp for( ; i <= width - 16; i += 16, src += 16 ) i 653 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i), _mm_unpacklo_epi16(x0, z)); i 654 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i + 4), _mm_unpackhi_epi16(x0, z)); i 655 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i + 8), _mm_unpacklo_epi16(y0, z)); i 656 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i + 12), _mm_unpackhi_epi16(y0, z)); i 659 modules/imgproc/src/filter.cpp for( ; i <= width - 16; i += 16, src += 16 ) i 673 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i), _mm_srai_epi32(_mm_unpacklo_epi16(x0, x0),16)); i 674 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i + 4), _mm_srai_epi32(_mm_unpackhi_epi16(x0, x0),16)); i 675 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i + 8), _mm_srai_epi32(_mm_unpacklo_epi16(y0, y0),16)); i 676 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i + 12), _mm_srai_epi32(_mm_unpackhi_epi16(y0, y0),16)); i 685 modules/imgproc/src/filter.cpp for( ; i <= width - 16; i += 16, src += 16 ) i 713 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i), z0); i 714 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i + 4), z1); i 715 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i + 8), z2); i 716 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i + 12), z3); i 723 modules/imgproc/src/filter.cpp for( ; i <= width - 16; i += 16, src += 16 ) i 737 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i), _mm_srai_epi32(_mm_unpacklo_epi16(x0, x0),16)); i 738 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i + 4), _mm_srai_epi32(_mm_unpackhi_epi16(x0, x0),16)); i 739 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i + 8), _mm_srai_epi32(_mm_unpacklo_epi16(y0, y0),16)); i 740 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i + 12), _mm_srai_epi32(_mm_unpackhi_epi16(y0, y0),16)); i 751 modules/imgproc/src/filter.cpp for( ; i <= width - 16; i += 16, src += 16 ) i 794 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i), z0); i 795 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i + 4), z1); i 796 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i + 8), z2); i 797 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i + 12), z3); i 807 modules/imgproc/src/filter.cpp for( ; i <= width - 16; i += 16, src += 16 ) i 814 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i), _mm_srai_epi32(_mm_unpacklo_epi16(x0, x0),16)); i 815 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i + 4), _mm_srai_epi32(_mm_unpackhi_epi16(x0, x0),16)); i 816 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i + 8), _mm_srai_epi32(_mm_unpacklo_epi16(y0, y0),16)); i 817 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i + 12), _mm_srai_epi32(_mm_unpackhi_epi16(y0, y0),16)); i 824 modules/imgproc/src/filter.cpp for( ; i <= width - 16; i += 16, src += 16 ) i 841 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i), z0); i 842 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i + 4), z1); i 843 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i + 8), z2); i 844 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i + 12), z3); i 857 modules/imgproc/src/filter.cpp for( ; i <= width - 16; i += 16, src += 16 ) i 888 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i), z0); i 889 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i + 4), z1); i 890 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i + 8), z2); i 891 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i + 12), z3); i 898 modules/imgproc/src/filter.cpp for( ; i <= width - 4; i += 4, src += 4 ) i 914 modules/imgproc/src/filter.cpp _mm_store_si128((__m128i*)(dst + i), s0); i 917 modules/imgproc/src/filter.cpp return i; i 944 modules/imgproc/src/filter.cpp int i = 0, k; i 952 modules/imgproc/src/filter.cpp for( ; i <= width - 16; i += 16 ) i 958 modules/imgproc/src/filter.cpp S = (const __m128i*)(src[0] + i); i 970 modules/imgproc/src/filter.cpp S = (const __m128i*)(src[k] + i); i 971 modules/imgproc/src/filter.cpp S2 = (const __m128i*)(src[-k] + i); i 987 modules/imgproc/src/filter.cpp _mm_storeu_si128((__m128i*)(dst + i), x0); i 990 modules/imgproc/src/filter.cpp for( ; i <= width - 4; i += 4 ) i 995 modules/imgproc/src/filter.cpp __m128 s0 = _mm_cvtepi32_ps(_mm_load_si128((const __m128i*)(src[0] + i))); i 1000 modules/imgproc/src/filter.cpp S = (const __m128i*)(src[k] + i); i 1001 modules/imgproc/src/filter.cpp S2 = (const __m128i*)(src[-k] + i); i 1011 modules/imgproc/src/filter.cpp *(int*)(dst + i) = _mm_cvtsi128_si32(x0); i 1016 modules/imgproc/src/filter.cpp for( ; i <= width - 16; i += 16 ) i 1023 modules/imgproc/src/filter.cpp S = (const __m128i*)(src[k] + i); i 1024 modules/imgproc/src/filter.cpp S2 = (const __m128i*)(src[-k] + i); i 1040 modules/imgproc/src/filter.cpp _mm_storeu_si128((__m128i*)(dst + i), x0); i 1043 modules/imgproc/src/filter.cpp for( ; i <= width - 4; i += 4 ) i 1050 modules/imgproc/src/filter.cpp S = (const __m128i*)(src[k] + i); i 1051 modules/imgproc/src/filter.cpp S2 = (const __m128i*)(src[-k] + i); i 1061 modules/imgproc/src/filter.cpp *(int*)(dst + i) = _mm_cvtsi128_si32(x0); i 1065 modules/imgproc/src/filter.cpp return i; i 1092 modules/imgproc/src/filter.cpp int i = 0; i 1104 modules/imgproc/src/filter.cpp for( ; i <= width - 8; i += 8 ) i 1107 modules/imgproc/src/filter.cpp s0 = _mm_load_si128((__m128i*)(S0 + i)); i 1108 modules/imgproc/src/filter.cpp s1 = _mm_load_si128((__m128i*)(S0 + i + 4)); i 1109 modules/imgproc/src/filter.cpp s2 = _mm_load_si128((__m128i*)(S1 + i)); i 1110 modules/imgproc/src/filter.cpp s3 = _mm_load_si128((__m128i*)(S1 + i + 4)); i 1111 modules/imgproc/src/filter.cpp s4 = _mm_load_si128((__m128i*)(S2 + i)); i 1112 modules/imgproc/src/filter.cpp s5 = _mm_load_si128((__m128i*)(S2 + i + 4)); i 1117 modules/imgproc/src/filter.cpp _mm_storeu_si128((__m128i*)(dst + i), _mm_packs_epi32(s0, s1)); i 1122 modules/imgproc/src/filter.cpp for( ; i <= width - 8; i += 8 ) i 1125 modules/imgproc/src/filter.cpp s0 = _mm_load_si128((__m128i*)(S0 + i)); i 1126 modules/imgproc/src/filter.cpp s1 = _mm_load_si128((__m128i*)(S0 + i + 4)); i 1127 modules/imgproc/src/filter.cpp s2 = _mm_load_si128((__m128i*)(S1 + i)); i 1128 modules/imgproc/src/filter.cpp s3 = _mm_load_si128((__m128i*)(S1 + i + 4)); i 1129 modules/imgproc/src/filter.cpp s4 = _mm_load_si128((__m128i*)(S2 + i)); i 1130 modules/imgproc/src/filter.cpp s5 = _mm_load_si128((__m128i*)(S2 + i + 4)); i 1135 modules/imgproc/src/filter.cpp _mm_storeu_si128((__m128i*)(dst + i), _mm_packs_epi32(s0, s1)); i 1141 modules/imgproc/src/filter.cpp for( ; i <= width - 8; i += 8 ) i 1144 modules/imgproc/src/filter.cpp s0 = _mm_cvtepi32_ps(_mm_load_si128((__m128i*)(S1 + i))); i 1145 modules/imgproc/src/filter.cpp s1 = _mm_cvtepi32_ps(_mm_load_si128((__m128i*)(S1 + i + 4))); i 1149 modules/imgproc/src/filter.cpp x0 = _mm_add_epi32(_mm_load_si128((__m128i*)(S0 + i)), i 1150 modules/imgproc/src/filter.cpp _mm_load_si128((__m128i*)(S2 + i))); i 1151 modules/imgproc/src/filter.cpp x1 = _mm_add_epi32(_mm_load_si128((__m128i*)(S0 + i + 4)), i 1152 modules/imgproc/src/filter.cpp _mm_load_si128((__m128i*)(S2 + i + 4))); i 1156 modules/imgproc/src/filter.cpp _mm_storeu_si128((__m128i*)(dst + i), x0); i 1166 modules/imgproc/src/filter.cpp for( ; i <= width - 8; i += 8 ) i 1169 modules/imgproc/src/filter.cpp s0 = _mm_load_si128((__m128i*)(S2 + i)); i 1170 modules/imgproc/src/filter.cpp s1 = _mm_load_si128((__m128i*)(S2 + i + 4)); i 1171 modules/imgproc/src/filter.cpp s2 = _mm_load_si128((__m128i*)(S0 + i)); i 1172 modules/imgproc/src/filter.cpp s3 = _mm_load_si128((__m128i*)(S0 + i + 4)); i 1175 modules/imgproc/src/filter.cpp _mm_storeu_si128((__m128i*)(dst + i), _mm_packs_epi32(s0, s1)); i 1181 modules/imgproc/src/filter.cpp for( ; i <= width - 8; i += 8 ) i 1185 modules/imgproc/src/filter.cpp x0 = _mm_sub_epi32(_mm_load_si128((__m128i*)(S2 + i)), i 1186 modules/imgproc/src/filter.cpp _mm_load_si128((__m128i*)(S0 + i))); i 1187 modules/imgproc/src/filter.cpp x1 = _mm_sub_epi32(_mm_load_si128((__m128i*)(S2 + i + 4)), i 1188 modules/imgproc/src/filter.cpp _mm_load_si128((__m128i*)(S0 + i + 4))); i 1192 modules/imgproc/src/filter.cpp _mm_storeu_si128((__m128i*)(dst + i), x0); i 1197 modules/imgproc/src/filter.cpp return i; i 1222 modules/imgproc/src/filter.cpp int i = 0, k, _ksize = kernel.rows + kernel.cols - 1; i 1227 modules/imgproc/src/filter.cpp for( ; i <= width - 8; i += 8 ) i 1229 modules/imgproc/src/filter.cpp const short* src = (const short*)_src + i; i 1244 modules/imgproc/src/filter.cpp _mm_store_ps(dst + i, s0); i 1245 modules/imgproc/src/filter.cpp _mm_store_ps(dst + i + 4, s1); i 1247 modules/imgproc/src/filter.cpp return i; i 1274 modules/imgproc/src/filter.cpp int i = 0, k; i 1283 modules/imgproc/src/filter.cpp for( ; i <= width - 16; i += 16 ) i 1289 modules/imgproc/src/filter.cpp S = src[0] + i; i 1301 modules/imgproc/src/filter.cpp S = src[k] + i; i 1302 modules/imgproc/src/filter.cpp S2 = src[-k] + i; i 1320 modules/imgproc/src/filter.cpp _mm_storeu_si128((__m128i*)(dst + i), _mm_packs_epi32(s0i, s1i)); i 1321 modules/imgproc/src/filter.cpp _mm_storeu_si128((__m128i*)(dst + i + 8), _mm_packs_epi32(s2i, s3i)); i 1324 modules/imgproc/src/filter.cpp for( ; i <= width - 4; i += 4 ) i 1328 modules/imgproc/src/filter.cpp __m128 x0, s0 = _mm_load_ps(src[0] + i); i 1335 modules/imgproc/src/filter.cpp S = src[k] + i; i 1336 modules/imgproc/src/filter.cpp S2 = src[-k] + i; i 1337 modules/imgproc/src/filter.cpp x0 = _mm_add_ps(_mm_load_ps(src[k]+i), _mm_load_ps(src[-k] + i)); i 1342 modules/imgproc/src/filter.cpp _mm_storel_epi64((__m128i*)(dst + i), _mm_packs_epi32(s0i, s0i)); i 1347 modules/imgproc/src/filter.cpp for( ; i <= width - 16; i += 16 ) i 1351 modules/imgproc/src/filter.cpp S = src[0] + i; i 1355 modules/imgproc/src/filter.cpp S = src[k] + i; i 1356 modules/imgproc/src/filter.cpp S2 = src[-k] + i; i 1374 modules/imgproc/src/filter.cpp _mm_storeu_si128((__m128i*)(dst + i), _mm_packs_epi32(s0i, s1i)); i 1375 modules/imgproc/src/filter.cpp _mm_storeu_si128((__m128i*)(dst + i + 8), _mm_packs_epi32(s2i, s3i)); i 1378 modules/imgproc/src/filter.cpp for( ; i <= width - 4; i += 4 ) i 1386 modules/imgproc/src/filter.cpp x0 = _mm_sub_ps(_mm_load_ps(src[k]+i), _mm_load_ps(src[-k] + i)); i 1391 modules/imgproc/src/filter.cpp _mm_storel_epi64((__m128i*)(dst + i), _mm_packs_epi32(s0i, s0i)); i 1395 modules/imgproc/src/filter.cpp return i; i 1441 modules/imgproc/src/filter.cpp int i = 0, k; i 1444 modules/imgproc/src/filter.cpp for( ; i <= width - 8; i += 8 ) i 1446 modules/imgproc/src/filter.cpp const float* src = src0 + i; i 1458 modules/imgproc/src/filter.cpp _mm_store_ps(dst + i, s0); i 1459 modules/imgproc/src/filter.cpp _mm_store_ps(dst + i + 4, s1); i 1461 modules/imgproc/src/filter.cpp return i; i 1521 modules/imgproc/src/filter.cpp int i = 0, _ksize = kernel.rows + kernel.cols - 1; i 1535 modules/imgproc/src/filter.cpp for( ; i <= width - 8; i += 8, src += 8 ) i 1546 modules/imgproc/src/filter.cpp _mm_store_ps(dst + i, x0); i 1547 modules/imgproc/src/filter.cpp _mm_store_ps(dst + i + 4, y0); i 1550 modules/imgproc/src/filter.cpp for( ; i <= width - 8; i += 8, src += 8 ) i 1561 modules/imgproc/src/filter.cpp _mm_store_ps(dst + i, x0); i 1562 modules/imgproc/src/filter.cpp _mm_store_ps(dst + i + 4, y0); i 1567 modules/imgproc/src/filter.cpp for( ; i <= width - 8; i += 8, src += 8 ) i 1581 modules/imgproc/src/filter.cpp _mm_store_ps(dst + i, x0); i 1582 modules/imgproc/src/filter.cpp _mm_store_ps(dst + i + 4, y0); i 1589 modules/imgproc/src/filter.cpp for( ; i <= width - 8; i += 8, src += 8 ) i 1600 modules/imgproc/src/filter.cpp _mm_store_ps(dst + i, x0); i 1601 modules/imgproc/src/filter.cpp _mm_store_ps(dst + i + 4, y0); i 1606 modules/imgproc/src/filter.cpp for( ; i <= width - 8; i += 8, src += 8 ) i 1626 modules/imgproc/src/filter.cpp _mm_store_ps(dst + i, x0); i 1627 modules/imgproc/src/filter.cpp _mm_store_ps(dst + i + 4, y0); i 1637 modules/imgproc/src/filter.cpp for( ; i <= width - 8; i += 8, src += 8 ) i 1646 modules/imgproc/src/filter.cpp _mm_store_ps(dst + i, x0); i 1647 modules/imgproc/src/filter.cpp _mm_store_ps(dst + i + 4, y0); i 1652 modules/imgproc/src/filter.cpp for( ; i <= width - 8; i += 8, src += 8 ) i 1662 modules/imgproc/src/filter.cpp _mm_store_ps(dst + i, x0); i 1663 modules/imgproc/src/filter.cpp _mm_store_ps(dst + i + 4, y0); i 1670 modules/imgproc/src/filter.cpp for( ; i <= width - 8; i += 8, src += 8 ) i 1686 modules/imgproc/src/filter.cpp _mm_store_ps(dst + i, x0); i 1687 modules/imgproc/src/filter.cpp _mm_store_ps(dst + i + 4, y0); i 1692 modules/imgproc/src/filter.cpp return i; i 1718 modules/imgproc/src/filter.cpp int i = 0, k; i 1727 modules/imgproc/src/filter.cpp for( ; i <= width - 16; i += 16 ) i 1733 modules/imgproc/src/filter.cpp S = src[0] + i; i 1745 modules/imgproc/src/filter.cpp S = src[k] + i; i 1746 modules/imgproc/src/filter.cpp S2 = src[-k] + i; i 1759 modules/imgproc/src/filter.cpp _mm_storeu_ps(dst + i, s0); i 1760 modules/imgproc/src/filter.cpp _mm_storeu_ps(dst + i + 4, s1); i 1761 modules/imgproc/src/filter.cpp _mm_storeu_ps(dst + i + 8, s2); i 1762 modules/imgproc/src/filter.cpp _mm_storeu_ps(dst + i + 12, s3); i 1765 modules/imgproc/src/filter.cpp for( ; i <= width - 4; i += 4 ) i 1769 modules/imgproc/src/filter.cpp __m128 x0, s0 = _mm_load_ps(src[0] + i); i 1776 modules/imgproc/src/filter.cpp S = src[k] + i; i 1777 modules/imgproc/src/filter.cpp S2 = src[-k] + i; i 1778 modules/imgproc/src/filter.cpp x0 = _mm_add_ps(_mm_load_ps(src[k]+i), _mm_load_ps(src[-k] + i)); i 1782 modules/imgproc/src/filter.cpp _mm_storeu_ps(dst + i, s0); i 1787 modules/imgproc/src/filter.cpp for( ; i <= width - 16; i += 16 ) i 1791 modules/imgproc/src/filter.cpp S = src[0] + i; i 1795 modules/imgproc/src/filter.cpp S = src[k] + i; i 1796 modules/imgproc/src/filter.cpp S2 = src[-k] + i; i 1809 modules/imgproc/src/filter.cpp _mm_storeu_ps(dst + i, s0); i 1810 modules/imgproc/src/filter.cpp _mm_storeu_ps(dst + i + 4, s1); i 1811 modules/imgproc/src/filter.cpp _mm_storeu_ps(dst + i + 8, s2); i 1812 modules/imgproc/src/filter.cpp _mm_storeu_ps(dst + i + 12, s3); i 1815 modules/imgproc/src/filter.cpp for( ; i <= width - 4; i += 4 ) i 1823 modules/imgproc/src/filter.cpp x0 = _mm_sub_ps(_mm_load_ps(src[k]+i), _mm_load_ps(src[-k] + i)); i 1827 modules/imgproc/src/filter.cpp _mm_storeu_ps(dst + i, s0); i 1831 modules/imgproc/src/filter.cpp return i; i 1858 modules/imgproc/src/filter.cpp int i = 0; i 1869 modules/imgproc/src/filter.cpp for( ; i <= width - 8; i += 8 ) i 1872 modules/imgproc/src/filter.cpp s0 = _mm_load_ps(S0 + i); i 1873 modules/imgproc/src/filter.cpp s1 = _mm_load_ps(S0 + i + 4); i 1874 modules/imgproc/src/filter.cpp s2 = _mm_load_ps(S1 + i); i 1875 modules/imgproc/src/filter.cpp s3 = _mm_load_ps(S1 + i + 4); i 1876 modules/imgproc/src/filter.cpp s4 = _mm_load_ps(S2 + i); i 1877 modules/imgproc/src/filter.cpp s5 = _mm_load_ps(S2 + i + 4); i 1882 modules/imgproc/src/filter.cpp _mm_storeu_ps(dst + i, s0); i 1883 modules/imgproc/src/filter.cpp _mm_storeu_ps(dst + i + 4, s1); i 1888 modules/imgproc/src/filter.cpp for( ; i <= width - 8; i += 8 ) i 1891 modules/imgproc/src/filter.cpp s0 = _mm_load_ps(S0 + i); i 1892 modules/imgproc/src/filter.cpp s1 = _mm_load_ps(S0 + i + 4); i 1893 modules/imgproc/src/filter.cpp s2 = _mm_load_ps(S1 + i); i 1894 modules/imgproc/src/filter.cpp s3 = _mm_load_ps(S1 + i + 4); i 1895 modules/imgproc/src/filter.cpp s4 = _mm_load_ps(S2 + i); i 1896 modules/imgproc/src/filter.cpp s5 = _mm_load_ps(S2 + i + 4); i 1901 modules/imgproc/src/filter.cpp _mm_storeu_ps(dst + i, s0); i 1902 modules/imgproc/src/filter.cpp _mm_storeu_ps(dst + i + 4, s1); i 1908 modules/imgproc/src/filter.cpp for( ; i <= width - 8; i += 8 ) i 1911 modules/imgproc/src/filter.cpp s0 = _mm_load_ps(S1 + i); i 1912 modules/imgproc/src/filter.cpp s1 = _mm_load_ps(S1 + i + 4); i 1915 modules/imgproc/src/filter.cpp x0 = _mm_add_ps(_mm_load_ps(S0 + i), _mm_load_ps(S2 + i)); i 1916 modules/imgproc/src/filter.cpp x1 = _mm_add_ps(_mm_load_ps(S0 + i + 4), _mm_load_ps(S2 + i + 4)); i 1919 modules/imgproc/src/filter.cpp _mm_storeu_ps(dst + i, s0); i 1920 modules/imgproc/src/filter.cpp _mm_storeu_ps(dst + i + 4, s1); i 1930 modules/imgproc/src/filter.cpp for( ; i <= width - 8; i += 8 ) i 1933 modules/imgproc/src/filter.cpp s0 = _mm_load_ps(S2 + i); i 1934 modules/imgproc/src/filter.cpp s1 = _mm_load_ps(S2 + i + 4); i 1935 modules/imgproc/src/filter.cpp s2 = _mm_load_ps(S0 + i); i 1936 modules/imgproc/src/filter.cpp s3 = _mm_load_ps(S0 + i + 4); i 1939 modules/imgproc/src/filter.cpp _mm_storeu_ps(dst + i, s0); i 1940 modules/imgproc/src/filter.cpp _mm_storeu_ps(dst + i + 4, s1); i 1946 modules/imgproc/src/filter.cpp for( ; i <= width - 8; i += 8 ) i 1949 modules/imgproc/src/filter.cpp x0 = _mm_sub_ps(_mm_load_ps(S2 + i), _mm_load_ps(S0 + i)); i 1950 modules/imgproc/src/filter.cpp x1 = _mm_sub_ps(_mm_load_ps(S2 + i + 4), _mm_load_ps(S0 + i + 4)); i 1953 modules/imgproc/src/filter.cpp _mm_storeu_ps(dst + i, s0); i 1954 modules/imgproc/src/filter.cpp _mm_storeu_ps(dst + i + 4, s1); i 1959 modules/imgproc/src/filter.cpp return i; i 1991 modules/imgproc/src/filter.cpp int i = 0, k, nz = _nz; i 1994 modules/imgproc/src/filter.cpp for( ; i <= width - 16; i += 16 ) i 2004 modules/imgproc/src/filter.cpp x0 = _mm_loadu_si128((const __m128i*)(src[k] + i)); i 2022 modules/imgproc/src/filter.cpp _mm_storeu_si128((__m128i*)(dst + i), x0); i 2025 modules/imgproc/src/filter.cpp for( ; i <= width - 4; i += 4 ) i 2035 modules/imgproc/src/filter.cpp x0 = _mm_cvtsi32_si128(*(const int*)(src[k] + i)); i 2043 modules/imgproc/src/filter.cpp *(int*)(dst + i) = _mm_cvtsi128_si32(x0); i 2046 modules/imgproc/src/filter.cpp return i; i 2075 modules/imgproc/src/filter.cpp int i = 0, k, nz = _nz; i 2078 modules/imgproc/src/filter.cpp for( ; i <= width - 16; i += 16 ) i 2088 modules/imgproc/src/filter.cpp x0 = _mm_loadu_si128((const __m128i*)(src[k] + i)); i 2105 modules/imgproc/src/filter.cpp _mm_storeu_si128((__m128i*)(dst + i), x0); i 2106 modules/imgproc/src/filter.cpp _mm_storeu_si128((__m128i*)(dst + i + 8), x1); i 2109 modules/imgproc/src/filter.cpp for( ; i <= width - 4; i += 4 ) i 2119 modules/imgproc/src/filter.cpp x0 = _mm_cvtsi32_si128(*(const int*)(src[k] + i)); i 2126 modules/imgproc/src/filter.cpp _mm_storel_epi64((__m128i*)(dst + i), x0); i 2129 modules/imgproc/src/filter.cpp return i; i 2157 modules/imgproc/src/filter.cpp int i = 0, k, nz = _nz; i 2160 modules/imgproc/src/filter.cpp for( ; i <= width - 16; i += 16 ) i 2168 modules/imgproc/src/filter.cpp const float* S = src[k] + i; i 2181 modules/imgproc/src/filter.cpp _mm_storeu_ps(dst + i, s0); i 2182 modules/imgproc/src/filter.cpp _mm_storeu_ps(dst + i + 4, s1); i 2183 modules/imgproc/src/filter.cpp _mm_storeu_ps(dst + i + 8, s2); i 2184 modules/imgproc/src/filter.cpp _mm_storeu_ps(dst + i + 12, s3); i 2187 modules/imgproc/src/filter.cpp for( ; i <= width - 4; i += 4 ) i 2195 modules/imgproc/src/filter.cpp t0 = _mm_loadu_ps(src[k] + i); i 2198 modules/imgproc/src/filter.cpp _mm_storeu_ps(dst + i, s0); i 2201 modules/imgproc/src/filter.cpp return i; i 2237 modules/imgproc/src/filter.cpp int i = 0, _ksize = kernel.rows + kernel.cols - 1; i 2257 modules/imgproc/src/filter.cpp for( ; i <= width - 8; i += 8, src += 8 ) i 2271 modules/imgproc/src/filter.cpp vst2q_u16( (uint16_t *) (dst + i), str ); i 2286 modules/imgproc/src/filter.cpp for( ; i <= width - 8; i += 8, src += 8 ) i 2302 modules/imgproc/src/filter.cpp vst1q_s32((int32_t *)(dst + i), y2); i 2303 modules/imgproc/src/filter.cpp vst1q_s32((int32_t *)(dst + i + 4), y3); i 2322 modules/imgproc/src/filter.cpp for( ; i <= width - 8; i += 8, src += 8 ) i 2345 modules/imgproc/src/filter.cpp vst1q_s32((int32_t *)(dst + i), accl); i 2346 modules/imgproc/src/filter.cpp vst1q_s32((int32_t *)(dst + i + 4), acch); i 2359 modules/imgproc/src/filter.cpp for( ; i <= width - 8; i += 8, src += 8 ) i 2369 modules/imgproc/src/filter.cpp vst1q_s32((int32_t *)(dst + i), vmovl_s16(vget_low_s16(y0))); i 2370 modules/imgproc/src/filter.cpp vst1q_s32((int32_t *)(dst + i + 4), vmovl_s16(vget_high_s16(y0))); i 2382 modules/imgproc/src/filter.cpp for( ; i <= width - 8; i += 8, src += 8 ) i 2395 modules/imgproc/src/filter.cpp vst1q_s32((int32_t *)(dst + i), y1); i 2396 modules/imgproc/src/filter.cpp vst1q_s32((int32_t *)(dst + i + 4), y2); i 2410 modules/imgproc/src/filter.cpp for( ; i <= width - 8; i += 8, src += 8 ) i 2433 modules/imgproc/src/filter.cpp vst1q_s32((int32_t *)(dst + i), accl); i 2434 modules/imgproc/src/filter.cpp vst1q_s32((int32_t *)(dst + i + 4), acch); i 2439 modules/imgproc/src/filter.cpp return i; i 2467 modules/imgproc/src/filter.cpp int i = 0, k; i 2485 modules/imgproc/src/filter.cpp for( ; i <= width - 8; i += 8 ) i 2490 modules/imgproc/src/filter.cpp S = src[0] + i; i 2495 modules/imgproc/src/filter.cpp S = src[1] + i; i 2496 modules/imgproc/src/filter.cpp S2 = src[-1] + i; i 2511 modules/imgproc/src/filter.cpp S = src[k] + i; i 2512 modules/imgproc/src/filter.cpp S2 = src[-k] + i; i 2535 modules/imgproc/src/filter.cpp vst1_u8((uint8_t *)(dst + i), u8); i 2544 modules/imgproc/src/filter.cpp for( ; i <= width - 8; i += 8 ) i 2549 modules/imgproc/src/filter.cpp S = src[1] + i; i 2550 modules/imgproc/src/filter.cpp S2 = src[-1] + i; i 2563 modules/imgproc/src/filter.cpp S = src[k] + i; i 2564 modules/imgproc/src/filter.cpp S2 = src[-k] + i; i 2587 modules/imgproc/src/filter.cpp vst1_u8((uint8_t *)(dst + i), u8); i 2591 modules/imgproc/src/filter.cpp return i; i 2618 modules/imgproc/src/filter.cpp int i = 0; i 2630 modules/imgproc/src/filter.cpp for( ; i <= width - 4; i += 4 ) i 2633 modules/imgproc/src/filter.cpp x0 = vld1q_s32((int32_t const *)(S0 + i)); i 2634 modules/imgproc/src/filter.cpp x1 = vld1q_s32((int32_t const *)(S1 + i)); i 2635 modules/imgproc/src/filter.cpp x2 = vld1q_s32((int32_t const *)(S2 + i)); i 2646 modules/imgproc/src/filter.cpp vst1_s16((int16_t *)(dst + i), t); i 2651 modules/imgproc/src/filter.cpp for( ; i <= width - 4; i += 4 ) i 2654 modules/imgproc/src/filter.cpp x0 = vld1q_s32((int32_t const *)(S0 + i)); i 2655 modules/imgproc/src/filter.cpp x1 = vld1q_s32((int32_t const *)(S1 + i)); i 2656 modules/imgproc/src/filter.cpp x2 = vld1q_s32((int32_t const *)(S2 + i)); i 2667 modules/imgproc/src/filter.cpp vst1_s16((int16_t *)(dst + i), t); i 2672 modules/imgproc/src/filter.cpp for( ; i <= width - 4; i += 4 ) i 2675 modules/imgproc/src/filter.cpp x0 = vld1q_s32((int32_t const *)(S0 + i)); i 2676 modules/imgproc/src/filter.cpp x1 = vld1q_s32((int32_t const *)(S1 + i)); i 2677 modules/imgproc/src/filter.cpp x2 = vld1q_s32((int32_t const *)(S2 + i)); i 2688 modules/imgproc/src/filter.cpp vst1_s16((int16_t *)(dst + i), t); i 2697 modules/imgproc/src/filter.cpp for( ; i <= width - 4; i += 4 ) i 2700 modules/imgproc/src/filter.cpp x0 = vld1q_s32((int32_t const *)(S0 + i)); i 2701 modules/imgproc/src/filter.cpp x1 = vld1q_s32((int32_t const *)(S1 + i)); i 2702 modules/imgproc/src/filter.cpp x2 = vld1q_s32((int32_t const *)(S2 + i)); i 2717 modules/imgproc/src/filter.cpp vst1_s16((int16_t *)(dst + i), x5); i 2727 modules/imgproc/src/filter.cpp for( ; i <= width - 4; i += 4 ) i 2730 modules/imgproc/src/filter.cpp x0 = vld1q_s32((int32_t const *)(S0 + i)); i 2731 modules/imgproc/src/filter.cpp x1 = vld1q_s32((int32_t const *)(S2 + i)); i 2740 modules/imgproc/src/filter.cpp vst1_s16((int16_t *)(dst + i), t); i 2748 modules/imgproc/src/filter.cpp for( ; i <= width - 4; i += 4 ) i 2751 modules/imgproc/src/filter.cpp x0 = vld1q_s32((int32_t const *)(S0 + i)); i 2752 modules/imgproc/src/filter.cpp x1 = vld1q_s32((int32_t const *)(S2 + i)); i 2765 modules/imgproc/src/filter.cpp vst1_s16((int16_t *)(dst + i), x4); i 2770 modules/imgproc/src/filter.cpp return i; i 2799 modules/imgproc/src/filter.cpp int i = 0, k; i 2818 modules/imgproc/src/filter.cpp for( ; i <= width - 8; i += 8 ) i 2823 modules/imgproc/src/filter.cpp S = src[0] + i; i 2828 modules/imgproc/src/filter.cpp S = src[1] + i; i 2829 modules/imgproc/src/filter.cpp S2 = src[-1] + i; i 2844 modules/imgproc/src/filter.cpp S = src[k] + i; i 2845 modules/imgproc/src/filter.cpp S2 = src[-k] + i; i 2865 modules/imgproc/src/filter.cpp vst1_s16((int16_t *)(dst + i), s16l); i 2866 modules/imgproc/src/filter.cpp vst1_s16((int16_t *)(dst + i + 4), s16h); i 2875 modules/imgproc/src/filter.cpp for( ; i <= width - 8; i += 8 ) i 2880 modules/imgproc/src/filter.cpp S = src[1] + i; i 2881 modules/imgproc/src/filter.cpp S2 = src[-1] + i; i 2894 modules/imgproc/src/filter.cpp S = src[k] + i; i 2895 modules/imgproc/src/filter.cpp S2 = src[-k] + i; i 2915 modules/imgproc/src/filter.cpp vst1_s16((int16_t *)(dst + i), s16l); i 2916 modules/imgproc/src/filter.cpp vst1_s16((int16_t *)(dst + i + 4), s16h); i 2920 modules/imgproc/src/filter.cpp return i; i 2944 modules/imgproc/src/filter.cpp int i = 0, _ksize = kernel.rows + kernel.cols - 1; i 2978 modules/imgproc/src/filter.cpp for( ; i <= width - 4; i += 4, src += 4 ) i 2992 modules/imgproc/src/filter.cpp vst1q_f32(dst + i, y0); i 3015 modules/imgproc/src/filter.cpp for( ; i <= width - 4; i += 4, src += 4 ) i 3027 modules/imgproc/src/filter.cpp vst1q_f32(dst + i, y0); i 3032 modules/imgproc/src/filter.cpp return i; i 3090 modules/imgproc/src/filter.cpp int i, k; i 3092 modules/imgproc/src/filter.cpp i = vecOp(src, dst, width, cn); i 3095 modules/imgproc/src/filter.cpp for( ; i <= width - 4; i += 4 ) i 3097 modules/imgproc/src/filter.cpp S = (const ST*)src + i; i 3109 modules/imgproc/src/filter.cpp D[i] = s0; D[i+1] = s1; i 3110 modules/imgproc/src/filter.cpp D[i+2] = s2; D[i+3] = s3; i 3113 modules/imgproc/src/filter.cpp for( ; i < width; i++ ) i 3115 modules/imgproc/src/filter.cpp S = (const ST*)src + i; i 3122 modules/imgproc/src/filter.cpp D[i] = s0; i 3148 modules/imgproc/src/filter.cpp int i = this->vecOp(src, dst, width, cn), j, k; i 3149 modules/imgproc/src/filter.cpp const ST* S = (const ST*)src + i + ksize2n; i 3156 modules/imgproc/src/filter.cpp for( ; i <= width - 2; i += 2 ) i 3158 modules/imgproc/src/filter.cpp DT s0 = S[i], s1 = S[i+1]; i 3159 modules/imgproc/src/filter.cpp D[i] = s0; D[i+1] = s1; i 3161 modules/imgproc/src/filter.cpp S += i; i 3166 modules/imgproc/src/filter.cpp for( ; i <= width - 2; i += 2, S += 2 ) i 3169 modules/imgproc/src/filter.cpp D[i] = s0; D[i+1] = s1; i 3172 modules/imgproc/src/filter.cpp for( ; i <= width - 2; i += 2, S += 2 ) i 3175 modules/imgproc/src/filter.cpp D[i] = s0; D[i+1] = s1; i 3180 modules/imgproc/src/filter.cpp for( ; i <= width - 2; i += 2, S += 2 ) i 3183 modules/imgproc/src/filter.cpp D[i] = s0; D[i+1] = s1; i 3191 modules/imgproc/src/filter.cpp for( ; i <= width - 2; i += 2, S += 2 ) i 3195 modules/imgproc/src/filter.cpp D[i] = s0; D[i+1] = s1; i 3198 modules/imgproc/src/filter.cpp for( ; i <= width - 2; i += 2, S += 2 ) i 3202 modules/imgproc/src/filter.cpp D[i] = s0; D[i+1] = s1; i 3206 modules/imgproc/src/filter.cpp for( ; i < width; i++, S++ ) i 3211 modules/imgproc/src/filter.cpp D[i] = s0; i 3219 modules/imgproc/src/filter.cpp for( ; i <= width - 2; i += 2, S += 2 ) i 3222 modules/imgproc/src/filter.cpp D[i] = s0; D[i+1] = s1; i 3227 modules/imgproc/src/filter.cpp for( ; i <= width - 2; i += 2, S += 2 ) i 3230 modules/imgproc/src/filter.cpp D[i] = s0; D[i+1] = s1; i 3237 modules/imgproc/src/filter.cpp for( ; i <= width - 2; i += 2, S += 2 ) i 3241 modules/imgproc/src/filter.cpp D[i] = s0; D[i+1] = s1; i 3245 modules/imgproc/src/filter.cpp for( ; i < width; i++, S++ ) i 3250 modules/imgproc/src/filter.cpp D[i] = s0; i 3286 modules/imgproc/src/filter.cpp int i, k; i 3292 modules/imgproc/src/filter.cpp i = vecOp(src, dst, width); i 3294 modules/imgproc/src/filter.cpp for( ; i <= width - 4; i += 4 ) i 3297 modules/imgproc/src/filter.cpp const ST* S = (const ST*)src[0] + i; i 3303 modules/imgproc/src/filter.cpp S = (const ST*)src[k] + i; f = ky[k]; i 3308 modules/imgproc/src/filter.cpp D[i] = castOp(s0); D[i+1] = castOp(s1); i 3309 modules/imgproc/src/filter.cpp D[i+2] = castOp(s2); D[i+3] = castOp(s3); i 3312 modules/imgproc/src/filter.cpp for( ; i < width; i++ ) i 3314 modules/imgproc/src/filter.cpp ST s0 = ky[0]*((const ST*)src[0])[i] + _delta; i 3316 modules/imgproc/src/filter.cpp s0 += ky[k]*((const ST*)src[k])[i]; i 3317 modules/imgproc/src/filter.cpp D[i] = castOp(s0); i 3348 modules/imgproc/src/filter.cpp int i, k; i 3359 modules/imgproc/src/filter.cpp i = (this->vecOp)(src, dst, width); i 3361 modules/imgproc/src/filter.cpp for( ; i <= width - 4; i += 4 ) i 3364 modules/imgproc/src/filter.cpp const ST* S = (const ST*)src[0] + i, *S2; i 3370 modules/imgproc/src/filter.cpp S = (const ST*)src[k] + i; i 3371 modules/imgproc/src/filter.cpp S2 = (const ST*)src[-k] + i; i 3379 modules/imgproc/src/filter.cpp D[i] = castOp(s0); D[i+1] = castOp(s1); i 3380 modules/imgproc/src/filter.cpp D[i+2] = castOp(s2); D[i+3] = castOp(s3); i 3383 modules/imgproc/src/filter.cpp for( ; i < width; i++ ) i 3385 modules/imgproc/src/filter.cpp ST s0 = ky[0]*((const ST*)src[0])[i] + _delta; i 3387 modules/imgproc/src/filter.cpp s0 += ky[k]*(((const ST*)src[k])[i] + ((const ST*)src[-k])[i]); i 3388 modules/imgproc/src/filter.cpp D[i] = castOp(s0); i 3397 modules/imgproc/src/filter.cpp i = this->vecOp(src, dst, width); i 3399 modules/imgproc/src/filter.cpp for( ; i <= width - 4; i += 4 ) i 3407 modules/imgproc/src/filter.cpp S = (const ST*)src[k] + i; i 3408 modules/imgproc/src/filter.cpp S2 = (const ST*)src[-k] + i; i 3416 modules/imgproc/src/filter.cpp D[i] = castOp(s0); D[i+1] = castOp(s1); i 3417 modules/imgproc/src/filter.cpp D[i+2] = castOp(s2); D[i+3] = castOp(s3); i 3420 modules/imgproc/src/filter.cpp for( ; i < width; i++ ) i 3424 modules/imgproc/src/filter.cpp s0 += ky[k]*(((const ST*)src[k])[i] - ((const ST*)src[-k])[i]); i 3425 modules/imgproc/src/filter.cpp D[i] = castOp(s0); i 3454 modules/imgproc/src/filter.cpp int i; i 3467 modules/imgproc/src/filter.cpp i = (this->vecOp)(src, dst, width); i 3477 modules/imgproc/src/filter.cpp for( ; i <= width - 4; i += 4 ) i 3479 modules/imgproc/src/filter.cpp ST s0 = S0[i] + S1[i]*2 + S2[i] + _delta; i 3480 modules/imgproc/src/filter.cpp ST s1 = S0[i+1] + S1[i+1]*2 + S2[i+1] + _delta; i 3481 modules/imgproc/src/filter.cpp D[i] = castOp(s0); i 3482 modules/imgproc/src/filter.cpp D[i+1] = castOp(s1); i 3484 modules/imgproc/src/filter.cpp s0 = S0[i+2] + S1[i+2]*2 + S2[i+2] + _delta; i 3485 modules/imgproc/src/filter.cpp s1 = S0[i+3] + S1[i+3]*2 + S2[i+3] + _delta; i 3486 modules/imgproc/src/filter.cpp D[i+2] = castOp(s0); i 3487 modules/imgproc/src/filter.cpp D[i+3] = castOp(s1); i 3490 modules/imgproc/src/filter.cpp for( ; i < width; i ++ ) i 3492 modules/imgproc/src/filter.cpp ST s0 = S0[i] + S1[i]*2 + S2[i] + _delta; i 3493 modules/imgproc/src/filter.cpp D[i] = castOp(s0); i 3499 modules/imgproc/src/filter.cpp for( ; i <= width - 4; i += 4 ) i 3501 modules/imgproc/src/filter.cpp ST s0 = S0[i] - S1[i]*2 + S2[i] + _delta; i 3502 modules/imgproc/src/filter.cpp ST s1 = S0[i+1] - S1[i+1]*2 + S2[i+1] + _delta; i 3503 modules/imgproc/src/filter.cpp D[i] = castOp(s0); i 3504 modules/imgproc/src/filter.cpp D[i+1] = castOp(s1); i 3506 modules/imgproc/src/filter.cpp s0 = S0[i+2] - S1[i+2]*2 + S2[i+2] + _delta; i 3507 modules/imgproc/src/filter.cpp s1 = S0[i+3] - S1[i+3]*2 + S2[i+3] + _delta; i 3508 modules/imgproc/src/filter.cpp D[i+2] = castOp(s0); i 3509 modules/imgproc/src/filter.cpp D[i+3] = castOp(s1); i 3512 modules/imgproc/src/filter.cpp for( ; i < width; i ++ ) i 3514 modules/imgproc/src/filter.cpp ST s0 = S0[i] - S1[i]*2 + S2[i] + _delta; i 3515 modules/imgproc/src/filter.cpp D[i] = castOp(s0); i 3521 modules/imgproc/src/filter.cpp for( ; i <= width - 4; i += 4 ) i 3523 modules/imgproc/src/filter.cpp ST s0 = (S0[i] + S2[i])*f1 + S1[i]*f0 + _delta; i 3524 modules/imgproc/src/filter.cpp ST s1 = (S0[i+1] + S2[i+1])*f1 + S1[i+1]*f0 + _delta; i 3525 modules/imgproc/src/filter.cpp D[i] = castOp(s0); i 3526 modules/imgproc/src/filter.cpp D[i+1] = castOp(s1); i 3528 modules/imgproc/src/filter.cpp s0 = (S0[i+2] + S2[i+2])*f1 + S1[i+2]*f0 + _delta; i 3529 modules/imgproc/src/filter.cpp s1 = (S0[i+3] + S2[i+3])*f1 + S1[i+3]*f0 + _delta; i 3530 modules/imgproc/src/filter.cpp D[i+2] = castOp(s0); i 3531 modules/imgproc/src/filter.cpp D[i+3] = castOp(s1); i 3534 modules/imgproc/src/filter.cpp for( ; i < width; i ++ ) i 3536 modules/imgproc/src/filter.cpp ST s0 = (S0[i] + S2[i])*f1 + S1[i]*f0 + _delta; i 3537 modules/imgproc/src/filter.cpp D[i] = castOp(s0); i 3548 modules/imgproc/src/filter.cpp for( ; i <= width - 4; i += 4 ) i 3550 modules/imgproc/src/filter.cpp ST s0 = S2[i] - S0[i] + _delta; i 3551 modules/imgproc/src/filter.cpp ST s1 = S2[i+1] - S0[i+1] + _delta; i 3552 modules/imgproc/src/filter.cpp D[i] = castOp(s0); i 3553 modules/imgproc/src/filter.cpp D[i+1] = castOp(s1); i 3555 modules/imgproc/src/filter.cpp s0 = S2[i+2] - S0[i+2] + _delta; i 3556 modules/imgproc/src/filter.cpp s1 = S2[i+3] - S0[i+3] + _delta; i 3557 modules/imgproc/src/filter.cpp D[i+2] = castOp(s0); i 3558 modules/imgproc/src/filter.cpp D[i+3] = castOp(s1); i 3561 modules/imgproc/src/filter.cpp for( ; i < width; i ++ ) i 3563 modules/imgproc/src/filter.cpp ST s0 = S2[i] - S0[i] + _delta; i 3564 modules/imgproc/src/filter.cpp D[i] = castOp(s0); i 3572 modules/imgproc/src/filter.cpp for( ; i <= width - 4; i += 4 ) i 3574 modules/imgproc/src/filter.cpp ST s0 = (S2[i] - S0[i])*f1 + _delta; i 3575 modules/imgproc/src/filter.cpp ST s1 = (S2[i+1] - S0[i+1])*f1 + _delta; i 3576 modules/imgproc/src/filter.cpp D[i] = castOp(s0); i 3577 modules/imgproc/src/filter.cpp D[i+1] = castOp(s1); i 3579 modules/imgproc/src/filter.cpp s0 = (S2[i+2] - S0[i+2])*f1 + _delta; i 3580 modules/imgproc/src/filter.cpp s1 = (S2[i+3] - S0[i+3])*f1 + _delta; i 3581 modules/imgproc/src/filter.cpp D[i+2] = castOp(s0); i 3582 modules/imgproc/src/filter.cpp D[i+3] = castOp(s1); i 3585 modules/imgproc/src/filter.cpp for( ; i < width; i++ ) i 3586 modules/imgproc/src/filter.cpp D[i] = castOp((S2[i] - S0[i])*f1 + _delta); i 3850 modules/imgproc/src/filter.cpp int i, j, k, nz = countNonZero(kernel), ktype = kernel.type(); i 3858 modules/imgproc/src/filter.cpp for( i = k = 0; i < kernel.rows; i++ ) i 3860 modules/imgproc/src/filter.cpp const uchar* krow = kernel.ptr(i); i 3868 modules/imgproc/src/filter.cpp coords[k] = Point(j,i); i 3876 modules/imgproc/src/filter.cpp coords[k] = Point(j,i); i 3884 modules/imgproc/src/filter.cpp coords[k] = Point(j,i); i 3892 modules/imgproc/src/filter.cpp coords[k] = Point(j,i); i 3925 modules/imgproc/src/filter.cpp int i, k, nz = (int)coords.size(); i 3936 modules/imgproc/src/filter.cpp i = vecOp((const uchar**)kp, dst, width); i 3938 modules/imgproc/src/filter.cpp for( ; i <= width - 4; i += 4 ) i 3944 modules/imgproc/src/filter.cpp const ST* sptr = kp[k] + i; i 3952 modules/imgproc/src/filter.cpp D[i] = castOp(s0); D[i+1] = castOp(s1); i 3953 modules/imgproc/src/filter.cpp D[i+2] = castOp(s2); D[i+3] = castOp(s3); i 3956 modules/imgproc/src/filter.cpp for( ; i < width; i++ ) i 3960 modules/imgproc/src/filter.cpp s0 += kf[k]*kp[k][i]; i 3961 modules/imgproc/src/filter.cpp D[i] = castOp(s0); i 4402 modules/imgproc/src/filter.cpp for (int i=0; i<kernelX.cols; i++) i 4403 modules/imgproc/src/filter.cpp kernelX.at<float>(0, i) = (float) cvRound(kernelX.at<float>(0, i) * (1 << shift_bits)); i 4405 modules/imgproc/src/filter.cpp for (int i=0; i<kernelX.cols; i++) i 4406 modules/imgproc/src/filter.cpp kernelY.at<float>(0, i) = (float) cvRound(kernelY.at<float>(0, i) * (1 << shift_bits)); i 136 modules/imgproc/src/floodfill.cpp int i, L, R; i 191 modules/imgproc/src/floodfill.cpp for( i = left; i <= right; i++ ) i 193 modules/imgproc/src/floodfill.cpp if( (unsigned)i < (unsigned)roi.width && img[i] == val0 ) i 195 modules/imgproc/src/floodfill.cpp int j = i; i 196 modules/imgproc/src/floodfill.cpp img[i] = newVal; i 200 modules/imgproc/src/floodfill.cpp while( ++i < roi.width && img[i] == val0 ) i 201 modules/imgproc/src/floodfill.cpp img[i] = newVal; i 203 modules/imgproc/src/floodfill.cpp ICV_PUSH( YC + dir, j+1, i-1, L, R, -dir ); i 291 modules/imgproc/src/floodfill.cpp int i, L, R; i 362 modules/imgproc/src/floodfill.cpp for( i = left; i <= right; i++ ) i 364 modules/imgproc/src/floodfill.cpp if( !mask[i] && diff( img + i, &val0 )) i 366 modules/imgproc/src/floodfill.cpp int j = i; i 367 modules/imgproc/src/floodfill.cpp mask[i] = newMaskVal; i 371 modules/imgproc/src/floodfill.cpp while( !mask[++i] && diff( img + i, &val0 )) i 372 modules/imgproc/src/floodfill.cpp mask[i] = newMaskVal; i 374 modules/imgproc/src/floodfill.cpp ICV_PUSH( YC + dir, j+1, i-1, L, R, -dir ); i 378 modules/imgproc/src/floodfill.cpp for( i = left; i <= right; i++ ) i 380 modules/imgproc/src/floodfill.cpp if( !mask[i] && diff( img + i, img1 + i )) i 382 modules/imgproc/src/floodfill.cpp int j = i; i 383 modules/imgproc/src/floodfill.cpp mask[i] = newMaskVal; i 387 modules/imgproc/src/floodfill.cpp while( !mask[++i] && i 388 modules/imgproc/src/floodfill.cpp (diff( img + i, img + (i-1) ) || i 389 modules/imgproc/src/floodfill.cpp (diff( img + i, img1 + i) && i <= R))) i 390 modules/imgproc/src/floodfill.cpp mask[i] = newMaskVal; i 392 modules/imgproc/src/floodfill.cpp ICV_PUSH( YC + dir, j+1, i-1, L, R, -dir ); i 396 modules/imgproc/src/floodfill.cpp for( i = left; i <= right; i++ ) i 401 modules/imgproc/src/floodfill.cpp if( !mask[i] && i 402 modules/imgproc/src/floodfill.cpp (((val = img[i], i 403 modules/imgproc/src/floodfill.cpp (unsigned)(idx = i-L-1) <= length) && i 404 modules/imgproc/src/floodfill.cpp diff( &val, img1 + (i-1))) || i 406 modules/imgproc/src/floodfill.cpp diff( &val, img1 + i )) || i 408 modules/imgproc/src/floodfill.cpp diff( &val, img1 + (i+1) )))) i 410 modules/imgproc/src/floodfill.cpp int j = i; i 411 modules/imgproc/src/floodfill.cpp mask[i] = newMaskVal; i 415 modules/imgproc/src/floodfill.cpp while( !mask[++i] && i 416 modules/imgproc/src/floodfill.cpp ((val = img[i], i 417 modules/imgproc/src/floodfill.cpp diff( &val, img + (i-1) )) || i 418 modules/imgproc/src/floodfill.cpp (((unsigned)(idx = i-L-1) <= length && i 419 modules/imgproc/src/floodfill.cpp diff( &val, img1 + (i-1) ))) || i 421 modules/imgproc/src/floodfill.cpp diff( &val, img1 + i )) || i 423 modules/imgproc/src/floodfill.cpp diff( &val, img1 + (i+1) )))) i 424 modules/imgproc/src/floodfill.cpp mask[i] = newMaskVal; i 426 modules/imgproc/src/floodfill.cpp ICV_PUSH( YC + dir, j+1, i-1, L, R, -dir ); i 433 modules/imgproc/src/floodfill.cpp for( i = L; i <= R; i++ ) i 434 modules/imgproc/src/floodfill.cpp img[i] = newVal; i 468 modules/imgproc/src/floodfill.cpp int i, connectivity = flags & 255; i 471 modules/imgproc/src/floodfill.cpp int i[4]; i 477 modules/imgproc/src/floodfill.cpp struct { Vec3b b; Vec3i i; Vec3f f; } ld_buf, ud_buf; i 499 modules/imgproc/src/floodfill.cpp for( i = 0; i < cn; i++ ) i 501 modules/imgproc/src/floodfill.cpp if( loDiff[i] < 0 || upDiff[i] < 0 ) i 503 modules/imgproc/src/floodfill.cpp is_simple = is_simple && fabs(loDiff[i]) < DBL_EPSILON && fabs(upDiff[i]) < DBL_EPSILON; i 531 modules/imgproc/src/floodfill.cpp floodFill_CnIR(img, seedPoint, nv_buf.i[0], &comp, flags, &buffer); i 535 modules/imgproc/src/floodfill.cpp floodFill_CnIR(img, seedPoint, Vec3i(nv_buf.i), &comp, flags, &buffer); i 561 modules/imgproc/src/floodfill.cpp for( i = 1; i <= size.height; i++ ) i 563 modules/imgproc/src/floodfill.cpp mask.at<uchar>(i, 0) = mask.at<uchar>(i, mask.cols-1) = (uchar)1; i 567 modules/imgproc/src/floodfill.cpp for( i = 0; i < cn; i++ ) i 569 modules/imgproc/src/floodfill.cpp ld_buf.b[i] = saturate_cast<uchar>(cvFloor(loDiff[i])); i 570 modules/imgproc/src/floodfill.cpp ud_buf.b[i] = saturate_cast<uchar>(cvFloor(upDiff[i])); i 573 modules/imgproc/src/floodfill.cpp for( i = 0; i < cn; i++ ) i 575 modules/imgproc/src/floodfill.cpp ld_buf.i[i] = cvFloor(loDiff[i]); i 576 modules/imgproc/src/floodfill.cpp ud_buf.i[i] = cvFloor(upDiff[i]); i 579 modules/imgproc/src/floodfill.cpp for( i = 0; i < cn; i++ ) i 581 modules/imgproc/src/floodfill.cpp ld_buf.f[i] = (float)loDiff[i]; i 582 modules/imgproc/src/floodfill.cpp ud_buf.f[i] = (float)upDiff[i]; i 601 modules/imgproc/src/floodfill.cpp img, mask, seedPoint, nv_buf.i[0], newMaskVal, i 602 modules/imgproc/src/floodfill.cpp Diff32sC1(ld_buf.i[0], ud_buf.i[0]), i 606 modules/imgproc/src/floodfill.cpp img, mask, seedPoint, Vec3i(nv_buf.i), newMaskVal, i 607 modules/imgproc/src/floodfill.cpp Diff32sC3(ld_buf.i, ud_buf.i), i 53 modules/imgproc/src/gcgraph.hpp void addEdges( int i, int j, TWeight w, TWeight revw ); i 54 modules/imgproc/src/gcgraph.hpp void addTermWeights( int i, TWeight sourceW, TWeight sinkW ); i 56 modules/imgproc/src/gcgraph.hpp bool inSourceSegment( int i ); i 114 modules/imgproc/src/gcgraph.hpp void GCGraph<TWeight>::addEdges( int i, int j, TWeight w, TWeight revw ) i 116 modules/imgproc/src/gcgraph.hpp CV_Assert( i>=0 && i<(int)vtcs.size() ); i 119 modules/imgproc/src/gcgraph.hpp CV_Assert( i != j ); i 126 modules/imgproc/src/gcgraph.hpp fromI.next = vtcs[i].first; i 128 modules/imgproc/src/gcgraph.hpp vtcs[i].first = (int)edges.size(); i 131 modules/imgproc/src/gcgraph.hpp toI.dst = i; i 139 modules/imgproc/src/gcgraph.hpp void GCGraph<TWeight>::addTermWeights( int i, TWeight sourceW, TWeight sinkW ) i 141 modules/imgproc/src/gcgraph.hpp CV_Assert( i>=0 && i<(int)vtcs.size() ); i 143 modules/imgproc/src/gcgraph.hpp TWeight dw = vtcs[i].weight; i 149 modules/imgproc/src/gcgraph.hpp vtcs[i].weight = sourceW - sinkW; i 165 modules/imgproc/src/gcgraph.hpp for( int i = 0; i < (int)vtcs.size(); i++ ) i 167 modules/imgproc/src/gcgraph.hpp Vtx* v = vtxPtr + i; i 379 modules/imgproc/src/gcgraph.hpp bool GCGraph<TWeight>::inSourceSegment( int i ) i 381 modules/imgproc/src/gcgraph.hpp CV_Assert( i>=0 && i<(int)vtcs.size() ); i 382 modules/imgproc/src/gcgraph.hpp return vtcs[i].t == 0; i 229 modules/imgproc/src/generalized_hough.cpp for (size_t i = 0; i < oldSize; ++i) i 230 modules/imgproc/src/generalized_hough.cpp indexies[i] = i; i 244 modules/imgproc/src/generalized_hough.cpp for (size_t i = 0; i < oldSize; ++i) i 246 modules/imgproc/src/generalized_hough.cpp const size_t ind = indexies[i]; i 664 modules/imgproc/src/generalized_hough.cpp for (size_t i = 0; i < angles_.size(); ++i) i 666 modules/imgproc/src/generalized_hough.cpp const double angle = angles_[i].first; i 667 modules/imgproc/src/generalized_hough.cpp const int angleVotes = angles_[i].second; i 696 modules/imgproc/src/generalized_hough.cpp for (size_t i = 0; i < points.size(); ++i) i 698 modules/imgproc/src/generalized_hough.cpp ContourPoint p1 = points[i]; i 774 modules/imgproc/src/generalized_hough.cpp for (int i = 0; i <= levels_; ++i) i 776 modules/imgproc/src/generalized_hough.cpp const std::vector<Feature>& templRow = templFeatures_[i]; i 777 modules/imgproc/src/generalized_hough.cpp const std::vector<Feature>& imageRow = imageFeatures_[i]; i 823 modules/imgproc/src/generalized_hough.cpp for (int i = 0; i <= levels_; ++i) i 825 modules/imgproc/src/generalized_hough.cpp const std::vector<Feature>& templRow = templFeatures_[i]; i 826 modules/imgproc/src/generalized_hough.cpp const std::vector<Feature>& imageRow = imageFeatures_[i]; i 880 modules/imgproc/src/generalized_hough.cpp for (int i = 0; i <= levels_; ++i) i 882 modules/imgproc/src/generalized_hough.cpp const std::vector<Feature>& templRow = templFeatures_[i]; i 883 modules/imgproc/src/generalized_hough.cpp const std::vector<Feature>& imageRow = imageFeatures_[i]; i 99 modules/imgproc/src/geometry.cpp int i, total = contour.checkVector(2), counter = 0; i 118 modules/imgproc/src/geometry.cpp for( i = 0; i < total; i++ ) i 122 modules/imgproc/src/geometry.cpp v = cnt[i]; i 160 modules/imgproc/src/geometry.cpp for( i = 0; i < total; i++ ) i 165 modules/imgproc/src/geometry.cpp v = cntf[i]; i 167 modules/imgproc/src/geometry.cpp v = cnt[i]; i 191 modules/imgproc/src/geometry.cpp for( i = 0; i < total; i++ ) i 197 modules/imgproc/src/geometry.cpp v = cntf[i]; i 199 modules/imgproc/src/geometry.cpp v = cnt[i]; i 486 modules/imgproc/src/geometry.cpp int i, nr = (int)(result - result0); i 489 modules/imgproc/src/geometry.cpp for( i = 1; i < nr; i++ ) i 491 modules/imgproc/src/geometry.cpp result0[i-1] = result0[i]; i 492 modules/imgproc/src/geometry.cpp area += (double)prev.x*result0[i].y - (double)prev.y*result0[i].x; i 493 modules/imgproc/src/geometry.cpp prev = result0[i]; i 537 modules/imgproc/src/geometry.cpp for( int i = 1; i < len; i++ ) i 539 modules/imgproc/src/geometry.cpp double s = diff0.cross(dst[i] - dst[i-1]); i 388 modules/imgproc/src/grabcut.cpp for( int i = 0; i < (int)bgdSamples.size(); i++ ) i 389 modules/imgproc/src/grabcut.cpp bgdGMM.addSample( bgdLabels.at<int>(i,0), bgdSamples[i] ); i 393 modules/imgproc/src/grabcut.cpp for( int i = 0; i < (int)fgdSamples.size(); i++ ) i 394 modules/imgproc/src/grabcut.cpp fgdGMM.addSample( fgdLabels.at<int>(i,0), fgdSamples[i] ); i 567 modules/imgproc/src/grabcut.cpp for( int i = 0; i < iterCount; i++ ) i 58 modules/imgproc/src/histogram.cpp int i, j; i 64 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 66 modules/imgproc/src/histogram.cpp double a = uniranges[i*2]; i 67 modules/imgproc/src/histogram.cpp double b = uniranges[i*2+1]; i 68 modules/imgproc/src/histogram.cpp int sz = !issparse ? hist.size[i] : shist.size(i); i 69 modules/imgproc/src/histogram.cpp size_t step = !issparse ? hist.step[i] : 1; i 80 modules/imgproc/src/histogram.cpp tab[i*(high - low) + j - low] = written_idx; i 86 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 88 modules/imgproc/src/histogram.cpp int limit = std::min(cvCeil(ranges[i][0]), high); i 89 modules/imgproc/src/histogram.cpp int idx = -1, sz = !issparse ? hist.size[i] : shist.size(i); i 91 modules/imgproc/src/histogram.cpp size_t step = !issparse ? hist.step[i] : 1; i 96 modules/imgproc/src/histogram.cpp tab[i*(high - low) + j - low] = written_idx; i 100 modules/imgproc/src/histogram.cpp limit = std::min(cvCeil(ranges[i][idx+1]), high); i 106 modules/imgproc/src/histogram.cpp tab[i*(high - low) + j - low] = OUT_OF_RANGE; i 121 modules/imgproc/src/histogram.cpp int i, j, c; i 131 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 135 modules/imgproc/src/histogram.cpp j = i; i 141 modules/imgproc/src/histogram.cpp c = channels[i]; i 152 modules/imgproc/src/histogram.cpp ptrs[i] = images[j].data + c*esz1; i 153 modules/imgproc/src/histogram.cpp deltas[i*2] = images[j].channels(); i 154 modules/imgproc/src/histogram.cpp deltas[i*2+1] = (int)(images[j].step/esz1 - imsize.width*deltas[i*2]); i 179 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 181 modules/imgproc/src/histogram.cpp uniranges[i*2] = histSize[i]/256.; i 182 modules/imgproc/src/histogram.cpp uniranges[i*2+1] = 0; i 188 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 190 modules/imgproc/src/histogram.cpp CV_Assert( ranges[i] && ranges[i][0] < ranges[i][1] ); i 191 modules/imgproc/src/histogram.cpp double low = ranges[i][0], high = ranges[i][1]; i 192 modules/imgproc/src/histogram.cpp double t = histSize[i]/(high - low); i 193 modules/imgproc/src/histogram.cpp uniranges[i*2] = t; i 194 modules/imgproc/src/histogram.cpp uniranges[i*2+1] = -t*low; i 199 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 201 modules/imgproc/src/histogram.cpp size_t n = histSize[i]; i 203 modules/imgproc/src/histogram.cpp CV_Assert( ranges[i][k] < ranges[i][k+1] ); i 391 modules/imgproc/src/histogram.cpp for( int i = range.begin(); i < range.end(); i++, p0 += step_[0], p1 += step_[1], p2 += step_[2] ) i 494 modules/imgproc/src/histogram.cpp for( int i = range.begin(); i < range.end(); i++, p0 += step_[0] ) i 541 modules/imgproc/src/histogram.cpp for(int i = 0; i < 256; i++ ) i 543 modules/imgproc/src/histogram.cpp size_t hidx = tab_[i]; i 546 modules/imgproc/src/histogram.cpp *(int*)((globalHistogram_ + hidx)) += localHistogram[i]; i 602 modules/imgproc/src/histogram.cpp for(int i = range.begin(); i < range.end(); i++, p0 += step_[0], p1 += step_[1]) i 630 modules/imgproc/src/histogram.cpp for(int i = 0; i < histSize_.width*histSize_.height; i++) i 632 modules/imgproc/src/histogram.cpp ((int*)globalHistogram_)[i] += ((int*)localHistData)[i]; i 682 modules/imgproc/src/histogram.cpp for(int i = range.begin(); i < range.end(); i++, p0 += step_[0], p1 += step_[1], p2 += step_[2] ) i 757 modules/imgproc/src/histogram.cpp int i, x; i 763 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 765 modules/imgproc/src/histogram.cpp size[i] = hist.size[i]; i 766 modules/imgproc/src/histogram.cpp hstep[i] = hist.step[i]; i 898 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 900 modules/imgproc/src/histogram.cpp int idx = cvFloor(*ptrs[i]*uniranges[i*2] + uniranges[i*2+1]); i 901 modules/imgproc/src/histogram.cpp if( (unsigned)idx >= (unsigned)size[i] ) i 903 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2]; i 904 modules/imgproc/src/histogram.cpp Hptr += idx*hstep[i]; i 907 modules/imgproc/src/histogram.cpp if( i == dims ) i 910 modules/imgproc/src/histogram.cpp for( ; i < dims; i++ ) i 911 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2]; i 917 modules/imgproc/src/histogram.cpp i = 0; i 919 modules/imgproc/src/histogram.cpp for( ; i < dims; i++ ) i 921 modules/imgproc/src/histogram.cpp int idx = cvFloor(*ptrs[i]*uniranges[i*2] + uniranges[i*2+1]); i 922 modules/imgproc/src/histogram.cpp if( (unsigned)idx >= (unsigned)size[i] ) i 924 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2]; i 925 modules/imgproc/src/histogram.cpp Hptr += idx*hstep[i]; i 928 modules/imgproc/src/histogram.cpp if( i == dims ) i 931 modules/imgproc/src/histogram.cpp for( ; i < dims; i++ ) i 932 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2]; i 934 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 935 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2 + 1]; i 943 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 944 modules/imgproc/src/histogram.cpp ranges[i] = &_ranges[i][0]; i 951 modules/imgproc/src/histogram.cpp i = 0; i 954 modules/imgproc/src/histogram.cpp for( ; i < dims; i++ ) i 956 modules/imgproc/src/histogram.cpp float v = (float)*ptrs[i]; i 957 modules/imgproc/src/histogram.cpp const float* R = ranges[i]; i 958 modules/imgproc/src/histogram.cpp int idx = -1, sz = size[i]; i 966 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2]; i 967 modules/imgproc/src/histogram.cpp Hptr += idx*hstep[i]; i 970 modules/imgproc/src/histogram.cpp if( i == dims ) i 973 modules/imgproc/src/histogram.cpp for( ; i < dims; i++ ) i 974 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2]; i 977 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 978 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2 + 1]; i 1053 modules/imgproc/src/histogram.cpp for(int i = 0; i < 256; i++ ) i 1055 modules/imgproc/src/histogram.cpp size_t hidx = tab[i]; i 1057 modules/imgproc/src/histogram.cpp *(int*)(H + hidx) += matH[i]; i 1135 modules/imgproc/src/histogram.cpp int i = 0; i 1136 modules/imgproc/src/histogram.cpp for( ; i < dims; i++ ) i 1138 modules/imgproc/src/histogram.cpp size_t idx = tab[*ptrs[i] + i*256]; i 1142 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2]; i 1145 modules/imgproc/src/histogram.cpp if( i == dims ) i 1148 modules/imgproc/src/histogram.cpp for( ; i < dims; i++ ) i 1149 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2]; i 1155 modules/imgproc/src/histogram.cpp int i = 0; i 1157 modules/imgproc/src/histogram.cpp for( ; i < dims; i++ ) i 1159 modules/imgproc/src/histogram.cpp size_t idx = tab[*ptrs[i] + i*256]; i 1163 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2]; i 1166 modules/imgproc/src/histogram.cpp if( i == dims ) i 1169 modules/imgproc/src/histogram.cpp for( ; i < dims; i++ ) i 1170 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2]; i 1172 modules/imgproc/src/histogram.cpp for(int i = 0; i < dims; i++ ) i 1173 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2 + 1]; i 1205 modules/imgproc/src/histogram.cpp for (int i = 0; i < histSize; ++i) i 1206 modules/imgproc/src/histogram.cpp CV_XADD((int *)(hist->data + i * hist->step), *(int *)(phist.data + i * phist.step)); i 1307 modules/imgproc/src/histogram.cpp int i, x; i 1321 modules/imgproc/src/histogram.cpp i = 0; i 1323 modules/imgproc/src/histogram.cpp for( ; i < dims; i++ ) i 1325 modules/imgproc/src/histogram.cpp idx[i] = cvFloor(*ptrs[i]*uniranges[i*2] + uniranges[i*2+1]); i 1326 modules/imgproc/src/histogram.cpp if( (unsigned)idx[i] >= (unsigned)size[i] ) i 1328 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2]; i 1331 modules/imgproc/src/histogram.cpp if( i == dims ) i 1334 modules/imgproc/src/histogram.cpp for( ; i < dims; i++ ) i 1335 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2]; i 1337 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 1338 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2 + 1]; i 1345 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 1346 modules/imgproc/src/histogram.cpp ranges[i] = &_ranges[i][0]; i 1352 modules/imgproc/src/histogram.cpp i = 0; i 1355 modules/imgproc/src/histogram.cpp for( ; i < dims; i++ ) i 1357 modules/imgproc/src/histogram.cpp float v = (float)*ptrs[i]; i 1358 modules/imgproc/src/histogram.cpp const float* R = ranges[i]; i 1359 modules/imgproc/src/histogram.cpp int j = -1, sz = size[i]; i 1366 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2]; i 1367 modules/imgproc/src/histogram.cpp idx[i] = j; i 1370 modules/imgproc/src/histogram.cpp if( i == dims ) i 1373 modules/imgproc/src/histogram.cpp for( ; i < dims; i++ ) i 1374 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2]; i 1377 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 1378 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2 + 1]; i 1404 modules/imgproc/src/histogram.cpp int i = 0; i 1406 modules/imgproc/src/histogram.cpp for( ; i < dims; i++ ) i 1408 modules/imgproc/src/histogram.cpp size_t hidx = tab[*ptrs[i] + i*256]; i 1411 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2]; i 1412 modules/imgproc/src/histogram.cpp idx[i] = (int)hidx; i 1415 modules/imgproc/src/histogram.cpp if( i == dims ) i 1418 modules/imgproc/src/histogram.cpp for( ; i < dims; i++ ) i 1419 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2]; i 1421 modules/imgproc/src/histogram.cpp for(int i = 0; i < dims; i++ ) i 1422 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2 + 1]; i 1431 modules/imgproc/src/histogram.cpp size_t i, N; i 1438 modules/imgproc/src/histogram.cpp for( i = 0, N = hist.nzcount(); i < N; i++, ++it ) i 1441 modules/imgproc/src/histogram.cpp val->i = cvRound(val->f); i 1468 modules/imgproc/src/histogram.cpp for( i = 0, N = hist.nzcount(); i < N; i++, ++it ) i 1471 modules/imgproc/src/histogram.cpp val->f = (float)val->i; i 1559 modules/imgproc/src/histogram.cpp int i, dims = (int)histSize.size(), rsz = (int)ranges.size(), csz = (int)channels.size(); i 1568 modules/imgproc/src/histogram.cpp for( i = 0; i < rsz/2; i++ ) i 1569 modules/imgproc/src/histogram.cpp _ranges[i] = (float*)&ranges[i*2]; i 1573 modules/imgproc/src/histogram.cpp for( i = 0; i < nimages; i++ ) i 1574 modules/imgproc/src/histogram.cpp buf[i] = images.getMat(i); i 1595 modules/imgproc/src/histogram.cpp int i, x; i 1601 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 1603 modules/imgproc/src/histogram.cpp size[i] = hist.size[i]; i 1604 modules/imgproc/src/histogram.cpp hstep[i] = hist.step[i]; i 1684 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 1686 modules/imgproc/src/histogram.cpp int idx = cvFloor(*ptrs[i]*uniranges[i*2] + uniranges[i*2+1]); i 1687 modules/imgproc/src/histogram.cpp if( (unsigned)idx >= (unsigned)size[i] || (_ranges && *ptrs[i] >= _ranges[i][1])) i 1689 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2]; i 1690 modules/imgproc/src/histogram.cpp Hptr += idx*hstep[i]; i 1693 modules/imgproc/src/histogram.cpp if( i == dims ) i 1698 modules/imgproc/src/histogram.cpp for( ; i < dims; i++ ) i 1699 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2]; i 1702 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 1703 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2 + 1]; i 1711 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 1712 modules/imgproc/src/histogram.cpp ranges[i] = &_ranges[i][0]; i 1719 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 1721 modules/imgproc/src/histogram.cpp float v = (float)*ptrs[i]; i 1722 modules/imgproc/src/histogram.cpp const float* R = ranges[i]; i 1723 modules/imgproc/src/histogram.cpp int idx = -1, sz = size[i]; i 1731 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2]; i 1732 modules/imgproc/src/histogram.cpp Hptr += idx*hstep[i]; i 1735 modules/imgproc/src/histogram.cpp if( i == dims ) i 1740 modules/imgproc/src/histogram.cpp for( ; i < dims; i++ ) i 1741 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2]; i 1745 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 1746 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2 + 1]; i 1760 modules/imgproc/src/histogram.cpp int i, x; i 1774 modules/imgproc/src/histogram.cpp for( i = 0; i < 256; i++ ) i 1776 modules/imgproc/src/histogram.cpp size_t hidx = tab[i]; i 1778 modules/imgproc/src/histogram.cpp matH[i] = saturate_cast<uchar>(*(float*)(H + hidx)*scale); i 1850 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 1852 modules/imgproc/src/histogram.cpp size_t idx = tab[*ptrs[i] + i*256]; i 1855 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2]; i 1859 modules/imgproc/src/histogram.cpp if( i == dims ) i 1864 modules/imgproc/src/histogram.cpp for( ; i < dims; i++ ) i 1865 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2]; i 1868 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 1869 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2 + 1]; i 1916 modules/imgproc/src/histogram.cpp int i, x; i 1930 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 1932 modules/imgproc/src/histogram.cpp idx[i] = cvFloor(*ptrs[i]*uniranges[i*2] + uniranges[i*2+1]); i 1933 modules/imgproc/src/histogram.cpp if( (unsigned)idx[i] >= (unsigned)size[i] ) i 1935 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2]; i 1938 modules/imgproc/src/histogram.cpp if( i == dims ) i 1943 modules/imgproc/src/histogram.cpp for( ; i < dims; i++ ) i 1944 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2]; i 1947 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 1948 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2 + 1]; i 1955 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 1956 modules/imgproc/src/histogram.cpp ranges[i] = &_ranges[i][0]; i 1962 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 1964 modules/imgproc/src/histogram.cpp float v = (float)*ptrs[i]; i 1965 modules/imgproc/src/histogram.cpp const float* R = ranges[i]; i 1966 modules/imgproc/src/histogram.cpp int j = -1, sz = size[i]; i 1973 modules/imgproc/src/histogram.cpp idx[i] = j; i 1974 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2]; i 1977 modules/imgproc/src/histogram.cpp if( i == dims ) i 1982 modules/imgproc/src/histogram.cpp for( ; i < dims; i++ ) i 1983 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2]; i 1987 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 1988 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2 + 1]; i 2001 modules/imgproc/src/histogram.cpp int i, x; i 2014 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 2016 modules/imgproc/src/histogram.cpp size_t hidx = tab[*ptrs[i] + i*256]; i 2019 modules/imgproc/src/histogram.cpp idx[i] = (int)hidx; i 2020 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2]; i 2023 modules/imgproc/src/histogram.cpp if( i == dims ) i 2028 modules/imgproc/src/histogram.cpp for( ; i < dims; i++ ) i 2029 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2]; i 2032 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 2033 modules/imgproc/src/histogram.cpp ptrs[i] += deltas[i*2 + 1]; i 2078 modules/imgproc/src/histogram.cpp for (size_t i = 0, size = um.size(); i < size; ++i) i 2080 modules/imgproc/src/histogram.cpp int ccn = um[i].channels(); i 2085 modules/imgproc/src/histogram.cpp idx = (int)(i + 1); i 2091 modules/imgproc/src/histogram.cpp idx = (int)i; i 2092 modules/imgproc/src/histogram.cpp cnidx = i == 0 ? cn : (cn - totalChannels + ccn); i 2118 modules/imgproc/src/histogram.cpp for (size_t i = 1; i < nimages; ++i) i 2120 modules/imgproc/src/histogram.cpp const UMat & m = images[i]; i 2126 modules/imgproc/src/histogram.cpp for (size_t i = 0; i < histdims; ++i) i 2127 modules/imgproc/src/histogram.cpp CV_Assert(channels[i] < (int)totalcn); i 2247 modules/imgproc/src/histogram.cpp int i, dims = H.dims, rsz = (int)ranges.size(), csz = (int)channels.size(); i 2257 modules/imgproc/src/histogram.cpp for( i = 0; i < rsz/2; i++ ) i 2258 modules/imgproc/src/histogram.cpp _ranges[i] = (float*)&ranges[i*2]; i 2262 modules/imgproc/src/histogram.cpp for( i = 0; i < nimages; i++ ) i 2263 modules/imgproc/src/histogram.cpp buf[i] = images.getMat(i); i 2291 modules/imgproc/src/histogram.cpp for( size_t i = 0; i < it.nplanes; i++, ++it ) i 2481 modules/imgproc/src/histogram.cpp int i, dims = H1.dims(); i 2484 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 2485 modules/imgproc/src/histogram.cpp CV_Assert( H1.size(i) == H2.size(i) ); i 2496 modules/imgproc/src/histogram.cpp for( i = 0; i < N1; i++, ++it ) i 2511 modules/imgproc/src/histogram.cpp for( i = 0; i < N1; i++, ++it ) i 2521 modules/imgproc/src/histogram.cpp for( i = 0; i < N2; i++, ++it ) i 2529 modules/imgproc/src/histogram.cpp for( i = 0; i < H1.dims(); i++ ) i 2530 modules/imgproc/src/histogram.cpp total *= H1.size(i); i 2538 modules/imgproc/src/histogram.cpp for( i = 0; i < N1; i++, ++it ) i 2551 modules/imgproc/src/histogram.cpp for( i = 0; i < N1; i++, ++it ) i 2561 modules/imgproc/src/histogram.cpp for( i = 0; i < N2; i++, ++it ) i 2570 modules/imgproc/src/histogram.cpp for( i = 0; i < N1; i++, ++it ) i 2806 modules/imgproc/src/histogram.cpp for(int i = dims - 1; i >= 0; i-- ) i 2810 modules/imgproc/src/histogram.cpp int t = imin / size[i]; i 2811 modules/imgproc/src/histogram.cpp idx_min[i] = imin - t*size[i]; i 2817 modules/imgproc/src/histogram.cpp int t = imax / size[i]; i 2818 modules/imgproc/src/histogram.cpp idx_max[i] = imax - t*size[i]; i 2858 modules/imgproc/src/histogram.cpp m.i = CV_TOGGLE_FLT(minv); minVal = m.f; i 2859 modules/imgproc/src/histogram.cpp m.i = CV_TOGGLE_FLT(maxv); maxVal = m.f; i 2866 modules/imgproc/src/histogram.cpp for(int i = 0; i < dims; i++ ) i 2869 modules/imgproc/src/histogram.cpp idx_min[i] = _idx_min ? _idx_min[i] : -1; i 2871 modules/imgproc/src/histogram.cpp idx_max[i] = _idx_max ? _idx_max[i] : -1; i 2889 modules/imgproc/src/histogram.cpp int i; i 2912 modules/imgproc/src/histogram.cpp for( i = 0; i < dims1; i++ ) i 2914 modules/imgproc/src/histogram.cpp if( size1[i] != size2[i] ) i 2916 modules/imgproc/src/histogram.cpp total *= size1[i]; i 3067 modules/imgproc/src/histogram.cpp int i; i 3069 modules/imgproc/src/histogram.cpp for( i = 0; i < dims1; i++ ) i 3071 modules/imgproc/src/histogram.cpp if( size1[i] != size2[i] ) i 3075 modules/imgproc/src/histogram.cpp eq = (i == dims1); i 3093 modules/imgproc/src/histogram.cpp for( int i = 0; i < dims1; i++ ) i 3094 modules/imgproc/src/histogram.cpp ranges[i] = (float*)src->thresh[i]; i 3115 modules/imgproc/src/histogram.cpp int i, j; i 3124 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 3125 modules/imgproc/src/histogram.cpp total += size[i]+1; i 3129 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 3131 modules/imgproc/src/histogram.cpp if( !ranges[i] ) i 3133 modules/imgproc/src/histogram.cpp hist->thresh[i][0] = ranges[i][0]; i 3134 modules/imgproc/src/histogram.cpp hist->thresh[i][1] = ranges[i][1]; i 3151 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 3155 modules/imgproc/src/histogram.cpp if( !ranges[i] ) i 3158 modules/imgproc/src/histogram.cpp for( j = 0; j <= size[i]; j++ ) i 3160 modules/imgproc/src/histogram.cpp float val = ranges[i][j]; i 3166 modules/imgproc/src/histogram.cpp hist->thresh2[i] = dim_ranges; i 3167 modules/imgproc/src/histogram.cpp dim_ranges += size[i] + 1; i 3186 modules/imgproc/src/histogram.cpp int i, dims = cvGetDims( hist->bins, size); i 3190 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 3191 modules/imgproc/src/histogram.cpp images[i] = cv::cvarrToMat(img[i]); i 3205 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 3206 modules/imgproc/src/histogram.cpp uranges[i] = &hist->thresh[i][0]; i 3233 modules/imgproc/src/histogram.cpp for( i = 0; i < nz; i++, ++it ) i 3249 modules/imgproc/src/histogram.cpp int i, dims = cvGetDims( hist->bins, size ); i 3260 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 3261 modules/imgproc/src/histogram.cpp uranges[i] = &hist->thresh[i][0]; i 3267 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 3268 modules/imgproc/src/histogram.cpp images[i] = cv::cvarrToMat(img[i]); i 3301 modules/imgproc/src/histogram.cpp int i, dims; i 3321 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 3324 modules/imgproc/src/histogram.cpp mat = cvGetMat( arr[i], &stub, 0, 0 ); i 3325 modules/imgproc/src/histogram.cpp img[i] = cvGetImage( mat, &imgstub[i] ); i 3326 modules/imgproc/src/histogram.cpp img[i]->roi = &roi; i 3369 modules/imgproc/src/histogram.cpp int i; i 3377 modules/imgproc/src/histogram.cpp for( i = 0; i < count; i++ ) i 3379 modules/imgproc/src/histogram.cpp if( !CV_IS_HIST(src[i]) || !CV_IS_HIST(dst[i]) ) i 3382 modules/imgproc/src/histogram.cpp if( !CV_IS_MATND(src[i]->bins) || !CV_IS_MATND(dst[i]->bins) ) i 3388 modules/imgproc/src/histogram.cpp for( i = 0; i < count; i++ ) i 3389 modules/imgproc/src/histogram.cpp cvAdd( src[i]->bins, dst[0]->bins, dst[0]->bins ); i 3394 modules/imgproc/src/histogram.cpp for( i = count - 1; i >= 0; i-- ) i 3395 modules/imgproc/src/histogram.cpp cvMul( src[i]->bins, dst[0]->bins, dst[i]->bins ); i 3424 modules/imgproc/src/histogram.cpp int i; i 3426 modules/imgproc/src/histogram.cpp for( i = 0; i < iterator.size.width; i++ ) i 3428 modules/imgproc/src/histogram.cpp float s = srcdata[i]; i 3429 modules/imgproc/src/histogram.cpp float m = maskdata[i]; i 3432 modules/imgproc/src/histogram.cpp dstdata[i] = (float)(m*scale/s); i 3434 modules/imgproc/src/histogram.cpp dstdata[i] = (float)scale; i 3436 modules/imgproc/src/histogram.cpp dstdata[i] = (float)0; i 3484 modules/imgproc/src/histogram.cpp for( int i = 0; i < HIST_SZ; i++ ) i 3485 modules/imgproc/src/histogram.cpp globalHistogram_[i] += localHistogram[i]; i 3651 modules/imgproc/src/histogram.cpp int i = 0; i 3652 modules/imgproc/src/histogram.cpp while (!hist[i]) ++i; i 3655 modules/imgproc/src/histogram.cpp if (hist[i] == total) i 3657 modules/imgproc/src/histogram.cpp dst.setTo(i); i 3661 modules/imgproc/src/histogram.cpp float scale = (hist_sz - 1.f)/(total - hist[i]); i 3664 modules/imgproc/src/histogram.cpp for (lut[i++] = 0; i < hist_sz; ++i) i 3666 modules/imgproc/src/histogram.cpp sum += hist[i]; i 3667 modules/imgproc/src/histogram.cpp lut[i] = saturate_cast<uchar>(sum * scale); i 3713 modules/imgproc/src/histogram.cpp int i, sizes[CV_MAX_DIM]; i 3718 modules/imgproc/src/histogram.cpp for(i=0; i<mat->dims; i++) i 3719 modules/imgproc/src/histogram.cpp sizes[i] = mat->dim[i].size; i 3744 modules/imgproc/src/histogram.cpp int i, dims, size[CV_MAX_DIM], total = 0; i 3749 modules/imgproc/src/histogram.cpp for( i = 0; i < dims; i++ ) i 3750 modules/imgproc/src/histogram.cpp total += size[i]+1; i 3759 modules/imgproc/src/histogram.cpp for(i=0; i<dims; i++) i 3760 modules/imgproc/src/histogram.cpp cvReadRawDataSlice( fs, &reader, 2, h->thresh[i], "f" ); i 3770 modules/imgproc/src/histogram.cpp for(i=0; i < dims; i++) i 3772 modules/imgproc/src/histogram.cpp h->thresh2[i] = dim_ranges; i 3773 modules/imgproc/src/histogram.cpp cvReadRawDataSlice( fs, &reader, size[i]+1, dim_ranges, "f" ); i 3774 modules/imgproc/src/histogram.cpp dim_ranges += size[i] + 1; i 3788 modules/imgproc/src/histogram.cpp int i; i 3809 modules/imgproc/src/histogram.cpp for(i=0; i<dims; i++){ i 3810 modules/imgproc/src/histogram.cpp cvWriteRawData( fs, hist->thresh[i], 2, "f" ); i 3814 modules/imgproc/src/histogram.cpp for(i=0; i<dims; i++){ i 3815 modules/imgproc/src/histogram.cpp cvWriteRawData( fs, hist->thresh2[i], sizes[i]+1, "f" ); i 83 modules/imgproc/src/hough.cpp int i, j; i 142 modules/imgproc/src/hough.cpp for( i = 0; i < height; i++ ) i 145 modules/imgproc/src/hough.cpp if( image[i * step + j] != 0 ) i 148 modules/imgproc/src/hough.cpp int r = cvRound( j * tabCos[n] + i * tabSin[n] ); i 171 modules/imgproc/src/hough.cpp for( i = 0; i < linesMax; i++ ) i 174 modules/imgproc/src/hough.cpp int idx = _sort_buf[i]; i 207 modules/imgproc/src/hough.cpp int index, i; i 303 modules/imgproc/src/hough.cpp i = (int)rv * tn; i 304 modules/imgproc/src/hough.cpp i += cvFloor( phi1 ); i 305 modules/imgproc/src/hough.cpp assert( i >= 0 ); i 306 modules/imgproc/src/hough.cpp assert( i < rn * tn ); i 307 modules/imgproc/src/hough.cpp caccum[i] = (uchar) (caccum[i] + ((i ^ iprev) != 0)); i 308 modules/imgproc/src/hough.cpp iprev = i; i 309 modules/imgproc/src/hough.cpp if( cmax < caccum[i] ) i 310 modules/imgproc/src/hough.cpp cmax = caccum[i]; i 365 modules/imgproc/src/hough.cpp i = cvFloor( rv ) * stn + ti1; i 367 modules/imgproc/src/hough.cpp i = CV_IMAX( i, -1 ); i 368 modules/imgproc/src/hough.cpp i = CV_IMIN( i, sfn ); i 369 modules/imgproc/src/hough.cpp mcaccum[i]++; i 370 modules/imgproc/src/hough.cpp assert( i >= -1 ); i 371 modules/imgproc/src/hough.cpp assert( i <= sfn ); i 378 modules/imgproc/src/hough.cpp i = 0; i 503 modules/imgproc/src/hough.cpp int i = point.y, j = point.x, k, x0, y0, dx0, dy0, xflag; i 511 modules/imgproc/src/hough.cpp if( !mdata0[i*width + j] ) i 517 modules/imgproc/src/hough.cpp int r = cvRound( j * ttab[n*2] + i * ttab[n*2+1] ); i 536 modules/imgproc/src/hough.cpp y0 = i; i 1013 modules/imgproc/src/hough.cpp int x, y, i, j, k, center_count, nz_count; i 1051 modules/imgproc/src/hough.cpp adata = accum->data.i; i 1138 modules/imgproc/src/hough.cpp for( i = 0; i < centers->total; i++ ) i 1140 modules/imgproc/src/hough.cpp int ofs = *(int*)cvGetSeqElem( centers, i ); i 74 modules/imgproc/src/imgwarp.cpp for( int i = 0; i < channels; i++ ) i 75 modules/imgproc/src/imgwarp.cpp values[i] = saturate_cast<Type>(value[i]); i 172 modules/imgproc/src/imgwarp.cpp for( int i = 0; i < 8; i++ ) i 173 modules/imgproc/src/imgwarp.cpp coeffs[i] = 0; i 180 modules/imgproc/src/imgwarp.cpp for(int i = 0; i < 8; i++ ) i 182 modules/imgproc/src/imgwarp.cpp double y = -(x+3-i)*CV_PI*0.25; i 183 modules/imgproc/src/imgwarp.cpp coeffs[i] = (float)((cs[i][0]*s0 + cs[i][1]*c0)/(y*y)); i 184 modules/imgproc/src/imgwarp.cpp sum += coeffs[i]; i 188 modules/imgproc/src/imgwarp.cpp for(int i = 0; i < 8; i++ ) i 189 modules/imgproc/src/imgwarp.cpp coeffs[i] *= sum; i 197 modules/imgproc/src/imgwarp.cpp for( int i = 0; i < tabsz; i++, tab += 2 ) i 198 modules/imgproc/src/imgwarp.cpp interpolateLinear( i*scale, tab ); i 202 modules/imgproc/src/imgwarp.cpp for( int i = 0; i < tabsz; i++, tab += 4 ) i 203 modules/imgproc/src/imgwarp.cpp interpolateCubic( i*scale, tab ); i 207 modules/imgproc/src/imgwarp.cpp for( int i = 0; i < tabsz; i++, tab += 8 ) i 208 modules/imgproc/src/imgwarp.cpp interpolateLanczos4( i*scale, tab ); i 233 modules/imgproc/src/imgwarp.cpp int i, j, k1, k2; i 235 modules/imgproc/src/imgwarp.cpp for( i = 0; i < INTER_TAB_SIZE; i++ ) i 239 modules/imgproc/src/imgwarp.cpp NNDeltaTab_i[i*INTER_TAB_SIZE+j][0] = j < INTER_TAB_SIZE/2; i 240 modules/imgproc/src/imgwarp.cpp NNDeltaTab_i[i*INTER_TAB_SIZE+j][1] = i < INTER_TAB_SIZE/2; i 244 modules/imgproc/src/imgwarp.cpp float vy = _tab[i*ksize + k1]; i 276 modules/imgproc/src/imgwarp.cpp for( i = 0; i < INTER_TAB_SIZE2; i++ ) i 279 modules/imgproc/src/imgwarp.cpp BilinearTab_iC4[i][0][j*2] = BilinearTab_i[i][0][0]; i 280 modules/imgproc/src/imgwarp.cpp BilinearTab_iC4[i][0][j*2+1] = BilinearTab_i[i][0][1]; i 281 modules/imgproc/src/imgwarp.cpp BilinearTab_iC4[i][1][j*2] = BilinearTab_i[i][1][0]; i 282 modules/imgproc/src/imgwarp.cpp BilinearTab_iC4[i][1][j*2+1] = BilinearTab_i[i][1][1]; i 4050 modules/imgproc/src/imgwarp.cpp int i, k; i 4084 modules/imgproc/src/imgwarp.cpp for( i = 0; i < 4; i++ ) i 4086 modules/imgproc/src/imgwarp.cpp x[i] = borderInterpolate(sx + i, ssize.width, borderType1)*cn; i 4087 modules/imgproc/src/imgwarp.cpp y[i] = borderInterpolate(sy + i, ssize.height, borderType1); i 4093 modules/imgproc/src/imgwarp.cpp for( i = 0; i < 4; i++, w += 4 ) i 4095 modules/imgproc/src/imgwarp.cpp int yi = y[i]; i 4156 modules/imgproc/src/imgwarp.cpp int i, k; i 4187 modules/imgproc/src/imgwarp.cpp for( i = 0; i < 8; i++ ) i 4189 modules/imgproc/src/imgwarp.cpp x[i] = borderInterpolate(sx + i, ssize.width, borderType1)*cn; i 4190 modules/imgproc/src/imgwarp.cpp y[i] = borderInterpolate(sy + i, ssize.height, borderType1); i 4196 modules/imgproc/src/imgwarp.cpp for( i = 0; i < 8; i++, w += 8 ) i 4198 modules/imgproc/src/imgwarp.cpp int yi = y[i]; i 5655 modules/imgproc/src/imgwarp.cpp for( int i = 0; i < 2; i++ ) i 5657 modules/imgproc/src/imgwarp.cpp coeffs[i][j] = matM.at<double>(i, j); i 6159 modules/imgproc/src/imgwarp.cpp for( int i = 0; i < 3; i++ ) i 6161 modules/imgproc/src/imgwarp.cpp coeffs[i][j] = matM.at<double>(i, j); i 6235 modules/imgproc/src/imgwarp.cpp for( int i = 0; i < 4; ++i ) i 6237 modules/imgproc/src/imgwarp.cpp a[i][0] = a[i+4][3] = src[i].x; i 6238 modules/imgproc/src/imgwarp.cpp a[i][1] = a[i+4][4] = src[i].y; i 6239 modules/imgproc/src/imgwarp.cpp a[i][2] = a[i+4][5] = 1; i 6240 modules/imgproc/src/imgwarp.cpp a[i][3] = a[i][4] = a[i][5] = i 6241 modules/imgproc/src/imgwarp.cpp a[i+4][0] = a[i+4][1] = a[i+4][2] = 0; i 6242 modules/imgproc/src/imgwarp.cpp a[i][6] = -src[i].x*dst[i].x; i 6243 modules/imgproc/src/imgwarp.cpp a[i][7] = -src[i].y*dst[i].x; i 6244 modules/imgproc/src/imgwarp.cpp a[i+4][6] = -src[i].x*dst[i].y; i 6245 modules/imgproc/src/imgwarp.cpp a[i+4][7] = -src[i].y*dst[i].y; i 6246 modules/imgproc/src/imgwarp.cpp b[i] = dst[i].x; i 6247 modules/imgproc/src/imgwarp.cpp b[i+4] = dst[i].y; i 6281 modules/imgproc/src/imgwarp.cpp for( int i = 0; i < 3; i++ ) i 6283 modules/imgproc/src/imgwarp.cpp int j = i*12; i 6284 modules/imgproc/src/imgwarp.cpp int k = i*12+6; i 6285 modules/imgproc/src/imgwarp.cpp a[j] = a[k+3] = src[i].x; i 6286 modules/imgproc/src/imgwarp.cpp a[j+1] = a[k+4] = src[i].y; i 6290 modules/imgproc/src/imgwarp.cpp b[i*2] = dst[i].x; i 6291 modules/imgproc/src/imgwarp.cpp b[i*2+1] = dst[i].y; i 68 modules/imgproc/src/intersection.cpp for( int i = 0; i < 4; i++ ) i 70 modules/imgproc/src/intersection.cpp if( fabs(pts1[i].x - pts2[i].x) > samePointEps || (fabs(pts1[i].y - pts2[i].y) > samePointEps) ) i 81 modules/imgproc/src/intersection.cpp for( int i = 0; i < 4; i++ ) i 83 modules/imgproc/src/intersection.cpp intersection[i] = pts1[i]; i 94 modules/imgproc/src/intersection.cpp for( int i = 0; i < 4; i++ ) i 96 modules/imgproc/src/intersection.cpp vec1[i].x = pts1[(i+1)%4].x - pts1[i].x; i 97 modules/imgproc/src/intersection.cpp vec1[i].y = pts1[(i+1)%4].y - pts1[i].y; i 99 modules/imgproc/src/intersection.cpp vec2[i].x = pts2[(i+1)%4].x - pts2[i].x; i 100 modules/imgproc/src/intersection.cpp vec2[i].y = pts2[(i+1)%4].y - pts2[i].y; i 104 modules/imgproc/src/intersection.cpp for( int i = 0; i < 4; i++ ) i 109 modules/imgproc/src/intersection.cpp float x21 = pts2[j].x - pts1[i].x; i 110 modules/imgproc/src/intersection.cpp float y21 = pts2[j].y - pts1[i].y; i 112 modules/imgproc/src/intersection.cpp float vx1 = vec1[i].x; i 113 modules/imgproc/src/intersection.cpp float vy1 = vec1[i].y; i 131 modules/imgproc/src/intersection.cpp float xi = pts1[i].x + vec1[i].x*t1; i 132 modules/imgproc/src/intersection.cpp float yi = pts1[i].y + vec1[i].y*t1; i 145 modules/imgproc/src/intersection.cpp for( int i = 0; i < 4; i++ ) i 153 modules/imgproc/src/intersection.cpp float x = pts1[i].x; i 154 modules/imgproc/src/intersection.cpp float y = pts1[i].y; i 178 modules/imgproc/src/intersection.cpp intersection.push_back(pts1[i]); i 183 modules/imgproc/src/intersection.cpp for( int i = 0; i < 4; i++ ) i 191 modules/imgproc/src/intersection.cpp float x = pts2[i].x; i 192 modules/imgproc/src/intersection.cpp float y = pts2[i].y; i 216 modules/imgproc/src/intersection.cpp intersection.push_back(pts2[i]); i 221 modules/imgproc/src/intersection.cpp for( int i = 0; i < (int)intersection.size()-1; i++ ) i 223 modules/imgproc/src/intersection.cpp for( size_t j = i+1; j < intersection.size(); j++ ) i 225 modules/imgproc/src/intersection.cpp float dx = intersection[i].x - intersection[j].x; i 226 modules/imgproc/src/intersection.cpp float dy = intersection[i].y - intersection[j].y; i 52 modules/imgproc/src/linefit.cpp int i; i 58 modules/imgproc/src/linefit.cpp for( i = 0; i < count; i += 1 ) i 60 modules/imgproc/src/linefit.cpp x += points[i].x; i 61 modules/imgproc/src/linefit.cpp y += points[i].y; i 62 modules/imgproc/src/linefit.cpp x2 += points[i].x * points[i].x; i 63 modules/imgproc/src/linefit.cpp y2 += points[i].y * points[i].y; i 64 modules/imgproc/src/linefit.cpp xy += points[i].x * points[i].y; i 70 modules/imgproc/src/linefit.cpp for( i = 0; i < count; i += 1 ) i 72 modules/imgproc/src/linefit.cpp x += weights[i] * points[i].x; i 73 modules/imgproc/src/linefit.cpp y += weights[i] * points[i].y; i 74 modules/imgproc/src/linefit.cpp x2 += weights[i] * points[i].x * points[i].x; i 75 modules/imgproc/src/linefit.cpp y2 += weights[i] * points[i].y * points[i].y; i 76 modules/imgproc/src/linefit.cpp xy += weights[i] * points[i].x * points[i].y; i 77 modules/imgproc/src/linefit.cpp w += weights[i]; i 101 modules/imgproc/src/linefit.cpp int i; i 115 modules/imgproc/src/linefit.cpp for( i = 0; i < count; i++ ) i 117 modules/imgproc/src/linefit.cpp float x = points[i].x; i 118 modules/imgproc/src/linefit.cpp float y = points[i].y; i 119 modules/imgproc/src/linefit.cpp float z = points[i].z; i 120 modules/imgproc/src/linefit.cpp float w = weights[i]; i 137 modules/imgproc/src/linefit.cpp for( i = 0; i < count; i++ ) i 139 modules/imgproc/src/linefit.cpp float x = points[i].x; i 140 modules/imgproc/src/linefit.cpp float y = points[i].y; i 141 modules/imgproc/src/linefit.cpp float z = points[i].z; i 189 modules/imgproc/src/linefit.cpp i = evl[0] < evl[1] ? (evl[0] < evl[2] ? 0 : 2) : (evl[1] < evl[2] ? 1 : 2); i 191 modules/imgproc/src/linefit.cpp v = &evc[i * 3]; i 252 modules/imgproc/src/linefit.cpp int i; i 254 modules/imgproc/src/linefit.cpp for( i = 0; i < count; i++ ) i 256 modules/imgproc/src/linefit.cpp double t = fabs( (double) d[i] ); i 257 modules/imgproc/src/linefit.cpp w[i] = (float)(1. / MAX(t, eps)); i 263 modules/imgproc/src/linefit.cpp int i; i 265 modules/imgproc/src/linefit.cpp for( i = 0; i < count; i++ ) i 267 modules/imgproc/src/linefit.cpp w[i] = 1.0f / (float) std::sqrt( 1 + (double) (d[i] * d[i] * 0.5) ); i 274 modules/imgproc/src/linefit.cpp int i; i 277 modules/imgproc/src/linefit.cpp for( i = 0; i < count; i++ ) i 279 modules/imgproc/src/linefit.cpp if( d[i] < c ) i 280 modules/imgproc/src/linefit.cpp w[i] = 1.0f; i 282 modules/imgproc/src/linefit.cpp w[i] = c/d[i]; i 289 modules/imgproc/src/linefit.cpp int i; i 292 modules/imgproc/src/linefit.cpp for( i = 0; i < count; i++ ) i 294 modules/imgproc/src/linefit.cpp w[i] = 1 / (1 + d[i] * c); i 300 modules/imgproc/src/linefit.cpp int i; i 303 modules/imgproc/src/linefit.cpp for( i = 0; i < count; i++ ) i 305 modules/imgproc/src/linefit.cpp w[i] = (float) std::exp( -d[i] * d[i] * c * c ); i 321 modules/imgproc/src/linefit.cpp int i, j, k; i 368 modules/imgproc/src/linefit.cpp for( i = 0; i < count; i++ ) i 369 modules/imgproc/src/linefit.cpp w[i] = 0.f; i 371 modules/imgproc/src/linefit.cpp for( i = 0; i < MIN(count,10); ) i 377 modules/imgproc/src/linefit.cpp i++; i 382 modules/imgproc/src/linefit.cpp for( i = 0; i < 30; i++ ) i 461 modules/imgproc/src/linefit.cpp int i, j, k; i 503 modules/imgproc/src/linefit.cpp for( i = 0; i < count; i++ ) i 504 modules/imgproc/src/linefit.cpp w[i] = 0.f; i 506 modules/imgproc/src/linefit.cpp for( i = 0; i < MIN(count,10); ) i 512 modules/imgproc/src/linefit.cpp i++; i 517 modules/imgproc/src/linefit.cpp for( i = 0; i < 30; i++ ) i 476 modules/imgproc/src/lsd.cpp for(size_t i = 0, list_size = list.size(); i < list_size; ++i) i 478 modules/imgproc/src/lsd.cpp unsigned int adx = list[i].p.x + list[i].p.y * img_width; i 483 modules/imgproc/src/lsd.cpp region_grow(list[i].p, reg, reg_size, reg_angle, prec); i 599 modules/imgproc/src/lsd.cpp int i = int((*norm) * bin_coef); i 600 modules/imgproc/src/lsd.cpp if(!range_e[i]) i 602 modules/imgproc/src/lsd.cpp range_e[i] = range_s[i] = &list[count]; i 607 modules/imgproc/src/lsd.cpp range_e[i]->next = &list[count]; i 608 modules/imgproc/src/lsd.cpp range_e[i] = &list[count]; i 611 modules/imgproc/src/lsd.cpp range_e[i]->p = Point(x, y); i 612 modules/imgproc/src/lsd.cpp range_e[i]->next = 0; i 653 modules/imgproc/src/lsd.cpp for(int i = 0; i < reg_size; ++i) i 655 modules/imgproc/src/lsd.cpp const RegionPoint& rpoint = reg[i]; i 692 modules/imgproc/src/lsd.cpp for(int i = 0; i < reg_size; ++i) i 694 modules/imgproc/src/lsd.cpp const RegionPoint& pnt = reg[i]; i 714 modules/imgproc/src/lsd.cpp for(int i = 0; i < reg_size; ++i) i 716 modules/imgproc/src/lsd.cpp double regdx = double(reg[i].x) - x; i 717 modules/imgproc/src/lsd.cpp double regdy = double(reg[i].y) - y; i 754 modules/imgproc/src/lsd.cpp for(int i = 0; i < reg_size; ++i) i 756 modules/imgproc/src/lsd.cpp const double& regx = reg[i].x; i 757 modules/imgproc/src/lsd.cpp const double& regy = reg[i].y; i 758 modules/imgproc/src/lsd.cpp const double& weight = reg[i].modgrad; i 798 modules/imgproc/src/lsd.cpp for (int i = 0; i < reg_size; ++i) i 800 modules/imgproc/src/lsd.cpp *(reg[i].used) = NOTUSED; i 801 modules/imgproc/src/lsd.cpp if (dist(xc, yc, reg[i].x, reg[i].y) < rec.width) i 803 modules/imgproc/src/lsd.cpp const double& angle = reg[i].angle; i 846 modules/imgproc/src/lsd.cpp for(int i = 0; i < reg_size; ++i) i 848 modules/imgproc/src/lsd.cpp if(distSq(xc, yc, double(reg[i].x), double(reg[i].y)) > radSq) i 851 modules/imgproc/src/lsd.cpp *(reg[i].used) = NOTUSED; i 852 modules/imgproc/src/lsd.cpp std::swap(reg[i], reg[reg_size - 1]); i 854 modules/imgproc/src/lsd.cpp --i; // To avoid skipping one point i 994 modules/imgproc/src/lsd.cpp for(unsigned int i = 1; i < 4; ++i) i 996 modules/imgproc/src/lsd.cpp if(min_y->p.y > ordered_x[i].p.y) {min_y = &ordered_x[i]; } i 997 modules/imgproc/src/lsd.cpp if(max_y->p.y < ordered_x[i].p.y) {max_y = &ordered_x[i]; } i 1003 modules/imgproc/src/lsd.cpp for(unsigned int i = 0; i < 4; ++i) i 1005 modules/imgproc/src/lsd.cpp if(!ordered_x[i].taken) i 1009 modules/imgproc/src/lsd.cpp leftmost = &ordered_x[i]; i 1011 modules/imgproc/src/lsd.cpp else if (leftmost->p.x > ordered_x[i].p.x) i 1013 modules/imgproc/src/lsd.cpp leftmost = &ordered_x[i]; i 1021 modules/imgproc/src/lsd.cpp for(unsigned int i = 0; i < 4; ++i) i 1023 modules/imgproc/src/lsd.cpp if(!ordered_x[i].taken) i 1027 modules/imgproc/src/lsd.cpp rightmost = &ordered_x[i]; i 1029 modules/imgproc/src/lsd.cpp else if (rightmost->p.x < ordered_x[i].p.x) i 1031 modules/imgproc/src/lsd.cpp rightmost = &ordered_x[i]; i 1039 modules/imgproc/src/lsd.cpp for(unsigned int i = 0; i < 4; ++i) i 1041 modules/imgproc/src/lsd.cpp if(!ordered_x[i].taken) i 1045 modules/imgproc/src/lsd.cpp tailp = &ordered_x[i]; i 1047 modules/imgproc/src/lsd.cpp else if (tailp->p.x > ordered_x[i].p.x) i 1049 modules/imgproc/src/lsd.cpp tailp = &ordered_x[i]; i 1120 modules/imgproc/src/lsd.cpp for(int i = k + 1; i <= n; ++i) i 1122 modules/imgproc/src/lsd.cpp double bin_term = double(n - i + 1) / double(i); i 1128 modules/imgproc/src/lsd.cpp double err = term * ((1 - pow(mult_term, double(n-i+1))) / (1 - mult_term) - 1); i 1182 modules/imgproc/src/lsd.cpp for(int i = 0; i < N; ++i) i 1184 modules/imgproc/src/lsd.cpp const Vec4f& v = _lines.at<Vec4f>(i); i 1209 modules/imgproc/src/lsd.cpp for(int i = 0; i < N1; ++i) i 1211 modules/imgproc/src/lsd.cpp Point2f b(_lines1.at<Vec4f>(i)[0], _lines1.at<Vec4f>(i)[1]); i 1212 modules/imgproc/src/lsd.cpp Point2f e(_lines1.at<Vec4f>(i)[2], _lines1.at<Vec4f>(i)[3]); i 1215 modules/imgproc/src/lsd.cpp for(int i = 0; i < N2; ++i) i 1217 modules/imgproc/src/lsd.cpp Point2f b(_lines2.at<Vec4f>(i)[0], _lines2.at<Vec4f>(i)[1]); i 1218 modules/imgproc/src/lsd.cpp Point2f e(_lines2.at<Vec4f>(i)[2], _lines2.at<Vec4f>(i)[3]); i 1233 modules/imgproc/src/lsd.cpp for (unsigned int i = 0; i < I1.total(); ++i) i 1235 modules/imgproc/src/lsd.cpp uchar i1 = I1.ptr()[i]; i 1236 modules/imgproc/src/lsd.cpp uchar i2 = I2.ptr()[i]; i 1239 modules/imgproc/src/lsd.cpp unsigned int base_idx = i * 3; i 47 modules/imgproc/src/matchcontours.cpp int i, sma, smb; i 58 modules/imgproc/src/matchcontours.cpp for( i = 0; i < 7; i++ ) i 60 modules/imgproc/src/matchcontours.cpp double ama = fabs( ma[i] ); i 61 modules/imgproc/src/matchcontours.cpp double amb = fabs( mb[i] ); i 63 modules/imgproc/src/matchcontours.cpp if( ma[i] > 0 ) i 65 modules/imgproc/src/matchcontours.cpp else if( ma[i] < 0 ) i 69 modules/imgproc/src/matchcontours.cpp if( mb[i] > 0 ) i 71 modules/imgproc/src/matchcontours.cpp else if( mb[i] < 0 ) i 86 modules/imgproc/src/matchcontours.cpp for( i = 0; i < 7; i++ ) i 88 modules/imgproc/src/matchcontours.cpp double ama = fabs( ma[i] ); i 89 modules/imgproc/src/matchcontours.cpp double amb = fabs( mb[i] ); i 91 modules/imgproc/src/matchcontours.cpp if( ma[i] > 0 ) i 93 modules/imgproc/src/matchcontours.cpp else if( ma[i] < 0 ) i 97 modules/imgproc/src/matchcontours.cpp if( mb[i] > 0 ) i 99 modules/imgproc/src/matchcontours.cpp else if( mb[i] < 0 ) i 114 modules/imgproc/src/matchcontours.cpp for( i = 0; i < 7; i++ ) i 116 modules/imgproc/src/matchcontours.cpp double ama = fabs( ma[i] ); i 117 modules/imgproc/src/matchcontours.cpp double amb = fabs( mb[i] ); i 119 modules/imgproc/src/matchcontours.cpp if( ma[i] > 0 ) i 121 modules/imgproc/src/matchcontours.cpp else if( ma[i] < 0 ) i 125 modules/imgproc/src/matchcontours.cpp if( mb[i] > 0 ) i 127 modules/imgproc/src/matchcontours.cpp else if( mb[i] < 0 ) i 456 modules/imgproc/src/min_enclosing_triangle.cpp for (int i = 0; i < 3; i++) { i 457 modules/imgproc/src/min_enclosing_triangle.cpp triangle.push_back(polygon[i % nrOfPoints]); i 123 modules/imgproc/src/moments.cpp for( int i = 0; i < lpt; i++ ) i 127 modules/imgproc/src/moments.cpp xi = ptsi[i].x; i 128 modules/imgproc/src/moments.cpp yi = ptsi[i].y; i 132 modules/imgproc/src/moments.cpp xi = ptsf[i].x; i 133 modules/imgproc/src/moments.cpp yi = ptsf[i].y; i 509 modules/imgproc/src/moments.cpp for( int i = 0; i < ntiles; i++ ) i 511 modules/imgproc/src/moments.cpp double x = (i % xtiles)*TILE_SIZE, y = (i / xtiles)*TILE_SIZE; i 512 modules/imgproc/src/moments.cpp const int* mom = mbuf.ptr<int>() + i*K; i 108 modules/imgproc/src/morph.cpp int i, k, _ksize = ksize*cn; i 112 modules/imgproc/src/morph.cpp for( i = 0; i <= width - 16; i += 16 ) i 114 modules/imgproc/src/morph.cpp __m128i s = _mm_loadu_si128((const __m128i*)(src + i)); i 117 modules/imgproc/src/morph.cpp __m128i x = _mm_loadu_si128((const __m128i*)(src + i + k)); i 120 modules/imgproc/src/morph.cpp _mm_storeu_si128((__m128i*)(dst + i), s); i 123 modules/imgproc/src/morph.cpp for( ; i < width; i += 4 ) i 125 modules/imgproc/src/morph.cpp __m128i s = _mm_cvtsi32_si128(*(const int*)(src + i)); i 128 modules/imgproc/src/morph.cpp __m128i x = _mm_cvtsi32_si128(*(const int*)(src + i + k)); i 131 modules/imgproc/src/morph.cpp *(int*)(dst + i) = _mm_cvtsi128_si32(s); i 134 modules/imgproc/src/morph.cpp return i/ESZ; i 149 modules/imgproc/src/morph.cpp int i, k, _ksize = ksize*cn; i 153 modules/imgproc/src/morph.cpp for( i = 0; i < width; i += 4 ) i 155 modules/imgproc/src/morph.cpp __m128 s = _mm_loadu_ps((const float*)src + i); i 158 modules/imgproc/src/morph.cpp __m128 x = _mm_loadu_ps((const float*)src + i + k); i 161 modules/imgproc/src/morph.cpp _mm_storeu_ps((float*)dst + i, s); i 164 modules/imgproc/src/morph.cpp return i; i 181 modules/imgproc/src/morph.cpp int i = 0, k, _ksize = ksize; i 185 modules/imgproc/src/morph.cpp for( i = 0; i < count + ksize - 1; i++ ) i 186 modules/imgproc/src/morph.cpp CV_Assert( ((size_t)src[i] & 15) == 0 ); i 190 modules/imgproc/src/morph.cpp for( i = 0; i <= width - 32; i += 32 ) i 192 modules/imgproc/src/morph.cpp const uchar* sptr = src[1] + i; i 199 modules/imgproc/src/morph.cpp sptr = src[k] + i; i 206 modules/imgproc/src/morph.cpp sptr = src[0] + i; i 209 modules/imgproc/src/morph.cpp _mm_storeu_si128((__m128i*)(dst + i), updateOp(s0, x0)); i 210 modules/imgproc/src/morph.cpp _mm_storeu_si128((__m128i*)(dst + i + 16), updateOp(s1, x1)); i 212 modules/imgproc/src/morph.cpp sptr = src[k] + i; i 215 modules/imgproc/src/morph.cpp _mm_storeu_si128((__m128i*)(dst + dststep + i), updateOp(s0, x0)); i 216 modules/imgproc/src/morph.cpp _mm_storeu_si128((__m128i*)(dst + dststep + i + 16), updateOp(s1, x1)); i 219 modules/imgproc/src/morph.cpp for( ; i <= width - 8; i += 8 ) i 221 modules/imgproc/src/morph.cpp __m128i s0 = _mm_loadl_epi64((const __m128i*)(src[1] + i)), x0; i 225 modules/imgproc/src/morph.cpp x0 = _mm_loadl_epi64((const __m128i*)(src[k] + i)); i 229 modules/imgproc/src/morph.cpp x0 = _mm_loadl_epi64((const __m128i*)(src[0] + i)); i 230 modules/imgproc/src/morph.cpp _mm_storel_epi64((__m128i*)(dst + i), updateOp(s0, x0)); i 231 modules/imgproc/src/morph.cpp x0 = _mm_loadl_epi64((const __m128i*)(src[k] + i)); i 232 modules/imgproc/src/morph.cpp _mm_storel_epi64((__m128i*)(dst + dststep + i), updateOp(s0, x0)); i 238 modules/imgproc/src/morph.cpp for( i = 0; i <= width - 32; i += 32 ) i 240 modules/imgproc/src/morph.cpp const uchar* sptr = src[0] + i; i 247 modules/imgproc/src/morph.cpp sptr = src[k] + i; i 253 modules/imgproc/src/morph.cpp _mm_storeu_si128((__m128i*)(dst + i), s0); i 254 modules/imgproc/src/morph.cpp _mm_storeu_si128((__m128i*)(dst + i + 16), s1); i 257 modules/imgproc/src/morph.cpp for( ; i <= width - 8; i += 8 ) i 259 modules/imgproc/src/morph.cpp __m128i s0 = _mm_loadl_epi64((const __m128i*)(src[0] + i)), x0; i 263 modules/imgproc/src/morph.cpp x0 = _mm_loadl_epi64((const __m128i*)(src[k] + i)); i 266 modules/imgproc/src/morph.cpp _mm_storel_epi64((__m128i*)(dst + i), s0); i 270 modules/imgproc/src/morph.cpp return i/ESZ; i 285 modules/imgproc/src/morph.cpp int i = 0, k, _ksize = ksize; i 288 modules/imgproc/src/morph.cpp for( i = 0; i < count + ksize - 1; i++ ) i 289 modules/imgproc/src/morph.cpp CV_Assert( ((size_t)_src[i] & 15) == 0 ); i 297 modules/imgproc/src/morph.cpp for( i = 0; i <= width - 16; i += 16 ) i 299 modules/imgproc/src/morph.cpp const float* sptr = src[1] + i; i 308 modules/imgproc/src/morph.cpp sptr = src[k] + i; i 319 modules/imgproc/src/morph.cpp sptr = src[0] + i; i 324 modules/imgproc/src/morph.cpp _mm_storeu_ps(dst + i, updateOp(s0, x0)); i 325 modules/imgproc/src/morph.cpp _mm_storeu_ps(dst + i + 4, updateOp(s1, x1)); i 326 modules/imgproc/src/morph.cpp _mm_storeu_ps(dst + i + 8, updateOp(s2, x2)); i 327 modules/imgproc/src/morph.cpp _mm_storeu_ps(dst + i + 12, updateOp(s3, x3)); i 329 modules/imgproc/src/morph.cpp sptr = src[k] + i; i 334 modules/imgproc/src/morph.cpp _mm_storeu_ps(dst + dststep + i, updateOp(s0, x0)); i 335 modules/imgproc/src/morph.cpp _mm_storeu_ps(dst + dststep + i + 4, updateOp(s1, x1)); i 336 modules/imgproc/src/morph.cpp _mm_storeu_ps(dst + dststep + i + 8, updateOp(s2, x2)); i 337 modules/imgproc/src/morph.cpp _mm_storeu_ps(dst + dststep + i + 12, updateOp(s3, x3)); i 340 modules/imgproc/src/morph.cpp for( ; i <= width - 4; i += 4 ) i 342 modules/imgproc/src/morph.cpp __m128 s0 = _mm_load_ps(src[1] + i), x0; i 346 modules/imgproc/src/morph.cpp x0 = _mm_load_ps(src[k] + i); i 350 modules/imgproc/src/morph.cpp x0 = _mm_load_ps(src[0] + i); i 351 modules/imgproc/src/morph.cpp _mm_storeu_ps(dst + i, updateOp(s0, x0)); i 352 modules/imgproc/src/morph.cpp x0 = _mm_load_ps(src[k] + i); i 353 modules/imgproc/src/morph.cpp _mm_storeu_ps(dst + dststep + i, updateOp(s0, x0)); i 359 modules/imgproc/src/morph.cpp for( i = 0; i <= width - 16; i += 16 ) i 361 modules/imgproc/src/morph.cpp const float* sptr = src[0] + i; i 370 modules/imgproc/src/morph.cpp sptr = src[k] + i; i 380 modules/imgproc/src/morph.cpp _mm_storeu_ps(dst + i, s0); i 381 modules/imgproc/src/morph.cpp _mm_storeu_ps(dst + i + 4, s1); i 382 modules/imgproc/src/morph.cpp _mm_storeu_ps(dst + i + 8, s2); i 383 modules/imgproc/src/morph.cpp _mm_storeu_ps(dst + i + 12, s3); i 386 modules/imgproc/src/morph.cpp for( i = 0; i <= width - 4; i += 4 ) i 388 modules/imgproc/src/morph.cpp __m128 s0 = _mm_load_ps(src[0] + i), x0; i 391 modules/imgproc/src/morph.cpp x0 = _mm_load_ps(src[k] + i); i 394 modules/imgproc/src/morph.cpp _mm_storeu_ps(dst + i, s0); i 398 modules/imgproc/src/morph.cpp return i; i 414 modules/imgproc/src/morph.cpp int i, k; i 418 modules/imgproc/src/morph.cpp for( i = 0; i <= width - 32; i += 32 ) i 420 modules/imgproc/src/morph.cpp const uchar* sptr = src[0] + i; i 427 modules/imgproc/src/morph.cpp sptr = src[k] + i; i 433 modules/imgproc/src/morph.cpp _mm_storeu_si128((__m128i*)(dst + i), s0); i 434 modules/imgproc/src/morph.cpp _mm_storeu_si128((__m128i*)(dst + i + 16), s1); i 437 modules/imgproc/src/morph.cpp for( ; i <= width - 8; i += 8 ) i 439 modules/imgproc/src/morph.cpp __m128i s0 = _mm_loadl_epi64((const __m128i*)(src[0] + i)), x0; i 443 modules/imgproc/src/morph.cpp x0 = _mm_loadl_epi64((const __m128i*)(src[k] + i)); i 446 modules/imgproc/src/morph.cpp _mm_storel_epi64((__m128i*)(dst + i), s0); i 449 modules/imgproc/src/morph.cpp return i/ESZ; i 463 modules/imgproc/src/morph.cpp int i, k; i 466 modules/imgproc/src/morph.cpp for( i = 0; i <= width - 16; i += 16 ) i 468 modules/imgproc/src/morph.cpp const float* sptr = src[0] + i; i 477 modules/imgproc/src/morph.cpp sptr = src[k] + i; i 487 modules/imgproc/src/morph.cpp _mm_storeu_ps(dst + i, s0); i 488 modules/imgproc/src/morph.cpp _mm_storeu_ps(dst + i + 4, s1); i 489 modules/imgproc/src/morph.cpp _mm_storeu_ps(dst + i + 8, s2); i 490 modules/imgproc/src/morph.cpp _mm_storeu_ps(dst + i + 12, s3); i 493 modules/imgproc/src/morph.cpp for( ; i <= width - 4; i += 4 ) i 495 modules/imgproc/src/morph.cpp __m128 s0 = _mm_loadu_ps(src[0] + i), x0; i 499 modules/imgproc/src/morph.cpp x0 = _mm_loadu_ps(src[k] + i); i 502 modules/imgproc/src/morph.cpp _mm_storeu_ps(dst + i, s0); i 505 modules/imgproc/src/morph.cpp for( ; i < width; i++ ) i 507 modules/imgproc/src/morph.cpp __m128 s0 = _mm_load_ss(src[0] + i), x0; i 511 modules/imgproc/src/morph.cpp x0 = _mm_load_ss(src[k] + i); i 514 modules/imgproc/src/morph.cpp _mm_store_ss(dst + i, s0); i 517 modules/imgproc/src/morph.cpp return i; i 646 modules/imgproc/src/morph.cpp int i, j, k, _ksize = ksize*cn; i 653 modules/imgproc/src/morph.cpp for( i = 0; i < width*cn; i++ ) i 654 modules/imgproc/src/morph.cpp D[i] = S[i]; i 663 modules/imgproc/src/morph.cpp for( i = i0; i <= width - cn*2; i += cn*2 ) i 665 modules/imgproc/src/morph.cpp const T* s = S + i; i 669 modules/imgproc/src/morph.cpp D[i] = op(m, s[0]); i 670 modules/imgproc/src/morph.cpp D[i+cn] = op(m, s[j]); i 673 modules/imgproc/src/morph.cpp for( ; i < width; i += cn ) i 675 modules/imgproc/src/morph.cpp const T* s = S + i; i 679 modules/imgproc/src/morph.cpp D[i] = m; i 700 modules/imgproc/src/morph.cpp int i, k, _ksize = ksize; i 710 modules/imgproc/src/morph.cpp i = i0; i 712 modules/imgproc/src/morph.cpp for( ; i <= width - 4; i += 4 ) i 714 modules/imgproc/src/morph.cpp const T* sptr = src[1] + i; i 719 modules/imgproc/src/morph.cpp sptr = src[k] + i; i 724 modules/imgproc/src/morph.cpp sptr = src[0] + i; i 725 modules/imgproc/src/morph.cpp D[i] = op(s0, sptr[0]); i 726 modules/imgproc/src/morph.cpp D[i+1] = op(s1, sptr[1]); i 727 modules/imgproc/src/morph.cpp D[i+2] = op(s2, sptr[2]); i 728 modules/imgproc/src/morph.cpp D[i+3] = op(s3, sptr[3]); i 730 modules/imgproc/src/morph.cpp sptr = src[k] + i; i 731 modules/imgproc/src/morph.cpp D[i+dststep] = op(s0, sptr[0]); i 732 modules/imgproc/src/morph.cpp D[i+dststep+1] = op(s1, sptr[1]); i 733 modules/imgproc/src/morph.cpp D[i+dststep+2] = op(s2, sptr[2]); i 734 modules/imgproc/src/morph.cpp D[i+dststep+3] = op(s3, sptr[3]); i 737 modules/imgproc/src/morph.cpp for( ; i < width; i++ ) i 739 modules/imgproc/src/morph.cpp T s0 = src[1][i]; i 742 modules/imgproc/src/morph.cpp s0 = op(s0, src[k][i]); i 744 modules/imgproc/src/morph.cpp D[i] = op(s0, src[0][i]); i 745 modules/imgproc/src/morph.cpp D[i+dststep] = op(s0, src[k][i]); i 751 modules/imgproc/src/morph.cpp i = i0; i 753 modules/imgproc/src/morph.cpp for( ; i <= width - 4; i += 4 ) i 755 modules/imgproc/src/morph.cpp const T* sptr = src[0] + i; i 760 modules/imgproc/src/morph.cpp sptr = src[k] + i; i 765 modules/imgproc/src/morph.cpp D[i] = s0; D[i+1] = s1; i 766 modules/imgproc/src/morph.cpp D[i+2] = s2; D[i+3] = s3; i 769 modules/imgproc/src/morph.cpp for( ; i < width; i++ ) i 771 modules/imgproc/src/morph.cpp T s0 = src[0][i]; i 773 modules/imgproc/src/morph.cpp s0 = op(s0, src[k][i]); i 774 modules/imgproc/src/morph.cpp D[i] = s0; i 803 modules/imgproc/src/morph.cpp int i, k, nz = (int)coords.size(); i 814 modules/imgproc/src/morph.cpp i = vecOp(&ptrs[0], nz, dst, width); i 816 modules/imgproc/src/morph.cpp for( ; i <= width - 4; i += 4 ) i 818 modules/imgproc/src/morph.cpp const T* sptr = kp[0] + i; i 823 modules/imgproc/src/morph.cpp sptr = kp[k] + i; i 828 modules/imgproc/src/morph.cpp D[i] = s0; D[i+1] = s1; i 829 modules/imgproc/src/morph.cpp D[i+2] = s2; D[i+3] = s3; i 832 modules/imgproc/src/morph.cpp for( ; i < width; i++ ) i 834 modules/imgproc/src/morph.cpp T s0 = kp[0][i]; i 836 modules/imgproc/src/morph.cpp s0 = op(s0, kp[k][i]); i 837 modules/imgproc/src/morph.cpp D[i] = s0; i 1030 modules/imgproc/src/morph.cpp int i, j; i 1050 modules/imgproc/src/morph.cpp for( i = 0; i < ksize.height; i++ ) i 1052 modules/imgproc/src/morph.cpp uchar* ptr = elem.ptr(i); i 1055 modules/imgproc/src/morph.cpp if( shape == MORPH_RECT || (shape == MORPH_CROSS && i == anchor.y) ) i 1061 modules/imgproc/src/morph.cpp int dy = i - r; i 1121 modules/imgproc/src/morph.cpp for( int i = 1; i < iterations; i++ ) i 1589 modules/imgproc/src/morph.cpp for (int i = 0; i < iterations; i++) i 1591 modules/imgproc/src/morph.cpp int current_op = iterations == i + 1 ? actual_op : op; i 1603 modules/imgproc/src/morph.cpp kernels[i].create("morph", ocl::imgproc::morph_oclsrc, buildOptions); i 1604 modules/imgproc/src/morph.cpp if (kernels[i].empty()) i 1630 modules/imgproc/src/morph.cpp for (int i = 0; i < iterations; i++) i 1636 modules/imgproc/src/morph.cpp if (i == 0) i 1660 modules/imgproc/src/morph.cpp if (haveExtraMat && iterations == i + 1) i 1661 modules/imgproc/src/morph.cpp kernels[i].args(ocl::KernelArg::ReadOnlyNoSize(source), ocl::KernelArg::WriteOnlyNoSize(dst), i 1665 modules/imgproc/src/morph.cpp kernels[i].args(ocl::KernelArg::ReadOnlyNoSize(source), ocl::KernelArg::WriteOnlyNoSize(dst), i 1668 modules/imgproc/src/morph.cpp if (!kernels[i].run(2, globalThreads, localThreads, false)) i 1895 modules/imgproc/src/morph.cpp int i, size = rows * cols; i 1908 modules/imgproc/src/morph.cpp for( i = 0; i < size; i++ ) i 1909 modules/imgproc/src/morph.cpp element->values[i] = values[i]; i 1914 modules/imgproc/src/morph.cpp for( i = 0; i < size; i++ ) i 1915 modules/imgproc/src/morph.cpp element->values[i] = elem.ptr()[i]; i 1942 modules/imgproc/src/morph.cpp int i, size = src->nRows*src->nCols; i 1943 modules/imgproc/src/morph.cpp for( i = 0; i < size; i++ ) i 1944 modules/imgproc/src/morph.cpp dst.ptr()[i] = (uchar)(src->values[i] != 0); i 374 modules/imgproc/src/phasecorr.cpp for(size_t i = 0; i < planes.size(); i++) i 377 modules/imgproc/src/phasecorr.cpp Mat half0(planes[i], Rect(0, 0, xMid, 1)); i 378 modules/imgproc/src/phasecorr.cpp Mat half1(planes[i], Rect(xMid, 0, xMid, 1)); i 387 modules/imgproc/src/phasecorr.cpp for(size_t i = 0; i < planes.size(); i++) i 391 modules/imgproc/src/phasecorr.cpp Mat q0(planes[i], Rect(0, 0, xMid, yMid)); i 392 modules/imgproc/src/phasecorr.cpp Mat q1(planes[i], Rect(xMid, 0, xMid, yMid)); i 393 modules/imgproc/src/phasecorr.cpp Mat q2(planes[i], Rect(0, yMid, xMid, yMid)); i 394 modules/imgproc/src/phasecorr.cpp Mat q3(planes[i], Rect(xMid, yMid, xMid, yMid)); i 590 modules/imgproc/src/phasecorr.cpp for(int i = 0; i < rows; i++) i 592 modules/imgproc/src/phasecorr.cpp float* dstData = dst.ptr<float>(i); i 593 modules/imgproc/src/phasecorr.cpp double wr = 0.5 * (1.0 - cos(coeff1 * i)); i 600 modules/imgproc/src/phasecorr.cpp for(int i = 0; i < rows; i++) i 602 modules/imgproc/src/phasecorr.cpp double* dstData = dst.ptr<double>(i); i 603 modules/imgproc/src/phasecorr.cpp double wr = 0.5 * (1.0 - cos(coeff1 * i)); i 1332 modules/imgproc/src/pyramids.cpp for( int i = 1; i <= maxlevel; i++ ) i 1333 modules/imgproc/src/pyramids.cpp pyrDown( _dst.getUMatRef(i-1), _dst.getUMatRef(i), Size(), borderType ); i 1341 modules/imgproc/src/pyramids.cpp int i=1; i 1402 modules/imgproc/src/pyramids.cpp for( ; i <= maxlevel; i++ ) i 1405 modules/imgproc/src/pyramids.cpp ok = ippiGetPyramidDownROI(gPyr->pRoi[i-1], &dstRoi, rate); i 1406 modules/imgproc/src/pyramids.cpp Mat& dst = _dst.getMatRef(i); i 1408 modules/imgproc/src/pyramids.cpp gPyr->pImage[i] = dst.data; i 1409 modules/imgproc/src/pyramids.cpp gPyr->pStep[i] = (int) dst.step; i 1410 modules/imgproc/src/pyramids.cpp gPyr->pRoi[i] = dstRoi; i 1412 modules/imgproc/src/pyramids.cpp if (ok >= 0) ok = pyrDownFunc(gPyr->pImage[i-1], gPyr->pStep[i-1], gPyr->pRoi[i-1], i 1413 modules/imgproc/src/pyramids.cpp gPyr->pImage[i], gPyr->pStep[i], gPyr->pRoi[i], gPyr->pState); i 1435 modules/imgproc/src/pyramids.cpp for( ; i <= maxlevel; i++ ) i 1436 modules/imgproc/src/pyramids.cpp pyrDown( _dst.getMatRef(i-1), _dst.getMatRef(i), Size(), borderType ); i 1463 modules/imgproc/src/pyramids.cpp for( int i = 0; i <= extra_layers; i++ ) i 1464 modules/imgproc/src/pyramids.cpp cvReleaseMat( &(*_pyramid)[i] ); i 1483 modules/imgproc/src/pyramids.cpp int i, layer_step, elem_size = CV_ELEM_SIZE(src->type); i 1494 modules/imgproc/src/pyramids.cpp for( i = 1; i <= extra_layers; i++ ) i 1502 modules/imgproc/src/pyramids.cpp layer_size = layer_sizes[i-1]; i 1519 modules/imgproc/src/pyramids.cpp for( i = 1; i <= extra_layers; i++ ) i 1527 modules/imgproc/src/pyramids.cpp layer_size = layer_sizes[i]; i 1531 modules/imgproc/src/pyramids.cpp pyramid[i] = cvCreateMatHeader( layer_size.height, layer_size.width, src->type ); i 1533 modules/imgproc/src/pyramids.cpp cvSetData( pyramid[i], ptr, layer_step ); i 1537 modules/imgproc/src/pyramids.cpp pyramid[i] = cvCreateMat( layer_size.height, layer_size.width, src->type ); i 1540 modules/imgproc/src/pyramids.cpp cvPyrDown( pyramid[i-1], pyramid[i], filter ); i 97 modules/imgproc/src/rotcalipers.cpp int i, k; i 118 modules/imgproc/src/rotcalipers.cpp for( i = 0; i < n; i++ ) i 123 modules/imgproc/src/rotcalipers.cpp left_x = pt0.x, left = i; i 126 modules/imgproc/src/rotcalipers.cpp right_x = pt0.x, right = i; i 129 modules/imgproc/src/rotcalipers.cpp top_y = pt0.y, top = i; i 132 modules/imgproc/src/rotcalipers.cpp bottom_y = pt0.y, bottom = i; i 134 modules/imgproc/src/rotcalipers.cpp Point2f pt = points[(i+1) & (i+1 < n ? -1 : 0)]; i 139 modules/imgproc/src/rotcalipers.cpp vect[i].x = (float)dx; i 140 modules/imgproc/src/rotcalipers.cpp vect[i].y = (float)dy; i 141 modules/imgproc/src/rotcalipers.cpp inv_vect_length[i] = (float)(1./std::sqrt(dx*dx + dy*dy)); i 151 modules/imgproc/src/rotcalipers.cpp for( i = 0; i < n; i++ ) i 153 modules/imgproc/src/rotcalipers.cpp double bx = vect[i].x; i 154 modules/imgproc/src/rotcalipers.cpp double by = vect[i].y; i 138 modules/imgproc/src/samplers.cpp int i, j, c; i 165 modules/imgproc/src/samplers.cpp for( i = 0; i < win_size.height; i++, src += src_step, dst += dst_step ) i 188 modules/imgproc/src/samplers.cpp for( i = 0; i < win_size.height; i++, dst += dst_step ) i 193 modules/imgproc/src/samplers.cpp if( i < r.y || i >= r.height ) i 212 modules/imgproc/src/samplers.cpp if( i < r.height ) i 476 modules/imgproc/src/samplers.cpp for( int i = 0; i < li.count; i++, ++li ) i 79 modules/imgproc/src/segmentation.cpp for( int i = sz; i < newsz-1; i++ ) i 80 modules/imgproc/src/segmentation.cpp storage[i].next = i+1; i 108 modules/imgproc/src/segmentation.cpp int i, j; i 172 modules/imgproc/src/segmentation.cpp for( i = 0; i < 256; i++ ) i 173 modules/imgproc/src/segmentation.cpp subs_tab[i] = 0; i 174 modules/imgproc/src/segmentation.cpp for( i = 256; i <= 512; i++ ) i 175 modules/imgproc/src/segmentation.cpp subs_tab[i] = i - 256; i 183 modules/imgproc/src/segmentation.cpp for( i = 1; i < size.height-1; i++ ) i 217 modules/imgproc/src/segmentation.cpp ws_push( idx, i*mstep + j, i*istep + j*3 ); i 224 modules/imgproc/src/segmentation.cpp for( i = 0; i < NQ; i++ ) i 225 modules/imgproc/src/segmentation.cpp if( q[i].first ) i 229 modules/imgproc/src/segmentation.cpp if( i == NQ ) i 232 modules/imgproc/src/segmentation.cpp active_queue = i; i 248 modules/imgproc/src/segmentation.cpp for( i = active_queue+1; i < NQ; i++ ) i 249 modules/imgproc/src/segmentation.cpp if( q[i].first ) i 251 modules/imgproc/src/segmentation.cpp if( i == NQ ) i 253 modules/imgproc/src/segmentation.cpp active_queue = i; i 352 modules/imgproc/src/segmentation.cpp int i, j, level; i 380 modules/imgproc/src/segmentation.cpp for( i = 0; i < 768; i++ ) i 381 modules/imgproc/src/segmentation.cpp tab[i] = (i - 255)*(i - 255); i 425 modules/imgproc/src/segmentation.cpp for( i = 1; i < size1.height-1; i++, dptr += dstep - (size1.width-2)*3, mask += mstep*2 ) i 442 modules/imgproc/src/segmentation.cpp for( i = 0; i < size.height; i++, sptr += sstep - size.width*3, i 448 modules/imgproc/src/segmentation.cpp int x0 = j, y0 = i, x1, y1, iter; i 471 modules/imgproc/src/segmentation.cpp ptr = sptr + (miny - i)*sstep + (minx - j)*3; i 100 modules/imgproc/src/shapedescr.cpp int i, j, k = 1, mi = 0; i 110 modules/imgproc/src/shapedescr.cpp for( i = 0; i < 4; i++ ) i 111 modules/imgproc/src/shapedescr.cpp for( j = i + 1; j < 4; j++ ) i 113 modules/imgproc/src/shapedescr.cpp float dist = (float)norm(pts[i] - pts[j]); i 118 modules/imgproc/src/shapedescr.cpp idxs[0] = i; i 126 modules/imgproc/src/shapedescr.cpp for( i = 0; i < 4; i++ ) i 129 modules/imgproc/src/shapedescr.cpp if( i == idxs[j] ) i 132 modules/imgproc/src/shapedescr.cpp idxs[k++] = i; i 149 modules/imgproc/src/shapedescr.cpp for( i = 0; i < 4; i++ ) i 151 modules/imgproc/src/shapedescr.cpp if( findCircle( pts[shuffles[i][0]], pts[shuffles[i][1]], i 152 modules/imgproc/src/shapedescr.cpp pts[shuffles[i][2]], ¢er, &radius ) ) i 158 modules/imgproc/src/shapedescr.cpp if( pointInCircle( pts[shuffles[i][3]], center, radius ) >= 0 && i 163 modules/imgproc/src/shapedescr.cpp mi = i; i 173 modules/imgproc/src/shapedescr.cpp for( i = 0; i < 4; i++ ) i 174 modules/imgproc/src/shapedescr.cpp idxs[i] = shuffles[mi][i]; i 182 modules/imgproc/src/shapedescr.cpp for( i = 0; i < 4; i++ ) i 183 modules/imgproc/src/shapedescr.cpp res_pts[i] = pts[idxs[i]]; i 185 modules/imgproc/src/shapedescr.cpp for( i = 0; i < 4; i++ ) i 187 modules/imgproc/src/shapedescr.cpp pts[i] = res_pts[i]; i 188 modules/imgproc/src/shapedescr.cpp CV_Assert( pointInCircle( pts[i], center, radius ) >= 0 ); i 202 modules/imgproc/src/shapedescr.cpp int i, j, k, count = points.checkVector(2); i 221 modules/imgproc/src/shapedescr.cpp for( i = 1; i < count; i++ ) i 223 modules/imgproc/src/shapedescr.cpp pt = is_float ? ptsf[i] : Point2f((float)ptsi[i].x, (float)ptsi[i].y); i 243 modules/imgproc/src/shapedescr.cpp for( i = 0; i < count; i++ ) i 245 modules/imgproc/src/shapedescr.cpp pt = is_float ? ptsf[i] : Point2f((float)ptsi[i].x,(float)ptsi[i].y); i 261 modules/imgproc/src/shapedescr.cpp for( i = 3; i >= 0; i-- ) i 264 modules/imgproc/src/shapedescr.cpp ptsCopy[j] = i != j ? pts[j] : farAway; i 267 modules/imgproc/src/shapedescr.cpp if( pointInCircle( pts[i], center, radius ) >= 0) i 270 modules/imgproc/src/shapedescr.cpp pts[i] = farAway; i 279 modules/imgproc/src/shapedescr.cpp for( i = 0; i < count; i++ ) i 281 modules/imgproc/src/shapedescr.cpp pt = is_float ? ptsf[i] : Point2f((float)ptsi[i].x,(float)ptsi[i].y); i 304 modules/imgproc/src/shapedescr.cpp int i, j = 0; i 318 modules/imgproc/src/shapedescr.cpp for( i = 0; i < count; i++ ) i 320 modules/imgproc/src/shapedescr.cpp Point2f p = is_float ? ptf[i] : Point2f((float)pti[i].x,(float)pti[i].y); i 324 modules/imgproc/src/shapedescr.cpp if( ++j == N || i == count-1 ) i 354 modules/imgproc/src/shapedescr.cpp for( int i = 0; i < npoints; i++ ) i 356 modules/imgproc/src/shapedescr.cpp Point2f p = is_float ? ptsf[i] : Point2f((float)ptsi[i].x, (float)ptsi[i].y); i 372 modules/imgproc/src/shapedescr.cpp int i, n = points.checkVector(2); i 397 modules/imgproc/src/shapedescr.cpp for( i = 0; i < n; i++ ) i 399 modules/imgproc/src/shapedescr.cpp Point2f p = is_float ? ptsf[i] : Point2f((float)ptsi[i].x, (float)ptsi[i].y); i 405 modules/imgproc/src/shapedescr.cpp for( i = 0; i < n; i++ ) i 407 modules/imgproc/src/shapedescr.cpp Point2f p = is_float ? ptsf[i] : Point2f((float)ptsi[i].x, (float)ptsi[i].y); i 410 modules/imgproc/src/shapedescr.cpp bd[i] = 10000.0; // 1.0? i 411 modules/imgproc/src/shapedescr.cpp Ad[i*5] = -(double)p.x * p.x; // A - C signs inverted as proposed by APP i 412 modules/imgproc/src/shapedescr.cpp Ad[i*5 + 1] = -(double)p.y * p.y; i 413 modules/imgproc/src/shapedescr.cpp Ad[i*5 + 2] = -(double)p.x * p.y; i 414 modules/imgproc/src/shapedescr.cpp Ad[i*5 + 3] = p.x; i 415 modules/imgproc/src/shapedescr.cpp Ad[i*5 + 4] = p.y; i 436 modules/imgproc/src/shapedescr.cpp for( i = 0; i < n; i++ ) i 438 modules/imgproc/src/shapedescr.cpp Point2f p = is_float ? ptsf[i] : Point2f((float)ptsi[i].x, (float)ptsi[i].y); i 440 modules/imgproc/src/shapedescr.cpp bd[i] = 1.0; i 441 modules/imgproc/src/shapedescr.cpp Ad[i * 3] = (p.x - rp[0]) * (p.x - rp[0]); i 442 modules/imgproc/src/shapedescr.cpp Ad[i * 3 + 1] = (p.y - rp[1]) * (p.y - rp[1]); i 443 modules/imgproc/src/shapedescr.cpp Ad[i * 3 + 2] = (p.x - rp[0]) * (p.y - rp[1]); i 489 modules/imgproc/src/shapedescr.cpp int xmin = 0, ymin = 0, xmax = -1, ymax = -1, i; i 506 modules/imgproc/src/shapedescr.cpp for( i = 1; i < npoints; i++ ) i 508 modules/imgproc/src/shapedescr.cpp __m128i ptXY = _mm_loadl_epi64((const __m128i*)&pts[i]); i 522 modules/imgproc/src/shapedescr.cpp for( i = 1; i < npoints; i++ ) i 524 modules/imgproc/src/shapedescr.cpp ptXY = _mm_loadl_pi(ptXY, (const __m64*)&pts[i]); i 547 modules/imgproc/src/shapedescr.cpp for( i = 1; i < npoints; i++ ) i 549 modules/imgproc/src/shapedescr.cpp pt = pts[i]; i 571 modules/imgproc/src/shapedescr.cpp for( i = 1; i < npoints; i++ ) i 573 modules/imgproc/src/shapedescr.cpp pt = pts[i]; i 590 modules/imgproc/src/shapedescr.cpp v.i = CV_TOGGLE_FLT(xmin); xmin = cvFloor(v.f); i 591 modules/imgproc/src/shapedescr.cpp v.i = CV_TOGGLE_FLT(ymin); ymin = cvFloor(v.f); i 594 modules/imgproc/src/shapedescr.cpp v.i = CV_TOGGLE_FLT(xmax); xmax = cvFloor(v.f); i 595 modules/imgproc/src/shapedescr.cpp v.i = CV_TOGGLE_FLT(ymax); ymax = cvFloor(v.f); i 608 modules/imgproc/src/shapedescr.cpp int xmin = size.width, ymin = -1, xmax = -1, ymax = -1, i, j, k; i 610 modules/imgproc/src/shapedescr.cpp for( i = 0; i < size.height; i++ ) i 612 modules/imgproc/src/shapedescr.cpp const uchar* _ptr = img.ptr(i); i 686 modules/imgproc/src/shapedescr.cpp ymin = i; i 687 modules/imgproc/src/shapedescr.cpp ymax = i; i 761 modules/imgproc/src/shapedescr.cpp int lpt, flag, i; i 900 modules/imgproc/src/shapedescr.cpp for( i = 0; i < p_ind; i++ ) i 901 modules/imgproc/src/shapedescr.cpp area += fabs( p_are[i] ); i 954 modules/imgproc/src/shapedescr.cpp int i, j = 0, count; i 993 modules/imgproc/src/shapedescr.cpp for( i = 0; i < count; i++ ) i 1018 modules/imgproc/src/shapedescr.cpp if( is_closed && i == count - 2 ) i 1022 modules/imgproc/src/shapedescr.cpp if( ++j == N || i == count - 1 ) i 86 modules/imgproc/src/smooth.cpp int i = 0, k, ksz_cn = ksize*cn; i 92 modules/imgproc/src/smooth.cpp for( i = 0; i < ksz_cn; i += cn ) i 93 modules/imgproc/src/smooth.cpp s += S[i]; i 95 modules/imgproc/src/smooth.cpp for( i = 0; i < width; i += cn ) i 97 modules/imgproc/src/smooth.cpp s += S[i + ksz_cn] - S[i]; i 98 modules/imgproc/src/smooth.cpp D[i+cn] = s; i 122 modules/imgproc/src/smooth.cpp int i; i 141 modules/imgproc/src/smooth.cpp for( i = 0; i <= width - 2; i += 2 ) i 143 modules/imgproc/src/smooth.cpp ST s0 = SUM[i] + Sp[i], s1 = SUM[i+1] + Sp[i+1]; i 144 modules/imgproc/src/smooth.cpp SUM[i] = s0; SUM[i+1] = s1; i 147 modules/imgproc/src/smooth.cpp for( ; i < width; i++ ) i 148 modules/imgproc/src/smooth.cpp SUM[i] += Sp[i]; i 164 modules/imgproc/src/smooth.cpp for( i = 0; i <= width - 2; i += 2 ) i 166 modules/imgproc/src/smooth.cpp ST s0 = SUM[i] + Sp[i], s1 = SUM[i+1] + Sp[i+1]; i 167 modules/imgproc/src/smooth.cpp D[i] = saturate_cast<T>(s0*_scale); i 168 modules/imgproc/src/smooth.cpp D[i+1] = saturate_cast<T>(s1*_scale); i 169 modules/imgproc/src/smooth.cpp s0 -= Sm[i]; s1 -= Sm[i+1]; i 170 modules/imgproc/src/smooth.cpp SUM[i] = s0; SUM[i+1] = s1; i 173 modules/imgproc/src/smooth.cpp for( ; i < width; i++ ) i 175 modules/imgproc/src/smooth.cpp ST s0 = SUM[i] + Sp[i]; i 176 modules/imgproc/src/smooth.cpp D[i] = saturate_cast<T>(s0*_scale); i 177 modules/imgproc/src/smooth.cpp SUM[i] = s0 - Sm[i]; i 182 modules/imgproc/src/smooth.cpp for( i = 0; i <= width - 2; i += 2 ) i 184 modules/imgproc/src/smooth.cpp ST s0 = SUM[i] + Sp[i], s1 = SUM[i+1] + Sp[i+1]; i 185 modules/imgproc/src/smooth.cpp D[i] = saturate_cast<T>(s0); i 186 modules/imgproc/src/smooth.cpp D[i+1] = saturate_cast<T>(s1); i 187 modules/imgproc/src/smooth.cpp s0 -= Sm[i]; s1 -= Sm[i+1]; i 188 modules/imgproc/src/smooth.cpp SUM[i] = s0; SUM[i+1] = s1; i 191 modules/imgproc/src/smooth.cpp for( ; i < width; i++ ) i 193 modules/imgproc/src/smooth.cpp ST s0 = SUM[i] + Sp[i]; i 194 modules/imgproc/src/smooth.cpp D[i] = saturate_cast<T>(s0); i 195 modules/imgproc/src/smooth.cpp SUM[i] = s0 - Sm[i]; i 225 modules/imgproc/src/smooth.cpp int i; i 247 modules/imgproc/src/smooth.cpp i = 0; i 251 modules/imgproc/src/smooth.cpp for( ; i <= width-4; i+=4 ) i 253 modules/imgproc/src/smooth.cpp __m128i _sum = _mm_loadu_si128((const __m128i*)(SUM+i)); i 254 modules/imgproc/src/smooth.cpp __m128i _sp = _mm_loadu_si128((const __m128i*)(Sp+i)); i 255 modules/imgproc/src/smooth.cpp _mm_storeu_si128((__m128i*)(SUM+i),_mm_add_epi32(_sum, _sp)); i 259 modules/imgproc/src/smooth.cpp for( ; i <= width - 4; i+=4 ) i 260 modules/imgproc/src/smooth.cpp vst1q_s32(SUM + i, vaddq_s32(vld1q_s32(SUM + i), vld1q_s32(Sp + i))); i 262 modules/imgproc/src/smooth.cpp for( ; i < width; i++ ) i 263 modules/imgproc/src/smooth.cpp SUM[i] += Sp[i]; i 279 modules/imgproc/src/smooth.cpp i = 0; i 284 modules/imgproc/src/smooth.cpp for( ; i <= width-8; i+=8 ) i 286 modules/imgproc/src/smooth.cpp __m128i _sm = _mm_loadu_si128((const __m128i*)(Sm+i)); i 287 modules/imgproc/src/smooth.cpp __m128i _sm1 = _mm_loadu_si128((const __m128i*)(Sm+i+4)); i 289 modules/imgproc/src/smooth.cpp __m128i _s0 = _mm_add_epi32(_mm_loadu_si128((const __m128i*)(SUM+i)), i 290 modules/imgproc/src/smooth.cpp _mm_loadu_si128((const __m128i*)(Sp+i))); i 291 modules/imgproc/src/smooth.cpp __m128i _s01 = _mm_add_epi32(_mm_loadu_si128((const __m128i*)(SUM+i+4)), i 292 modules/imgproc/src/smooth.cpp _mm_loadu_si128((const __m128i*)(Sp+i+4))); i 299 modules/imgproc/src/smooth.cpp _mm_storel_epi64((__m128i*)(D+i), _mm_packus_epi16(_s0T, _s0T)); i 301 modules/imgproc/src/smooth.cpp _mm_storeu_si128((__m128i*)(SUM+i), _mm_sub_epi32(_s0,_sm)); i 302 modules/imgproc/src/smooth.cpp _mm_storeu_si128((__m128i*)(SUM+i+4),_mm_sub_epi32(_s01,_sm1)); i 307 modules/imgproc/src/smooth.cpp for( ; i <= width-8; i+=8 ) i 309 modules/imgproc/src/smooth.cpp int32x4_t v_s0 = vaddq_s32(vld1q_s32(SUM + i), vld1q_s32(Sp + i)); i 310 modules/imgproc/src/smooth.cpp int32x4_t v_s01 = vaddq_s32(vld1q_s32(SUM + i + 4), vld1q_s32(Sp + i + 4)); i 316 modules/imgproc/src/smooth.cpp vst1_u8(D + i, vqmovn_u16(v_dst)); i 318 modules/imgproc/src/smooth.cpp vst1q_s32(SUM + i, vsubq_s32(v_s0, vld1q_s32(Sm + i))); i 319 modules/imgproc/src/smooth.cpp vst1q_s32(SUM + i + 4, vsubq_s32(v_s01, vld1q_s32(Sm + i + 4))); i 322 modules/imgproc/src/smooth.cpp for( ; i < width; i++ ) i 324 modules/imgproc/src/smooth.cpp int s0 = SUM[i] + Sp[i]; i 325 modules/imgproc/src/smooth.cpp D[i] = saturate_cast<uchar>(s0*_scale); i 326 modules/imgproc/src/smooth.cpp SUM[i] = s0 - Sm[i]; i 331 modules/imgproc/src/smooth.cpp i = 0; i 335 modules/imgproc/src/smooth.cpp for( ; i <= width-8; i+=8 ) i 337 modules/imgproc/src/smooth.cpp __m128i _sm = _mm_loadu_si128((const __m128i*)(Sm+i)); i 338 modules/imgproc/src/smooth.cpp __m128i _sm1 = _mm_loadu_si128((const __m128i*)(Sm+i+4)); i 340 modules/imgproc/src/smooth.cpp __m128i _s0 = _mm_add_epi32(_mm_loadu_si128((const __m128i*)(SUM+i)), i 341 modules/imgproc/src/smooth.cpp _mm_loadu_si128((const __m128i*)(Sp+i))); i 342 modules/imgproc/src/smooth.cpp __m128i _s01 = _mm_add_epi32(_mm_loadu_si128((const __m128i*)(SUM+i+4)), i 343 modules/imgproc/src/smooth.cpp _mm_loadu_si128((const __m128i*)(Sp+i+4))); i 347 modules/imgproc/src/smooth.cpp _mm_storel_epi64((__m128i*)(D+i), _mm_packus_epi16(_s0T, _s0T)); i 349 modules/imgproc/src/smooth.cpp _mm_storeu_si128((__m128i*)(SUM+i), _mm_sub_epi32(_s0,_sm)); i 350 modules/imgproc/src/smooth.cpp _mm_storeu_si128((__m128i*)(SUM+i+4),_mm_sub_epi32(_s01,_sm1)); i 354 modules/imgproc/src/smooth.cpp for( ; i <= width-8; i+=8 ) i 356 modules/imgproc/src/smooth.cpp int32x4_t v_s0 = vaddq_s32(vld1q_s32(SUM + i), vld1q_s32(Sp + i)); i 357 modules/imgproc/src/smooth.cpp int32x4_t v_s01 = vaddq_s32(vld1q_s32(SUM + i + 4), vld1q_s32(Sp + i + 4)); i 360 modules/imgproc/src/smooth.cpp vst1_u8(D + i, vqmovn_u16(v_dst)); i 362 modules/imgproc/src/smooth.cpp vst1q_s32(SUM + i, vsubq_s32(v_s0, vld1q_s32(Sm + i))); i 363 modules/imgproc/src/smooth.cpp vst1q_s32(SUM + i + 4, vsubq_s32(v_s01, vld1q_s32(Sm + i + 4))); i 367 modules/imgproc/src/smooth.cpp for( ; i < width; i++ ) i 369 modules/imgproc/src/smooth.cpp int s0 = SUM[i] + Sp[i]; i 370 modules/imgproc/src/smooth.cpp D[i] = saturate_cast<uchar>(s0); i 371 modules/imgproc/src/smooth.cpp SUM[i] = s0 - Sm[i]; i 400 modules/imgproc/src/smooth.cpp int i; i 421 modules/imgproc/src/smooth.cpp i = 0; i 425 modules/imgproc/src/smooth.cpp for( ; i <= width-4; i+=4 ) i 427 modules/imgproc/src/smooth.cpp __m128i _sum = _mm_loadu_si128((const __m128i*)(SUM+i)); i 428 modules/imgproc/src/smooth.cpp __m128i _sp = _mm_loadu_si128((const __m128i*)(Sp+i)); i 429 modules/imgproc/src/smooth.cpp _mm_storeu_si128((__m128i*)(SUM+i),_mm_add_epi32(_sum, _sp)); i 433 modules/imgproc/src/smooth.cpp for( ; i <= width - 4; i+=4 ) i 434 modules/imgproc/src/smooth.cpp vst1q_s32(SUM + i, vaddq_s32(vld1q_s32(SUM + i), vld1q_s32(Sp + i))); i 436 modules/imgproc/src/smooth.cpp for( ; i < width; i++ ) i 437 modules/imgproc/src/smooth.cpp SUM[i] += Sp[i]; i 453 modules/imgproc/src/smooth.cpp i = 0; i 458 modules/imgproc/src/smooth.cpp for( ; i <= width-8; i+=8 ) i 460 modules/imgproc/src/smooth.cpp __m128i _sm = _mm_loadu_si128((const __m128i*)(Sm+i)); i 461 modules/imgproc/src/smooth.cpp __m128i _sm1 = _mm_loadu_si128((const __m128i*)(Sm+i+4)); i 463 modules/imgproc/src/smooth.cpp __m128i _s0 = _mm_add_epi32(_mm_loadu_si128((const __m128i*)(SUM+i)), i 464 modules/imgproc/src/smooth.cpp _mm_loadu_si128((const __m128i*)(Sp+i))); i 465 modules/imgproc/src/smooth.cpp __m128i _s01 = _mm_add_epi32(_mm_loadu_si128((const __m128i*)(SUM+i+4)), i 466 modules/imgproc/src/smooth.cpp _mm_loadu_si128((const __m128i*)(Sp+i+4))); i 471 modules/imgproc/src/smooth.cpp _mm_storeu_si128((__m128i*)(D+i), _mm_packs_epi32(_s0T, _s0T1)); i 473 modules/imgproc/src/smooth.cpp _mm_storeu_si128((__m128i*)(SUM+i),_mm_sub_epi32(_s0,_sm)); i 474 modules/imgproc/src/smooth.cpp _mm_storeu_si128((__m128i*)(SUM+i+4), _mm_sub_epi32(_s01,_sm1)); i 479 modules/imgproc/src/smooth.cpp for( ; i <= width-8; i+=8 ) i 481 modules/imgproc/src/smooth.cpp int32x4_t v_s0 = vaddq_s32(vld1q_s32(SUM + i), vld1q_s32(Sp + i)); i 482 modules/imgproc/src/smooth.cpp int32x4_t v_s01 = vaddq_s32(vld1q_s32(SUM + i + 4), vld1q_s32(Sp + i + 4)); i 486 modules/imgproc/src/smooth.cpp vst1q_s16(D + i, vcombine_s16(vqmovn_s32(v_s0d), vqmovn_s32(v_s01d))); i 488 modules/imgproc/src/smooth.cpp vst1q_s32(SUM + i, vsubq_s32(v_s0, vld1q_s32(Sm + i))); i 489 modules/imgproc/src/smooth.cpp vst1q_s32(SUM + i + 4, vsubq_s32(v_s01, vld1q_s32(Sm + i + 4))); i 492 modules/imgproc/src/smooth.cpp for( ; i < width; i++ ) i 494 modules/imgproc/src/smooth.cpp int s0 = SUM[i] + Sp[i]; i 495 modules/imgproc/src/smooth.cpp D[i] = saturate_cast<short>(s0*_scale); i 496 modules/imgproc/src/smooth.cpp SUM[i] = s0 - Sm[i]; i 501 modules/imgproc/src/smooth.cpp i = 0; i 505 modules/imgproc/src/smooth.cpp for( ; i <= width-8; i+=8 ) i 508 modules/imgproc/src/smooth.cpp __m128i _sm = _mm_loadu_si128((const __m128i*)(Sm+i)); i 509 modules/imgproc/src/smooth.cpp __m128i _sm1 = _mm_loadu_si128((const __m128i*)(Sm+i+4)); i 511 modules/imgproc/src/smooth.cpp __m128i _s0 = _mm_add_epi32(_mm_loadu_si128((const __m128i*)(SUM+i)), i 512 modules/imgproc/src/smooth.cpp _mm_loadu_si128((const __m128i*)(Sp+i))); i 513 modules/imgproc/src/smooth.cpp __m128i _s01 = _mm_add_epi32(_mm_loadu_si128((const __m128i*)(SUM+i+4)), i 514 modules/imgproc/src/smooth.cpp _mm_loadu_si128((const __m128i*)(Sp+i+4))); i 516 modules/imgproc/src/smooth.cpp _mm_storeu_si128((__m128i*)(D+i), _mm_packs_epi32(_s0, _s01)); i 518 modules/imgproc/src/smooth.cpp _mm_storeu_si128((__m128i*)(SUM+i), _mm_sub_epi32(_s0,_sm)); i 519 modules/imgproc/src/smooth.cpp _mm_storeu_si128((__m128i*)(SUM+i+4),_mm_sub_epi32(_s01,_sm1)); i 523 modules/imgproc/src/smooth.cpp for( ; i <= width-8; i+=8 ) i 525 modules/imgproc/src/smooth.cpp int32x4_t v_s0 = vaddq_s32(vld1q_s32(SUM + i), vld1q_s32(Sp + i)); i 526 modules/imgproc/src/smooth.cpp int32x4_t v_s01 = vaddq_s32(vld1q_s32(SUM + i + 4), vld1q_s32(Sp + i + 4)); i 528 modules/imgproc/src/smooth.cpp vst1q_s16(D + i, vcombine_s16(vqmovn_s32(v_s0), vqmovn_s32(v_s01))); i 530 modules/imgproc/src/smooth.cpp vst1q_s32(SUM + i, vsubq_s32(v_s0, vld1q_s32(Sm + i))); i 531 modules/imgproc/src/smooth.cpp vst1q_s32(SUM + i + 4, vsubq_s32(v_s01, vld1q_s32(Sm + i + 4))); i 535 modules/imgproc/src/smooth.cpp for( ; i < width; i++ ) i 537 modules/imgproc/src/smooth.cpp int s0 = SUM[i] + Sp[i]; i 538 modules/imgproc/src/smooth.cpp D[i] = saturate_cast<short>(s0); i 539 modules/imgproc/src/smooth.cpp SUM[i] = s0 - Sm[i]; i 569 modules/imgproc/src/smooth.cpp int i; i 589 modules/imgproc/src/smooth.cpp i = 0; i 593 modules/imgproc/src/smooth.cpp for( ; i < width-4; i+=4 ) i 595 modules/imgproc/src/smooth.cpp __m128i _sum = _mm_loadu_si128((const __m128i*)(SUM+i)); i 596 modules/imgproc/src/smooth.cpp __m128i _sp = _mm_loadu_si128((const __m128i*)(Sp+i)); i 597 modules/imgproc/src/smooth.cpp _mm_storeu_si128((__m128i*)(SUM+i), _mm_add_epi32(_sum, _sp)); i 601 modules/imgproc/src/smooth.cpp for( ; i <= width - 4; i+=4 ) i 602 modules/imgproc/src/smooth.cpp vst1q_s32(SUM + i, vaddq_s32(vld1q_s32(SUM + i), vld1q_s32(Sp + i))); i 604 modules/imgproc/src/smooth.cpp for( ; i < width; i++ ) i 605 modules/imgproc/src/smooth.cpp SUM[i] += Sp[i]; i 621 modules/imgproc/src/smooth.cpp i = 0; i 629 modules/imgproc/src/smooth.cpp for( ; i < width-4; i+=4) i 631 modules/imgproc/src/smooth.cpp __m128i _sm = _mm_loadu_si128((const __m128i*)(Sm+i)); i 632 modules/imgproc/src/smooth.cpp __m128i _s0 = _mm_add_epi32(_mm_loadu_si128((const __m128i*)(SUM+i)), i 633 modules/imgproc/src/smooth.cpp _mm_loadu_si128((const __m128i*)(Sp+i))); i 640 modules/imgproc/src/smooth.cpp _mm_storel_epi64((__m128i*)(D+i), _res); i 641 modules/imgproc/src/smooth.cpp _mm_storeu_si128((__m128i*)(SUM+i), _mm_sub_epi32(_s0,_sm)); i 646 modules/imgproc/src/smooth.cpp for( ; i <= width-8; i+=8 ) i 648 modules/imgproc/src/smooth.cpp int32x4_t v_s0 = vaddq_s32(vld1q_s32(SUM + i), vld1q_s32(Sp + i)); i 649 modules/imgproc/src/smooth.cpp int32x4_t v_s01 = vaddq_s32(vld1q_s32(SUM + i + 4), vld1q_s32(Sp + i + 4)); i 653 modules/imgproc/src/smooth.cpp vst1q_u16(D + i, vcombine_u16(vqmovn_u32(v_s0d), vqmovn_u32(v_s01d))); i 655 modules/imgproc/src/smooth.cpp vst1q_s32(SUM + i, vsubq_s32(v_s0, vld1q_s32(Sm + i))); i 656 modules/imgproc/src/smooth.cpp vst1q_s32(SUM + i + 4, vsubq_s32(v_s01, vld1q_s32(Sm + i + 4))); i 659 modules/imgproc/src/smooth.cpp for( ; i < width; i++ ) i 661 modules/imgproc/src/smooth.cpp int s0 = SUM[i] + Sp[i]; i 662 modules/imgproc/src/smooth.cpp D[i] = saturate_cast<ushort>(s0*_scale); i 663 modules/imgproc/src/smooth.cpp SUM[i] = s0 - Sm[i]; i 668 modules/imgproc/src/smooth.cpp i = 0; i 675 modules/imgproc/src/smooth.cpp for( ; i < width-4; i+=4 ) i 677 modules/imgproc/src/smooth.cpp __m128i _sm = _mm_loadu_si128((const __m128i*)(Sm+i)); i 678 modules/imgproc/src/smooth.cpp __m128i _s0 = _mm_add_epi32(_mm_loadu_si128((const __m128i*)(SUM+i)), i 679 modules/imgproc/src/smooth.cpp _mm_loadu_si128((const __m128i*)(Sp+i))); i 684 modules/imgproc/src/smooth.cpp _mm_storel_epi64((__m128i*)(D+i), _res); i 685 modules/imgproc/src/smooth.cpp _mm_storeu_si128((__m128i*)(SUM+i), _mm_sub_epi32(_s0,_sm)); i 689 modules/imgproc/src/smooth.cpp for( ; i <= width-8; i+=8 ) i 691 modules/imgproc/src/smooth.cpp int32x4_t v_s0 = vaddq_s32(vld1q_s32(SUM + i), vld1q_s32(Sp + i)); i 692 modules/imgproc/src/smooth.cpp int32x4_t v_s01 = vaddq_s32(vld1q_s32(SUM + i + 4), vld1q_s32(Sp + i + 4)); i 694 modules/imgproc/src/smooth.cpp vst1q_u16(D + i, vcombine_u16(vqmovun_s32(v_s0), vqmovun_s32(v_s01))); i 696 modules/imgproc/src/smooth.cpp vst1q_s32(SUM + i, vsubq_s32(v_s0, vld1q_s32(Sm + i))); i 697 modules/imgproc/src/smooth.cpp vst1q_s32(SUM + i + 4, vsubq_s32(v_s01, vld1q_s32(Sm + i + 4))); i 701 modules/imgproc/src/smooth.cpp for( ; i < width; i++ ) i 703 modules/imgproc/src/smooth.cpp int s0 = SUM[i] + Sp[i]; i 704 modules/imgproc/src/smooth.cpp D[i] = saturate_cast<ushort>(s0); i 705 modules/imgproc/src/smooth.cpp SUM[i] = s0 - Sm[i]; i 734 modules/imgproc/src/smooth.cpp int i; i 755 modules/imgproc/src/smooth.cpp i = 0; i 759 modules/imgproc/src/smooth.cpp for( ; i <= width-4; i+=4 ) i 761 modules/imgproc/src/smooth.cpp __m128i _sum = _mm_loadu_si128((const __m128i*)(SUM+i)); i 762 modules/imgproc/src/smooth.cpp __m128i _sp = _mm_loadu_si128((const __m128i*)(Sp+i)); i 763 modules/imgproc/src/smooth.cpp _mm_storeu_si128((__m128i*)(SUM+i),_mm_add_epi32(_sum, _sp)); i 767 modules/imgproc/src/smooth.cpp for( ; i <= width - 4; i+=4 ) i 768 modules/imgproc/src/smooth.cpp vst1q_s32(SUM + i, vaddq_s32(vld1q_s32(SUM + i), vld1q_s32(Sp + i))); i 770 modules/imgproc/src/smooth.cpp for( ; i < width; i++ ) i 771 modules/imgproc/src/smooth.cpp SUM[i] += Sp[i]; i 787 modules/imgproc/src/smooth.cpp i = 0; i 792 modules/imgproc/src/smooth.cpp for( ; i <= width-4; i+=4 ) i 794 modules/imgproc/src/smooth.cpp __m128i _sm = _mm_loadu_si128((const __m128i*)(Sm+i)); i 796 modules/imgproc/src/smooth.cpp __m128i _s0 = _mm_add_epi32(_mm_loadu_si128((const __m128i*)(SUM+i)), i 797 modules/imgproc/src/smooth.cpp _mm_loadu_si128((const __m128i*)(Sp+i))); i 801 modules/imgproc/src/smooth.cpp _mm_storeu_si128((__m128i*)(D+i), _s0T); i 802 modules/imgproc/src/smooth.cpp _mm_storeu_si128((__m128i*)(SUM+i),_mm_sub_epi32(_s0,_sm)); i 807 modules/imgproc/src/smooth.cpp for( ; i <= width-4; i+=4 ) i 809 modules/imgproc/src/smooth.cpp int32x4_t v_s0 = vaddq_s32(vld1q_s32(SUM + i), vld1q_s32(Sp + i)); i 812 modules/imgproc/src/smooth.cpp vst1q_s32(D + i, v_s0d); i 814 modules/imgproc/src/smooth.cpp vst1q_s32(SUM + i, vsubq_s32(v_s0, vld1q_s32(Sm + i))); i 817 modules/imgproc/src/smooth.cpp for( ; i < width; i++ ) i 819 modules/imgproc/src/smooth.cpp int s0 = SUM[i] + Sp[i]; i 820 modules/imgproc/src/smooth.cpp D[i] = saturate_cast<int>(s0*_scale); i 821 modules/imgproc/src/smooth.cpp SUM[i] = s0 - Sm[i]; i 826 modules/imgproc/src/smooth.cpp i = 0; i 830 modules/imgproc/src/smooth.cpp for( ; i <= width-4; i+=4 ) i 832 modules/imgproc/src/smooth.cpp __m128i _sm = _mm_loadu_si128((const __m128i*)(Sm+i)); i 833 modules/imgproc/src/smooth.cpp __m128i _s0 = _mm_add_epi32(_mm_loadu_si128((const __m128i*)(SUM+i)), i 834 modules/imgproc/src/smooth.cpp _mm_loadu_si128((const __m128i*)(Sp+i))); i 836 modules/imgproc/src/smooth.cpp _mm_storeu_si128((__m128i*)(D+i), _s0); i 837 modules/imgproc/src/smooth.cpp _mm_storeu_si128((__m128i*)(SUM+i), _mm_sub_epi32(_s0,_sm)); i 841 modules/imgproc/src/smooth.cpp for( ; i <= width-4; i+=4 ) i 843 modules/imgproc/src/smooth.cpp int32x4_t v_s0 = vaddq_s32(vld1q_s32(SUM + i), vld1q_s32(Sp + i)); i 845 modules/imgproc/src/smooth.cpp vst1q_s32(D + i, v_s0); i 846 modules/imgproc/src/smooth.cpp vst1q_s32(SUM + i, vsubq_s32(v_s0, vld1q_s32(Sm + i))); i 850 modules/imgproc/src/smooth.cpp for( ; i < width; i++ ) i 852 modules/imgproc/src/smooth.cpp int s0 = SUM[i] + Sp[i]; i 853 modules/imgproc/src/smooth.cpp D[i] = s0; i 854 modules/imgproc/src/smooth.cpp SUM[i] = s0 - Sm[i]; i 884 modules/imgproc/src/smooth.cpp int i; i 907 modules/imgproc/src/smooth.cpp i = 0; i 912 modules/imgproc/src/smooth.cpp for( ; i < width-4; i+=4 ) i 914 modules/imgproc/src/smooth.cpp __m128i _sum = _mm_loadu_si128((const __m128i*)(SUM+i)); i 915 modules/imgproc/src/smooth.cpp __m128i _sp = _mm_loadu_si128((const __m128i*)(Sp+i)); i 916 modules/imgproc/src/smooth.cpp _mm_storeu_si128((__m128i*)(SUM+i), _mm_add_epi32(_sum, _sp)); i 920 modules/imgproc/src/smooth.cpp for( ; i <= width - 4; i+=4 ) i 921 modules/imgproc/src/smooth.cpp vst1q_s32(SUM + i, vaddq_s32(vld1q_s32(SUM + i), vld1q_s32(Sp + i))); i 924 modules/imgproc/src/smooth.cpp for( ; i < width; i++ ) i 925 modules/imgproc/src/smooth.cpp SUM[i] += Sp[i]; i 941 modules/imgproc/src/smooth.cpp i = 0; i 948 modules/imgproc/src/smooth.cpp for( ; i < width-4; i+=4) i 950 modules/imgproc/src/smooth.cpp __m128i _sm = _mm_loadu_si128((const __m128i*)(Sm+i)); i 951 modules/imgproc/src/smooth.cpp __m128i _s0 = _mm_add_epi32(_mm_loadu_si128((const __m128i*)(SUM+i)), i 952 modules/imgproc/src/smooth.cpp _mm_loadu_si128((const __m128i*)(Sp+i))); i 954 modules/imgproc/src/smooth.cpp _mm_storeu_ps(D+i, _mm_mul_ps(scale4, _mm_cvtepi32_ps(_s0))); i 955 modules/imgproc/src/smooth.cpp _mm_storeu_si128((__m128i*)(SUM+i), _mm_sub_epi32(_s0,_sm)); i 960 modules/imgproc/src/smooth.cpp for( ; i <= width-8; i+=8 ) i 962 modules/imgproc/src/smooth.cpp int32x4_t v_s0 = vaddq_s32(vld1q_s32(SUM + i), vld1q_s32(Sp + i)); i 963 modules/imgproc/src/smooth.cpp int32x4_t v_s01 = vaddq_s32(vld1q_s32(SUM + i + 4), vld1q_s32(Sp + i + 4)); i 965 modules/imgproc/src/smooth.cpp vst1q_f32(D + i, vmulq_f32(vcvtq_f32_s32(v_s0), v_scale)); i 966 modules/imgproc/src/smooth.cpp vst1q_f32(D + i + 4, vmulq_f32(vcvtq_f32_s32(v_s01), v_scale)); i 968 modules/imgproc/src/smooth.cpp vst1q_s32(SUM + i, vsubq_s32(v_s0, vld1q_s32(Sm + i))); i 969 modules/imgproc/src/smooth.cpp vst1q_s32(SUM + i + 4, vsubq_s32(v_s01, vld1q_s32(Sm + i + 4))); i 973 modules/imgproc/src/smooth.cpp for( ; i < width; i++ ) i 975 modules/imgproc/src/smooth.cpp int s0 = SUM[i] + Sp[i]; i 976 modules/imgproc/src/smooth.cpp D[i] = (float)(s0*_scale); i 977 modules/imgproc/src/smooth.cpp SUM[i] = s0 - Sm[i]; i 982 modules/imgproc/src/smooth.cpp i = 0; i 987 modules/imgproc/src/smooth.cpp for( ; i < width-4; i+=4) i 989 modules/imgproc/src/smooth.cpp __m128i _sm = _mm_loadu_si128((const __m128i*)(Sm+i)); i 990 modules/imgproc/src/smooth.cpp __m128i _s0 = _mm_add_epi32(_mm_loadu_si128((const __m128i*)(SUM+i)), i 991 modules/imgproc/src/smooth.cpp _mm_loadu_si128((const __m128i*)(Sp+i))); i 993 modules/imgproc/src/smooth.cpp _mm_storeu_ps(D+i, _mm_cvtepi32_ps(_s0)); i 994 modules/imgproc/src/smooth.cpp _mm_storeu_si128((__m128i*)(SUM+i), _mm_sub_epi32(_s0,_sm)); i 998 modules/imgproc/src/smooth.cpp for( ; i <= width-8; i+=8 ) i 1000 modules/imgproc/src/smooth.cpp int32x4_t v_s0 = vaddq_s32(vld1q_s32(SUM + i), vld1q_s32(Sp + i)); i 1001 modules/imgproc/src/smooth.cpp int32x4_t v_s01 = vaddq_s32(vld1q_s32(SUM + i + 4), vld1q_s32(Sp + i + 4)); i 1003 modules/imgproc/src/smooth.cpp vst1q_f32(D + i, vcvtq_f32_s32(v_s0)); i 1004 modules/imgproc/src/smooth.cpp vst1q_f32(D + i + 4, vcvtq_f32_s32(v_s01)); i 1006 modules/imgproc/src/smooth.cpp vst1q_s32(SUM + i, vsubq_s32(v_s0, vld1q_s32(Sm + i))); i 1007 modules/imgproc/src/smooth.cpp vst1q_s32(SUM + i + 4, vsubq_s32(v_s01, vld1q_s32(Sm + i + 4))); i 1011 modules/imgproc/src/smooth.cpp for( ; i < width; i++ ) i 1013 modules/imgproc/src/smooth.cpp int s0 = SUM[i] + Sp[i]; i 1014 modules/imgproc/src/smooth.cpp D[i] = (float)(s0); i 1015 modules/imgproc/src/smooth.cpp SUM[i] = s0 - Sm[i]; i 1438 modules/imgproc/src/smooth.cpp int i = 0, k, ksz_cn = ksize*cn; i 1444 modules/imgproc/src/smooth.cpp for( i = 0; i < ksz_cn; i += cn ) i 1446 modules/imgproc/src/smooth.cpp ST val = (ST)S[i]; i 1450 modules/imgproc/src/smooth.cpp for( i = 0; i < width; i += cn ) i 1452 modules/imgproc/src/smooth.cpp ST val0 = (ST)S[i], val1 = (ST)S[i + ksz_cn]; i 1454 modules/imgproc/src/smooth.cpp D[i+cn] = s; i 1558 modules/imgproc/src/smooth.cpp int i; i 1559 modules/imgproc/src/smooth.cpp for( i = 0; i < n; i++ ) i 1561 modules/imgproc/src/smooth.cpp double x = i - (n-1)*0.5; i 1562 modules/imgproc/src/smooth.cpp double t = fixed_kernel ? (double)fixed_kernel[i] : std::exp(scale2X*x*x); i 1565 modules/imgproc/src/smooth.cpp cf[i] = (float)t; i 1566 modules/imgproc/src/smooth.cpp sum += cf[i]; i 1570 modules/imgproc/src/smooth.cpp cd[i] = t; i 1571 modules/imgproc/src/smooth.cpp sum += cd[i]; i 1576 modules/imgproc/src/smooth.cpp for( i = 0; i < n; i++ ) i 1579 modules/imgproc/src/smooth.cpp cf[i] = (float)(cf[i]*sum); i 1581 modules/imgproc/src/smooth.cpp cd[i] *= sum; i 1799 modules/imgproc/src/smooth.cpp int i; i 1800 modules/imgproc/src/smooth.cpp for( i = 0; i < 16; ++i ) i 1801 modules/imgproc/src/smooth.cpp y[i] = (HT)(y[i] + x[i]); i 1806 modules/imgproc/src/smooth.cpp int i; i 1807 modules/imgproc/src/smooth.cpp for( i = 0; i < 16; ++i ) i 1808 modules/imgproc/src/smooth.cpp y[i] = (HT)(y[i] - x[i]); i 1814 modules/imgproc/src/smooth.cpp for( int i = 0; i < 16; ++i ) i 1815 modules/imgproc/src/smooth.cpp y[i] = (HT)(y[i] + a * x[i]); i 1850 modules/imgproc/src/smooth.cpp int i, j, k, c, n = std::min(_dst.cols - x, STRIPE_SIZE) + r*2; i 1863 modules/imgproc/src/smooth.cpp for( i = 1; i < r; i++ ) i 1865 modules/imgproc/src/smooth.cpp const uchar* p = src + sstep*std::min(i, m-1); i 1871 modules/imgproc/src/smooth.cpp for( i = 0; i < m; i++ ) i 1873 modules/imgproc/src/smooth.cpp const uchar* p0 = src + sstep * std::max( 0, i-r-1 ); i 1874 modules/imgproc/src/smooth.cpp const uchar* p1 = src + sstep * std::min( m-1, i+r ); i 1947 modules/imgproc/src/smooth.cpp dst[dstep*i+cn*j+c] = (uchar)(16*k + b); i 2010 modules/imgproc/src/smooth.cpp dst[dstep*i+cn*j+c] = (uchar)(16*k + b); i 2381 modules/imgproc/src/smooth.cpp int i, j, k, cn = _src.channels(); i 2395 modules/imgproc/src/smooth.cpp for( i = 0; i < len; i++, src += sdelta0, dst += ddelta ) i 2398 modules/imgproc/src/smooth.cpp WT p0 = src[i > 0 ? -sdelta : 0]; i 2400 modules/imgproc/src/smooth.cpp WT p2 = src[i < len - 1 ? sdelta : 0]; i 2409 modules/imgproc/src/smooth.cpp for( i = 0; i < size.height; i++, dst += dstep ) i 2411 modules/imgproc/src/smooth.cpp const T* row0 = src + std::max(i - 1, 0)*sstep; i 2412 modules/imgproc/src/smooth.cpp const T* row1 = src + i*sstep; i 2413 modules/imgproc/src/smooth.cpp const T* row2 = src + std::min(i + 1, size.height-1)*sstep; i 2464 modules/imgproc/src/smooth.cpp for( i = 0; i < len; i++, src += sdelta0, dst += ddelta ) i 2467 modules/imgproc/src/smooth.cpp int i1 = i > 0 ? -sdelta : 0; i 2468 modules/imgproc/src/smooth.cpp int i0 = i > 1 ? -sdelta*2 : i1; i 2469 modules/imgproc/src/smooth.cpp int i3 = i < len-1 ? sdelta : 0; i 2470 modules/imgproc/src/smooth.cpp int i4 = i < len-2 ? sdelta*2 : i3; i 2481 modules/imgproc/src/smooth.cpp for( i = 0; i < size.height; i++, dst += dstep ) i 2484 modules/imgproc/src/smooth.cpp row[0] = src + std::max(i - 2, 0)*sstep; i 2485 modules/imgproc/src/smooth.cpp row[1] = src + std::max(i - 1, 0)*sstep; i 2486 modules/imgproc/src/smooth.cpp row[2] = src + i*sstep; i 2487 modules/imgproc/src/smooth.cpp row[3] = src + std::min(i + 1, size.height-1)*sstep; i 2488 modules/imgproc/src/smooth.cpp row[4] = src + std::min(i + 2, size.height-1)*sstep; i 2768 modules/imgproc/src/smooth.cpp int i, j, cn = dest->channels(), k; i 2777 modules/imgproc/src/smooth.cpp for( i = range.start; i < range.end; i++ ) i 2779 modules/imgproc/src/smooth.cpp const uchar* sptr = temp->ptr(i+radius) + radius*cn; i 2780 modules/imgproc/src/smooth.cpp uchar* dptr = dest->ptr(i); i 2975 modules/imgproc/src/smooth.cpp int i, j, maxk, radius; i 3006 modules/imgproc/src/smooth.cpp for( i = -radius, maxk = 0; i <= radius; i++ ) i 3009 modules/imgproc/src/smooth.cpp double r = std::sqrt((double)i * i + (double)j * j); i 3013 modules/imgproc/src/smooth.cpp space_ofs[maxk++] = (int)(i * temp.step + j * cn); i 3063 modules/imgproc/src/smooth.cpp int i, j, maxk, radius; i 3113 modules/imgproc/src/smooth.cpp for( i = 0; i < 256*cn; i++ ) i 3114 modules/imgproc/src/smooth.cpp color_weight[i] = (float)std::exp(i*i*gauss_color_coeff); i 3117 modules/imgproc/src/smooth.cpp for( i = -radius, maxk = 0; i <= radius; i++ ) i 3123 modules/imgproc/src/smooth.cpp double r = std::sqrt((double)i*i + (double)j*j); i 3127 modules/imgproc/src/smooth.cpp space_ofs[maxk++] = (int)(i*temp.step + j*cn); i 3150 modules/imgproc/src/smooth.cpp int i, j, k; i 3159 modules/imgproc/src/smooth.cpp for( i = range.start; i < range.end; i++ ) i 3161 modules/imgproc/src/smooth.cpp const float* sptr = temp->ptr<float>(i+radius) + radius*cn; i 3162 modules/imgproc/src/smooth.cpp float* dptr = dest->ptr<float>(i); i 3324 modules/imgproc/src/smooth.cpp int i, j, maxk, radius; i 3378 modules/imgproc/src/smooth.cpp for( i = 0; i < kExpNumBins+2; i++ ) i 3382 modules/imgproc/src/smooth.cpp double val = i / scale_index; i 3383 modules/imgproc/src/smooth.cpp expLUT[i] = (float)std::exp(val * val * gauss_color_coeff); i 3384 modules/imgproc/src/smooth.cpp lastExpVal = expLUT[i]; i 3387 modules/imgproc/src/smooth.cpp expLUT[i] = 0.f; i 3391 modules/imgproc/src/smooth.cpp for( i = -radius, maxk = 0; i <= radius; i++ ) i 3394 modules/imgproc/src/smooth.cpp double r = std::sqrt((double)i*i + (double)j*j); i 3398 modules/imgproc/src/smooth.cpp space_ofs[maxk++] = (int)(i*(temp.step/sizeof(float)) + j*cn); i 280 modules/imgproc/src/subdivision2d.cpp int i, maxEdges = (int)(qedges.size() * 4); i 300 modules/imgproc/src/subdivision2d.cpp for( i = 0; i < maxEdges; i++ ) i 453 modules/imgproc/src/subdivision2d.cpp int i, max_edges = (int)(qedges.size()*4); i 455 modules/imgproc/src/subdivision2d.cpp for( i = 0; i < max_edges; i++ ) i 482 modules/imgproc/src/subdivision2d.cpp for( size_t i = 0; i < ptvec.size(); i++ ) i 483 modules/imgproc/src/subdivision2d.cpp insert(ptvec[i]); i 533 modules/imgproc/src/subdivision2d.cpp size_t i, total = qedges.size(); i 535 modules/imgproc/src/subdivision2d.cpp for( i = 0; i < total; i++ ) i 536 modules/imgproc/src/subdivision2d.cpp qedges[i].pt[1] = qedges[i].pt[3] = 0; i 539 modules/imgproc/src/subdivision2d.cpp for( i = 0; i < total; i++ ) i 541 modules/imgproc/src/subdivision2d.cpp if( vtx[i].isvirtual() ) i 542 modules/imgproc/src/subdivision2d.cpp deletePoint((int)i); i 579 modules/imgproc/src/subdivision2d.cpp int i, total = (int)qedges.size(); i 582 modules/imgproc/src/subdivision2d.cpp for( i = 4; i < total; i++ ) i 584 modules/imgproc/src/subdivision2d.cpp QuadEdge& quadedge = qedges[i]; i 589 modules/imgproc/src/subdivision2d.cpp int edge0 = (int)(i*4); i 664 modules/imgproc/src/subdivision2d.cpp int i, total = (int)vtx.size(); i 666 modules/imgproc/src/subdivision2d.cpp for( i = 0; i < total; i++ ) i 713 modules/imgproc/src/subdivision2d.cpp for( size_t i = 4; i < qedges.size(); i++ ) i 715 modules/imgproc/src/subdivision2d.cpp if( qedges[i].isfree() ) i 717 modules/imgproc/src/subdivision2d.cpp if( qedges[i].pt[0] > 0 && qedges[i].pt[2] > 0 ) i 719 modules/imgproc/src/subdivision2d.cpp Point2f org = vtx[qedges[i].pt[0]].pt; i 720 modules/imgproc/src/subdivision2d.cpp Point2f dst = vtx[qedges[i].pt[2]].pt; i 729 modules/imgproc/src/subdivision2d.cpp int i, total = (int)(qedges.size()*4); i 732 modules/imgproc/src/subdivision2d.cpp for( i = 4; i < total; i += 2 ) i 734 modules/imgproc/src/subdivision2d.cpp if( edgemask[i] ) i 737 modules/imgproc/src/subdivision2d.cpp int edge = i; i 760 modules/imgproc/src/subdivision2d.cpp size_t i, total; i 762 modules/imgproc/src/subdivision2d.cpp i = 4, total = vtx.size(); i 764 modules/imgproc/src/subdivision2d.cpp i = 0, total = idx.size(); i 766 modules/imgproc/src/subdivision2d.cpp for( ; i < total; i++ ) i 768 modules/imgproc/src/subdivision2d.cpp int k = idx.empty() ? (int)i : idx[i]; i 791 modules/imgproc/src/subdivision2d.cpp int i, j, total = (int)qedges.size(); i 793 modules/imgproc/src/subdivision2d.cpp for( i = 0; i < total; i++ ) i 795 modules/imgproc/src/subdivision2d.cpp const QuadEdge& qe = qedges[i]; i 802 modules/imgproc/src/subdivision2d.cpp int e = (int)(i*4 + j); i 93 modules/imgproc/src/sumpixels.cpp for (int i = 0; i < size.height; ++i) i 95 modules/imgproc/src/sumpixels.cpp const uchar * src_row = src + _srcstep * i; i 96 modules/imgproc/src/sumpixels.cpp int * prev_sum_row = (int *)((uchar *)sum + _sumstep * i) + 1; i 97 modules/imgproc/src/sumpixels.cpp int * sum_row = (int *)((uchar *)sum + _sumstep * (i + 1)) + 1; i 521 modules/imgproc/src/templmatch.cpp for (int i = 0; i < cn; i ++) i 522 modules/imgproc/src/templmatch.cpp templ_sqsum_sum += templ_sqsum[i] - scale * templ_sum[i] * templ_sum[i]; i 688 modules/imgproc/src/templmatch.cpp int i, k, bufSize = 0; i 744 modules/imgproc/src/templmatch.cpp for( i = 0; i < tileCount; i++ ) i 746 modules/imgproc/src/templmatch.cpp int x = (i%tileCountX)*blocksize.width; i 747 modules/imgproc/src/templmatch.cpp int y = (i/tileCountX)*blocksize.height; i 1029 modules/imgproc/src/templmatch.cpp int i, j, k; i 1031 modules/imgproc/src/templmatch.cpp for( i = 0; i < result.rows; i++ ) i 1033 modules/imgproc/src/templmatch.cpp float* rrow = result.ptr<float>(i); i 1034 modules/imgproc/src/templmatch.cpp int idx = i * sumstep; i 1035 modules/imgproc/src/templmatch.cpp int idx2 = i * sqstep; i 52 modules/imgproc/src/thresh.cpp int i, j, j_scalar = 0; i 131 modules/imgproc/src/thresh.cpp for( i = 0; i <= thresh; i++ ) i 132 modules/imgproc/src/thresh.cpp tab[i] = 0; i 133 modules/imgproc/src/thresh.cpp for( ; i < 256; i++ ) i 134 modules/imgproc/src/thresh.cpp tab[i] = maxval; i 137 modules/imgproc/src/thresh.cpp for( i = 0; i <= thresh; i++ ) i 138 modules/imgproc/src/thresh.cpp tab[i] = maxval; i 139 modules/imgproc/src/thresh.cpp for( ; i < 256; i++ ) i 140 modules/imgproc/src/thresh.cpp tab[i] = 0; i 143 modules/imgproc/src/thresh.cpp for( i = 0; i <= thresh; i++ ) i 144 modules/imgproc/src/thresh.cpp tab[i] = (uchar)i; i 145 modules/imgproc/src/thresh.cpp for( ; i < 256; i++ ) i 146 modules/imgproc/src/thresh.cpp tab[i] = thresh; i 149 modules/imgproc/src/thresh.cpp for( i = 0; i <= thresh; i++ ) i 150 modules/imgproc/src/thresh.cpp tab[i] = 0; i 151 modules/imgproc/src/thresh.cpp for( ; i < 256; i++ ) i 152 modules/imgproc/src/thresh.cpp tab[i] = (uchar)i; i 155 modules/imgproc/src/thresh.cpp for( i = 0; i <= thresh; i++ ) i 156 modules/imgproc/src/thresh.cpp tab[i] = (uchar)i; i 157 modules/imgproc/src/thresh.cpp for( ; i < 256; i++ ) i 158 modules/imgproc/src/thresh.cpp tab[i] = 0; i 173 modules/imgproc/src/thresh.cpp for( i = 0; i < roi.height; i++ ) i 175 modules/imgproc/src/thresh.cpp const uchar* src = _src.ptr() + src_step*i; i 176 modules/imgproc/src/thresh.cpp uchar* dst = _dst.ptr() + dst_step*i; i 294 modules/imgproc/src/thresh.cpp for( i = 0; i < roi.height; i++ ) i 296 modules/imgproc/src/thresh.cpp const uchar* src = _src.ptr() + src_step*i; i 297 modules/imgproc/src/thresh.cpp uchar* dst = _dst.ptr() + dst_step*i; i 305 modules/imgproc/src/thresh.cpp for( i = 0; i < roi.height; i++ ) i 307 modules/imgproc/src/thresh.cpp const uchar* src = _src.ptr() + src_step*i; i 308 modules/imgproc/src/thresh.cpp uchar* dst = _dst.ptr() + dst_step*i; i 316 modules/imgproc/src/thresh.cpp for( i = 0; i < roi.height; i++ ) i 318 modules/imgproc/src/thresh.cpp const uchar* src = _src.ptr() + src_step*i; i 319 modules/imgproc/src/thresh.cpp uchar* dst = _dst.ptr() + dst_step*i; i 327 modules/imgproc/src/thresh.cpp for( i = 0; i < roi.height; i++ ) i 329 modules/imgproc/src/thresh.cpp const uchar* src = _src.ptr() + src_step*i; i 330 modules/imgproc/src/thresh.cpp uchar* dst = _dst.ptr() + dst_step*i; i 341 modules/imgproc/src/thresh.cpp for( i = 0; i < roi.height; i++ ) i 343 modules/imgproc/src/thresh.cpp const uchar* src = _src.ptr() + src_step*i; i 344 modules/imgproc/src/thresh.cpp uchar* dst = _dst.ptr() + dst_step*i; i 360 modules/imgproc/src/thresh.cpp for( i = 0; i < roi.height; i++ ) i 362 modules/imgproc/src/thresh.cpp const uchar* src = _src.ptr() + src_step*i; i 363 modules/imgproc/src/thresh.cpp uchar* dst = _dst.ptr() + dst_step*i; i 391 modules/imgproc/src/thresh.cpp int i, j; i 475 modules/imgproc/src/thresh.cpp for( i = 0; i < roi.height; i++, src += src_step, dst += dst_step ) i 511 modules/imgproc/src/thresh.cpp for( i = 0; i < roi.height; i++, src += src_step, dst += dst_step ) i 547 modules/imgproc/src/thresh.cpp for( i = 0; i < roi.height; i++, src += src_step, dst += dst_step ) i 578 modules/imgproc/src/thresh.cpp for( i = 0; i < roi.height; i++, src += src_step, dst += dst_step ) i 616 modules/imgproc/src/thresh.cpp for( i = 0; i < roi.height; i++, src += src_step, dst += dst_step ) i 660 modules/imgproc/src/thresh.cpp int i, j; i 720 modules/imgproc/src/thresh.cpp for( i = 0; i < roi.height; i++, src += src_step, dst += dst_step ) i 758 modules/imgproc/src/thresh.cpp for( i = 0; i < roi.height; i++, src += src_step, dst += dst_step ) i 796 modules/imgproc/src/thresh.cpp for( i = 0; i < roi.height; i++, src += src_step, dst += dst_step ) i 827 modules/imgproc/src/thresh.cpp for( i = 0; i < roi.height; i++, src += src_step, dst += dst_step ) i 866 modules/imgproc/src/thresh.cpp for( i = 0; i < roi.height; i++, src += src_step, dst += dst_step ) i 938 modules/imgproc/src/thresh.cpp int i, j, h[N] = {0}; i 939 modules/imgproc/src/thresh.cpp for( i = 0; i < size.height; i++ ) i 941 modules/imgproc/src/thresh.cpp const uchar* src = _src.ptr() + step*i; i 957 modules/imgproc/src/thresh.cpp for( i = 0; i < N; i++ ) i 958 modules/imgproc/src/thresh.cpp mu += i*(double)h[i]; i 964 modules/imgproc/src/thresh.cpp for( i = 0; i < N; i++ ) i 968 modules/imgproc/src/thresh.cpp p_i = h[i]*scale; i 976 modules/imgproc/src/thresh.cpp mu1 = (mu1 + i*p_i)/q1; i 982 modules/imgproc/src/thresh.cpp max_val = i; i 1002 modules/imgproc/src/thresh.cpp int i, j, h[N] = {0}; i 1003 modules/imgproc/src/thresh.cpp for( i = 0; i < size.height; i++ ) i 1005 modules/imgproc/src/thresh.cpp const uchar* src = _src.ptr() + step*i; i 1024 modules/imgproc/src/thresh.cpp for( i = 0; i < N; i++ ) i 1026 modules/imgproc/src/thresh.cpp if( h[i] > 0 ) i 1028 modules/imgproc/src/thresh.cpp left_bound = i; i 1035 modules/imgproc/src/thresh.cpp for( i = N-1; i > 0; i-- ) i 1037 modules/imgproc/src/thresh.cpp if( h[i] > 0 ) i 1039 modules/imgproc/src/thresh.cpp right_bound = i; i 1046 modules/imgproc/src/thresh.cpp for( i = 0; i < N; i++ ) i 1048 modules/imgproc/src/thresh.cpp if( h[i] > max) i 1050 modules/imgproc/src/thresh.cpp max = h[i]; i 1051 modules/imgproc/src/thresh.cpp max_ind = i; i 1058 modules/imgproc/src/thresh.cpp i = 0, j = N-1; i 1059 modules/imgproc/src/thresh.cpp while( i < j ) i 1061 modules/imgproc/src/thresh.cpp temp = h[i]; h[i] = h[j]; h[j] = temp; i 1062 modules/imgproc/src/thresh.cpp i++; j--; i 1076 modules/imgproc/src/thresh.cpp for( i = left_bound+1; i <= max_ind; i++ ) i 1078 modules/imgproc/src/thresh.cpp tempdist = a*i + b*h[i]; i 1082 modules/imgproc/src/thresh.cpp thresh = i; i 1306 modules/imgproc/src/thresh.cpp int i, j; i 1312 modules/imgproc/src/thresh.cpp for( i = 0; i < 768; i++ ) i 1313 modules/imgproc/src/thresh.cpp tab[i] = (uchar)(i - 255 > -idelta ? imaxval : 0); i 1315 modules/imgproc/src/thresh.cpp for( i = 0; i < 768; i++ ) i 1316 modules/imgproc/src/thresh.cpp tab[i] = (uchar)(i - 255 <= -idelta ? imaxval : 0); i 1326 modules/imgproc/src/thresh.cpp for( i = 0; i < size.height; i++ ) i 1328 modules/imgproc/src/thresh.cpp const uchar* sdata = src.ptr(i); i 1329 modules/imgproc/src/thresh.cpp const uchar* mdata = mean.ptr(i); i 1330 modules/imgproc/src/thresh.cpp uchar* ddata = dst.ptr(i); i 131 modules/imgproc/src/undistort.cpp for( int i = 0; i < size.height; i++ ) i 133 modules/imgproc/src/undistort.cpp float* m1f = map1.ptr<float>(i); i 134 modules/imgproc/src/undistort.cpp float* m2f = map2.empty() ? 0 : map2.ptr<float>(i); i 137 modules/imgproc/src/undistort.cpp double _x = i*ir[1] + ir[2], _y = i*ir[4] + ir[5], _w = i*ir[7] + ir[8]; i 278 modules/imgproc/src/undistort.cpp int i, j, n, iters = 1; i 343 modules/imgproc/src/undistort.cpp for( i = 0; i < n; i++ ) i 348 modules/imgproc/src/undistort.cpp x = srcf[i*sstep].x; i 349 modules/imgproc/src/undistort.cpp y = srcf[i*sstep].y; i 353 modules/imgproc/src/undistort.cpp x = srcd[i*sstep].x; i 354 modules/imgproc/src/undistort.cpp y = srcd[i*sstep].y; i 379 modules/imgproc/src/undistort.cpp dstf[i*dstep].x = (float)x; i 380 modules/imgproc/src/undistort.cpp dstf[i*dstep].y = (float)y; i 384 modules/imgproc/src/undistort.cpp dstd[i*dstep].x = x; i 385 modules/imgproc/src/undistort.cpp dstd[i*dstep].y = y; i 464 modules/imgproc/src/undistort.cpp int i, maxiter = 5; i 466 modules/imgproc/src/undistort.cpp for( i = 0; i < maxiter; i++ ) i 485 modules/imgproc/src/undistort.cpp if( i < maxiter ) i 487 modules/imgproc/src/undistort.cpp avgiter += i; i 493 modules/imgproc/src/undistort.cpp return i < maxiter ? Point2f((float)q[0], (float)q[1]) : Point2f(-FLT_MAX, -FLT_MAX); i 523 modules/imgproc/src/undistort.cpp for( int i = 0; i < N; i++ ) i 526 modules/imgproc/src/undistort.cpp Point2f p((float)j*imageSize.width/(N-1), (float)i*imageSize.height/(N-1)); i 108 modules/imgproc/test/ocl/test_accumulate.cpp for (int i = 0; i < test_loop_times; ++i) i 121 modules/imgproc/test/ocl/test_accumulate.cpp for (int i = 0; i < test_loop_times; ++i) i 138 modules/imgproc/test/ocl/test_accumulate.cpp for (int i = 0; i < test_loop_times; ++i) i 151 modules/imgproc/test/ocl/test_accumulate.cpp for (int i = 0; i < test_loop_times; ++i) i 168 modules/imgproc/test/ocl/test_accumulate.cpp for (int i = 0; i < test_loop_times; ++i) i 181 modules/imgproc/test/ocl/test_accumulate.cpp for (int i = 0; i < test_loop_times; ++i) i 198 modules/imgproc/test/ocl/test_accumulate.cpp for (int i = 0; i < test_loop_times; ++i) i 211 modules/imgproc/test/ocl/test_accumulate.cpp for (int i = 0; i < test_loop_times; ++i) i 113 modules/imgproc/test/ocl/test_blend.cpp for (int i = 0; i < test_loop_times; ++i) i 114 modules/imgproc/test/ocl/test_gftt.cpp for (size_t i = 0; i < pts.size(); ++i) i 116 modules/imgproc/test/ocl/test_gftt.cpp Point2i a = upts[i], b = pts[i]; i 106 modules/imgproc/test/ocl/test_histogram.cpp for (int i = 0; i < N; ++i) i 110 modules/imgproc/test/ocl/test_histogram.cpp randomSubMat(images[i], images_roi[i], roiSize, srcBorder, CV_MAKE_TYPE(depth, cn), 0, 125); i 122 modules/imgproc/test/ocl/test_histogram.cpp for (int i = 0 ; i < N; ++i) i 123 modules/imgproc/test/ocl/test_histogram.cpp hist_size[i] = randomInt(10, 50); i 136 modules/imgproc/test/ocl/test_histogram.cpp for (int i = 0; i < N; ++i) i 138 modules/imgproc/test/ocl/test_histogram.cpp images[i].copyTo(uimages[i]); i 142 modules/imgproc/test/ocl/test_histogram.cpp images_roi[i].locateROI(_wholeSize, ofs); i 144 modules/imgproc/test/ocl/test_histogram.cpp uimages_roi[i] = uimages[i](Rect(ofs.x, ofs.y, images_roi[i].cols, images_roi[i].rows)); i 163 modules/imgproc/test/ocl/test_imgproc.cpp for (int i = 0; i < test_loop_times; ++i) i 424 modules/imgproc/test/ocl/test_imgproc.cpp for (int i = 0; i < test_loop_times; ++i) i 128 modules/imgproc/test/test_approxpoly.cpp int i; i 143 modules/imgproc/test/test_approxpoly.cpp for( i = 0; i < total; i++ ) i 240 modules/imgproc/test/test_approxpoly.cpp int i,j; i 251 modules/imgproc/test/test_approxpoly.cpp for( i = 0 ; i < Count ; ) i 254 modules/imgproc/test/test_approxpoly.cpp i++; i 259 modules/imgproc/test/test_approxpoly.cpp for( i = 1, j = 0 ; i <= DstSeq->total ; ) i 265 modules/imgproc/test/test_approxpoly.cpp i++; i 296 modules/imgproc/test/test_approxpoly.cpp for( int i = 0; i < 30; i++ ) i 300 modules/imgproc/test/test_approxpoly.cpp ts->update_context( this, i, false ); i 330 modules/imgproc/test/test_approxpoly.cpp "cvApproxPoly returned NULL for contour #%d, espilon = %g\n", i, Eps ); i 339 modules/imgproc/test/test_approxpoly.cpp "Incorrect result for the contour #%d approximated with epsilon=%g\n", i, Eps ); i 101 modules/imgproc/test/test_bilateral_filter.cpp int i, j, k, maxk, radius; i 158 modules/imgproc/test/test_bilateral_filter.cpp for( i = 0; i < kExpNumBins+2; i++ ) i 162 modules/imgproc/test/test_bilateral_filter.cpp double val = i / scale_index; i 163 modules/imgproc/test/test_bilateral_filter.cpp expLUT[i] = (float)std::exp(val * val * gauss_color_coeff); i 164 modules/imgproc/test/test_bilateral_filter.cpp lastExpVal = expLUT[i]; i 167 modules/imgproc/test/test_bilateral_filter.cpp expLUT[i] = 0.f; i 171 modules/imgproc/test/test_bilateral_filter.cpp for( i = -radius, maxk = 0; i <= radius; i++ ) i 174 modules/imgproc/test/test_bilateral_filter.cpp double r = std::sqrt((double)i*i + (double)j*j); i 178 modules/imgproc/test/test_bilateral_filter.cpp space_ofs[maxk++] = (int)(i*(temp.step/sizeof(float)) + j*cn); i 181 modules/imgproc/test/test_bilateral_filter.cpp for( i = 0; i < size.height; i++ ) i 183 modules/imgproc/test/test_bilateral_filter.cpp const float* sptr = temp.ptr<float>(i+radius) + radius*cn; i 184 modules/imgproc/test/test_bilateral_filter.cpp float* dptr = dst.ptr<float>(i); i 74 modules/imgproc/test/test_boundingrect.cpp for (int i = 0; i < n; ++i) i 84 modules/imgproc/test/test_boundingrect.cpp for (int i = 0; i < n; ++i) i 86 modules/imgproc/test/test_boundingrect.cpp min_w = std::min<T>(src.at(i).x, min_w); i 87 modules/imgproc/test/test_boundingrect.cpp max_w = std::max<T>(src.at(i).x, max_w); i 88 modules/imgproc/test/test_boundingrect.cpp min_h = std::min<T>(src.at(i).y, min_h); i 89 modules/imgproc/test/test_boundingrect.cpp max_h = std::max<T>(src.at(i).y, max_h); i 113 modules/imgproc/test/test_boundingrect.cpp for (int i = 0; i < 2; ++i) if (rect[i] != right) i 124 modules/imgproc/test/test_boundingrect.cpp cout << "Src points are stored as "; if (i == 0) cout << "VECTOR" << endl; else cout << "MAT" << endl; i 127 modules/imgproc/test/test_boundingrect.cpp cout << "Result rect (x, y, w, h): [" << rect[i].x << ", " << rect[i].y << ", " << rect[i].width << ", " << rect[i].height << "]" << endl; i 54 modules/imgproc/test/test_canny.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 142 modules/imgproc/test/test_canny.cpp int i; i 146 modules/imgproc/test/test_canny.cpp for( i = 0; i < 8; i++ ) i 148 modules/imgproc/test/test_canny.cpp int x1 = x + ofs[i][0]; i 149 modules/imgproc/test/test_canny.cpp int y1 = y + ofs[i][1]; i 58 modules/imgproc/test/test_color.cpp void get_minmax_bounds( int i, int j, int type, Scalar& low, Scalar& high ); i 107 modules/imgproc/test/test_color.cpp void CV_ColorCvtBaseTest::get_minmax_bounds( int i, int j, int type, Scalar& low, Scalar& high ) i 109 modules/imgproc/test/test_color.cpp cvtest::ArrayTest::get_minmax_bounds( i, j, type, low, high ); i 110 modules/imgproc/test/test_color.cpp if( i == INPUT ) i 216 modules/imgproc/test/test_color.cpp int i, j; i 220 modules/imgproc/test/test_color.cpp for( i = 0; i < src.rows; i++ ) i 226 modules/imgproc/test/test_color.cpp const uchar* src_row = src.ptr(i); i 227 modules/imgproc/test/test_color.cpp uchar* dst_row = dst.ptr(i); i 247 modules/imgproc/test/test_color.cpp const ushort* src_row = src.ptr<ushort>(i); i 248 modules/imgproc/test/test_color.cpp ushort* dst_row = dst.ptr<ushort>(i); i 268 modules/imgproc/test/test_color.cpp const float* src_row = src.ptr<float>(i); i 269 modules/imgproc/test/test_color.cpp float* dst_row = dst.ptr<float>(i); i 311 modules/imgproc/test/test_color.cpp int i, j; i 315 modules/imgproc/test/test_color.cpp for( i = 0; i < src.rows; i++ ) i 321 modules/imgproc/test/test_color.cpp const uchar* src_row = dst.ptr(i); i 322 modules/imgproc/test/test_color.cpp uchar* dst_row = dst2.ptr(i); i 344 modules/imgproc/test/test_color.cpp const ushort* src_row = dst.ptr<ushort>(i); i 345 modules/imgproc/test/test_color.cpp ushort* dst_row = dst2.ptr<ushort>(i); i 367 modules/imgproc/test/test_color.cpp const float* src_row = dst.ptr<float>(i); i 368 modules/imgproc/test/test_color.cpp float* dst_row = dst2.ptr<float>(i); i 392 modules/imgproc/test/test_color.cpp int i, j, k; i 396 modules/imgproc/test/test_color.cpp for( i = 0; i < src.rows; i++ ) i 398 modules/imgproc/test/test_color.cpp memcpy( dst2.ptr(i), src.ptr(i), width_n ); i 402 modules/imgproc/test/test_color.cpp uchar* ptr = dst2.ptr(i) + elem_size1*3; i 428 modules/imgproc/test/test_color.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 462 modules/imgproc/test/test_color.cpp double CV_ColorGrayTest::get_success_error_level( int /*test_case_idx*/, int i, int j ) i 464 modules/imgproc/test/test_color.cpp int depth = test_mat[i][j].depth(); i 499 modules/imgproc/test/test_color.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 522 modules/imgproc/test/test_color.cpp double CV_ColorYCrCbTest::get_success_error_level( int /*test_case_idx*/, int i, int j ) i 524 modules/imgproc/test/test_color.cpp int depth = test_mat[i][j].depth(); i 591 modules/imgproc/test/test_color.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 629 modules/imgproc/test/test_color.cpp double CV_ColorHSVTest::get_success_error_level( int /*test_case_idx*/, int i, int j ) i 631 modules/imgproc/test/test_color.cpp int depth = test_mat[i][j].depth(); i 696 modules/imgproc/test/test_color.cpp int i = cvFloor(h); i 697 modules/imgproc/test/test_color.cpp float f = h - i; i 702 modules/imgproc/test/test_color.cpp if( i == 0 ) i 704 modules/imgproc/test/test_color.cpp else if( i == 1 ) i 706 modules/imgproc/test/test_color.cpp else if( i == 2 ) i 708 modules/imgproc/test/test_color.cpp else if( i == 3 ) i 710 modules/imgproc/test/test_color.cpp else if( i == 4 ) i 730 modules/imgproc/test/test_color.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 754 modules/imgproc/test/test_color.cpp double CV_ColorHLSTest::get_success_error_level( int /*test_case_idx*/, int i, int j ) i 756 modules/imgproc/test/test_color.cpp int depth = test_mat[i][j].depth(); i 896 modules/imgproc/test/test_color.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 919 modules/imgproc/test/test_color.cpp double CV_ColorXYZTest::get_success_error_level( int /*test_case_idx*/, int i, int j ) i 921 modules/imgproc/test/test_color.cpp int depth = test_mat[i][j].depth(); i 983 modules/imgproc/test/test_color.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 1006 modules/imgproc/test/test_color.cpp double CV_ColorLabTest::get_success_error_level( int /*test_case_idx*/, int i, int j ) i 1008 modules/imgproc/test/test_color.cpp int depth = test_mat[i][j].depth(); i 1124 modules/imgproc/test/test_color.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 1147 modules/imgproc/test/test_color.cpp double CV_ColorLuvTest::get_success_error_level( int /*test_case_idx*/, int i, int j ) i 1149 modules/imgproc/test/test_color.cpp int depth = test_mat[i][j].depth(); i 1273 modules/imgproc/test/test_color.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 1345 modules/imgproc/test/test_color.cpp int i, j, cols = src.cols; i 1351 modules/imgproc/test/test_color.cpp for( i = 0; i < src.rows; i++ ) i 1357 modules/imgproc/test/test_color.cpp const uchar* src_row = src.ptr(i); i 1358 modules/imgproc/test/test_color.cpp uchar* dst_row = dst.ptr(i); i 1388 modules/imgproc/test/test_color.cpp const ushort* src_row = src.ptr<ushort>(i); i 1389 modules/imgproc/test/test_color.cpp ushort* dst_row = dst.ptr<ushort>(i); i 1404 modules/imgproc/test/test_color.cpp const float* src_row = src.ptr<float>(i); i 1405 modules/imgproc/test/test_color.cpp float* dst_row = dst.ptr<float>(i); i 1431 modules/imgproc/test/test_color.cpp int i, j, cols = src.cols; i 1437 modules/imgproc/test/test_color.cpp for( i = 0; i < src.rows; i++ ) i 1443 modules/imgproc/test/test_color.cpp const uchar* src_row = src.ptr(i); i 1444 modules/imgproc/test/test_color.cpp uchar* dst_row = dst.ptr(i); i 1486 modules/imgproc/test/test_color.cpp const ushort* src_row = src.ptr<ushort>(i); i 1487 modules/imgproc/test/test_color.cpp ushort* dst_row = dst.ptr<ushort>(i); i 1506 modules/imgproc/test/test_color.cpp const float* src_row = src.ptr<float>(i); i 1507 modules/imgproc/test/test_color.cpp float* dst_row = dst.ptr<float>(i); i 1539 modules/imgproc/test/test_color.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 1591 modules/imgproc/test/test_color.cpp int i, j, cols = src.cols - 2; i 1598 modules/imgproc/test/test_color.cpp for( i = 1; i < src.rows - 1; i++ ) i 1600 modules/imgproc/test/test_color.cpp const T* ptr = src.ptr<T>(i) + 1; i 1601 modules/imgproc/test/test_color.cpp T* dst_row = dst.ptr<T>(i) + 3; i 1819 modules/imgproc/test/test_color.cpp for (int i = 0; i < 4; ++i) i 1821 modules/imgproc/test/test_color.cpp calculateBayerPattern<uchar, CV_8U>(src, bayer, pattern[i]); i 1825 modules/imgproc/test/test_color.cpp cvtColor(bayer, dst, CV_BayerBG2BGR_VNG + i); i 1828 modules/imgproc/test/test_color.cpp full_path = parent_path + pattern[i] + image_name; i 1875 modules/imgproc/test/test_color.cpp for (int i = 0; i < ssize.height; i++) i 1879 modules/imgproc/test/test_color.cpp float b = (1 + cos((szm - i) * (szm - j) * pi2 / (10 * float(szm)))) / 2; i 1880 modules/imgproc/test/test_color.cpp float g = (1 + cos((szm - i) * j * pi2 / (10 * float(szm)))) / 2; i 1881 modules/imgproc/test/test_color.cpp float r = (1 + sin(i * j * pi2 / (10 * float(szm)))) / 2; i 1888 modules/imgproc/test/test_color.cpp src.at<cv::Vec3f>(i, j) = cv::Vec3f(b, g, r); i 2027 modules/imgproc/test/test_color.cpp for (int i = 0; i < dcn; ++i) i 2029 modules/imgproc/test/test_color.cpp D[i] = D[-dcn + i]; i 2030 modules/imgproc/test/test_color.cpp D[-static_cast<int>(dst.step)+dcn+i] = D[-static_cast<int>(dst.step)+(dcn<<1)+i]; i 2115 modules/imgproc/test/test_color.cpp for (int i = 0; i < 4 && next; ++i) i 2117 modules/imgproc/test/test_color.cpp calculateBayerPattern<uchar, CV_8U>(src, bayer, types[i]); i 2119 modules/imgproc/test/test_color.cpp test_Bayer2RGB_EdgeAware_8u(bayer, reference, CV_BayerBG2BGR_EA + i); i 2124 modules/imgproc/test/test_color.cpp calculateBayerPattern<unsigned short int, CV_16U>(src, bayer, types[i]); i 2129 modules/imgproc/test/test_color.cpp cv::demosaicing(bayer, actual, CV_BayerBG2BGR_EA + i); i 2132 modules/imgproc/test/test_color.cpp checkData<unsigned char>(actual, reference, ts, types[i], next, "CV_8U"); i 2137 modules/imgproc/test/test_color.cpp checkData<unsigned short int>(actual, tmp, ts, types[i], next, "CV_16U"); i 79 modules/imgproc/test/test_contours.cpp int i; i 89 modules/imgproc/test/test_contours.cpp for( i = 0; i < NUM_IMG; i++ ) i 90 modules/imgproc/test/test_contours.cpp img[i] = 0; i 104 modules/imgproc/test/test_contours.cpp int i; i 108 modules/imgproc/test/test_contours.cpp for( i = 0; i < NUM_IMG; i++ ) i 109 modules/imgproc/test/test_contours.cpp cvReleaseImage( &img[i] ); i 152 modules/imgproc/test/test_contours.cpp int i; i 163 modules/imgproc/test/test_contours.cpp for( i = 0; i < blob_count; i++ ) i 188 modules/imgproc/test/test_contours.cpp int i, j; i 193 modules/imgproc/test/test_contours.cpp for( i = 1; i < img->height - 1; i++ ) i 196 modules/imgproc/test/test_contours.cpp uchar* t = (uchar*)(img->imageData + img->widthStep*i + j); i 209 modules/imgproc/test/test_contours.cpp int i, code = cvtest::BaseTest::prepare_test_case( test_case_idx ); i 228 modules/imgproc/test/test_contours.cpp for( i = 0; i < NUM_IMG; i++ ) i 229 modules/imgproc/test/test_contours.cpp img[i] = cvCreateImage( img_size, 8, 1 ); i 286 modules/imgproc/test/test_contours.cpp for( int i = 0; i < 4; i++ ) i 287 modules/imgproc/test/test_contours.cpp _img[i] = cvarrToMat(img[i]); i 307 modules/imgproc/test/test_contours.cpp for(int i = 0; i < 2; i++ ) i 310 modules/imgproc/test/test_contours.cpp cvInitTreeNodeIterator( &iterator, i == 0 ? contours : contours2, INT_MAX ); i 320 modules/imgproc/test/test_contours.cpp i == 0 ? approx_method : 0, count, count3 ); i 357 modules/imgproc/test/test_contours.cpp for(int i = 0; i < seq1->total; i++ ) i 369 modules/imgproc/test/test_contours.cpp "in the approximated chain ((%d,%d) vs (%d,%d)", count3, i, pt1.x, pt1.y, pt2.x, pt2.y ); i 473 modules/imgproc/test/test_contours.cpp for( int i = 0; i < n2; i++ ) i 476 modules/imgproc/test/test_contours.cpp d2xy(n2, i, &q.x, &q.y); i 98 modules/imgproc/test/test_convhull.cpp int i; i 105 modules/imgproc/test/test_convhull.cpp for( i = 0; i < n; i++ ) i 108 modules/imgproc/test/test_convhull.cpp int on_edge = 0, idx = i; i 110 modules/imgproc/test/test_convhull.cpp v0 = v; v = vv[i]; i 120 modules/imgproc/test/test_convhull.cpp idx = i - 1; i 276 modules/imgproc/test/test_convhull.cpp int i, k, n, total, point_type; i 309 modules/imgproc/test/test_convhull.cpp for( i = 0; i < total; i++ ) i 321 modules/imgproc/test/test_convhull.cpp pi = (int*)data + i*n; i 322 modules/imgproc/test/test_convhull.cpp pf = (float*)data + i*n; i 339 modules/imgproc/test/test_convhull.cpp int i; i 367 modules/imgproc/test/test_convhull.cpp for( i = 0; i < 4; i++ ) i 369 modules/imgproc/test/test_convhull.cpp low.val[i] = (cvtest::randReal(rng)-0.5)*low_high_range*2; i 370 modules/imgproc/test/test_convhull.cpp high.val[i] = (cvtest::randReal(rng)-0.5)*low_high_range*2; i 371 modules/imgproc/test/test_convhull.cpp if( low.val[i] > high.val[i] ) i 374 modules/imgproc/test/test_convhull.cpp CV_SWAP( low.val[i], high.val[i], t ); i 376 modules/imgproc/test/test_convhull.cpp if( high.val[i] < low.val[i] + 1 ) i 377 modules/imgproc/test/test_convhull.cpp high.val[i] += 1; i 545 modules/imgproc/test/test_convhull.cpp int i, point_count, hull_count; i 588 modules/imgproc/test/test_convhull.cpp for( i = 0; i < hull_count; i++ ) i 601 modules/imgproc/test/test_convhull.cpp ts->printf( cvtest::TS::LOG, "Invalid convex hull point #%d\n", i ); i 605 modules/imgproc/test/test_convhull.cpp h[i] = p[idx]; i 613 modules/imgproc/test/test_convhull.cpp for( i = 0; i < hull_count; i++ ) i 615 modules/imgproc/test/test_convhull.cpp int j = i+1; i 616 modules/imgproc/test/test_convhull.cpp CvPoint2D32f pt1 = h[i], pt2 = h[j < hull_count ? j : 0]; i 622 modules/imgproc/test/test_convhull.cpp ts->printf( cvtest::TS::LOG, "The convex hull is not convex or has a wrong orientation (vtx %d)\n", i ); i 632 modules/imgproc/test/test_convhull.cpp for( i = 0; i < point_count; i++ ) i 635 modules/imgproc/test/test_convhull.cpp double pptresult = cvTsPointPolygonTest( p[i], h, hull_count, &idx, &on_edge ); i 639 modules/imgproc/test/test_convhull.cpp ts->printf( cvtest::TS::LOG, "The point #%d is outside of the convex hull\n", i ); i 708 modules/imgproc/test/test_convhull.cpp int i, j, point_count = points2->rows + points2->cols - 1; i 740 modules/imgproc/test/test_convhull.cpp for( i = 0; i < point_count; i++ ) i 741 modules/imgproc/test/test_convhull.cpp cvCircle(img,cvPoint(cvRound(p[i].x*a+b),cvRound(p[i].y*c+d)), 3, CV_RGB(0,255,0), -1 ); i 742 modules/imgproc/test/test_convhull.cpp for( i = 0; i < n; i++ ) i 743 modules/imgproc/test/test_convhull.cpp bp[i] = cvPoint(cvRound(box_pt[i].x*a+b),cvRound(box_pt[i].y*c+d)); i 753 modules/imgproc/test/test_convhull.cpp for( i = 0; i < point_count; i++ ) i 756 modules/imgproc/test/test_convhull.cpp double pptresult = cvTsPointPolygonTest( p[i], box_pt, 4, &idx, &on_edge ); i 759 modules/imgproc/test/test_convhull.cpp ts->printf( cvtest::TS::LOG, "The point #%d is outside of the box\n", i ); i 768 modules/imgproc/test/test_convhull.cpp double d = cvTsPtLineDist( p[i], box_pt[(j-1)&3], box_pt[j] ); i 817 modules/imgproc/test/test_convhull.cpp for (int i = 0; i < 3; i++) { i 818 modules/imgproc/test/test_convhull.cpp triangleMiddlePoints.push_back(cvTsMiddlePoint(triangle[i], triangle[(i + 1) % 3])); i 850 modules/imgproc/test/test_convhull.cpp for( i = 0; i < point_count; i++ ) i 851 modules/imgproc/test/test_convhull.cpp cvCircle(img,cvPoint(cvRound(p[i].x*a+b),cvRound(p[i].y*c+d)), 3, CV_RGB(0,255,0), -1 ); i 852 modules/imgproc/test/test_convhull.cpp for( i = 0; i < n; i++ ) i 853 modules/imgproc/test/test_convhull.cpp bp[i] = cvPoint(cvRound(triangle[i].x*a+b),cvRound(triangle[i].y*c+d)); i 865 modules/imgproc/test/test_convhull.cpp for (int i = 0; (i < polygonVertices) && (!errorEnclosed); i++) i 867 modules/imgproc/test/test_convhull.cpp if (cv::pointPolygonTest(triangle, cv::Point2f(convexPolygon[i].x, convexPolygon[i].y), true) < (-eps)) i 874 modules/imgproc/test/test_convhull.cpp for (int i = 0; (i < 3) && (!errorMiddlePoints); i++) i 880 modules/imgproc/test/test_convhull.cpp if (cvTsIsPointOnLineSegment(middlePoints[i], convexPolygon[j], i 889 modules/imgproc/test/test_convhull.cpp for (int i = 0; (i < 3) && (errorFlush); i++) i 893 modules/imgproc/test/test_convhull.cpp if ((cvTsIsPointOnLineSegment(convexPolygon[j], triangle[i], i 894 modules/imgproc/test/test_convhull.cpp triangle[(i + 1) % 3])) && i 895 modules/imgproc/test/test_convhull.cpp (cvTsIsPointOnLineSegment(convexPolygon[(j + 1) % polygonVertices], triangle[i], i 896 modules/imgproc/test/test_convhull.cpp triangle[(i + 1) % 3]))) i 969 modules/imgproc/test/test_convhull.cpp int i, j = 0, point_count = points2->rows + points2->cols - 1; i 979 modules/imgproc/test/test_convhull.cpp for( i = 0; i < point_count; i++ ) i 980 modules/imgproc/test/test_convhull.cpp cvCircle(img,cvPoint(cvRound(p[i].x*a+b),cvRound(p[i].y*a+d)), 3, CV_RGB(0,255,0), -1 ); i 991 modules/imgproc/test/test_convhull.cpp for( i = 0; i < point_count; i++ ) i 993 modules/imgproc/test/test_convhull.cpp double d = cvTsDist( p[i], center ); i 996 modules/imgproc/test/test_convhull.cpp ts->printf( cvtest::TS::LOG, "The point #%d is outside of the circle\n", i ); i 1002 modules/imgproc/test/test_convhull.cpp v[j++] = p[i]; i 1091 modules/imgproc/test/test_convhull.cpp int i, len = slice.end_index - slice.start_index, total = points2->cols + points2->rows - 1; i 1104 modules/imgproc/test/test_convhull.cpp for( i = 0; i < len + (len < total && (!is_closed || len==1)); i++ ) i 1106 modules/imgproc/test/test_convhull.cpp pt = ptr[(i + slice.start_index) % total]; i 1160 modules/imgproc/test/test_convhull.cpp int i, total, point_type; i 1198 modules/imgproc/test/test_convhull.cpp for( i = 0; i < total; i++ ) i 1214 modules/imgproc/test/test_convhull.cpp pp = ((CvPoint*)data) + i; i 1304 modules/imgproc/test/test_convhull.cpp for( int i = 0; i < points2->rows + points2->cols - 1; i++ ) i 1307 modules/imgproc/test/test_convhull.cpp pt.x = cvRound(points2->data.fl[i*2] + low_high_range*2); i 1308 modules/imgproc/test/test_convhull.cpp pt.y = cvRound(points2->data.fl[i*2+1] + low_high_range*2); i 1450 modules/imgproc/test/test_convhull.cpp int i, k, n, total, point_type; i 1487 modules/imgproc/test/test_convhull.cpp for( i = 0; i < total; i++ ) i 1500 modules/imgproc/test/test_convhull.cpp pi = (int*)data + i*n; i 1501 modules/imgproc/test/test_convhull.cpp pf = (float*)data + i*n; i 1642 modules/imgproc/test/test_convhull.cpp int i, total, point_type; i 1665 modules/imgproc/test/test_convhull.cpp for( i = 0; i < total; i++ ) i 1670 modules/imgproc/test/test_convhull.cpp double phi0 = 2*CV_PI*i/total; i 1686 modules/imgproc/test/test_convhull.cpp pp = ((CvPoint*)data) + i; i 1784 modules/imgproc/test/test_convhull.cpp int i, n = (int)(sizeof(moments)/sizeof(moments.inv_sqrt_m00)); i 1786 modules/imgproc/test/test_convhull.cpp CvPoint* pt = (CvPoint*)points2->data.i; i 1794 modules/imgproc/test/test_convhull.cpp for( i = 0; i < n; i++ ) i 1796 modules/imgproc/test/test_convhull.cpp double t = fabs((&moments0.m00)[i]); i 1800 modules/imgproc/test/test_convhull.cpp for( i = 0; i <= n; i++ ) i 1802 modules/imgproc/test/test_convhull.cpp double v = i < n ? (&moments.m00)[i] : area; i 1803 modules/imgproc/test/test_convhull.cpp double v0 = i < n ? (&moments0.m00)[i] : moments0.m00; i 1808 modules/imgproc/test/test_convhull.cpp "The contour %s is invalid (=%g)\n", i < n ? "moment" : "area", v ); i 1817 modules/imgproc/test/test_convhull.cpp i < n ? "moment" : "area", v, v0 ); i 1861 modules/imgproc/test/test_convhull.cpp for( int i = 0; i < 100; i++ ) i 1863 modules/imgproc/test/test_convhull.cpp ts->update_context( this, i, true ); i 54 modules/imgproc/test/test_distancetransform.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 58 modules/imgproc/test/test_distancetransform.cpp void get_minmax_bounds( int i, int j, int type, Scalar& low, Scalar& high ); i 117 modules/imgproc/test/test_distancetransform.cpp void CV_DisTransTest::get_minmax_bounds( int i, int j, int type, Scalar& low, Scalar& high ) i 119 modules/imgproc/test/test_distancetransform.cpp cvtest::ArrayTest::get_minmax_bounds( i, j, type, low, high ); i 120 modules/imgproc/test/test_distancetransform.cpp if( i == INPUT && CV_MAT_DEPTH(type) == CV_8U ) i 136 modules/imgproc/test/test_distancetransform.cpp int i = cvtest::randInt(rng) % mat.rows; i 138 modules/imgproc/test/test_distancetransform.cpp mat.at<uchar>(i,j) = 0; i 156 modules/imgproc/test/test_distancetransform.cpp int i, j, k; i 216 modules/imgproc/test/test_distancetransform.cpp for( i = 0; i < mask_size/2; i++ ) i 218 modules/imgproc/test/test_distancetransform.cpp float* t0 = (float*)(temp->data.ptr + i*temp->step); i 219 modules/imgproc/test/test_distancetransform.cpp float* t1 = (float*)(temp->data.ptr + (temp->rows - i - 1)*temp->step); i 225 modules/imgproc/test/test_distancetransform.cpp for( i = 0; i < height; i++ ) i 227 modules/imgproc/test/test_distancetransform.cpp uchar* s = _src->data.ptr + i*_src->step; i 228 modules/imgproc/test/test_distancetransform.cpp float* tmp = (float*)(temp->data.ptr + temp->step*(i + (mask_size/2))) + (mask_size/2); i 251 modules/imgproc/test/test_distancetransform.cpp for( i = height - 1; i >= 0; i-- ) i 253 modules/imgproc/test/test_distancetransform.cpp float* d = (float*)(_dst->data.ptr + i*_dst->step); i 254 modules/imgproc/test/test_distancetransform.cpp float* tmp = (float*)(temp->data.ptr + temp->step*(i + (mask_size/2))) + (mask_size/2); i 56 modules/imgproc/test/test_filter.cpp void get_minmax_bounds( int i, int j, int type, Scalar& low, Scalar& high ); i 93 modules/imgproc/test/test_filter.cpp void CV_FilterBaseTest::get_minmax_bounds( int i, int j, int type, Scalar& low, Scalar& high ) i 95 modules/imgproc/test/test_filter.cpp cvtest::ArrayTest::get_minmax_bounds( i, j, type, low, high ); i 96 modules/imgproc/test/test_filter.cpp if( i == INPUT ) i 178 modules/imgproc/test/test_filter.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 233 modules/imgproc/test/test_filter.cpp int i, j, nonzero = 0; i 235 modules/imgproc/test/test_filter.cpp for( i = 0; i < aperture_size.height; i++ ) i 239 modules/imgproc/test/test_filter.cpp eldata[i*aperture_size.width + j] = src[i*srcstep + j]; i 240 modules/imgproc/test/test_filter.cpp nonzero += src[i*srcstep + j] != 0; i 393 modules/imgproc/test/test_filter.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 445 modules/imgproc/test/test_filter.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 625 modules/imgproc/test/test_filter.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 803 modules/imgproc/test/test_filter.cpp int i; i 806 modules/imgproc/test/test_filter.cpp for( i = 1; i <= n/2; i++ ) i 808 modules/imgproc/test/test_filter.cpp kernel[n/2+i] = kernel[n/2-i] = (float)exp(scale2X*i*i); i 809 modules/imgproc/test/test_filter.cpp sum += kernel[n/2+i]*2; i 813 modules/imgproc/test/test_filter.cpp for( i = 0; i <= n/2; i++ ) i 814 modules/imgproc/test/test_filter.cpp kernel[n/2+i] = kernel[n/2-i] = (float)(kernel[n/2+i]*sum); i 827 modules/imgproc/test/test_filter.cpp for( int i = 0; i < kernel.rows; i++ ) i 829 modules/imgproc/test/test_filter.cpp kernel.at<float>(i, j) = kx[j]*ky[i]; i 851 modules/imgproc/test/test_filter.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 908 modules/imgproc/test/test_filter.cpp int i, j, k, l, m2 = m*m, n; i 917 modules/imgproc/test/test_filter.cpp for( i = 0; i < dst.rows; i++ ) i 919 modules/imgproc/test/test_filter.cpp uchar* dst1 = dst.ptr<uchar>(i); i 922 modules/imgproc/test/test_filter.cpp const uchar* src1 = src.ptr<uchar>(i+k); i 949 modules/imgproc/test/test_filter.cpp const uchar* src1 = src.ptr<uchar>(i) + ins_col; i 997 modules/imgproc/test/test_filter.cpp int i, cn = src0.channels(); i 1006 modules/imgproc/test/test_filter.cpp for( i = 0; i < cn; i++ ) i 1011 modules/imgproc/test/test_filter.cpp cvtest::extract( src0, dst, i ); i 1017 modules/imgproc/test/test_filter.cpp cvtest::insert( dst, dst0, i ); i 1030 modules/imgproc/test/test_filter.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 1130 modules/imgproc/test/test_filter.cpp for( int i = 0; i < dst.rows; i++ ) i 1132 modules/imgproc/test/test_filter.cpp const uchar* src_row = temp.ptr(i*2); i 1133 modules/imgproc/test/test_filter.cpp uchar* dst_row = dst.ptr(i); i 1176 modules/imgproc/test/test_filter.cpp for( int i = 0; i < src.rows; i++ ) i 1178 modules/imgproc/test/test_filter.cpp const uchar* src_row = src.ptr(i); i 1179 modules/imgproc/test/test_filter.cpp uchar* dst_row = temp.ptr(i*2); i 1181 modules/imgproc/test/test_filter.cpp if( i*2 + 1 < temp.rows ) i 1182 modules/imgproc/test/test_filter.cpp memset( temp.ptr(i*2+1), 0, temp.cols*elem_size ); i 1209 modules/imgproc/test/test_filter.cpp void get_minmax_bounds( int i, int j, int type, Scalar& low, Scalar& high ); i 1210 modules/imgproc/test/test_filter.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 1253 modules/imgproc/test/test_filter.cpp void CV_FeatureSelBaseTest::get_minmax_bounds( int i, int j, int type, Scalar& low, Scalar& high ) i 1255 modules/imgproc/test/test_filter.cpp cvtest::ArrayTest::get_minmax_bounds( i, j, type, low, high ); i 1256 modules/imgproc/test/test_filter.cpp if( i == INPUT && CV_MAT_DEPTH(type) == CV_32F ) i 1296 modules/imgproc/test/test_filter.cpp int i, j; i 1323 modules/imgproc/test/test_filter.cpp for( i = 0; i < src.rows; i++ ) i 1325 modules/imgproc/test/test_filter.cpp float* dxdyp = dxdy.ptr<float>(i); i 1326 modules/imgproc/test/test_filter.cpp float* dx2p = dx2.ptr<float>(i); i 1327 modules/imgproc/test/test_filter.cpp float* dy2p = dy2.ptr<float>(i); i 1347 modules/imgproc/test/test_filter.cpp for( i = 0; i < src.rows; i++ ) i 1349 modules/imgproc/test/test_filter.cpp float* eigenvp = eigenv.ptr<float>(i); i 1350 modules/imgproc/test/test_filter.cpp float* ocv_eigenvp = ocv_eigenv.ptr<float>(i); i 1351 modules/imgproc/test/test_filter.cpp const float* dxdyp = dxdy.ptr<float>(i); i 1352 modules/imgproc/test/test_filter.cpp const float* dx2p = dx2.ptr<float>(i); i 1353 modules/imgproc/test/test_filter.cpp const float* dy2p = dy2.ptr<float>(i); i 1398 modules/imgproc/test/test_filter.cpp for( i = 0; i < src.rows; i++ ) i 1400 modules/imgproc/test/test_filter.cpp float* eigenvp = eigenv.ptr<float>(i); i 1401 modules/imgproc/test/test_filter.cpp const float* dxdyp = dxdy.ptr<float>(i); i 1402 modules/imgproc/test/test_filter.cpp const float* dx2p = dx2.ptr<float>(i); i 1403 modules/imgproc/test/test_filter.cpp const float* dy2p = dy2.ptr<float>(i); i 1540 modules/imgproc/test/test_filter.cpp for( int i = 0; i < src.rows; i++ ) i 1542 modules/imgproc/test/test_filter.cpp const float* _dx = dx.ptr<float>(i); i 1543 modules/imgproc/test/test_filter.cpp const float* _dy = dy.ptr<float>(i); i 1544 modules/imgproc/test/test_filter.cpp const float* _d2x = d2x.ptr<float>(i); i 1545 modules/imgproc/test/test_filter.cpp const float* _d2y = d2y.ptr<float>(i); i 1546 modules/imgproc/test/test_filter.cpp const float* _dxy = dxy.ptr<float>(i); i 1547 modules/imgproc/test/test_filter.cpp float* corner = dst.ptr<float>(i); i 1569 modules/imgproc/test/test_filter.cpp void get_minmax_bounds( int i, int j, int type, Scalar& low, Scalar& high ); i 1570 modules/imgproc/test/test_filter.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 1591 modules/imgproc/test/test_filter.cpp void CV_IntegralTest::get_minmax_bounds( int i, int j, int type, Scalar& low, Scalar& high ) i 1593 modules/imgproc/test/test_filter.cpp cvtest::ArrayTest::get_minmax_bounds( i, j, type, low, high ); i 1638 modules/imgproc/test/test_filter.cpp double CV_IntegralTest::get_success_error_level( int, int i, int j ) i 1640 modules/imgproc/test/test_filter.cpp int depth = test_mat[i][j].depth(); i 1744 modules/imgproc/test/test_filter.cpp for( int i = 0; i < cn; i++ ) i 1747 modules/imgproc/test/test_filter.cpp cvtest::extract(src, plane, i); i 1759 modules/imgproc/test/test_filter.cpp cvtest::insert(psum2, *sum0, i); i 1761 modules/imgproc/test/test_filter.cpp cvtest::insert(psqsum2, *sqsum0, i); i 1763 modules/imgproc/test/test_filter.cpp cvtest::insert(ptsum2, *tsum0, i); i 1815 modules/imgproc/test/test_filter.cpp int i = 0; i 1837 modules/imgproc/test/test_filter.cpp for( i = 0; depths[i][0] >= 0; i++ ) i 1839 modules/imgproc/test/test_filter.cpp int sdepth = depths[i][0]; i 1840 modules/imgproc/test/test_filter.cpp int ddepth = depths[i][1]; i 1871 modules/imgproc/test/test_filter.cpp depths[i][0], depths[i][1], i 1940 modules/imgproc/test/test_filter.cpp for( int i = 0; i < iterations; i++ ) i 1942 modules/imgproc/test/test_filter.cpp dilate(i == 0 ? src : dst1, dst1, Mat(), Point(-1,-1), 1); i 1944 modules/imgproc/test/test_filter.cpp erode(i == 0 ? src : dst1, dst1, Mat(), Point(-1,-1), 1); i 54 modules/imgproc/test/test_floodfill.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 58 modules/imgproc/test/test_floodfill.cpp void fill_array( int test_case_idx, int i, int j, Mat& arr ); i 96 modules/imgproc/test/test_floodfill.cpp int i; i 132 modules/imgproc/test/test_floodfill.cpp for( i = 0; i < 4; i++ ) i 134 modules/imgproc/test/test_floodfill.cpp l_diff.val[i] = fabs(m.at<short>(i)/16.); i 135 modules/imgproc/test/test_floodfill.cpp u_diff.val[i] = fabs(m.at<short>(i+4)/16.); i 140 modules/imgproc/test/test_floodfill.cpp for( i = 0; i < cn; i++ ) i 141 modules/imgproc/test/test_floodfill.cpp new_val.val[i] = cvtest::randReal(rng)*255; i 147 modules/imgproc/test/test_floodfill.cpp double CV_FloodFillTest::get_success_error_level( int /*test_case_idx*/, int i, int j ) i 149 modules/imgproc/test/test_floodfill.cpp return i == OUTPUT ? FLT_EPSILON : j == 0 ? FLT_EPSILON : 0; i 153 modules/imgproc/test/test_floodfill.cpp void CV_FloodFillTest::fill_array( int test_case_idx, int i, int j, Mat& arr ) i 157 modules/imgproc/test/test_floodfill.cpp if( i != INPUT && i != INPUT_OUTPUT ) i 159 modules/imgproc/test/test_floodfill.cpp cvtest::ArrayTest::fill_array( test_case_idx, i, j, arr ); i 249 modules/imgproc/test/test_floodfill.cpp int i, j; i 335 modules/imgproc/test/test_floodfill.cpp for( i = 0; i < ncount; i++ ) i 337 modules/imgproc/test/test_floodfill.cpp int md = mdelta[i], id = idelta[i]; i 384 modules/imgproc/test/test_floodfill.cpp for( i = 0; i < ncount; i++ ) i 386 modules/imgproc/test/test_floodfill.cpp int md = mdelta[i], id = idelta[i]; i 427 modules/imgproc/test/test_floodfill.cpp for( i = 0; i < rows; i++ ) i 429 modules/imgproc/test/test_floodfill.cpp float* ptr = img + i*step; i 430 modules/imgproc/test/test_floodfill.cpp ushort* mptr = m + i*mstep; i 431 modules/imgproc/test/test_floodfill.cpp uchar* dmptr = _mask ? _mask->data.ptr + (i+1)*_mask->step + 1 : 0; i 473 modules/imgproc/test/test_floodfill.cpp if( r.y > i ) i 474 modules/imgproc/test/test_floodfill.cpp r.y = i; i 475 modules/imgproc/test/test_floodfill.cpp if( r.height < i ) i 476 modules/imgproc/test/test_floodfill.cpp r.height = i; i 61 modules/imgproc/test/test_histograms.cpp virtual void init_hist( int test_case_idx, int i ); i 114 modules/imgproc/test/test_histograms.cpp for( size_t i = 0; i < hist.size(); i++ ) i 115 modules/imgproc/test/test_histograms.cpp cvReleaseHist( &hist[i] ); i 141 modules/imgproc/test/test_histograms.cpp int i, max_dim_size, max_ni_dim_size = 31; i 151 modules/imgproc/test/test_histograms.cpp for( i = 0; i < cdims; i++ ) i 153 modules/imgproc/test/test_histograms.cpp dims[i] = cvtest::randInt(rng) % (max_dim_size + 2) + 2; i 155 modules/imgproc/test/test_histograms.cpp dims[i] = MIN(dims[i], max_ni_dim_size); i 156 modules/imgproc/test/test_histograms.cpp total_size *= dims[i]; i 190 modules/imgproc/test/test_histograms.cpp for( int i = 0; i < cdims; i++ ) i 192 modules/imgproc/test/test_histograms.cpp _ranges[i*2] = (float)_low; i 193 modules/imgproc/test/test_histograms.cpp _ranges[i*2+1] = (float)_high; i 194 modules/imgproc/test/test_histograms.cpp ranges[i] = &_ranges[i*2]; i 199 modules/imgproc/test/test_histograms.cpp int i, dims_sum = 0, ofs = 0; i 200 modules/imgproc/test/test_histograms.cpp for( i = 0; i < cdims; i++ ) i 201 modules/imgproc/test/test_histograms.cpp dims_sum += dims[i] + 1; i 204 modules/imgproc/test/test_histograms.cpp for( i = 0; i < cdims; i++ ) i 206 modules/imgproc/test/test_histograms.cpp int j, n = dims[i]; i 235 modules/imgproc/test/test_histograms.cpp ranges[i] = &_ranges[ofs]; i 258 modules/imgproc/test/test_histograms.cpp int i, j, totalSize = 1, nz_count; i 260 modules/imgproc/test/test_histograms.cpp for( i = 0; i < cdims; i++ ) i 261 modules/imgproc/test/test_histograms.cpp totalSize *= dims[i]; i 267 modules/imgproc/test/test_histograms.cpp for( i = 0; i < nz_count; i++ ) i 280 modules/imgproc/test/test_histograms.cpp int i; i 290 modules/imgproc/test/test_histograms.cpp for( i = 0; i < hist_count; i++ ) i 292 modules/imgproc/test/test_histograms.cpp hist[i] = cvCreateHist( cdims, dims, hist_type, r, uniform ); i 293 modules/imgproc/test/test_histograms.cpp init_hist( test_case_idx, i ); i 325 modules/imgproc/test/test_histograms.cpp void init_hist( int test_case_idx, int i ); i 358 modules/imgproc/test/test_histograms.cpp void CV_QueryHistTest::init_hist( int /*test_case_idx*/, int i ) i 361 modules/imgproc/test/test_histograms.cpp cvZero( hist[i]->bins ); i 371 modules/imgproc/test/test_histograms.cpp int i, j, iters; i 383 modules/imgproc/test/test_histograms.cpp idx = indices->data.i; i 394 modules/imgproc/test/test_histograms.cpp for( i = 0; i < iters; i++ ) i 400 modules/imgproc/test/test_histograms.cpp idx[i*cdims + j] = t; i 406 modules/imgproc/test/test_histograms.cpp values0->data.fl[i] = (float)(lin_idx+1); i 412 modules/imgproc/test/test_histograms.cpp values0->data.fl[i] = default_value; i 416 modules/imgproc/test/test_histograms.cpp for( i = 0; i < iters; i++ ) i 420 modules/imgproc/test/test_histograms.cpp lin_idx = lin_idx*dims[j] + idx[i*cdims + j]; i 423 modules/imgproc/test/test_histograms.cpp values0->data.fl[i] = (float)(lin_idx+1); i 435 modules/imgproc/test/test_histograms.cpp int i, iters = values->cols; i 437 modules/imgproc/test/test_histograms.cpp const int* idx = indices->data.i; i 443 modules/imgproc/test/test_histograms.cpp for( i = 0; i < iters; i++ ) i 445 modules/imgproc/test/test_histograms.cpp float v0 = values0->data.fl[i]; i 448 modules/imgproc/test/test_histograms.cpp if( !(i % 2) ) i 450 modules/imgproc/test/test_histograms.cpp if( !(i % 4) ) i 451 modules/imgproc/test/test_histograms.cpp cvSetReal1D( h, idx[i], v0 ); i 453 modules/imgproc/test/test_histograms.cpp *(float*)cvPtr1D( h, idx[i] ) = v0; i 456 modules/imgproc/test/test_histograms.cpp cvSetRealND( h, idx+i, v0 ); i 459 modules/imgproc/test/test_histograms.cpp for( i = 0; i < iters; i++ ) i 461 modules/imgproc/test/test_histograms.cpp float v0 = values0->data.fl[i]; i 464 modules/imgproc/test/test_histograms.cpp if( !(i % 2) ) i 466 modules/imgproc/test/test_histograms.cpp if( !(i % 4) ) i 467 modules/imgproc/test/test_histograms.cpp cvSetReal2D( h, idx[i*2], idx[i*2+1], v0 ); i 469 modules/imgproc/test/test_histograms.cpp *(float*)cvPtr2D( h, idx[i*2], idx[i*2+1] ) = v0; i 472 modules/imgproc/test/test_histograms.cpp cvSetRealND( h, idx+i*2, v0 ); i 475 modules/imgproc/test/test_histograms.cpp for( i = 0; i < iters; i++ ) i 477 modules/imgproc/test/test_histograms.cpp float v0 = values0->data.fl[i]; i 480 modules/imgproc/test/test_histograms.cpp if( !(i % 2) ) i 482 modules/imgproc/test/test_histograms.cpp if( !(i % 4) ) i 483 modules/imgproc/test/test_histograms.cpp cvSetReal3D( h, idx[i*3], idx[i*3+1], idx[i*3+2], v0 ); i 485 modules/imgproc/test/test_histograms.cpp *(float*)cvPtr3D( h, idx[i*3], idx[i*3+1], idx[i*3+2] ) = v0; i 488 modules/imgproc/test/test_histograms.cpp cvSetRealND( h, idx+i*3, v0 ); i 491 modules/imgproc/test/test_histograms.cpp for( i = 0; i < iters; i++ ) i 493 modules/imgproc/test/test_histograms.cpp float v0 = values0->data.fl[i]; i 496 modules/imgproc/test/test_histograms.cpp if( !(i % 2) ) i 497 modules/imgproc/test/test_histograms.cpp cvSetRealND( h, idx+i*cdims, v0 ); i 499 modules/imgproc/test/test_histograms.cpp *(float*)cvPtrND( h, idx+i*cdims ) = v0; i 504 modules/imgproc/test/test_histograms.cpp for( i = 0; i < iters; i++ ) i 506 modules/imgproc/test/test_histograms.cpp if( !(i % 2) ) i 507 modules/imgproc/test/test_histograms.cpp val[i] = *(float*)cvPtr1D( h, idx[i] ); i 509 modules/imgproc/test/test_histograms.cpp val[i] = (float)cvGetReal1D( h, idx[i] ); i 512 modules/imgproc/test/test_histograms.cpp for( i = 0; i < iters; i++ ) i 514 modules/imgproc/test/test_histograms.cpp if( !(i % 2) ) i 515 modules/imgproc/test/test_histograms.cpp val[i] = *(float*)cvPtr2D( h, idx[i*2], idx[i*2+1] ); i 517 modules/imgproc/test/test_histograms.cpp val[i] = (float)cvGetReal2D( h, idx[i*2], idx[i*2+1] ); i 520 modules/imgproc/test/test_histograms.cpp for( i = 0; i < iters; i++ ) i 522 modules/imgproc/test/test_histograms.cpp if( !(i % 2) ) i 523 modules/imgproc/test/test_histograms.cpp val[i] = *(float*)cvPtr3D( h, idx[i*3], idx[i*3+1], idx[i*3+2] ); i 525 modules/imgproc/test/test_histograms.cpp val[i] = (float)cvGetReal3D( h, idx[i*3], idx[i*3+1], idx[i*3+2] ); i 528 modules/imgproc/test/test_histograms.cpp for( i = 0; i < iters; i++ ) i 530 modules/imgproc/test/test_histograms.cpp if( !(i % 2) ) i 531 modules/imgproc/test/test_histograms.cpp val[i] = *(float*)cvPtrND( h, idx+i*cdims ); i 533 modules/imgproc/test/test_histograms.cpp val[i] = (float)cvGetRealND( h, idx+i*cdims ); i 541 modules/imgproc/test/test_histograms.cpp int i, j, iters = values->cols; i 543 modules/imgproc/test/test_histograms.cpp for( i = 0; i < iters; i++ ) i 545 modules/imgproc/test/test_histograms.cpp float v = values->data.fl[i], v0 = values0->data.fl[i]; i 549 modules/imgproc/test/test_histograms.cpp ts->printf( cvtest::TS::LOG, "The bin #%d has invalid value\n", i ); i 554 modules/imgproc/test/test_histograms.cpp ts->printf( cvtest::TS::LOG, "The bin #%d = %g, while it should be %g\n", i, v, v0 ); i 562 modules/imgproc/test/test_histograms.cpp ts->printf( cvtest::TS::LOG, "%d%s", indices->data.i[i*cdims + j], i 602 modules/imgproc/test/test_histograms.cpp int i, eq = 1; i 608 modules/imgproc/test/test_histograms.cpp for( i = 0; i < cdims; i++ ) i 610 modules/imgproc/test/test_histograms.cpp min_idx0[i] = cvtest::randInt(rng) % dims[i]; i 611 modules/imgproc/test/test_histograms.cpp max_idx0[i] = cvtest::randInt(rng) % dims[i]; i 612 modules/imgproc/test/test_histograms.cpp eq &= min_idx0[i] == max_idx0[i]; i 666 modules/imgproc/test/test_histograms.cpp int i; i 667 modules/imgproc/test/test_histograms.cpp for( i = 0; i < cdims; i++ ) i 669 modules/imgproc/test/test_histograms.cpp if( min_idx[i] != min_idx0[i] || max_idx[i] != max_idx0[i] ) i 674 modules/imgproc/test/test_histograms.cpp i, min_idx[i], min_idx0[i], max_idx[i], max_idx0[i] ); i 749 modules/imgproc/test/test_histograms.cpp int i; i 752 modules/imgproc/test/test_histograms.cpp for( i = 0; i < total_size; i++ ) i 753 modules/imgproc/test/test_histograms.cpp sum += ptr[i]; i 853 modules/imgproc/test/test_histograms.cpp int i, k; i 860 modules/imgproc/test/test_histograms.cpp for( node = cvInitSparseMatIterator( sparse, &iterator ), i = 0; i 861 modules/imgproc/test/test_histograms.cpp node != 0; node = cvGetNextSparseNode( &iterator ), i++ ) i 865 modules/imgproc/test/test_histograms.cpp OPENCV_ASSERT( i < orig_nz_count, "CV_ThreshHistTest::prepare_test_case", "Buffer overflow" ); i 867 modules/imgproc/test/test_histograms.cpp values->data.fl[i] = *(float*)CV_NODE_VAL(sparse,node); i 869 modules/imgproc/test/test_histograms.cpp indices->data.i[i*cdims + k] = idx[k]; i 872 modules/imgproc/test/test_histograms.cpp OPENCV_ASSERT( i == orig_nz_count, "Unmatched buffer size", i 890 modules/imgproc/test/test_histograms.cpp int i; i 902 modules/imgproc/test/test_histograms.cpp for( i = 0; i < orig_nz_count; i++ ) i 904 modules/imgproc/test/test_histograms.cpp float v0 = ptr0[i], v; i 907 modules/imgproc/test/test_histograms.cpp v = ptr[i]; i 910 modules/imgproc/test/test_histograms.cpp v = (float)cvGetRealND( sparse, indices->data.i + i*cdims ); i 911 modules/imgproc/test/test_histograms.cpp cvClearND( sparse, indices->data.i + i*cdims ); i 917 modules/imgproc/test/test_histograms.cpp ts->printf( cvtest::TS::LOG, "The %d-th bin is invalid (=%g)\n", i, v ); i 923 modules/imgproc/test/test_histograms.cpp ts->printf( cvtest::TS::LOG, "The %d-th bin is incorrect (=%g, should be =%g)\n", i, v, v0 ); i 998 modules/imgproc/test/test_histograms.cpp int i; i 1002 modules/imgproc/test/test_histograms.cpp for( i = 0; i < MAX_METHOD; i++ ) i 1003 modules/imgproc/test/test_histograms.cpp result0[i] = 0; i 1010 modules/imgproc/test/test_histograms.cpp for( i = 0; i < total_size; i++ ) i 1012 modules/imgproc/test/test_histograms.cpp double v0 = ptr0[i], v1 = ptr1[i]; i 1085 modules/imgproc/test/test_histograms.cpp for( i = 0; i < MAX_METHOD; i++ ) i 1087 modules/imgproc/test/test_histograms.cpp double v = result[i], v0 = result0[i]; i 1089 modules/imgproc/test/test_histograms.cpp i == CV_COMP_CHISQR ? "Chi-Square" : i 1090 modules/imgproc/test/test_histograms.cpp i == CV_COMP_CHISQR_ALT ? "Alternative Chi-Square" : i 1091 modules/imgproc/test/test_histograms.cpp i == CV_COMP_CORREL ? "Correlation" : i 1092 modules/imgproc/test/test_histograms.cpp i == CV_COMP_INTERSECT ? "Intersection" : i 1093 modules/imgproc/test/test_histograms.cpp i == CV_COMP_BHATTACHARYYA ? "Bhattacharyya" : i 1094 modules/imgproc/test/test_histograms.cpp i == CV_COMP_KL_DIV ? "Kullback-Leibler" : "Unknown"; i 1099 modules/imgproc/test/test_histograms.cpp i, method_name, v ); i 1106 modules/imgproc/test/test_histograms.cpp i, method_name, v, v0 ); i 1139 modules/imgproc/test/test_histograms.cpp int i; i 1145 modules/imgproc/test/test_histograms.cpp for( i = 0; i <= CV_MAX_DIM; i++ ) i 1147 modules/imgproc/test/test_histograms.cpp images[i] = 0; i 1148 modules/imgproc/test/test_histograms.cpp channels[i] = 0; i 1161 modules/imgproc/test/test_histograms.cpp int i; i 1163 modules/imgproc/test/test_histograms.cpp for( i = 0; i <= CV_MAX_DIM; i++ ) i 1164 modules/imgproc/test/test_histograms.cpp cvReleaseImage( &images[i] ); i 1177 modules/imgproc/test/test_histograms.cpp int i; i 1179 modules/imgproc/test/test_histograms.cpp for( i = 0; i <= CV_MAX_DIM; i++ ) i 1181 modules/imgproc/test/test_histograms.cpp if( i < cdims ) i 1184 modules/imgproc/test/test_histograms.cpp images[i] = cvCreateImage( img_size, i 1186 modules/imgproc/test/test_histograms.cpp channels[i] = cvtest::randInt(rng) % nch; i 1187 modules/imgproc/test/test_histograms.cpp Mat images_i = cvarrToMat(images[i]); i 1191 modules/imgproc/test/test_histograms.cpp else if( i == CV_MAX_DIM && cvtest::randInt(rng) % 2 ) i 1194 modules/imgproc/test/test_histograms.cpp images[i] = cvCreateImage( img_size, IPL_DEPTH_8U, 1 ); i 1195 modules/imgproc/test/test_histograms.cpp Mat images_i = cvarrToMat(images[i]); i 1350 modules/imgproc/test/test_histograms.cpp int i; i 1356 modules/imgproc/test/test_histograms.cpp for( i = 0; i < CV_MAX_DIM+3; i++ ) i 1358 modules/imgproc/test/test_histograms.cpp images[i] = 0; i 1359 modules/imgproc/test/test_histograms.cpp channels[i] = 0; i 1372 modules/imgproc/test/test_histograms.cpp int i; i 1374 modules/imgproc/test/test_histograms.cpp for( i = 0; i < CV_MAX_DIM+3; i++ ) i 1375 modules/imgproc/test/test_histograms.cpp cvReleaseImage( &images[i] ); i 1388 modules/imgproc/test/test_histograms.cpp int i, j, n, img_len = img_size.width*img_size.height; i 1390 modules/imgproc/test/test_histograms.cpp for( i = 0; i < CV_MAX_DIM + 3; i++ ) i 1392 modules/imgproc/test/test_histograms.cpp if( i < cdims ) i 1395 modules/imgproc/test/test_histograms.cpp images[i] = cvCreateImage( img_size, i 1397 modules/imgproc/test/test_histograms.cpp channels[i] = cvtest::randInt(rng) % nch; i 1399 modules/imgproc/test/test_histograms.cpp Mat images_i = cvarrToMat(images[i]); i 1402 modules/imgproc/test/test_histograms.cpp else if( i == CV_MAX_DIM && cvtest::randInt(rng) % 2 ) i 1405 modules/imgproc/test/test_histograms.cpp images[i] = cvCreateImage( img_size, IPL_DEPTH_8U, 1 ); i 1406 modules/imgproc/test/test_histograms.cpp Mat images_i = cvarrToMat(images[i]); i 1410 modules/imgproc/test/test_histograms.cpp else if( i > CV_MAX_DIM ) i 1412 modules/imgproc/test/test_histograms.cpp images[i] = cvCreateImage( img_size, images[0]->depth, 1 ); i 1420 modules/imgproc/test/test_histograms.cpp for( i = 0; i < cdims; i++ ) i 1422 modules/imgproc/test/test_histograms.cpp char* data = images[i]->imageData; i 1573 modules/imgproc/test/test_histograms.cpp int i; i 1580 modules/imgproc/test/test_histograms.cpp for( i = 0; i < CV_MAX_DIM+2; i++ ) i 1582 modules/imgproc/test/test_histograms.cpp images[i] = 0; i 1583 modules/imgproc/test/test_histograms.cpp channels[i] = 0; i 1596 modules/imgproc/test/test_histograms.cpp int i; i 1598 modules/imgproc/test/test_histograms.cpp for( i = 0; i < CV_MAX_DIM+2; i++ ) i 1599 modules/imgproc/test/test_histograms.cpp cvReleaseImage( &images[i] ); i 1612 modules/imgproc/test/test_histograms.cpp int i, j, n, img_len = img_size.width*img_size.height; i 1622 modules/imgproc/test/test_histograms.cpp for( i = 0; i < CV_MAX_DIM + 2; i++ ) i 1624 modules/imgproc/test/test_histograms.cpp if( i < cdims ) i 1627 modules/imgproc/test/test_histograms.cpp images[i] = cvCreateImage( img_size, i 1629 modules/imgproc/test/test_histograms.cpp channels[i] = cvtest::randInt(rng) % nch; i 1631 modules/imgproc/test/test_histograms.cpp Mat images_i = cvarrToMat(images[i]); i 1634 modules/imgproc/test/test_histograms.cpp else if( i >= CV_MAX_DIM ) i 1636 modules/imgproc/test/test_histograms.cpp images[i] = cvCreateImage( i 1648 modules/imgproc/test/test_histograms.cpp for( i = 0; i < cdims; i++ ) i 1650 modules/imgproc/test/test_histograms.cpp char* data = images[i]->imageData; i 1683 modules/imgproc/test/test_histograms.cpp int i, dims; i 1692 modules/imgproc/test/test_histograms.cpp for( i = 0; i < dims; i++ ) i 1695 modules/imgproc/test/test_histograms.cpp mat = cvGetMat( images[i], &stub, 0, 0 ); i 1696 modules/imgproc/test/test_histograms.cpp img[i] = cvGetImage( mat, &imgstub[i] ); i 1697 modules/imgproc/test/test_histograms.cpp img[i]->roi = &roi; i 1754 modules/imgproc/test/test_histograms.cpp void init_hist( int test_case_idx, int i ); i 1802 modules/imgproc/test/test_histograms.cpp int i, j, n = hist_count/2; i 1806 modules/imgproc/test/test_histograms.cpp for( i = 0; i < total_size; i++ ) i 1811 modules/imgproc/test/test_histograms.cpp double v = hist[j]->mat.data.fl[i]; i 1820 modules/imgproc/test/test_histograms.cpp double v = hist[j+n]->mat.data.fl[i]; i 1826 modules/imgproc/test/test_histograms.cpp i, j, v ); i 1834 modules/imgproc/test/test_histograms.cpp i, j, v, v0 ); i 56 modules/imgproc/test/test_imgwarp.cpp void get_minmax_bounds( int i, int j, int type, Scalar& low, Scalar& high ); i 57 modules/imgproc/test/test_imgwarp.cpp void fill_array( int test_case_idx, int i, int j, Mat& arr ); i 87 modules/imgproc/test/test_imgwarp.cpp void CV_ImgWarpBaseTest::get_minmax_bounds( int i, int j, int type, Scalar& low, Scalar& high ) i 89 modules/imgproc/test/test_imgwarp.cpp cvtest::ArrayTest::get_minmax_bounds( i, j, type, low, high ); i 116 modules/imgproc/test/test_imgwarp.cpp void CV_ImgWarpBaseTest::fill_array( int test_case_idx, int i, int j, Mat& arr ) i 118 modules/imgproc/test/test_imgwarp.cpp if( i != INPUT || j != 0 ) i 119 modules/imgproc/test/test_imgwarp.cpp cvtest::ArrayTest::fill_array( test_case_idx, i, j, arr ); i 126 modules/imgproc/test/test_imgwarp.cpp int i, j, cols = img.cols; i 139 modules/imgproc/test/test_imgwarp.cpp for( i = 0; i < img.rows; i++ ) i 141 modules/imgproc/test/test_imgwarp.cpp uchar* ptr = img.ptr(i); i 146 modules/imgproc/test/test_imgwarp.cpp buffer[j] = (float)((sin((i+1)*space_scale)*sin((j+1)*space_scale)+1.)*scale); i 151 modules/imgproc/test/test_imgwarp.cpp buffer[j*2] = (float)((sin((i+1)*space_scale)+1.)*scale); i 152 modules/imgproc/test/test_imgwarp.cpp buffer[j*2+1] = (float)((sin((i+j)*space_scale)+1.)*scale); i 158 modules/imgproc/test/test_imgwarp.cpp buffer[j*3] = (float)((sin((i+1)*space_scale)+1.)*scale); i 160 modules/imgproc/test/test_imgwarp.cpp buffer[j*3+2] = (float)((sin((i+j)*space_scale)+1.)*scale); i 166 modules/imgproc/test/test_imgwarp.cpp buffer[j*4] = (float)((sin((i+1)*space_scale)+1.)*scale); i 168 modules/imgproc/test/test_imgwarp.cpp buffer[j*4+2] = (float)((sin((i+j)*space_scale)+1.)*scale); i 169 modules/imgproc/test/test_imgwarp.cpp buffer[j*4+3] = (float)((sin((i-j)*space_scale)+1.)*scale); i 213 modules/imgproc/test/test_imgwarp.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 278 modules/imgproc/test/test_imgwarp.cpp int i, j, k; i 281 modules/imgproc/test/test_imgwarp.cpp int* x_tab = x_idx->data.i; i 291 modules/imgproc/test/test_imgwarp.cpp x_idx->data.i[j] = t*elem_size; i 298 modules/imgproc/test/test_imgwarp.cpp y_idx->data.i[j] = t; i 309 modules/imgproc/test/test_imgwarp.cpp i = cvRound(f); i 310 modules/imgproc/test/test_imgwarp.cpp x_idx->data.i[j] = (i < 0 ? 0 : i >= src->cols ? src->cols - 1 : i)*elem_size; i 316 modules/imgproc/test/test_imgwarp.cpp i = cvRound(f); i 317 modules/imgproc/test/test_imgwarp.cpp y_idx->data.i[j] = i < 0 ? 0 : i >= src->rows ? src->rows - 1 : i; i 321 modules/imgproc/test/test_imgwarp.cpp for( i = 0; i < drows; i++ ) i 323 modules/imgproc/test/test_imgwarp.cpp uchar* dptr = dst->data.ptr + dst->step*i; i 324 modules/imgproc/test/test_imgwarp.cpp const uchar* sptr0 = src->data.ptr + src->step*y_idx->data.i[i]; i 470 modules/imgproc/test/test_imgwarp.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 581 modules/imgproc/test/test_imgwarp.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 625 modules/imgproc/test/test_imgwarp.cpp int i; i 644 modules/imgproc/test/test_imgwarp.cpp for( i = 0; i < 4; i++ ) i 646 modules/imgproc/test/test_imgwarp.cpp s[i].x += bufer[i*4]*src.cols/2; i 647 modules/imgproc/test/test_imgwarp.cpp s[i].y += bufer[i*4+1]*src.rows/2; i 648 modules/imgproc/test/test_imgwarp.cpp d[i].x += bufer[i*4+2]*dst.cols/2; i 649 modules/imgproc/test/test_imgwarp.cpp d[i].y += bufer[i*4+3]*dst.rows/2; i 707 modules/imgproc/test/test_imgwarp.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 708 modules/imgproc/test/test_imgwarp.cpp void fill_array( int test_case_idx, int i, int j, Mat& arr ); i 730 modules/imgproc/test/test_imgwarp.cpp void CV_RemapTest::fill_array( int test_case_idx, int i, int j, Mat& arr ) i 732 modules/imgproc/test/test_imgwarp.cpp if( i != INPUT ) i 733 modules/imgproc/test/test_imgwarp.cpp CV_ImgWarpBaseTest::fill_array( test_case_idx, i, j, arr ); i 805 modules/imgproc/test/test_imgwarp.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 806 modules/imgproc/test/test_imgwarp.cpp void fill_array( int test_case_idx, int i, int j, Mat& arr ); i 849 modules/imgproc/test/test_imgwarp.cpp void CV_UndistortTest::fill_array( int test_case_idx, int i, int j, Mat& arr ) i 851 modules/imgproc/test/test_imgwarp.cpp if( i != INPUT ) i 852 modules/imgproc/test/test_imgwarp.cpp CV_ImgWarpBaseTest::fill_array( test_case_idx, i, j, arr ); i 977 modules/imgproc/test/test_imgwarp.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 978 modules/imgproc/test/test_imgwarp.cpp void fill_array( int test_case_idx, int i, int j, Mat& arr ); i 1019 modules/imgproc/test/test_imgwarp.cpp void CV_UndistortMapTest::fill_array( int test_case_idx, int i, int j, Mat& arr ) i 1021 modules/imgproc/test/test_imgwarp.cpp if( i != INPUT ) i 1022 modules/imgproc/test/test_imgwarp.cpp cvtest::ArrayTest::fill_array( test_case_idx, i, j, arr ); i 1147 modules/imgproc/test/test_imgwarp.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 1148 modules/imgproc/test/test_imgwarp.cpp void fill_array( int test_case_idx, int i, int j, Mat& arr ); i 1193 modules/imgproc/test/test_imgwarp.cpp void CV_GetRectSubPixTest::fill_array( int test_case_idx, int i, int j, Mat& arr ) i 1195 modules/imgproc/test/test_imgwarp.cpp if( i != INPUT ) i 1196 modules/imgproc/test/test_imgwarp.cpp CV_ImgWarpBaseTest::fill_array( test_case_idx, i, j, arr ); i 1258 modules/imgproc/test/test_imgwarp.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 1605 modules/imgproc/test/test_imgwarp.cpp for (int i = 0, _size = sizeof(types) / sizeof(types[0]); i < _size; ++i) i 1607 modules/imgproc/test/test_imgwarp.cpp int type = types[i], depth = CV_MAT_DEPTH(type), cn = CV_MAT_CN(type); i 222 modules/imgproc/test/test_imgwarp_strict.cpp for (int i = 0; i < test_case_count; ++i) i 232 modules/imgproc/test/test_imgwarp_strict.cpp ts->update_context(this, i, true); i 395 modules/imgproc/test/test_imgwarp_strict.cpp for( int i = 0; i < 8; i++ ) i 396 modules/imgproc/test/test_imgwarp_strict.cpp coeffs[i] = 0; i 403 modules/imgproc/test/test_imgwarp_strict.cpp for(int i = 0; i < 8; i++ ) i 405 modules/imgproc/test/test_imgwarp_strict.cpp double y = -(x+3-i)*CV_PI*0.25; i 406 modules/imgproc/test/test_imgwarp_strict.cpp coeffs[i] = (float)((cs[i][0]*s0 + cs[i][1]*c0)/(y*y)); i 407 modules/imgproc/test/test_imgwarp_strict.cpp sum += coeffs[i]; i 411 modules/imgproc/test/test_imgwarp_strict.cpp for(int i = 0; i < 8; i++ ) i 412 modules/imgproc/test/test_imgwarp_strict.cpp coeffs[i] *= sum; i 923 modules/imgproc/test/test_imgwarp_strict.cpp for (int i = 0; i < ksize; ++i) i 924 modules/imgproc/test/test_imgwarp_strict.cpp ix[y] += w[i] * xyS[i * cn + r]; i 927 modules/imgproc/test/test_imgwarp_strict.cpp for (int i = 0; i < ksize; ++i) i 928 modules/imgproc/test/test_imgwarp_strict.cpp xyD[r] += w[ksize + i] * ix[i]; i 944 modules/imgproc/test/test_imgwarp_strict.cpp for (int i = 0; i < ksize; ++i) i 946 modules/imgproc/test/test_imgwarp_strict.cpp ix[i] = 0; i 947 modules/imgproc/test/test_imgwarp_strict.cpp if (ar_y[i] >= 0) i 949 modules/imgproc/test/test_imgwarp_strict.cpp const float* yS = _src.ptr<float>(ar_y[i]); i 951 modules/imgproc/test/test_imgwarp_strict.cpp ix[i] += saturate_cast<float>((ar_x[j] >= 0 ? yS[ar_x[j] + r] : borderValue[r]) * w[j]); i 955 modules/imgproc/test/test_imgwarp_strict.cpp ix[i] += saturate_cast<float>(borderValue[r] * w[j]); i 957 modules/imgproc/test/test_imgwarp_strict.cpp for (int i = 0; i < ksize; ++i) i 958 modules/imgproc/test/test_imgwarp_strict.cpp xyD[r] += saturate_cast<float>(w[ksize + i] * ix[i]); i 156 modules/imgproc/test/test_intersection.cpp for( size_t i = 0; i < vertices.size(); i++ ) i 162 modules/imgproc/test/test_intersection.cpp double dx = vertices[i].x - possibleVertices[j].x; i 163 modules/imgproc/test/test_intersection.cpp double dy = vertices[i].y - possibleVertices[j].y; i 203 modules/imgproc/test/test_intersection.cpp for( size_t i = 0; i < vertices.size(); i++ ) i 209 modules/imgproc/test/test_intersection.cpp double dx = vertices[i].x - possibleVertices[j].x; i 210 modules/imgproc/test/test_intersection.cpp double dy = vertices[i].y - possibleVertices[j].y; i 252 modules/imgproc/test/test_intersection.cpp for( size_t i = 0; i < vertices.size(); i++ ) i 258 modules/imgproc/test/test_intersection.cpp double dx = vertices[i].x - possibleVertices[j].x; i 259 modules/imgproc/test/test_intersection.cpp double dy = vertices[i].y - possibleVertices[j].y; i 305 modules/imgproc/test/test_intersection.cpp for( size_t i = 0; i < vertices.size(); i++ ) i 311 modules/imgproc/test/test_intersection.cpp double dx = vertices[i].x - possibleVertices[j].x; i 312 modules/imgproc/test/test_intersection.cpp double dy = vertices[i].y - possibleVertices[j].y; i 354 modules/imgproc/test/test_intersection.cpp for( size_t i = 0; i < vertices.size(); i++ ) i 360 modules/imgproc/test/test_intersection.cpp double dx = vertices[i].x - possibleVertices[j].x; i 361 modules/imgproc/test/test_intersection.cpp double dy = vertices[i].y - possibleVertices[j].y; i 403 modules/imgproc/test/test_intersection.cpp for( size_t i = 0; i < vertices.size(); i++ ) i 409 modules/imgproc/test/test_intersection.cpp double dx = vertices[i].x - possibleVertices[j].x; i 410 modules/imgproc/test/test_intersection.cpp double dy = vertices[i].y - possibleVertices[j].y; i 482 modules/imgproc/test/test_intersection.cpp for( size_t i = 0; i < vertices.size(); i++ ) i 488 modules/imgproc/test/test_intersection.cpp double dx = vertices[i].x - possibleVertices[j].x; i 489 modules/imgproc/test/test_intersection.cpp double dy = vertices[i].y - possibleVertices[j].y; i 69 modules/imgproc/test/test_lsd.cpp for(unsigned int i = 0; i < numLines; ++i) i 93 modules/imgproc/test/test_lsd.cpp for (int i = 0; i < 4; i++) i 95 modules/imgproc/test/test_lsd.cpp line(image, vertices[i], vertices[(i + 1) % 4], Scalar(255), 3); i 110 modules/imgproc/test/test_lsd.cpp for (int i = 0; i < EPOCHS; ++i) i 123 modules/imgproc/test/test_lsd.cpp for (int i = 0; i < EPOCHS; ++i) i 136 modules/imgproc/test/test_lsd.cpp for (int i = 0; i < EPOCHS; ++i) i 150 modules/imgproc/test/test_lsd.cpp for (int i = 0; i < EPOCHS; ++i) i 163 modules/imgproc/test/test_lsd.cpp for (int i = 0; i < EPOCHS; ++i) i 176 modules/imgproc/test/test_lsd.cpp for (int i = 0; i < EPOCHS; ++i) i 189 modules/imgproc/test/test_lsd.cpp for (int i = 0; i < EPOCHS; ++i) i 203 modules/imgproc/test/test_lsd.cpp for (int i = 0; i < EPOCHS; ++i) i 216 modules/imgproc/test/test_lsd.cpp for (int i = 0; i < EPOCHS; ++i) i 229 modules/imgproc/test/test_lsd.cpp for (int i = 0; i < EPOCHS; ++i) i 242 modules/imgproc/test/test_lsd.cpp for (int i = 0; i < EPOCHS; ++i) i 256 modules/imgproc/test/test_lsd.cpp for (int i = 0; i < EPOCHS; ++i) i 65 modules/imgproc/test/test_moments.cpp void get_minmax_bounds( int i, int j, int type, Scalar& low, Scalar& high ); i 66 modules/imgproc/test/test_moments.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 86 modules/imgproc/test/test_moments.cpp void CV_MomentsTest::get_minmax_bounds( int i, int j, int type, Scalar& low, Scalar& high ) i 88 modules/imgproc/test/test_moments.cpp cvtest::ArrayTest::get_minmax_bounds( i, j, type, low, high ); i 210 modules/imgproc/test/test_moments.cpp int i, y, x, cols = src.cols; i 319 modules/imgproc/test/test_moments.cpp for( i = 0; i < MOMENT_COUNT; i++ ) i 321 modules/imgproc/test/test_moments.cpp if( fabs(a[i]) < 1e-3 ) i 322 modules/imgproc/test/test_moments.cpp a[i] = 0; i 323 modules/imgproc/test/test_moments.cpp if( fabs(b[i]) < 1e-3 ) i 324 modules/imgproc/test/test_moments.cpp b[i] = 0; i 342 modules/imgproc/test/test_moments.cpp void get_minmax_bounds( int i, int j, int type, Scalar& low, Scalar& high ); i 343 modules/imgproc/test/test_moments.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 356 modules/imgproc/test/test_moments.cpp void CV_HuMomentsTest::get_minmax_bounds( int i, int j, int type, Scalar& low, Scalar& high ) i 358 modules/imgproc/test/test_moments.cpp cvtest::ArrayTest::get_minmax_bounds( i, j, type, low, high ); i 55 modules/imgproc/test/test_templmatch.cpp void get_minmax_bounds( int i, int j, int type, Scalar& low, Scalar& high ); i 56 modules/imgproc/test/test_templmatch.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 92 modules/imgproc/test/test_templmatch.cpp void CV_TemplMatchTest::get_minmax_bounds( int i, int j, int type, Scalar& low, Scalar& high ) i 94 modules/imgproc/test/test_templmatch.cpp cvtest::ArrayTest::get_minmax_bounds( i, j, type, low, high ); i 150 modules/imgproc/test/test_templmatch.cpp int i, j, k, l; i 161 modules/imgproc/test/test_templmatch.cpp for( i = 0; i < cn; i++ ) i 162 modules/imgproc/test/test_templmatch.cpp b_sum2 += (b_sdv.val[i]*b_sdv.val[i] + b_mean.val[i]*b_mean.val[i])*area; i 181 modules/imgproc/test/test_templmatch.cpp for( i = 0; i < cn; i++ ) i 182 modules/imgproc/test/test_templmatch.cpp b_denom += b_sdv.val[i]*b_sdv.val[i]*area; i 191 modules/imgproc/test/test_templmatch.cpp for( i = 0; i < result->rows; i++ ) i 201 modules/imgproc/test/test_templmatch.cpp const uchar* a = img->data.ptr + i*img->step + j*cn; i 233 modules/imgproc/test/test_templmatch.cpp const float* a = (const float*)(img->data.ptr + i*img->step) + j*cn; i 304 modules/imgproc/test/test_templmatch.cpp ((float*)(result->data.ptr + result->step*i))[j] = (float)value; i 54 modules/imgproc/test/test_thresh.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 125 modules/imgproc/test/test_thresh.cpp int i, j; i 152 modules/imgproc/test/test_thresh.cpp for( i = 0; i < height; i++ ) i 156 modules/imgproc/test/test_thresh.cpp const uchar* src = _src.ptr<uchar>(i); i 157 modules/imgproc/test/test_thresh.cpp uchar* dst = _dst.ptr<uchar>(i); i 163 modules/imgproc/test/test_thresh.cpp const short* src = _src.ptr<short>(i); i 164 modules/imgproc/test/test_thresh.cpp short* dst = _dst.ptr<short>(i); i 170 modules/imgproc/test/test_thresh.cpp const float* src = _src.ptr<float>(i); i 171 modules/imgproc/test/test_thresh.cpp float* dst = _dst.ptr<float>(i); i 178 modules/imgproc/test/test_thresh.cpp for( i = 0; i < height; i++ ) i 182 modules/imgproc/test/test_thresh.cpp const uchar* src = _src.ptr<uchar>(i); i 183 modules/imgproc/test/test_thresh.cpp uchar* dst = _dst.ptr<uchar>(i); i 189 modules/imgproc/test/test_thresh.cpp const short* src = _src.ptr<short>(i); i 190 modules/imgproc/test/test_thresh.cpp short* dst = _dst.ptr<short>(i); i 196 modules/imgproc/test/test_thresh.cpp const float* src = _src.ptr<float>(i); i 197 modules/imgproc/test/test_thresh.cpp float* dst = _dst.ptr<float>(i); i 204 modules/imgproc/test/test_thresh.cpp for( i = 0; i < height; i++ ) i 208 modules/imgproc/test/test_thresh.cpp const uchar* src = _src.ptr<uchar>(i); i 209 modules/imgproc/test/test_thresh.cpp uchar* dst = _dst.ptr<uchar>(i); i 218 modules/imgproc/test/test_thresh.cpp const short* src = _src.ptr<short>(i); i 219 modules/imgproc/test/test_thresh.cpp short* dst = _dst.ptr<short>(i); i 228 modules/imgproc/test/test_thresh.cpp const float* src = _src.ptr<float>(i); i 229 modules/imgproc/test/test_thresh.cpp float* dst = _dst.ptr<float>(i); i 239 modules/imgproc/test/test_thresh.cpp for( i = 0; i < height; i++ ) i 243 modules/imgproc/test/test_thresh.cpp const uchar* src = _src.ptr<uchar>(i); i 244 modules/imgproc/test/test_thresh.cpp uchar* dst = _dst.ptr<uchar>(i); i 253 modules/imgproc/test/test_thresh.cpp const short* src = _src.ptr<short>(i); i 254 modules/imgproc/test/test_thresh.cpp short* dst = _dst.ptr<short>(i); i 263 modules/imgproc/test/test_thresh.cpp const float* src = _src.ptr<float>(i); i 264 modules/imgproc/test/test_thresh.cpp float* dst = _dst.ptr<float>(i); i 274 modules/imgproc/test/test_thresh.cpp for( i = 0; i < height; i++ ) i 278 modules/imgproc/test/test_thresh.cpp const uchar* src = _src.ptr<uchar>(i); i 279 modules/imgproc/test/test_thresh.cpp uchar* dst = _dst.ptr<uchar>(i); i 288 modules/imgproc/test/test_thresh.cpp const short* src = _src.ptr<short>(i); i 289 modules/imgproc/test/test_thresh.cpp short* dst = _dst.ptr<short>(i); i 298 modules/imgproc/test/test_thresh.cpp const float* src = _src.ptr<float>(i); i 299 modules/imgproc/test/test_thresh.cpp float* dst = _dst.ptr<float>(i); i 81 modules/imgproc/test/test_watershed.cpp for(int i = 0; cnts != 0; cnts = cnts->h_next, ++i ) i 83 modules/imgproc/test/test_watershed.cpp cvDrawContours( &iplmrks, cnts, Scalar::all(i + 1), Scalar::all(i + 1), -1, CV_FILLED); i 99 modules/imgproc/test/test_watershed.cpp for(int i = 0; i < markers.cols; ++i) i 101 modules/imgproc/test/test_watershed.cpp int& pixel = line[i]; i 219 modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java for (int i = 0; i < list1.size(); i++) i 220 modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java assertEquals(list1.get(i), list2.get(i)); i 228 modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java for (int i = 0; i < list1.size(); i++) i 229 modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java assertTrue(Math.abs(list1.get(i).doubleValue() - list2.get(i).doubleValue()) <= epsilon); i 237 modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java for (int i = 0; i < ar1.length; i++) i 238 modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java assertEquals(ar1[i].doubleValue(), ar2[i].doubleValue(), epsilon); i 247 modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java for (int i = 0; i < ar1.length; i++) i 248 modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java assertEquals(ar1[i], ar2[i], epsilon); i 257 modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java for (int i = 0; i < list1.size(); i++) i 258 modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java assertMatEqual(list1.get(i), list2.get(i), epsilon); i 266 modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java for (int i = 0; i < list1.size(); i++) i 267 modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java assertPointEquals(list1.get(i), list2.get(i), epsilon); i 275 modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java for (int i = 0; i < vp1.length; i++) i 276 modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java assertPointEquals(vp1[i], vp2[i], epsilon); i 283 modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java for (int i = 0; i < list1.size(); i++) i 284 modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java assertPoint3Equals(list1.get(i), list2.get(i), epsilon); i 292 modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java for (int i = 0; i < list1.size(); i++) i 293 modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java assertRectEquals(list1.get(i), list2.get(i)); i 332 modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java for (int i = 0; i < expected.size(); i++) i 333 modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java assertKeyPointEqual(expected.get(i), actual.get(i), epsilon); i 354 modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java for (int i = 0; i < expected.length; i++) i 355 modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java assertDMatchEqual(expected[i], actual[i], epsilon); i 1511 modules/java/generator/src/cpp/Mat.cpp (JNIEnv* env, jclass, jlong self, jint i); i 1514 modules/java/generator/src/cpp/Mat.cpp (JNIEnv* env, jclass, jlong self, jint i) i 1520 modules/java/generator/src/cpp/Mat.cpp return me->step1( i ); i 2145 modules/java/generator/src/cpp/Mat.cpp int i; i 2147 modules/java/generator/src/cpp/Mat.cpp case CV_8U: for(i=0; i<me->channels(); i++) buff[i] = *((unsigned char*) me->ptr(row, col) + i); break; i 2148 modules/java/generator/src/cpp/Mat.cpp case CV_8S: for(i=0; i<me->channels(); i++) buff[i] = *((signed char*) me->ptr(row, col) + i); break; i 2149 modules/java/generator/src/cpp/Mat.cpp case CV_16U: for(i=0; i<me->channels(); i++) buff[i] = *((unsigned short*)me->ptr(row, col) + i); break; i 2150 modules/java/generator/src/cpp/Mat.cpp case CV_16S: for(i=0; i<me->channels(); i++) buff[i] = *((signed short*) me->ptr(row, col) + i); break; i 2151 modules/java/generator/src/cpp/Mat.cpp case CV_32S: for(i=0; i<me->channels(); i++) buff[i] = *((int*) me->ptr(row, col) + i); break; i 2152 modules/java/generator/src/cpp/Mat.cpp case CV_32F: for(i=0; i<me->channels(); i++) buff[i] = *((float*) me->ptr(row, col) + i); break; i 2153 modules/java/generator/src/cpp/Mat.cpp case CV_64F: for(i=0; i<me->channels(); i++) buff[i] = *((double*) me->ptr(row, col) + i); break; i 183 modules/java/generator/src/cpp/converters.cpp for(int i=0; i<mat.rows; i++) i 185 modules/java/generator/src/cpp/converters.cpp Vec<int, 2> a = mat.at< Vec<int, 2> >(i, 0); i 200 modules/java/generator/src/cpp/converters.cpp for(int i=0; i<count; i++) i 202 modules/java/generator/src/cpp/converters.cpp long long addr = (long long) new Mat(v_mat[i]); i 203 modules/java/generator/src/cpp/converters.cpp mat.at< Vec<int, 2> >(i, 0) = Vec<int, 2>(addr>>32, addr&0xffffffff); i 212 modules/java/generator/src/cpp/converters.cpp for(size_t i=0; i<vm.size(); i++) i 215 modules/java/generator/src/cpp/converters.cpp Mat_to_vector_Point(vm[i], vpt); i 225 modules/java/generator/src/cpp/converters.cpp for(size_t i=0; i<vm.size(); i++) i 228 modules/java/generator/src/cpp/converters.cpp Mat_to_vector_Point2f(vm[i], vpt); i 238 modules/java/generator/src/cpp/converters.cpp for(size_t i=0; i<vm.size(); i++) i 241 modules/java/generator/src/cpp/converters.cpp Mat_to_vector_Point3f(vm[i], vpt); i 251 modules/java/generator/src/cpp/converters.cpp for(size_t i=0; i<vm.size(); i++) i 254 modules/java/generator/src/cpp/converters.cpp Mat_to_vector_char(vm[i], vch); i 263 modules/java/generator/src/cpp/converters.cpp for(size_t i=0; i<vv_ch.size(); i++) i 266 modules/java/generator/src/cpp/converters.cpp vector_char_to_Mat(vv_ch[i], m); i 276 modules/java/generator/src/cpp/converters.cpp for(size_t i=0; i<vv_pt.size(); i++) i 279 modules/java/generator/src/cpp/converters.cpp vector_Point_to_Mat(vv_pt[i], m); i 289 modules/java/generator/src/cpp/converters.cpp for(size_t i=0; i<vv_pt.size(); i++) i 292 modules/java/generator/src/cpp/converters.cpp vector_Point2f_to_Mat(vv_pt[i], m); i 302 modules/java/generator/src/cpp/converters.cpp for(size_t i=0; i<vv_pt.size(); i++) i 305 modules/java/generator/src/cpp/converters.cpp vector_Point3f_to_Mat(vv_pt[i], m); i 305 modules/java/generator/src/java/android+AsyncServiceHelper.java Log.i(TAG, str); i 51 modules/java/generator/src/java/android+FpsMeter.java Log.i(TAG, mStrfps); i 99 modules/java/generator/src/java/android+JavaCameraView.java Log.i(TAG, "Trying to open back camera"); i 109 modules/java/generator/src/java/android+JavaCameraView.java Log.i(TAG, "Trying to open front camera"); i 44 modules/java/generator/src/java/android+StaticHelper.java Log.i(TAG, str); i 42 modules/java/generator/src/java/utils+Converters.java for (int i = 0; i < count; i++) { i 43 modules/java/generator/src/java/utils+Converters.java Point p = pts.get(i); i 44 modules/java/generator/src/java/utils+Converters.java buff[i * 2] = (int) p.x; i 45 modules/java/generator/src/java/utils+Converters.java buff[i * 2 + 1] = (int) p.y; i 54 modules/java/generator/src/java/utils+Converters.java for (int i = 0; i < count; i++) { i 55 modules/java/generator/src/java/utils+Converters.java Point p = pts.get(i); i 56 modules/java/generator/src/java/utils+Converters.java buff[i * 2] = (float) p.x; i 57 modules/java/generator/src/java/utils+Converters.java buff[i * 2 + 1] = (float) p.y; i 66 modules/java/generator/src/java/utils+Converters.java for (int i = 0; i < count; i++) { i 67 modules/java/generator/src/java/utils+Converters.java Point p = pts.get(i); i 68 modules/java/generator/src/java/utils+Converters.java buff[i * 2] = p.x; i 69 modules/java/generator/src/java/utils+Converters.java buff[i * 2 + 1] = p.y; i 104 modules/java/generator/src/java/utils+Converters.java for (int i = 0; i < count; i++) { i 105 modules/java/generator/src/java/utils+Converters.java Point3 p = pts.get(i); i 106 modules/java/generator/src/java/utils+Converters.java buff[i * 3] = (int) p.x; i 107 modules/java/generator/src/java/utils+Converters.java buff[i * 3 + 1] = (int) p.y; i 108 modules/java/generator/src/java/utils+Converters.java buff[i * 3 + 2] = (int) p.z; i 117 modules/java/generator/src/java/utils+Converters.java for (int i = 0; i < count; i++) { i 118 modules/java/generator/src/java/utils+Converters.java Point3 p = pts.get(i); i 119 modules/java/generator/src/java/utils+Converters.java buff[i * 3] = (float) p.x; i 120 modules/java/generator/src/java/utils+Converters.java buff[i * 3 + 1] = (float) p.y; i 121 modules/java/generator/src/java/utils+Converters.java buff[i * 3 + 2] = (float) p.z; i 130 modules/java/generator/src/java/utils+Converters.java for (int i = 0; i < count; i++) { i 131 modules/java/generator/src/java/utils+Converters.java Point3 p = pts.get(i); i 132 modules/java/generator/src/java/utils+Converters.java buff[i * 3] = p.x; i 133 modules/java/generator/src/java/utils+Converters.java buff[i * 3 + 1] = p.y; i 134 modules/java/generator/src/java/utils+Converters.java buff[i * 3 + 2] = p.z; i 169 modules/java/generator/src/java/utils+Converters.java for (int i = 0; i < count; i++) { i 170 modules/java/generator/src/java/utils+Converters.java pts.add(new Point(buff[i * 2], buff[i * 2 + 1])); i 175 modules/java/generator/src/java/utils+Converters.java for (int i = 0; i < count; i++) { i 176 modules/java/generator/src/java/utils+Converters.java pts.add(new Point(buff[i * 2], buff[i * 2 + 1])); i 181 modules/java/generator/src/java/utils+Converters.java for (int i = 0; i < count; i++) { i 182 modules/java/generator/src/java/utils+Converters.java pts.add(new Point(buff[i * 2], buff[i * 2 + 1])); i 214 modules/java/generator/src/java/utils+Converters.java for (int i = 0; i < count; i++) { i 215 modules/java/generator/src/java/utils+Converters.java pts.add(new Point3(buff[i * 3], buff[i * 3 + 1], buff[i * 3 + 2])); i 220 modules/java/generator/src/java/utils+Converters.java for (int i = 0; i < count; i++) { i 221 modules/java/generator/src/java/utils+Converters.java pts.add(new Point3(buff[i * 3], buff[i * 3 + 1], buff[i * 3 + 2])); i 226 modules/java/generator/src/java/utils+Converters.java for (int i = 0; i < count; i++) { i 227 modules/java/generator/src/java/utils+Converters.java pts.add(new Point3(buff[i * 3], buff[i * 3 + 1], buff[i * 3 + 2])); i 241 modules/java/generator/src/java/utils+Converters.java for (int i = 0; i < count; i++) { i 242 modules/java/generator/src/java/utils+Converters.java long addr = mats.get(i).nativeObj; i 243 modules/java/generator/src/java/utils+Converters.java buff[i * 2] = (int) (addr >> 32); i 244 modules/java/generator/src/java/utils+Converters.java buff[i * 2 + 1] = (int) (addr & 0xffffffff); i 264 modules/java/generator/src/java/utils+Converters.java for (int i = 0; i < count; i++) { i 265 modules/java/generator/src/java/utils+Converters.java long addr = (((long) buff[i * 2]) << 32) | (((long) buff[i * 2 + 1]) & 0xffffffffL); i 276 modules/java/generator/src/java/utils+Converters.java for (int i = 0; i < count; i++) { i 277 modules/java/generator/src/java/utils+Converters.java float f = fs.get(i); i 278 modules/java/generator/src/java/utils+Converters.java buff[i] = f; i 298 modules/java/generator/src/java/utils+Converters.java for (int i = 0; i < count; i++) { i 299 modules/java/generator/src/java/utils+Converters.java fs.add(buff[i]); i 309 modules/java/generator/src/java/utils+Converters.java for (int i = 0; i < count; i++) { i 310 modules/java/generator/src/java/utils+Converters.java byte b = bs.get(i); i 311 modules/java/generator/src/java/utils+Converters.java buff[i] = b; i 331 modules/java/generator/src/java/utils+Converters.java for (int i = 0; i < count; i++) { i 332 modules/java/generator/src/java/utils+Converters.java us.add(buff[i]); i 342 modules/java/generator/src/java/utils+Converters.java for (int i = 0; i < count; i++) { i 343 modules/java/generator/src/java/utils+Converters.java byte b = bs.get(i); i 344 modules/java/generator/src/java/utils+Converters.java buff[i] = b; i 359 modules/java/generator/src/java/utils+Converters.java for (int i = 0; i < count; i++) { i 360 modules/java/generator/src/java/utils+Converters.java int v = is.get(i); i 361 modules/java/generator/src/java/utils+Converters.java buff[i] = v; i 381 modules/java/generator/src/java/utils+Converters.java for (int i = 0; i < count; i++) { i 382 modules/java/generator/src/java/utils+Converters.java is.add(buff[i]); i 397 modules/java/generator/src/java/utils+Converters.java for (int i = 0; i < count; i++) { i 398 modules/java/generator/src/java/utils+Converters.java bs.add(buff[i]); i 408 modules/java/generator/src/java/utils+Converters.java for (int i = 0; i < count; i++) { i 409 modules/java/generator/src/java/utils+Converters.java Rect r = rs.get(i); i 410 modules/java/generator/src/java/utils+Converters.java buff[4 * i] = r.x; i 411 modules/java/generator/src/java/utils+Converters.java buff[4 * i + 1] = r.y; i 412 modules/java/generator/src/java/utils+Converters.java buff[4 * i + 2] = r.width; i 413 modules/java/generator/src/java/utils+Converters.java buff[4 * i + 3] = r.height; i 433 modules/java/generator/src/java/utils+Converters.java for (int i = 0; i < count; i++) { i 434 modules/java/generator/src/java/utils+Converters.java rs.add(new Rect(buff[4 * i], buff[4 * i + 1], buff[4 * i + 2], buff[4 * i + 3])); i 444 modules/java/generator/src/java/utils+Converters.java for (int i = 0; i < count; i++) { i 445 modules/java/generator/src/java/utils+Converters.java KeyPoint kp = kps.get(i); i 446 modules/java/generator/src/java/utils+Converters.java buff[7 * i] = kp.pt.x; i 447 modules/java/generator/src/java/utils+Converters.java buff[7 * i + 1] = kp.pt.y; i 448 modules/java/generator/src/java/utils+Converters.java buff[7 * i + 2] = kp.size; i 449 modules/java/generator/src/java/utils+Converters.java buff[7 * i + 3] = kp.angle; i 450 modules/java/generator/src/java/utils+Converters.java buff[7 * i + 4] = kp.response; i 451 modules/java/generator/src/java/utils+Converters.java buff[7 * i + 5] = kp.octave; i 452 modules/java/generator/src/java/utils+Converters.java buff[7 * i + 6] = kp.class_id; i 472 modules/java/generator/src/java/utils+Converters.java for (int i = 0; i < count; i++) { i 473 modules/java/generator/src/java/utils+Converters.java kps.add(new KeyPoint((float) buff[7 * i], (float) buff[7 * i + 1], (float) buff[7 * i + 2], (float) buff[7 * i + 3], i 474 modules/java/generator/src/java/utils+Converters.java (float) buff[7 * i + 4], (int) buff[7 * i + 5], (int) buff[7 * i + 6])); i 610 modules/java/generator/src/java/utils+Converters.java for (int i = 0; i < count; i++) { i 611 modules/java/generator/src/java/utils+Converters.java double v = ds.get(i); i 612 modules/java/generator/src/java/utils+Converters.java buff[i] = v; i 632 modules/java/generator/src/java/utils+Converters.java for (int i = 0; i < count; i++) { i 633 modules/java/generator/src/java/utils+Converters.java ds.add(buff[i]); i 643 modules/java/generator/src/java/utils+Converters.java for (int i = 0; i < count; i++) { i 644 modules/java/generator/src/java/utils+Converters.java DMatch m = matches.get(i); i 645 modules/java/generator/src/java/utils+Converters.java buff[4 * i] = m.queryIdx; i 646 modules/java/generator/src/java/utils+Converters.java buff[4 * i + 1] = m.trainIdx; i 647 modules/java/generator/src/java/utils+Converters.java buff[4 * i + 2] = m.imgIdx; i 648 modules/java/generator/src/java/utils+Converters.java buff[4 * i + 3] = m.distance; i 668 modules/java/generator/src/java/utils+Converters.java for (int i = 0; i < count; i++) { i 669 modules/java/generator/src/java/utils+Converters.java matches.add(new DMatch((int) buff[4 * i], (int) buff[4 * i + 1], (int) buff[4 * i + 2], (float) buff[4 * i + 3])); i 249 modules/java/pure_test/src/org/opencv/test/OpenCVTestCase.java for (int i = 0; i < list1.size(); i++) i 250 modules/java/pure_test/src/org/opencv/test/OpenCVTestCase.java assertEquals(list1.get(i), list2.get(i)); i 258 modules/java/pure_test/src/org/opencv/test/OpenCVTestCase.java for (int i = 0; i < list1.size(); i++) i 259 modules/java/pure_test/src/org/opencv/test/OpenCVTestCase.java assertTrue(Math.abs(list1.get(i).doubleValue() - list2.get(i).doubleValue()) <= epsilon); i 267 modules/java/pure_test/src/org/opencv/test/OpenCVTestCase.java for (int i = 0; i < ar1.length; i++) i 268 modules/java/pure_test/src/org/opencv/test/OpenCVTestCase.java assertEquals(ar1[i].doubleValue(), ar2[i].doubleValue(), epsilon); i 277 modules/java/pure_test/src/org/opencv/test/OpenCVTestCase.java for (int i = 0; i < ar1.length; i++) i 278 modules/java/pure_test/src/org/opencv/test/OpenCVTestCase.java assertEquals(ar1[i], ar2[i], epsilon); i 287 modules/java/pure_test/src/org/opencv/test/OpenCVTestCase.java for (int i = 0; i < list1.size(); i++) i 288 modules/java/pure_test/src/org/opencv/test/OpenCVTestCase.java assertMatEqual(list1.get(i), list2.get(i), epsilon); i 296 modules/java/pure_test/src/org/opencv/test/OpenCVTestCase.java for (int i = 0; i < list1.size(); i++) i 297 modules/java/pure_test/src/org/opencv/test/OpenCVTestCase.java assertPointEquals(list1.get(i), list2.get(i), epsilon); i 305 modules/java/pure_test/src/org/opencv/test/OpenCVTestCase.java for (int i = 0; i < vp1.length; i++) i 306 modules/java/pure_test/src/org/opencv/test/OpenCVTestCase.java assertPointEquals(vp1[i], vp2[i], epsilon); i 313 modules/java/pure_test/src/org/opencv/test/OpenCVTestCase.java for (int i = 0; i < list1.size(); i++) i 314 modules/java/pure_test/src/org/opencv/test/OpenCVTestCase.java assertPoint3Equals(list1.get(i), list2.get(i), epsilon); i 322 modules/java/pure_test/src/org/opencv/test/OpenCVTestCase.java for (int i = 0; i < list1.size(); i++) i 323 modules/java/pure_test/src/org/opencv/test/OpenCVTestCase.java assertRectEquals(list1.get(i), list2.get(i)); i 362 modules/java/pure_test/src/org/opencv/test/OpenCVTestCase.java for (int i = 0; i < expected.size(); i++) i 363 modules/java/pure_test/src/org/opencv/test/OpenCVTestCase.java assertKeyPointEqual(expected.get(i), actual.get(i), epsilon); i 384 modules/java/pure_test/src/org/opencv/test/OpenCVTestCase.java for (int i = 0; i < expected.length; i++) i 385 modules/java/pure_test/src/org/opencv/test/OpenCVTestCase.java assertDMatchEqual(expected[i], actual[i], epsilon); i 696 modules/ml/include/opencv2/ml.hpp CV_WRAP virtual double getDecisionFunction(int i, OutputArray alpha, OutputArray svidx) const = 0; i 174 modules/ml/src/ann_mlp.cpp int i, j, k, l_count = layer_count(); i 176 modules/ml/src/ann_mlp.cpp for( i = 1; i < l_count; i++ ) i 178 modules/ml/src/ann_mlp.cpp int n1 = layer_sizes[i-1]; i 179 modules/ml/src/ann_mlp.cpp int n2 = layer_sizes[i]; i 181 modules/ml/src/ann_mlp.cpp double* w = weights[i].ptr<double>(); i 194 modules/ml/src/ann_mlp.cpp if( i < l_count - 1 ) i 222 modules/ml/src/ann_mlp.cpp for( int i = 0; i < l_count; i++ ) i 224 modules/ml/src/ann_mlp.cpp int n = layer_sizes[i]; i 225 modules/ml/src/ann_mlp.cpp if( n < 1 + (0 < i && i < l_count-1)) i 230 modules/ml/src/ann_mlp.cpp if( i > 0 ) i 231 modules/ml/src/ann_mlp.cpp weights[i].create(layer_sizes[i-1]+1, n, CV_64F); i 280 modules/ml/src/ann_mlp.cpp for( int i = 0; i < n; i += dn ) i 282 modules/ml/src/ann_mlp.cpp dn = std::min( dn0, n - i ); i 284 modules/ml/src/ann_mlp.cpp Mat layer_in = inputs.rowRange(i, i + dn); i 303 modules/ml/src/ann_mlp.cpp layer_out = outputs.rowRange(i, i + dn); i 324 modules/ml/src/ann_mlp.cpp for( int i = 0; i < _src.rows; i++ ) i 326 modules/ml/src/ann_mlp.cpp const float* src = _src.ptr<float>(i); i 327 modules/ml/src/ann_mlp.cpp double* dst = _dst.ptr<double>(i); i 334 modules/ml/src/ann_mlp.cpp for( int i = 0; i < _src.rows; i++ ) i 336 modules/ml/src/ann_mlp.cpp const float* src = _src.ptr<float>(i); i 337 modules/ml/src/ann_mlp.cpp double* dst = _dst.ptr<double>(i); i 351 modules/ml/src/ann_mlp.cpp for( int i = 0; i < _src.rows; i++ ) i 353 modules/ml/src/ann_mlp.cpp const double* src = _src.ptr<double>(i); i 354 modules/ml/src/ann_mlp.cpp float* dst = _dst.ptr<float>(i); i 361 modules/ml/src/ann_mlp.cpp for( int i = 0; i < _src.rows; i++ ) i 363 modules/ml/src/ann_mlp.cpp const double* src = _src.ptr<double>(i); i 364 modules/ml/src/ann_mlp.cpp double* dst = _dst.ptr<double>(i); i 374 modules/ml/src/ann_mlp.cpp int i, j, n = sums.rows, cols = sums.cols; i 396 modules/ml/src/ann_mlp.cpp for( i = 0; i < n; i++ ) i 398 modules/ml/src/ann_mlp.cpp double* data = sums.ptr<double>(i); i 408 modules/ml/src/ann_mlp.cpp for( i = 0; i < n; i++ ) i 410 modules/ml/src/ann_mlp.cpp double* data = sums.ptr<double>(i); i 430 modules/ml/src/ann_mlp.cpp for( i = 0; i < n; i++ ) i 432 modules/ml/src/ann_mlp.cpp double* data = sums.ptr<double>(i); i 442 modules/ml/src/ann_mlp.cpp for( i = 0; i < n; i++ ) i 444 modules/ml/src/ann_mlp.cpp double* data = sums.ptr<double>(i); i 458 modules/ml/src/ann_mlp.cpp int i, j, n = _xf.rows, cols = _xf.cols; i 462 modules/ml/src/ann_mlp.cpp for( i = 0; i < n; i++ ) i 464 modules/ml/src/ann_mlp.cpp double* xf = _xf.ptr<double>(i); i 465 modules/ml/src/ann_mlp.cpp double* df = _df.ptr<double>(i); i 478 modules/ml/src/ann_mlp.cpp for( i = 0; i < n; i++ ) i 480 modules/ml/src/ann_mlp.cpp double* xf = _xf.ptr<double>(i); i 481 modules/ml/src/ann_mlp.cpp double* df = _df.ptr<double>(i); i 492 modules/ml/src/ann_mlp.cpp for( i = 0; i < n; i++ ) i 494 modules/ml/src/ann_mlp.cpp double* xf = _xf.ptr<double>(i); i 495 modules/ml/src/ann_mlp.cpp double* df = _df.ptr<double>(i); i 506 modules/ml/src/ann_mlp.cpp for( i = 0; i < n; i++ ) i 508 modules/ml/src/ann_mlp.cpp double* xf = _xf.ptr<double>(i); i 509 modules/ml/src/ann_mlp.cpp double* df = _df.ptr<double>(i); i 524 modules/ml/src/ann_mlp.cpp for( i = 0; i < n; i++ ) i 526 modules/ml/src/ann_mlp.cpp double* xf = _xf.ptr<double>(i); i 527 modules/ml/src/ann_mlp.cpp double* df = _df.ptr<double>(i); i 551 modules/ml/src/ann_mlp.cpp int i, j, vcount = layer_sizes[0]; i 561 modules/ml/src/ann_mlp.cpp for( i = 0; i < count; i++ ) i 563 modules/ml/src/ann_mlp.cpp const uchar* p = inputs.ptr(i); i 586 modules/ml/src/ann_mlp.cpp int i, j, vcount = layer_sizes.back(); i 610 modules/ml/src/ann_mlp.cpp for( i = 0; i < count; i++ ) i 612 modules/ml/src/ann_mlp.cpp const uchar* p = outputs.ptr(i); i 719 modules/ml/src/ann_mlp.cpp int i, j, k; i 737 modules/ml/src/ann_mlp.cpp for( i = 0; i < l_count; i++ ) i 739 modules/ml/src/ann_mlp.cpp int n = layer_sizes[i]; i 740 modules/ml/src/ann_mlp.cpp x[i].resize(n+1); i 741 modules/ml/src/ann_mlp.cpp df[i].resize(n); i 742 modules/ml/src/ann_mlp.cpp dw[i] = Mat::zeros(weights[i].size(), CV_64F); i 747 modules/ml/src/ann_mlp.cpp for( i = 0; i < count; i++ ) i 748 modules/ml/src/ann_mlp.cpp _idx[i] = i; i 779 modules/ml/src/ann_mlp.cpp for( i = 0; i < count; i++ ) i 800 modules/ml/src/ann_mlp.cpp for( i = 1; i < l_count; i++ ) i 802 modules/ml/src/ann_mlp.cpp int n = layer_sizes[i]; i 803 modules/ml/src/ann_mlp.cpp Mat x2(1, n, CV_64F, &x[i][0] ); i 804 modules/ml/src/ann_mlp.cpp Mat _w = weights[i].rowRange(0, x1.cols); i 806 modules/ml/src/ann_mlp.cpp Mat _df(1, n, CV_64F, &df[i][0] ); i 807 modules/ml/src/ann_mlp.cpp calc_activ_func_deriv( x2, _df, weights[i] ); i 829 modules/ml/src/ann_mlp.cpp for( i = l_count-1; i > 0; i-- ) i 831 modules/ml/src/ann_mlp.cpp int n1 = layer_sizes[i-1], n2 = layer_sizes[i]; i 832 modules/ml/src/ann_mlp.cpp Mat _df(1, n2, CV_64F, &df[i][0]); i 834 modules/ml/src/ann_mlp.cpp Mat _x(n1+1, 1, CV_64F, &x[i-1][0]); i 835 modules/ml/src/ann_mlp.cpp x[i-1][n1] = 1.; i 836 modules/ml/src/ann_mlp.cpp gemm( _x, grad1, params.bpDWScale, dw[i], params.bpMomentScale, dw[i] ); i 837 modules/ml/src/ann_mlp.cpp add( weights[i], dw[i], weights[i] ); i 838 modules/ml/src/ann_mlp.cpp if( i > 1 ) i 840 modules/ml/src/ann_mlp.cpp Mat grad2(1, n1, CV_64F, buf[i&1]); i 841 modules/ml/src/ann_mlp.cpp Mat _w = weights[i].rowRange(0, n1); i 881 modules/ml/src/ann_mlp.cpp int i, j, k, l_count = ann->layer_count(); i 888 modules/ml/src/ann_mlp.cpp for( i = 0; i < l_count; i++ ) i 890 modules/ml/src/ann_mlp.cpp x[i].resize(ann->layer_sizes[i]*dcount0); i 891 modules/ml/src/ann_mlp.cpp df[i].resize(ann->layer_sizes[i]*dcount0); i 901 modules/ml/src/ann_mlp.cpp for( i = 0; i < dcount; i++ ) i 903 modules/ml/src/ann_mlp.cpp const uchar* x0data_p = inputs.ptr(i0 + i); i 907 modules/ml/src/ann_mlp.cpp double* xdata = &x[0][i*ivcount]; i 914 modules/ml/src/ann_mlp.cpp for( i = 1; i < l_count; i++ ) i 916 modules/ml/src/ann_mlp.cpp Mat x2( dcount, ann->layer_sizes[i], CV_64F, &x[i][0] ); i 917 modules/ml/src/ann_mlp.cpp Mat _w = ann->weights[i].rowRange(0, x1.cols); i 919 modules/ml/src/ann_mlp.cpp Mat _df( x2.size(), CV_64F, &df[i][0] ); i 920 modules/ml/src/ann_mlp.cpp ann->calc_activ_func_deriv( x2, _df, ann->weights[i] ); i 929 modules/ml/src/ann_mlp.cpp for( i = 0; i < dcount; i++ ) i 931 modules/ml/src/ann_mlp.cpp const uchar* udata_p = outputs.ptr(i0+i); i 935 modules/ml/src/ann_mlp.cpp const double* xdata = &x[l_count-1][i*ovcount]; i 936 modules/ml/src/ann_mlp.cpp double* gdata = grad1.ptr<double>(i); i 937 modules/ml/src/ann_mlp.cpp double sweight = sw ? sw[si+i] : inv_count, E1 = 0; i 948 modules/ml/src/ann_mlp.cpp for( i = l_count-1; i > 0; i-- ) i 950 modules/ml/src/ann_mlp.cpp int n1 = ann->layer_sizes[i-1], n2 = ann->layer_sizes[i]; i 951 modules/ml/src/ann_mlp.cpp Mat _df(dcount, n2, CV_64F, &df[i][0]); i 956 modules/ml/src/ann_mlp.cpp Mat _dEdw = dEdw->at(i).rowRange(0, n1); i 957 modules/ml/src/ann_mlp.cpp x1 = Mat(dcount, n1, CV_64F, &x[i-1][0]); i 961 modules/ml/src/ann_mlp.cpp double* dst = dEdw->at(i).ptr<double>(n1); i 970 modules/ml/src/ann_mlp.cpp Mat grad2( dcount, n1, CV_64F, buf[i&1] ); i 971 modules/ml/src/ann_mlp.cpp if( i > 1 ) i 973 modules/ml/src/ann_mlp.cpp Mat _w = ann->weights[i].rowRange(0, n1); i 989 modules/ml/src/ann_mlp.cpp int i, iter = -1, count = inputs.rows; i 1006 modules/ml/src/ann_mlp.cpp for( i = 0; i < l_count; i++ ) i 1008 modules/ml/src/ann_mlp.cpp total += layer_sizes[i]; i 1009 modules/ml/src/ann_mlp.cpp dw[i].create(weights[i].size(), CV_64F); i 1010 modules/ml/src/ann_mlp.cpp dw[i].setTo(Scalar::all(params.rpDW0)); i 1011 modules/ml/src/ann_mlp.cpp prev_dEdw_sign[i] = Mat::zeros(weights[i].size(), CV_8S); i 1012 modules/ml/src/ann_mlp.cpp dEdw[i] = Mat::zeros(weights[i].size(), CV_64F); i 1041 modules/ml/src/ann_mlp.cpp for( i = 0; i < l_count; i++ ) i 1042 modules/ml/src/ann_mlp.cpp dEdw[i].setTo(Scalar::all(0)); i 1050 modules/ml/src/ann_mlp.cpp for( i = 1; i < l_count; i++ ) i 1052 modules/ml/src/ann_mlp.cpp int n1 = layer_sizes[i-1], n2 = layer_sizes[i]; i 1055 modules/ml/src/ann_mlp.cpp CV_Assert(weights[i].size() == Size(n2, n1+1)); i 1056 modules/ml/src/ann_mlp.cpp double* wk = weights[i].ptr<double>(k); i 1057 modules/ml/src/ann_mlp.cpp double* dwk = dw[i].ptr<double>(k); i 1058 modules/ml/src/ann_mlp.cpp double* dEdwk = dEdw[i].ptr<double>(k); i 1059 modules/ml/src/ann_mlp.cpp schar* prevEk = prev_dEdw_sign[i].ptr<schar>(k); i 1152 modules/ml/src/ann_mlp.cpp int i, l_count = layer_count(); i 1170 modules/ml/src/ann_mlp.cpp for( i = 1; i < l_count; i++ ) i 1173 modules/ml/src/ann_mlp.cpp fs.writeRaw("d", weights[i].ptr(), weights[i].total()*esz); i 1255 modules/ml/src/ann_mlp.cpp int i, l_count = layer_count(); i 1271 modules/ml/src/ann_mlp.cpp for( i = 1; i < l_count; i++, ++w_it ) i 1272 modules/ml/src/ann_mlp.cpp (*w_it).readRaw("d", weights[i].ptr(), weights[i].total()*esz); i 97 modules/ml/src/boost.cpp int i, n = (int)w->cat_responses.size(); i 105 modules/ml/src/boost.cpp for( i = 0; i < n; i++ ) i 106 modules/ml/src/boost.cpp w->ord_responses[i] = w->cat_responses[i] > 0 ? b : a; i 114 modules/ml/src/boost.cpp int i, n = (int)w->sidx.size(); i 116 modules/ml/src/boost.cpp for( i = 0; i < n; i++ ) i 117 modules/ml/src/boost.cpp sumw += w->sample_weights[w->sidx[i]]; i 128 modules/ml/src/boost.cpp for( i = 0; i < n; i++ ) i 130 modules/ml/src/boost.cpp double& wval = w->sample_weights[w->sidx[i]]; i 204 modules/ml/src/boost.cpp int i, n = (int)w->sidx.size(); i 214 modules/ml/src/boost.cpp for( i = 0; i < n; i++ ) i 216 modules/ml/src/boost.cpp w->data->getSample(varIdx, w->sidx[i], sbuf ); i 217 modules/ml/src/boost.cpp result[i] = predictTrees(Range(treeidx, treeidx+1), sample, predictFlags); i 230 modules/ml/src/boost.cpp for( i = 0; i < n; i++ ) i 232 modules/ml/src/boost.cpp int si = w->sidx[i]; i 235 modules/ml/src/boost.cpp err += wval*(result[i] != w->cat_responses[si]); i 244 modules/ml/src/boost.cpp for( i = 0; i < n; i++ ) i 246 modules/ml/src/boost.cpp int si = w->sidx[i]; i 248 modules/ml/src/boost.cpp if( result[i] != w->cat_responses[si] ) i 265 modules/ml/src/boost.cpp for( i = 0; i < n; i++ ) i 267 modules/ml/src/boost.cpp int si = w->sidx[i]; i 269 modules/ml/src/boost.cpp double wval = w->sample_weights[si]*std::exp(-result[i]*w->ord_responses[si]); i 288 modules/ml/src/boost.cpp for( i = 0; i < n; i++ ) i 290 modules/ml/src/boost.cpp int si = w->sidx[i]; i 291 modules/ml/src/boost.cpp sumResult[i] += 0.5*result[i]; i 292 modules/ml/src/boost.cpp double p = 1./(1 + std::exp(-2*sumResult[i])); i 332 modules/ml/src/boost.cpp for( i = 0; i < n; i++ ) i 333 modules/ml/src/boost.cpp result[i] = w->sample_weights[w->sidx[i]]; i 340 modules/ml/src/boost.cpp for( i = 0; i < n; i++ ) i 342 modules/ml/src/boost.cpp double wval = result[i]; i 348 modules/ml/src/boost.cpp double threshold = i < n ? result[i] : DBL_MAX; i 351 modules/ml/src/boost.cpp for( i = 0; i < n; i++ ) i 353 modules/ml/src/boost.cpp int si = w->sidx[i]; i 57 modules/ml/src/data.cpp int i, j, n = idx.checkVector(1, CV_32S); i 80 modules/ml/src/data.cpp for( i = 0; i < n; i++ ) i 82 modules/ml/src/data.cpp int k = idx.at<int>(i); i 85 modules/ml/src/data.cpp subvec.at<int>(i) = vec.at<int>(k); i 88 modules/ml/src/data.cpp subvec.at<int>(i, j) = vec.at<int>(k, j); i 91 modules/ml/src/data.cpp for( i = 0; i < n; i++ ) i 93 modules/ml/src/data.cpp int k = idx.at<int>(i); i 96 modules/ml/src/data.cpp subvec.at<float>(i) = vec.at<float>(k); i 99 modules/ml/src/data.cpp subvec.at<float>(i, j) = vec.at<float>(k, j); i 102 modules/ml/src/data.cpp for( i = 0; i < n; i++ ) i 104 modules/ml/src/data.cpp int k = idx.at<int>(i); i 107 modules/ml/src/data.cpp subvec.at<double>(i) = vec.at<double>(k); i 110 modules/ml/src/data.cpp subvec.at<double>(i, j) = vec.at<double>(k, j); i 249 modules/ml/src/data.cpp int i, noutputvars = 0; i 318 modules/ml/src/data.cpp for( i = 0; i < noutputvars; i++ ) i 319 modules/ml/src/data.cpp CV_Assert( varType.at<uchar>(ninputvars + i) == VAR_ORDERED ); i 341 modules/ml/src/data.cpp for( i = 0; i < ninputvars; i++ ) i 343 modules/ml/src/data.cpp Mat values_i = layout == ROW_SAMPLE ? samples.col(i) : samples.row(i); i 345 modules/ml/src/data.cpp if( varType.at<uchar>(i) == VAR_CATEGORICAL ) i 348 modules/ml/src/data.cpp missingSubst.at<float>(i) = -1.f; i 375 modules/ml/src/data.cpp ofshash[hashval] = i; i 388 modules/ml/src/data.cpp missingSubst.at<float>(i) = 0.f; i 408 modules/ml/src/data.cpp int i, j, nz = countNonZero(mask), n = mask.cols + mask.rows - 1; i 410 modules/ml/src/data.cpp for( i = j = 0; i < n; i++ ) i 411 modules/ml/src/data.cpp if( mask.at<uchar>(i) ) i 412 modules/ml/src/data.cpp idx.at<int>(j++) = i; i 419 modules/ml/src/data.cpp bool operator ()(int i, int j) const { return data[i*step] < data[j*step]; } i 438 modules/ml/src/data.cpp int i, n = data.cols + data.rows - 1; i 448 modules/ml/src/data.cpp for( i = 0; i < n; i++ ) i 450 modules/ml/src/data.cpp if( fdata[i*istep] == MISSED_VAL ) i 451 modules/ml/src/data.cpp idata[i] = -1; i 454 modules/ml/src/data.cpp idata[i] = cvRound(fdata[i*istep]); i 455 modules/ml/src/data.cpp CV_Assert( (float)idata[i] == fdata[i*istep] ); i 461 modules/ml/src/data.cpp for( i = 0; i < n; i++ ) i 462 modules/ml/src/data.cpp idx[i] = i; i 467 modules/ml/src/data.cpp for( i = 1; i < n; i++ ) i 468 modules/ml/src/data.cpp clscount += idata[idx[i]*istep] != idata[idx[i-1]*istep]; i 478 modules/ml/src/data.cpp for( i = 0; i < n; i++ ) i 480 modules/ml/src/data.cpp int l = idata[idx[i]*istep]; i 485 modules/ml/src/data.cpp int k = i - previdx; i 489 modules/ml/src/data.cpp previdx = i; i 492 modules/ml/src/data.cpp odata[idx[i]*ostep] = clslabel; i 495 modules/ml/src/data.cpp counters->at(clslabel) = i - previdx; i 521 modules/ml/src/data.cpp int i, ridx0 = responseStartIdx, ridx1 = responseEndIdx; i 590 modules/ml/src/data.cpp for( i = 0; i < nvars; i++ ) i 592 modules/ml/src/data.cpp CV_Assert( (!varTypesSet && vtypes[i] == rowtypes[i]) || i 593 modules/ml/src/data.cpp (varTypesSet && (vtypes[i] == rowtypes[i] || rowtypes[i] == VAR_ORDERED)) ); i 598 modules/ml/src/data.cpp for( i = ridx1; i < nvars; i++ ) i 599 modules/ml/src/data.cpp std::swap(rowvals[i], rowvals[i-noutputvars]); i 600 modules/ml/src/data.cpp for( i = ninputvars; i < nvars; i++ ) i 601 modules/ml/src/data.cpp allresponses.push_back(rowvals[i]); i 619 modules/ml/src/data.cpp for( i = ridx1; i < nvars; i++ ) i 620 modules/ml/src/data.cpp std::swap(vtypes[i], vtypes[i-noutputvars]); i 623 modules/ml/src/data.cpp for( i = ninputvars; i < nvars; i++ ) i 624 modules/ml/src/data.cpp if( vtypes[i] == VAR_CATEGORICAL ) i 632 modules/ml/src/data.cpp for( i = 0; i < nsamples; i++ ) i 633 modules/ml/src/data.cpp if( allresponses[i] != cvRound(allresponses[i]) ) i 635 modules/ml/src/data.cpp if( i == nsamples ) i 693 modules/ml/src/data.cpp for( int i = 0; i < nvars; i++ ) i 694 modules/ml/src/data.cpp vtypes[i] = (uchar)tp; i 724 modules/ml/src/data.cpp for (int i = b1; i <= b2; i++) i 725 modules/ml/src/data.cpp vtypes[i] = (uchar)tp; i 752 modules/ml/src/data.cpp int i, nsamples = getNSamples(); i 766 modules/ml/src/data.cpp for( i = 0; i < nsamples; i++ ) i 767 modules/ml/src/data.cpp mptr[i] = (uchar)(i < count); i 774 modules/ml/src/data.cpp for( i = 0; i < nsamples; i++ ) i 776 modules/ml/src/data.cpp int idx = sptr ? sptr[i] : i; i 777 modules/ml/src/data.cpp if( mptr[i] ) i 791 modules/ml/src/data.cpp int i, nsamples = getNSamples(), ntrain = getNTrainSamples(), ntest = getNTestSamples(); i 796 modules/ml/src/data.cpp for( i = 0; i < nsamples; i++) i 849 modules/ml/src/data.cpp for( int i = 0; i < drows; i++ ) i 851 modules/ml/src/data.cpp const float* src = src0 + (sptr ? sptr[i] : i)*sstep; i 852 modules/ml/src/data.cpp float* dst = dsamples.ptr<float>(i); i 864 modules/ml/src/data.cpp int i, n = sidx.checkVector(1, CV_32S), nsamples = getNSamples(); i 877 modules/ml/src/data.cpp for( i = 0; i < n; i++ ) i 879 modules/ml/src/data.cpp int j = i; i 882 modules/ml/src/data.cpp j = s[i]; i 885 modules/ml/src/data.cpp values[i] = src[j*sstep]; i 886 modules/ml/src/data.cpp if( values[i] == MISSED_VAL ) i 887 modules/ml/src/data.cpp values[i] = subst; i 895 modules/ml/src/data.cpp int i, n = (int)_sidx.total(); i 905 modules/ml/src/data.cpp for( i = 0; i < n; i++ ) i 907 modules/ml/src/data.cpp int val = cvRound(fvalues[i]); i 910 modules/ml/src/data.cpp values[i] = idx; i 915 modules/ml/src/data.cpp for( i = 0; i < n; i++ ) i 917 modules/ml/src/data.cpp int val = cvRound(fvalues[i]); i 932 modules/ml/src/data.cpp values[i] = c; i 941 modules/ml/src/data.cpp int i, n = vidx.checkVector(1, CV_32S), nvars = getNAllVars(); i 952 modules/ml/src/data.cpp for( i = 0; i < n; i++ ) i 954 modules/ml/src/data.cpp int j = i; i 957 modules/ml/src/data.cpp j = vptr[i]; i 960 modules/ml/src/data.cpp buf[i] = src[j*vstep]; i 166 modules/ml/src/em.cpp int i, nsamples = samples.rows; i 177 modules/ml/src/em.cpp for( i = 0; i < nsamples; i++ ) i 180 modules/ml/src/em.cpp probsrow = probs.row(i); i 181 modules/ml/src/em.cpp Vec2d res = computeProbabilities(samples.row(i), needprobs ? &probsrow : 0, ptype); i 182 modules/ml/src/em.cpp if( i == 0 ) i 277 modules/ml/src/em.cpp for(size_t i = 0; i < covs->size(); i++) i 279 modules/ml/src/em.cpp const Mat& m = (*covs)[i]; i 357 modules/ml/src/em.cpp for(size_t i = 0; i < covs0->size(); i++) i 358 modules/ml/src/em.cpp (*covs0)[i].convertTo(covs[i], CV_64FC1); i 573 modules/ml/src/em.cpp int i, label = 0; i 581 modules/ml/src/em.cpp for( i = 0; i < dim; i++ ) i 582 modules/ml/src/em.cpp dptr[i] = sptr[i] - mptr[i]; i 587 modules/ml/src/em.cpp for( i = 0; i < dim; i++ ) i 588 modules/ml/src/em.cpp dptr[i] = sptr[i] - mptr[i]; i 610 modules/ml/src/em.cpp for( i = 0; i < L.cols; i++ ) i 612 modules/ml/src/em.cpp double v = std::exp(L.at<double>(i) - maxLVal); i 613 modules/ml/src/em.cpp L.at<double>(i) = v; i 778 modules/ml/src/em.cpp size_t i, n = covs.size(); i 781 modules/ml/src/em.cpp for( i = 0; i < n; i++ ) i 782 modules/ml/src/em.cpp fs << covs[i]; i 807 modules/ml/src/em.cpp int i, n = (int)cfn.size(); i 810 modules/ml/src/em.cpp for( i = 0; i < n; i++, ++cfn_it ) i 811 modules/ml/src/em.cpp (*cfn_it) >> covs[i]; i 75 modules/ml/src/gbt.cpp for (int i=0; i<class_count; ++i) i 77 modules/ml/src/gbt.cpp int weak_count = cvSliceLength( slice, weak[i] ); i 78 modules/ml/src/gbt.cpp if ((weak[i]) && (weak_count)) i 80 modules/ml/src/gbt.cpp cvStartReadSeq( weak[i], &reader ); i 91 modules/ml/src/gbt.cpp for (int i=0; i<class_count; ++i) i 92 modules/ml/src/gbt.cpp if (weak[i]) cvReleaseMemStorage( &(weak[i]->storage) ); i 212 modules/ml/src/gbt.cpp for (int i=0; i<n; ++i) i 213 modules/ml/src/gbt.cpp orig_response->data.fl[i] = _responses->data.fl[i*step]; i 217 modules/ml/src/gbt.cpp for (int i=0; i<n; ++i) i 218 modules/ml/src/gbt.cpp orig_response->data.fl[i] = (float) _responses->data.i[i*step]; i 230 modules/ml/src/gbt.cpp for (int i=0; i<n; ++i) i 231 modules/ml/src/gbt.cpp if (!mask[i]) i 234 modules/ml/src/gbt.cpp for (int j=i; j<n; ++j) i 235 modules/ml/src/gbt.cpp if (int(orig_response->data.fl[j]) == int(orig_response->data.fl[i])) i 241 modules/ml/src/gbt.cpp class_labels->data.i[0] = int(orig_response->data.fl[0]); i 243 modules/ml/src/gbt.cpp for (int i=1; i<n; ++i) i 246 modules/ml/src/gbt.cpp while ((int(orig_response->data.fl[i]) - class_labels->data.i[k]) && (k<j)) i 250 modules/ml/src/gbt.cpp class_labels->data.i[k] = int(orig_response->data.fl[i]); i 269 modules/ml/src/gbt.cpp for (int i=0; i<sample_idx_len; ++i) i 270 modules/ml/src/gbt.cpp sample_idx->data.i[i] = _sample_idx->data.i[i]; i 271 modules/ml/src/gbt.cpp std::sort(sample_idx->data.i, sample_idx->data.i + sample_idx_len); i 277 modules/ml/src/gbt.cpp for (int i=0; i<sample_idx_len; ++i) i 278 modules/ml/src/gbt.cpp active_samples_count += int( _sample_idx->data.ptr[i] ); i 281 modules/ml/src/gbt.cpp for (int i=0; i<sample_idx_len; ++i) i 282 modules/ml/src/gbt.cpp if (int( _sample_idx->data.ptr[i] )) i 283 modules/ml/src/gbt.cpp sample_idx->data.i[active_samples_count++] = i; i 292 modules/ml/src/gbt.cpp for (int i=0; i<n; ++i) i 293 modules/ml/src/gbt.cpp sample_idx->data.i[i] = i; i 319 modules/ml/src/gbt.cpp for (int i=0; i<class_count; ++i) i 322 modules/ml/src/gbt.cpp weak[i] = cvCreateSeq( 0, sizeof(CvSeq), sizeof(CvDTree*), storage ); i 350 modules/ml/src/gbt.cpp for ( int i=0; i < params.weak_count; ++i ) i 364 modules/ml/src/gbt.cpp int* sample_data = sample_idx->data.i; i 365 modules/ml/src/gbt.cpp int* subsample_data = subsample_test->data.i; i 427 modules/ml/src/gbt.cpp int* sample_data = sample_idx->data.i; i 428 modules/ml/src/gbt.cpp int* subsample_data = subsample_train->data.i; i 439 modules/ml/src/gbt.cpp for (int i=0; i<get_len(subsample_train); ++i) i 443 modules/ml/src/gbt.cpp int idx = *(sample_data + subsample_data[i]*s_step); i 450 modules/ml/src/gbt.cpp for (int i=0; i<get_len(subsample_train); ++i) i 454 modules/ml/src/gbt.cpp int idx = *(sample_data + subsample_data[i]*s_step); i 467 modules/ml/src/gbt.cpp for (int i=0; i<n; ++i) i 469 modules/ml/src/gbt.cpp int idx = *(sample_data + subsample_data[i]*s_step); i 470 modules/ml/src/gbt.cpp residuals[i] = fabs(resp_data[idx] - current_data[idx]); i 476 modules/ml/src/gbt.cpp for (int i=0; i<n; ++i) i 478 modules/ml/src/gbt.cpp int idx = *(sample_data + subsample_data[i]*s_step); i 488 modules/ml/src/gbt.cpp for (int i=0; i<get_len(subsample_train); ++i) i 494 modules/ml/src/gbt.cpp int idx = *(sample_data + subsample_data[i]*s_step); i 510 modules/ml/src/gbt.cpp while (class_labels->data.i[ensemble_label] - orig_label) i 529 modules/ml/src/gbt.cpp int* sample_data = sample_idx->data.i; i 530 modules/ml/src/gbt.cpp int* subsample_data = subsample_train->data.i; i 537 modules/ml/src/gbt.cpp for (int i=0; i<get_len(subsample_train); ++i) i 539 modules/ml/src/gbt.cpp int idx = *(sample_data + subsample_data[i]*s_step); i 552 modules/ml/src/gbt.cpp predictions[i] = tree->predict(&x, &miss_x); i 555 modules/ml/src/gbt.cpp predictions[i] = tree->predict(&x); i 563 modules/ml/src/gbt.cpp for (int i=0; i<leaves_count; ++i) i 568 modules/ml/src/gbt.cpp if (leaves[i] == predictions[j]) samples_in_leaf++; i 573 modules/ml/src/gbt.cpp leaves[i]->value = 0.0; i 578 modules/ml/src/gbt.cpp int* leaf_idx_data = leaf_idx->data.i; i 583 modules/ml/src/gbt.cpp if (leaves[i] == predictions[j]) i 588 modules/ml/src/gbt.cpp leaves[i]->value = value; i 590 modules/ml/src/gbt.cpp leaf_idx_data = leaf_idx->data.i; i 605 modules/ml/src/gbt.cpp for (int i=0; i<get_len(subsample_train); ++i) i 607 modules/ml/src/gbt.cpp predictions[i] = 0; i 611 modules/ml/src/gbt.cpp for (int i=0; i<leaves_count; ++i) i 613 modules/ml/src/gbt.cpp leaves[i] = 0; i 675 modules/ml/src/gbt.cpp int* idx = _Idx->data.i; i 685 modules/ml/src/gbt.cpp for (int i=0; i<n; ++i) i 686 modules/ml/src/gbt.cpp gamma += resp_data[idx[i]] - cur_data[idx[i]]; i 693 modules/ml/src/gbt.cpp for (int i=0; i<n; ++i, ++idx) i 694 modules/ml/src/gbt.cpp residuals[i] = (resp_data[*idx] - cur_data[*idx]); i 705 modules/ml/src/gbt.cpp for (int i=0; i<n; ++i, ++idx) i 706 modules/ml/src/gbt.cpp residuals[i] = (resp_data[*idx] - cur_data[*idx]); i 714 modules/ml/src/gbt.cpp for (int i=0; i<n; ++i) i 716 modules/ml/src/gbt.cpp float dif = residuals[i] - r_median; i 731 modules/ml/src/gbt.cpp for (int i=0; i<n; ++i) i 733 modules/ml/src/gbt.cpp tmp = grad_data[idx[i]]; i 779 modules/ml/src/gbt.cpp int* idx = subsample_train->data.i; i 781 modules/ml/src/gbt.cpp for (int i = 0; i < n; i++ ) i 782 modules/ml/src/gbt.cpp idx[i] = i; i 785 modules/ml/src/gbt.cpp for (int i = 0; i < n; i++) i 832 modules/ml/src/gbt.cpp for (int i=0; i<class_count; ++i) i 834 modules/ml/src/gbt.cpp if ((weak[i]) && (weak_count)) i 836 modules/ml/src/gbt.cpp cvStartReadSeq( weak[i], &reader ); i 842 modules/ml/src/gbt.cpp sum[i] += params.shrinkage * p; i 844 modules/ml/src/gbt.cpp weak_responses->data.fl[i*weak_count+j] = p; i 849 modules/ml/src/gbt.cpp for (int i=0; i<class_count; ++i) i 850 modules/ml/src/gbt.cpp sum[i] += base_value; i 868 modules/ml/src/gbt.cpp for (int i=1; i<class_count; ++i) i 869 modules/ml/src/gbt.cpp if (sum[i] > max) i 871 modules/ml/src/gbt.cpp max = sum[i]; i 872 modules/ml/src/gbt.cpp class_label = i; i 883 modules/ml/src/gbt.cpp int orig_class_label = class_labels->data.i[class_label]; i 927 modules/ml/src/gbt.cpp for (int i=0; i<k; ++i) i 930 modules/ml/src/gbt.cpp if ((weak[i]) && (weak_count)) i 932 modules/ml/src/gbt.cpp cvStartReadSeq( weak[i], &reader ); i 943 modules/ml/src/gbt.cpp sum[i] += tmp_sum; i 961 modules/ml/src/gbt.cpp for (int i=0; i<class_count; ++i) i 962 modules/ml/src/gbt.cpp sum[i] = 0.0f; i 972 modules/ml/src/gbt.cpp for (int i=0; i<class_count; ++i) i 973 modules/ml/src/gbt.cpp sum[i] = sum[i] /** params.shrinkage*/ + base_value; i 991 modules/ml/src/gbt.cpp for (int i=1; i<class_count; ++i) i 992 modules/ml/src/gbt.cpp if (sum[i] > max) i 994 modules/ml/src/gbt.cpp max = sum[i]; i 995 modules/ml/src/gbt.cpp class_label = i; i 999 modules/ml/src/gbt.cpp int orig_class_label = class_labels->data.i[class_label]; i 1102 modules/ml/src/gbt.cpp int i; i 1121 modules/ml/src/gbt.cpp for( i = 0; i < weak[j]->total; i++ ) i 1152 modules/ml/src/gbt.cpp int i, ntrees; i 1185 modules/ml/src/gbt.cpp for( i = 0; i < ntrees; i++ ) i 1237 modules/ml/src/gbt.cpp for (int i=begin; i<end; ++i) i 1239 modules/ml/src/gbt.cpp int j = idx ? idx->data.i[i] : i; i 1243 modules/ml/src/gbt.cpp predictions[i] = gbt->predict_serial(&x,0,0,slice); i 1248 modules/ml/src/gbt.cpp predictions[i] = gbt->predict_serial(&x,&miss,0,slice); i 1290 modules/ml/src/gbt.cpp int* sidx = _sample_idx ? _sample_idx->data.i : 0; i 1297 modules/ml/src/gbt.cpp for( int i = 0; i < n; i++ ) i 1299 modules/ml/src/gbt.cpp int si = sidx ? sidx[i] : i; i 1300 modules/ml/src/gbt.cpp int d = fabs((double)pred_resp[i] - response->data.fl[si*r_step]) <= FLT_EPSILON ? 0 : 1; i 1307 modules/ml/src/gbt.cpp for( int i = 0; i < n; i++ ) i 1309 modules/ml/src/gbt.cpp int si = sidx ? sidx[i] : i; i 1310 modules/ml/src/gbt.cpp float d = pred_resp[i] - response->data.fl[si*r_step]; i 74 modules/ml/src/inner_functions.cpp int i, n = (int)sidx.total(); i 89 modules/ml/src/inner_functions.cpp for( i = 0; i < n; i++ ) i 91 modules/ml/src/inner_functions.cpp int si = sidx_ptr ? sidx_ptr[i] : i; i 101 modules/ml/src/inner_functions.cpp resp.at<float>(i) = val; i 122 modules/ml/src/inner_functions.cpp int i, j, k; i 124 modules/ml/src/inner_functions.cpp for( i = 0; i < dim; i++ ) i 126 modules/ml/src/inner_functions.cpp for( j = 0; j < i; j++ ) i 127 modules/ml/src/inner_functions.cpp S.at<float>(i,j) = 0.f; i 130 modules/ml/src/inner_functions.cpp for( k = 0; k < i; k++ ) i 132 modules/ml/src/inner_functions.cpp float val = S.at<float>(k,i); i 136 modules/ml/src/inner_functions.cpp S.at<float>(i,i) = std::sqrt(std::max(A.at<float>(i,i) - sum, 0.f)); i 137 modules/ml/src/inner_functions.cpp float ival = 1.f/S.at<float>(i, i); i 139 modules/ml/src/inner_functions.cpp for( j = i + 1; j < dim; j++ ) i 142 modules/ml/src/inner_functions.cpp for( k = 0; k < i; k++ ) i 143 modules/ml/src/inner_functions.cpp sum += S.at<float>(k, i) * S.at<float>(k, j); i 145 modules/ml/src/inner_functions.cpp S.at<float>(i, j) = (A.at<float>(i, j) - sum)*ival; i 165 modules/ml/src/inner_functions.cpp for( int i = 0; i < nsamples; i++ ) i 167 modules/ml/src/inner_functions.cpp Mat sample = samples.row(i); i 142 modules/ml/src/kdtree.cpp int i, j, dims = points.cols; i 146 modules/ml/src/kdtree.cpp for( i = a; i <= b; i++ ) i 148 modules/ml/src/kdtree.cpp const float* row = data + ofs[i]; i 178 modules/ml/src/kdtree.cpp int i, j, n = _points.rows, ptdims = _points.cols, top = 0; i 200 modules/ml/src/kdtree.cpp for( i = 0; i < n; i++ ) i 201 modules/ml/src/kdtree.cpp ptofs[i] = i*step; i 290 modules/ml/src/kdtree.cpp int i, j, ncount = 0, e = 0; i 315 modules/ml/src/kdtree.cpp for( i = 0;;) i 317 modules/ml/src/kdtree.cpp int left = i*2 + 1, right = i*2 + 2; i 324 modules/ml/src/kdtree.cpp std::swap(pqueue[i], pqueue[left]); i 325 modules/ml/src/kdtree.cpp i = left; i 341 modules/ml/src/kdtree.cpp i = ~n.idx; i 342 modules/ml/src/kdtree.cpp const float* row = points.ptr<float>(i); i 354 modules/ml/src/kdtree.cpp idx[ncount] = i; i 355 modules/ml/src/kdtree.cpp for( i = ncount-1; i >= 0; i-- ) i 357 modules/ml/src/kdtree.cpp if( dist[i] <= d ) i 359 modules/ml/src/kdtree.cpp std::swap(dist[i], dist[i+1]); i 360 modules/ml/src/kdtree.cpp std::swap(idx[i], idx[i+1]); i 389 modules/ml/src/kdtree.cpp for( i = qsize; i > 0; ) i 391 modules/ml/src/kdtree.cpp int parent = (i-1)/2; i 394 modules/ml/src/kdtree.cpp std::swap(pqueue[i], pqueue[parent]); i 395 modules/ml/src/kdtree.cpp i = parent; i 449 modules/ml/src/kdtree.cpp int j, i = ~n.idx; i 450 modules/ml/src/kdtree.cpp const float* row = points.ptr<float>(i); i 455 modules/ml/src/kdtree.cpp idx.push_back(i); i 483 modules/ml/src/kdtree.cpp int i, nidx = (int)idxmat.total(); i 506 modules/ml/src/kdtree.cpp for( i = 0; i < nidx; i++ ) i 508 modules/ml/src/kdtree.cpp int k = idx[i]; i 512 modules/ml/src/kdtree.cpp std::copy(src, src + ptdims, pts.ptr<float>(i)); i 514 modules/ml/src/kdtree.cpp dstlabels[i] = srclabels ? srclabels[k] : k; i 147 modules/ml/src/knearest.cpp int testidx, baseidx, i, j, d = samples.cols, nsamples = samples.rows; i 159 modules/ml/src/knearest.cpp for( i = 0; i < k; i++ ) i 161 modules/ml/src/knearest.cpp dbuf[testidx*k + i] = FLT_MAX; i 162 modules/ml/src/knearest.cpp rbuf[testidx*k + i] = 0.f; i 174 modules/ml/src/knearest.cpp for( i = 0; i <= d - 4; i += 4 ) i 176 modules/ml/src/knearest.cpp float t0 = u[i] - v[i], t1 = u[i+1] - v[i+1]; i 177 modules/ml/src/knearest.cpp float t2 = u[i+2] - v[i+2], t3 = u[i+3] - v[i+3]; i 181 modules/ml/src/knearest.cpp for( ; i < d; i++ ) i 183 modules/ml/src/knearest.cpp float t0 = u[i] - v[i]; i 192 modules/ml/src/knearest.cpp for( i = k; i > 0; i-- ) i 193 modules/ml/src/knearest.cpp if( si.i >= dd[i-1].i ) i 195 modules/ml/src/knearest.cpp if( i >= k ) i 198 modules/ml/src/knearest.cpp for( j = k-2; j >= i; j-- ) i 200 modules/ml/src/knearest.cpp dd[j+1].i = dd[j].i; i 203 modules/ml/src/knearest.cpp dd[i].i = si.i; i 204 modules/ml/src/knearest.cpp nr[i] = rptr[baseidx]; i 246 modules/ml/src/knearest.cpp for( i = 0; i < j; i++ ) i 248 modules/ml/src/knearest.cpp if( rp[i] > rp[i+1] ) i 250 modules/ml/src/knearest.cpp std::swap(rp[i], rp[i+1]); i 409 modules/ml/src/knearest.cpp for (int i=0; i<test_samples.rows; ++i) i 412 modules/ml/src/knearest.cpp if (res.rows>i) i 414 modules/ml/src/knearest.cpp _res = res.row(i); i 416 modules/ml/src/knearest.cpp if (nr.rows>i) i 418 modules/ml/src/knearest.cpp _nr = nr.row(i); i 420 modules/ml/src/knearest.cpp if (d.rows>i) i 422 modules/ml/src/knearest.cpp _d = d.row(i); i 424 modules/ml/src/knearest.cpp tr.findNearest(test_samples.row(i), k, Emax, _res, _nr, _d, noArray()); i 162 modules/ml/src/lr.cpp for (int i=1;i<data_t.cols;i++) i 164 modules/ml/src/lr.cpp vconcat(_data_i.col(i-1), data_t.col(i)); i 243 modules/ml/src/lr.cpp for (int i=0;i<data_t.cols;i++) i 245 modules/ml/src/lr.cpp if(i==0) i 247 modules/ml/src/lr.cpp vconcat(Mat(data.rows, 1, data.type(), Scalar::all(1.0)), data_t.col(i)); i 250 modules/ml/src/lr.cpp vconcat(data.col(i-1), data_t.col(i)); i 279 modules/ml/src/lr.cpp for(int i = 0;i<thetas.rows;i++) i 281 modules/ml/src/lr.cpp temp_pred = calc_sigmoid(data_t * thetas.row(i).t()); i 282 modules/ml/src/lr.cpp vconcat(temp_pred, pred_m.col(i)); i 284 modules/ml/src/lr.cpp for(int i = 0;i<pred_m.rows;i++) i 286 modules/ml/src/lr.cpp temp_pred = pred_m.row(i); i 385 modules/ml/src/lr.cpp for(int i = 0;i<this->params.num_iters;i++) i 457 modules/ml/src/lr.cpp for(int i = 0;i<this->params.term_crit.maxCount;i++) i 527 modules/ml/src/lr.cpp for(int i = 0;i<labels.rows;i++) i 529 modules/ml/src/lr.cpp this->forward_mapper[labels.at<int>(i)] += 1; i 557 modules/ml/src/lr.cpp for(int i =0;i<labels.rows;i++) i 559 modules/ml/src/lr.cpp new_labels.at<int>(i,0) = lmap.find(labels.at<int>(i,0))->second; i 135 modules/ml/src/nbayes.cpp int i, j; i 153 modules/ml/src/nbayes.cpp for( i = 0; i < nvars; i++ ) i 157 modules/ml/src/nbayes.cpp double* prod_data = productsum[cls].ptr<double>(i); i 158 modules/ml/src/nbayes.cpp double* cov_data = cov.ptr<double>(i); i 159 modules/ml/src/nbayes.cpp double s1val = sum1[i]; i 160 modules/ml/src/nbayes.cpp double avg1 = avg_data[i]; i 161 modules/ml/src/nbayes.cpp int _count = count_data[i]; i 163 modules/ml/src/nbayes.cpp for( j = 0; j <= i; j++ ) i 252 modules/ml/src/nbayes.cpp for(int i = 0; i < nclasses; i++ ) i 254 modules/ml/src/nbayes.cpp double cur = c->at<double>(i); i 255 modules/ml/src/nbayes.cpp const Mat& u = cov_rotate_mats->at(i); i 256 modules/ml/src/nbayes.cpp const Mat& w = inv_eigen_values->at(i); i 258 modules/ml/src/nbayes.cpp const double* avg_data = avg->at(i).ptr<double>(); i 274 modules/ml/src/nbayes.cpp cls = i; i 282 modules/ml/src/nbayes.cpp results_prob->ptr<float>()[k*rpstep + i] = (float)probability; i 284 modules/ml/src/nbayes.cpp results_prob->ptr<double>()[k*rpstep + i] = probability; i 343 modules/ml/src/nbayes.cpp int nclasses = (int)cls_labels.total(), i; i 353 modules/ml/src/nbayes.cpp for( i = 0; i < nclasses; i++ ) i 354 modules/ml/src/nbayes.cpp fs << count[i]; i 357 modules/ml/src/nbayes.cpp for( i = 0; i < nclasses; i++ ) i 358 modules/ml/src/nbayes.cpp fs << sum[i]; i 361 modules/ml/src/nbayes.cpp for( i = 0; i < nclasses; i++ ) i 362 modules/ml/src/nbayes.cpp fs << productsum[i]; i 365 modules/ml/src/nbayes.cpp for( i = 0; i < nclasses; i++ ) i 366 modules/ml/src/nbayes.cpp fs << avg[i]; i 369 modules/ml/src/nbayes.cpp for( i = 0; i < nclasses; i++ ) i 370 modules/ml/src/nbayes.cpp fs << inv_eigen_values[i]; i 373 modules/ml/src/nbayes.cpp for( i = 0; i < nclasses; i++ ) i 374 modules/ml/src/nbayes.cpp fs << cov_rotate_mats[i]; i 394 modules/ml/src/nbayes.cpp int nclasses = (int)cls_labels.total(), i; i 414 modules/ml/src/nbayes.cpp for( i = 0; i < nclasses; i++, ++count_it, ++sum_it, ++productsum_it, ++avg_it, i 417 modules/ml/src/nbayes.cpp *count_it >> count[i]; i 418 modules/ml/src/nbayes.cpp *sum_it >> sum[i]; i 419 modules/ml/src/nbayes.cpp *productsum_it >> productsum[i]; i 420 modules/ml/src/nbayes.cpp *avg_it >> avg[i]; i 421 modules/ml/src/nbayes.cpp *inv_eigen_values_it >> inv_eigen_values[i]; i 422 modules/ml/src/nbayes.cpp *cov_rotate_mats_it >> cov_rotate_mats[i]; i 93 modules/ml/src/precomp.hpp for( int i = 0; i < n; i++ ) i 94 modules/ml/src/precomp.hpp vec[i] = i; i 94 modules/ml/src/rtrees.cpp int i, nvars = (int)allVars.size(), m = (int)activeVars.size(); i 95 modules/ml/src/rtrees.cpp for( i = 0; i < nvars; i++ ) i 101 modules/ml/src/rtrees.cpp for( i = 0; i < m; i++ ) i 102 modules/ml/src/rtrees.cpp activeVars[i] = allVars[i]; i 110 modules/ml/src/rtrees.cpp int i, m = rparams.nactiveVars > 0 ? rparams.nactiveVars : cvRound(std::sqrt((double)nvars)); i 114 modules/ml/src/rtrees.cpp for( i = 0; i < nvars; i++ ) i 115 modules/ml/src/rtrees.cpp allVars[i] = varIdx[i]; i 131 modules/ml/src/rtrees.cpp int i, j, k, vi, vi_, n = (int)w->sidx.size(); i 160 modules/ml/src/rtrees.cpp for( i = 0; i < n; i++ ) i 162 modules/ml/src/rtrees.cpp double val = std::abs(w->ord_responses[w->sidx[i]]); i 172 modules/ml/src/rtrees.cpp for( i = 0; i < n; i++ ) i 173 modules/ml/src/rtrees.cpp oobmask[i] = (uchar)1; i 175 modules/ml/src/rtrees.cpp for( i = 0; i < n; i++ ) i 178 modules/ml/src/rtrees.cpp sidx[i] = w->sidx[j]; i 188 modules/ml/src/rtrees.cpp for( i = 0; i < n; i++ ) i 190 modules/ml/src/rtrees.cpp if( !oobmask[i] ) i 191 modules/ml/src/rtrees.cpp oobidx.push_back(i); i 201 modules/ml/src/rtrees.cpp for( i = 0; i < n_oob; i++ ) i 203 modules/ml/src/rtrees.cpp j = oobidx[i]; i 236 modules/ml/src/rtrees.cpp for( i = 0; i < n_oob; i++ ) i 237 modules/ml/src/rtrees.cpp oobperm[i] = oobidx[i]; i 243 modules/ml/src/rtrees.cpp for( i = 0; i < n_oob; i++ ) i 250 modules/ml/src/rtrees.cpp for( i = 0; i < n_oob; i++ ) i 252 modules/ml/src/rtrees.cpp j = oobidx[i]; i 253 modules/ml/src/rtrees.cpp int vj = oobperm[i]; i 346 modules/ml/src/svm.cpp int i, nsamples = _samples.rows; i 356 modules/ml/src/svm.cpp for( i = 0; i < nsamples; i++ ) i 358 modules/ml/src/svm.cpp if( i == nsamples-1 || rptr[sidx_all[i]] != rptr[sidx_all[i+1]] ) i 359 modules/ml/src/svm.cpp class_ranges.push_back(i+1); i 445 modules/ml/src/svm.cpp typedef bool (Solver::*SelectWorkingSet)( int& i, int& j ); i 446 modules/ml/src/svm.cpp typedef Qfloat* (Solver::*GetRow)( int i, Qfloat* row, Qfloat* dst, bool existed ); i 529 modules/ml/src/svm.cpp Qfloat* get_row_base( int i, bool* _existed ) i 531 modules/ml/src/svm.cpp int i1 = i < sample_count ? i : i - sample_count; i 577 modules/ml/src/svm.cpp Qfloat* get_row_svc( int i, Qfloat* row, Qfloat*, bool existed ) i 584 modules/ml/src/svm.cpp if( _y[i] > 0 ) i 603 modules/ml/src/svm.cpp Qfloat* get_row_svr( int i, Qfloat* row, Qfloat* dst, bool ) i 608 modules/ml/src/svm.cpp if( i >= len ) i 620 modules/ml/src/svm.cpp Qfloat* get_row( int i, float* dst ) i 623 modules/ml/src/svm.cpp float* row = get_row_base( i, &existed ); i 624 modules/ml/src/svm.cpp return (this->*get_row_func)( i, row, dst, existed ); i 628 modules/ml/src/svm.cpp #define is_upper_bound(i) (alpha_status[i] > 0) i 631 modules/ml/src/svm.cpp #define is_lower_bound(i) (alpha_status[i] < 0) i 634 modules/ml/src/svm.cpp #define is_free(i) (alpha_status[i] == 0) i 637 modules/ml/src/svm.cpp #define get_C(i) (C[y[i]>0]) i 640 modules/ml/src/svm.cpp #define update_alpha_status(i) \ i 641 modules/ml/src/svm.cpp alpha_status[i] = (schar)(alpha[i] >= get_C(i) ? 1 : alpha[i] <= 0 ? -1 : 0) i 655 modules/ml/src/svm.cpp int i, j, k; i 658 modules/ml/src/svm.cpp for( i = 0; i < alpha_count; i++ ) i 660 modules/ml/src/svm.cpp update_alpha_status(i); i 661 modules/ml/src/svm.cpp G[i] = b[i]; i 662 modules/ml/src/svm.cpp if( fabs(G[i]) > 1e200 ) i 666 modules/ml/src/svm.cpp for( i = 0; i < alpha_count; i++ ) i 668 modules/ml/src/svm.cpp if( !is_lower_bound(i) ) i 670 modules/ml/src/svm.cpp const Qfloat *Q_i = get_row( i, &buf[0][0] ); i 671 modules/ml/src/svm.cpp double alpha_i = alpha[i]; i 687 modules/ml/src/svm.cpp for( i = 0; i < alpha_count; i++ ) i 689 modules/ml/src/svm.cpp if( fabs(G[i]) > 1e+300 ) i 692 modules/ml/src/svm.cpp if( fabs(alpha[i]) > 1e16 ) i 697 modules/ml/src/svm.cpp if( (this->*select_working_set_func)( i, j ) != 0 || iter++ >= max_iter ) i 700 modules/ml/src/svm.cpp Q_i = get_row( i, &buf[0][0] ); i 703 modules/ml/src/svm.cpp C_i = get_C(i); i 706 modules/ml/src/svm.cpp alpha_i = old_alpha_i = alpha[i]; i 709 modules/ml/src/svm.cpp if( y[i] != y[j] ) i 711 modules/ml/src/svm.cpp double denom = Q_i[i]+Q_j[j]+2*Q_i[j]; i 712 modules/ml/src/svm.cpp double delta = (-G[i]-G[j])/MAX(fabs(denom),FLT_EPSILON); i 741 modules/ml/src/svm.cpp double denom = Q_i[i]+Q_j[j]-2*Q_i[j]; i 742 modules/ml/src/svm.cpp double delta = (G[i]-G[j])/MAX(fabs(denom),FLT_EPSILON); i 771 modules/ml/src/svm.cpp alpha[i] = alpha_i; i 773 modules/ml/src/svm.cpp update_alpha_status(i); i 788 modules/ml/src/svm.cpp for( i = 0, si.obj = 0; i < alpha_count; i++ ) i 789 modules/ml/src/svm.cpp si.obj += alpha[i] * (G[i] + b[i]); i 815 modules/ml/src/svm.cpp for( int i = 0; i < alpha_count; i++ ) i 819 modules/ml/src/svm.cpp if( y[i] > 0 ) // y = +1 i 821 modules/ml/src/svm.cpp if( !is_upper_bound(i) && (t = -G[i]) > Gmax1 ) // d = +1 i 824 modules/ml/src/svm.cpp Gmax1_idx = i; i 826 modules/ml/src/svm.cpp if( !is_lower_bound(i) && (t = G[i]) > Gmax2 ) // d = -1 i 829 modules/ml/src/svm.cpp Gmax2_idx = i; i 834 modules/ml/src/svm.cpp if( !is_upper_bound(i) && (t = -G[i]) > Gmax2 ) // d = +1 i 837 modules/ml/src/svm.cpp Gmax2_idx = i; i 839 modules/ml/src/svm.cpp if( !is_lower_bound(i) && (t = G[i]) > Gmax1 ) // d = -1 i 842 modules/ml/src/svm.cpp Gmax1_idx = i; i 861 modules/ml/src/svm.cpp for( int i = 0; i < alpha_count; i++ ) i 863 modules/ml/src/svm.cpp double yG = y[i]*G[i]; i 865 modules/ml/src/svm.cpp if( is_lower_bound(i) ) i 867 modules/ml/src/svm.cpp if( y[i] > 0 ) i 872 modules/ml/src/svm.cpp else if( is_upper_bound(i) ) i 874 modules/ml/src/svm.cpp if( y[i] < 0) i 911 modules/ml/src/svm.cpp for( int i = 0; i < alpha_count; i++ ) i 915 modules/ml/src/svm.cpp if( y[i] > 0 ) // y == +1 i 917 modules/ml/src/svm.cpp if( !is_upper_bound(i) && (t = -G[i]) > Gmax1 ) // d = +1 i 920 modules/ml/src/svm.cpp Gmax1_idx = i; i 922 modules/ml/src/svm.cpp if( !is_lower_bound(i) && (t = G[i]) > Gmax2 ) // d = -1 i 925 modules/ml/src/svm.cpp Gmax2_idx = i; i 930 modules/ml/src/svm.cpp if( !is_upper_bound(i) && (t = -G[i]) > Gmax3 ) // d = +1 i 933 modules/ml/src/svm.cpp Gmax3_idx = i; i 935 modules/ml/src/svm.cpp if( !is_lower_bound(i) && (t = G[i]) > Gmax4 ) // d = -1 i 938 modules/ml/src/svm.cpp Gmax4_idx = i; i 970 modules/ml/src/svm.cpp for( int i = 0; i < alpha_count; i++ ) i 972 modules/ml/src/svm.cpp double G_i = G[i]; i 973 modules/ml/src/svm.cpp if( y[i] > 0 ) i 975 modules/ml/src/svm.cpp if( is_lower_bound(i) ) i 977 modules/ml/src/svm.cpp else if( is_upper_bound(i) ) i 987 modules/ml/src/svm.cpp if( is_lower_bound(i) ) i 989 modules/ml/src/svm.cpp else if( is_upper_bound(i) ) i 1027 modules/ml/src/svm.cpp for( int i = 0; i < sample_count; i++ ) i 1028 modules/ml/src/svm.cpp _alpha[i] *= _y[i]; i 1047 modules/ml/src/svm.cpp for( int i = 0; i < sample_count; i++ ) i 1050 modules/ml/src/svm.cpp if( _y[i] > 0 ) i 1060 modules/ml/src/svm.cpp _alpha[i] = a; i 1074 modules/ml/src/svm.cpp for( int i = 0; i < sample_count; i++ ) i 1075 modules/ml/src/svm.cpp _alpha[i] *= _y[i]*inv_r; i 1094 modules/ml/src/svm.cpp int i, n = cvRound( nu*sample_count ); i 1097 modules/ml/src/svm.cpp for( i = 0; i < sample_count; i++ ) i 1098 modules/ml/src/svm.cpp _alpha[i] = i < n ? 1 : 0; i 1128 modules/ml/src/svm.cpp for( int i = 0; i < sample_count; i++ ) i 1130 modules/ml/src/svm.cpp _b[i] = p - _yf[i]; i 1131 modules/ml/src/svm.cpp _y[i] = 1; i 1133 modules/ml/src/svm.cpp _b[i+sample_count] = p + _yf[i]; i 1134 modules/ml/src/svm.cpp _y[i+sample_count] = -1; i 1146 modules/ml/src/svm.cpp for( int i = 0; i < sample_count; i++ ) i 1147 modules/ml/src/svm.cpp _alpha[i] -= _alpha[i+sample_count]; i 1168 modules/ml/src/svm.cpp for( int i = 0; i < sample_count; i++ ) i 1170 modules/ml/src/svm.cpp _alpha[i] = _alpha[i + sample_count] = std::min(sum, C); i 1171 modules/ml/src/svm.cpp sum -= _alpha[i]; i 1173 modules/ml/src/svm.cpp _b[i] = -_yf[i]; i 1174 modules/ml/src/svm.cpp _y[i] = 1; i 1176 modules/ml/src/svm.cpp _b[i + sample_count] = _yf[i]; i 1177 modules/ml/src/svm.cpp _y[i + sample_count] = -1; i 1189 modules/ml/src/svm.cpp for( int i = 0; i < sample_count; i++ ) i 1190 modules/ml/src/svm.cpp _alpha[i] -= _alpha[i+sample_count]; i 1351 modules/ml/src/svm.cpp int getSVCount(int i) const i 1353 modules/ml/src/svm.cpp return (i < (int)(decision_func.size()-1) ? decision_func[i+1].ofs : i 1354 modules/ml/src/svm.cpp (int)df_index.size()) - decision_func[i].ofs; i 1360 modules/ml/src/svm.cpp int i, j, k, sample_count = _samples.rows; i 1384 modules/ml/src/svm.cpp for( i = 0; i < sample_count; i++ ) i 1385 modules/ml/src/svm.cpp sv_count += fabs(_alpha[i]) > 0; i 1393 modules/ml/src/svm.cpp for( i = k = 0; i < sample_count; i++ ) i 1395 modules/ml/src/svm.cpp if( std::abs(_alpha[i]) > 0 ) i 1397 modules/ml/src/svm.cpp _samples.row(i).copyTo(sv.row(k)); i 1398 modules/ml/src/svm.cpp df_alpha[k] = _alpha[i]; i 1444 modules/ml/src/svm.cpp for( i = 0; i < class_count; i++ ) i 1446 modules/ml/src/svm.cpp int ci = class_ranges[i+1] - class_ranges[i]; i 1447 modules/ml/src/svm.cpp for( j = i+1; j< class_count; j++ ) i 1460 modules/ml/src/svm.cpp for( i = 0; i < class_count; i++ ) i 1462 modules/ml/src/svm.cpp for( j = i+1; j < class_count; j++ ) i 1464 modules/ml/src/svm.cpp int si = class_ranges[i], ci = class_ranges[i+1] - si; i 1483 modules/ml/src/svm.cpp Cp = class_weights.at<double>(i); i 1515 modules/ml/src/svm.cpp for( i = 0, k = 0; i < sample_count; i++ ) i 1517 modules/ml/src/svm.cpp if( sv_tab[i] ) i 1518 modules/ml/src/svm.cpp sv_tab[i] = ++k; i 1524 modules/ml/src/svm.cpp for( i = 0; i < sample_count; i++ ) i 1526 modules/ml/src/svm.cpp if( !sv_tab[i] ) i 1528 modules/ml/src/svm.cpp memcpy(sv.ptr(sv_tab[i]-1), _samples.ptr(i), samplesize); i 1533 modules/ml/src/svm.cpp for( i = 0; i < n; i++ ) i 1535 modules/ml/src/svm.cpp CV_Assert( sv_tab[df_index[i]] > 0 ); i 1536 modules/ml/src/svm.cpp df_index[i] = sv_tab[df_index[i]] - 1; i 1550 modules/ml/src/svm.cpp int i, df_count = (int)decision_func.size(); i 1552 modules/ml/src/svm.cpp for( i = 0; i < df_count; i++ ) i 1554 modules/ml/src/svm.cpp if( getSVCount(i) != 1 ) i 1560 modules/ml/src/svm.cpp if( i == df_count ) i 1569 modules/ml/src/svm.cpp for( i = 0; i < df_count; i++ ) i 1571 modules/ml/src/svm.cpp float* dst = new_sv.ptr<float>(i); i 1573 modules/ml/src/svm.cpp int j, k, sv_count = getSVCount(i); i 1574 modules/ml/src/svm.cpp const DecisionFunc& df = decision_func[i]; i 1586 modules/ml/src/svm.cpp new_df.push_back(DecisionFunc(df.rho, i)); i 1705 modules/ml/src/svm.cpp int i, j, k; i 1708 modules/ml/src/svm.cpp for( i = 0; i < sample_count; i++ ) i 1722 modules/ml/src/svm.cpp for( i = 0; i < sample_count; i++ ) i 1724 modules/ml/src/svm.cpp if( responses.at<int>(sidx[i]) == 0 ) i 1725 modules/ml/src/svm.cpp sidx0.push_back(sidx[i]); i 1727 modules/ml/src/svm.cpp sidx1.push_back(sidx[i]); i 1737 modules/ml/src/svm.cpp for( i = a0; i < b0; i++ ) i 1738 modules/ml/src/svm.cpp sidx.push_back(sidx0[i]); i 1739 modules/ml/src/svm.cpp for( i = a1; i < b1; i++ ) i 1740 modules/ml/src/svm.cpp sidx.push_back(sidx1[i]); i 1741 modules/ml/src/svm.cpp for( i = 0; i < (b - a); i++ ) i 1782 modules/ml/src/svm.cpp for( i = 0; i < train_sample_count; i++ ) i 1784 modules/ml/src/svm.cpp j = sidx[(i+start)%sample_count]; i 1785 modules/ml/src/svm.cpp memcpy(temp_train_samples.ptr(i), samples.ptr(j), sample_size); i 1787 modules/ml/src/svm.cpp temp_train_responses.at<int>(i) = responses.at<int>(j); i 1789 modules/ml/src/svm.cpp temp_train_responses.at<float>(i) = responses.at<float>(j); i 1796 modules/ml/src/svm.cpp for( i = 0; i < train_sample_count; i++ ) i 1798 modules/ml/src/svm.cpp j = sidx[(i+start+train_sample_count) % sample_count]; i 1799 modules/ml/src/svm.cpp memcpy(temp_train_samples.ptr(i), samples.ptr(j), sample_size); i 1803 modules/ml/src/svm.cpp for( i = 0; i < test_sample_count; i++ ) i 1805 modules/ml/src/svm.cpp float val = temp_test_responses.at<float>(i); i 1806 modules/ml/src/svm.cpp j = sidx[(i+start+train_sample_count) % sample_count]; i 1846 modules/ml/src/svm.cpp int i, j, dfi, k, si; i 1857 modules/ml/src/svm.cpp for( i = 0; i < sv_total; i++ ) i 1858 modules/ml/src/svm.cpp sum += buffer[i]*svm->df_alpha[i]; i 1875 modules/ml/src/svm.cpp for( i = dfi = 0; i < class_count; i++ ) i 1877 modules/ml/src/svm.cpp for( j = i+1; j < class_count; j++, dfi++ ) i 1887 modules/ml/src/svm.cpp vote[sum > 0 ? i : j]++; i 1891 modules/ml/src/svm.cpp for( i = 1, k = 0; i < class_count; i++ ) i 1893 modules/ml/src/svm.cpp if( vote[i] > vote[k] ) i 1894 modules/ml/src/svm.cpp k = i; i 1940 modules/ml/src/svm.cpp double getDecisionFunction(int i, OutputArray _alpha, OutputArray _svidx ) const i 1942 modules/ml/src/svm.cpp CV_Assert( 0 <= i && i < (int)decision_func.size()); i 1943 modules/ml/src/svm.cpp const DecisionFunc& df = decision_func[i]; i 1944 modules/ml/src/svm.cpp int count = getSVCount(i); i 2045 modules/ml/src/svm.cpp int i, sv_total = sv.rows; i 2048 modules/ml/src/svm.cpp for( i = 0; i < sv_total; i++ ) i 2051 modules/ml/src/svm.cpp fs.writeRaw("f", sv.ptr(i), sv.cols*sv.elemSize()); i 2060 modules/ml/src/svm.cpp for( i = 0; i < df_count; i++ ) i 2062 modules/ml/src/svm.cpp const DecisionFunc& df = decision_func[i]; i 2063 modules/ml/src/svm.cpp int sv_count = getSVCount(i); i 2147 modules/ml/src/svm.cpp int i, sv_total = (int)fn["sv_total"]; i 2171 modules/ml/src/svm.cpp for( i = 0; i < sv_total; i++, ++sv_it ) i 2173 modules/ml/src/svm.cpp (*sv_it).readRaw("f", sv.ptr(i), var_count*sv.elemSize()); i 2183 modules/ml/src/svm.cpp for( i = 0; i < df_count; i++, ++df_it ) i 48 modules/ml/src/testset.cpp int i; i 55 modules/ml/src/testset.cpp return (e1.d < e2.d) || (e1.d == e2.d && e1.i < e2.i); i 71 modules/ml/src/testset.cpp int i, cur_class; i 89 modules/ml/src/testset.cpp for( i = 0; i < samples.rows; i++ ) i 91 modules/ml/src/testset.cpp PairDI& elem = dis[i]; i 92 modules/ml/src/testset.cpp elem.i = i; i 93 modules/ml/src/testset.cpp elem.d = norm(samples.row(i), NORM_L2); i 100 modules/ml/src/testset.cpp for( i = 0, cur_class = 0; i < num_samples; ++cur_class ) i 104 modules/ml/src/testset.cpp max_dst = std::max( max_dst, dis[i].d ); i 106 modules/ml/src/testset.cpp for( ; i < num_samples && dis[i].d <= max_dst; ++i ) i 107 modules/ml/src/testset.cpp responses.at<int>(i) = cur_class; i 161 modules/ml/src/tree.cpp int i, nvars = (int)varIdx.size(); i 162 modules/ml/src/tree.cpp for( i = 0; i < nvars; i++ ) i 163 modules/ml/src/tree.cpp w->maxSubsetSize = std::max(w->maxSubsetSize, getCatCount(varIdx[i])); i 192 modules/ml/src/tree.cpp for( i = 0; i < nsamples; i++ ) i 194 modules/ml/src/tree.cpp int ci = w->cat_responses[i]; i 196 modules/ml/src/tree.cpp w->sample_weights[i] *= cw[ci]; i 209 modules/ml/src/tree.cpp int i, nvars = (int)varIdx.size(), prevIdx = -1; i 210 modules/ml/src/tree.cpp for( i = 0; i < nvars; i++ ) i 212 modules/ml/src/tree.cpp int vi = varIdx[i]; i 215 modules/ml/src/tree.cpp compVarIdx[vi] = i; i 368 modules/ml/src/tree.cpp int i, n = node.sample_count = (int)sidx.size(); i 381 modules/ml/src/tree.cpp for( i = 1; i < n; i++ ) i 382 modules/ml/src/tree.cpp if( responses[s[i]] != first ) i 384 modules/ml/src/tree.cpp if( i == n ) i 452 modules/ml/src/tree.cpp int i, prevsz = (int)w->wsubsets.size(), ssize = getSubsetSize(best_vi); i 454 modules/ml/src/tree.cpp for( i = 0; i < ssize; i++ ) i 455 modules/ml/src/tree.cpp w->wsubsets[prevsz + i] = best_subset[i]; i 467 modules/ml/src/tree.cpp int i, j, k, n = (int)_sidx.size(), cv_n = params.getCVFolds(); i 502 modules/ml/src/tree.cpp for( i = 0; i < n; i++ ) i 504 modules/ml/src/tree.cpp int si = _sidx[i]; i 514 modules/ml/src/tree.cpp for( i = 0; i < n; i++ ) i 516 modules/ml/src/tree.cpp int si = _sidx[i]; i 583 modules/ml/src/tree.cpp for( i = 0; i < n; i++ ) i 585 modules/ml/src/tree.cpp int si = _sidx[i]; i 604 modules/ml/src/tree.cpp for( i = 0; i < n; i++ ) i 606 modules/ml/src/tree.cpp int si = _sidx[i]; i 653 modules/ml/src/tree.cpp int i, best_i = -1; i 656 modules/ml/src/tree.cpp for( i = 0; i < m; i++ ) i 657 modules/ml/src/tree.cpp lcw[i] = rcw[i] = 0.; i 661 modules/ml/src/tree.cpp for( i = 0; i < n; i++ ) i 663 modules/ml/src/tree.cpp sorted_idx[i] = i; i 664 modules/ml/src/tree.cpp int si = sidx[i]; i 671 modules/ml/src/tree.cpp for( i = 0; i < m; i++ ) i 673 modules/ml/src/tree.cpp double wval = rcw[i]; i 678 modules/ml/src/tree.cpp for( i = 0; i < n - 1; i++ ) i 680 modules/ml/src/tree.cpp int curr = sorted_idx[i]; i 681 modules/ml/src/tree.cpp int next = sorted_idx[i+1]; i 697 modules/ml/src/tree.cpp best_i = i; i 717 modules/ml/src/tree.cpp int i, j, idx; i 724 modules/ml/src/tree.cpp for( i = 0; i < n; i++ ) i 727 modules/ml/src/tree.cpp const double* v = vectors + i*m; i 728 modules/ml/src/tree.cpp labels[i] = i < k ? i : r.uniform(0, k); i 733 modules/ml/src/tree.cpp v_weights[i] = sum ? 1./sum : 0.; i 736 modules/ml/src/tree.cpp for( i = 0; i < n; i++ ) i 746 modules/ml/src/tree.cpp for( i = 0; i < k; i++ ) i 749 modules/ml/src/tree.cpp csums[i*m + j] = 0; i 752 modules/ml/src/tree.cpp for( i = 0; i < n; i++ ) i 754 modules/ml/src/tree.cpp const double* v = vectors + i*m; i 755 modules/ml/src/tree.cpp double* s = csums + labels[i]*m; i 767 modules/ml/src/tree.cpp for( i = 0; i < k; i++ ) i 769 modules/ml/src/tree.cpp const double* s = csums + i*m; i 773 modules/ml/src/tree.cpp c_weights[i] = sum ? 1./sum : 0; i 777 modules/ml/src/tree.cpp for( i = 0; i < n; i++ ) i 779 modules/ml/src/tree.cpp const double* v = vectors + i*m; i 780 modules/ml/src/tree.cpp double alpha = v_weights[i]; i 800 modules/ml/src/tree.cpp if( min_idx != labels[i] ) i 802 modules/ml/src/tree.cpp labels[i] = min_idx; i 833 modules/ml/src/tree.cpp int i, j, k, si, idx; i 844 modules/ml/src/tree.cpp for( i = 0; i < n; i++ ) i 846 modules/ml/src/tree.cpp si = _sidx[i]; i 847 modules/ml/src/tree.cpp j = labels[i]; i 909 modules/ml/src/tree.cpp idx += (u.i >> 23) - 127; i 967 modules/ml/src/tree.cpp for( i = 0; i <= best_subset; i++ ) i 969 modules/ml/src/tree.cpp idx = (int)(dbl_ptr[i] - cjk) >> 1; i 975 modules/ml/src/tree.cpp for( i = 0; i < _mi; i++ ) i 977 modules/ml/src/tree.cpp idx = cluster_labels ? cluster_labels[i] : i; i 979 modules/ml/src/tree.cpp subset[i >> 5] |= 1 << (i & 31); i 999 modules/ml/src/tree.cpp int i, si, best_i = -1; i 1003 modules/ml/src/tree.cpp for( i = 0; i < n; i++ ) i 1005 modules/ml/src/tree.cpp sorted_idx[i] = i; i 1006 modules/ml/src/tree.cpp si = _sidx[i]; i 1014 modules/ml/src/tree.cpp for( i = 0; i < n - 1; i++ ) i 1016 modules/ml/src/tree.cpp int curr = sorted_idx[i]; i 1017 modules/ml/src/tree.cpp int next = sorted_idx[i+1]; i 1030 modules/ml/src/tree.cpp best_i = i; i 1063 modules/ml/src/tree.cpp int i, si, best_subset = -1, subset_i; i 1065 modules/ml/src/tree.cpp for( i = -1; i < mi; i++ ) i 1066 modules/ml/src/tree.cpp sum[i] = counts[i] = 0; i 1069 modules/ml/src/tree.cpp for( i = 0; i < n; i++ ) i 1071 modules/ml/src/tree.cpp int idx = cat_labels[i]; i 1072 modules/ml/src/tree.cpp si = _sidx[i]; i 1079 modules/ml/src/tree.cpp for( i = 0; i < mi; i++ ) i 1081 modules/ml/src/tree.cpp R += counts[i]; i 1082 modules/ml/src/tree.cpp rsum += sum[i]; i 1083 modules/ml/src/tree.cpp sum[i] = fabs(counts[i]) > DBL_EPSILON ? sum[i]/counts[i] : 0; i 1084 modules/ml/src/tree.cpp sum_ptr[i] = sum + i; i 1091 modules/ml/src/tree.cpp for( i = 0; i < mi; i++ ) i 1092 modules/ml/src/tree.cpp sum[i] *= counts[i]; i 1123 modules/ml/src/tree.cpp for( i = 0; i <= best_subset; i++ ) i 1125 modules/ml/src/tree.cpp int idx = (int)(sum_ptr[i] - sum); i 1136 modules/ml/src/tree.cpp int i, si, n = (int)_sidx.size(), vi = split.varIdx; i 1153 modules/ml/src/tree.cpp for( i = 0; i < n; i++ ) i 1155 modules/ml/src/tree.cpp si = _sidx[i]; i 1156 modules/ml/src/tree.cpp if( values[i] <= c ) i 1174 modules/ml/src/tree.cpp for( i = 0; i < n; i++ ) i 1176 modules/ml/src/tree.cpp si = _sidx[i]; i 1177 modules/ml/src/tree.cpp unsigned u = cat_labels[i]; i 1371 modules/ml/src/tree.cpp int i, ncats = (int)catOfs.size(), nclasses = (int)classLabels.size(); i 1387 modules/ml/src/tree.cpp for( i = 0; i < catbufsize; i++ ) i 1388 modules/ml/src/tree.cpp catbuf[i] = -1; i 1398 modules/ml/src/tree.cpp for( i = 0; i < nclasses; i++ ) i 1399 modules/ml/src/tree.cpp votes[i] = 0; i 1483 modules/ml/src/tree.cpp for( i = 1; i < nclasses; i++ ) i 1484 modules/ml/src/tree.cpp if( votes[best_idx] < votes[i] ) i 1485 modules/ml/src/tree.cpp best_idx = i; i 1498 modules/ml/src/tree.cpp int i, nsamples = samples.rows; i 1516 modules/ml/src/tree.cpp for( i = 0; i < nsamples; i++ ) i 1518 modules/ml/src/tree.cpp float val = predictTrees( Range(0, (int)roots.size()), samples.row(i), flags )*scale; i 1522 modules/ml/src/tree.cpp results.at<float>(i) = val; i 1524 modules/ml/src/tree.cpp results.at<int>(i) = cvRound(val); i 1526 modules/ml/src/tree.cpp if( i == 0 ) i 1556 modules/ml/src/tree.cpp int i, n = (int)varType.size(); i 1557 modules/ml/src/tree.cpp for( i = 0; i < n; i++ ) i 1558 modules/ml/src/tree.cpp if( varType[i] == VAR_ORDERED ) i 1600 modules/ml/src/tree.cpp int i, n = getCatCount(vi), to_right = 0; i 1602 modules/ml/src/tree.cpp for( i = 0; i < n; i++ ) i 1603 modules/ml/src/tree.cpp to_right += CV_DTREE_CAT_DIR(i, subset) > 0; i 1611 modules/ml/src/tree.cpp for( i = 0; i < n; i++ ) i 1613 modules/ml/src/tree.cpp int dir = CV_DTREE_CAT_DIR(i, subset); i 1615 modules/ml/src/tree.cpp fs << i; i 1729 modules/ml/src/tree.cpp int i = 0, n; i 1733 modules/ml/src/tree.cpp for (; i < n; ++i) i 1735 modules/ml/src/tree.cpp int var = varIdx[i]; i 1736 modules/ml/src/tree.cpp extendedTypes[var] = varType[i]; i 1742 modules/ml/src/tree.cpp for (; i < n; ++i) i 1744 modules/ml/src/tree.cpp extendedTypes[i] = varType[i]; i 1760 modules/ml/src/tree.cpp unsigned int i = 0, j = 0, curShift = 0, size = (int)varType.size() - 1; i 1761 modules/ml/src/tree.cpp for (; i < size; ++i) i 1764 modules/ml/src/tree.cpp if (varType[i] == VAR_CATEGORICAL) // only categorical vars are represented in catMap i 1810 modules/ml/src/tree.cpp int i, val, ssize = getSubsetSize(vi); i 1812 modules/ml/src/tree.cpp for( i = 0; i < ssize; i++ ) i 1831 modules/ml/src/tree.cpp for( i = 0; i < n; i++, ++it ) i 1842 modules/ml/src/tree.cpp for( i = 0; i < ssize; i++ ) i 1843 modules/ml/src/tree.cpp subset[i] ^= -1; i 1875 modules/ml/src/tree.cpp int i, n = (int)sfn.size(), prevsplit = -1; i 1878 modules/ml/src/tree.cpp for( i = 0; i < n; i++, ++it ) i 1896 modules/ml/src/tree.cpp int i, n = (int)fn.size(), root = -1, pidx = -1; i 1899 modules/ml/src/tree.cpp for( i = 0; i < n; i++, ++it ) i 91 modules/ml/test/test_emknearestkmeans.cpp for(int i = 0; i < _means.rows; i++) i 92 modules/ml/test/test_emknearestkmeans.cpp means[i] = _means.row(i); i 102 modules/ml/test/test_emknearestkmeans.cpp for( int i = bi; i < ei; i++, p++ ) i 104 modules/ml/test/test_emknearestkmeans.cpp Mat r = data.row(i); i 124 modules/ml/test/test_emknearestkmeans.cpp for( int i = 0; it != count.end(); ++it, i++ ) i 129 modules/ml/test/test_emknearestkmeans.cpp idx = i; i 140 modules/ml/test/test_emknearestkmeans.cpp for(size_t i = 0; i < sizes.size(); i++) i 141 modules/ml/test/test_emknearestkmeans.cpp total += sizes[i]; i 156 modules/ml/test/test_emknearestkmeans.cpp for( int i = startIndex; i < startIndex + sizes[clusterIndex]; i++) i 158 modules/ml/test/test_emknearestkmeans.cpp int lbl = isFlt ? (int)labels.at<float>(i) : labels.at<int>(i); i 175 modules/ml/test/test_emknearestkmeans.cpp for(size_t i = 0; i < buzy.size(); i++) i 176 modules/ml/test/test_emknearestkmeans.cpp if(!buzy[i]) i 201 modules/ml/test/test_emknearestkmeans.cpp for( int i = 0; i < labels.rows; i++ ) i 203 modules/ml/test/test_emknearestkmeans.cpp err += labels.at<float>(i) != labelsMap[(int)origLabels.at<float>(i)] ? 1.f : 0.f; i 205 modules/ml/test/test_emknearestkmeans.cpp err += labels.at<int>(i) != labelsMap[origLabels.at<int>(i)] ? 1.f : 0.f; i 209 modules/ml/test/test_emknearestkmeans.cpp for( int i = 0; i < labels.rows; i++ ) i 211 modules/ml/test/test_emknearestkmeans.cpp err += labels.at<float>(i) != origLabels.at<float>(i) ? 1.f : 0.f; i 213 modules/ml/test/test_emknearestkmeans.cpp err += labels.at<int>(i) != origLabels.at<int>(i) ? 1.f : 0.f; i 272 modules/ml/test/test_emknearestkmeans.cpp for( int i = 0; i < 0.5f * pointsCount; i++ ) i 425 modules/ml/test/test_emknearestkmeans.cpp for( int i = 0; i < testData.rows; i++ ) i 427 modules/ml/test/test_emknearestkmeans.cpp Mat sample = testData.row(i); i 429 modules/ml/test/test_emknearestkmeans.cpp labels.at<int>(i) = static_cast<int>(em->predict2( sample, probs )[1]); i 554 modules/ml/test/test_emknearestkmeans.cpp for( int i = 0; i < samples.rows; i++) i 555 modules/ml/test/test_emknearestkmeans.cpp firstResult.at<int>(i) = static_cast<int>(em->predict2(samples.row(i), noArray())[1]); i 590 modules/ml/test/test_emknearestkmeans.cpp for( int i = 0; i < samples.rows; i++) i 591 modules/ml/test/test_emknearestkmeans.cpp errCaseCount = std::abs(em->predict2(samples.row(i), noArray())[1] - firstResult.at<int>(i)) < FLT_EPSILON ? 0 : 1; i 629 modules/ml/test/test_emknearestkmeans.cpp for(int i = 0; i < trainSamplesCount; i++) i 630 modules/ml/test/test_emknearestkmeans.cpp trainSamplesMask[i] = 1; i 632 modules/ml/test/test_emknearestkmeans.cpp for(size_t i = 0; i < trainSamplesMask.size(); i++) i 640 modules/ml/test/test_emknearestkmeans.cpp for(int i = 0; i < samples.rows; i++) i 642 modules/ml/test/test_emknearestkmeans.cpp if(trainSamplesMask[i]) i 644 modules/ml/test/test_emknearestkmeans.cpp Mat sample = samples.row(i); i 645 modules/ml/test/test_emknearestkmeans.cpp int resp = (int)responses.at<float>(i); i 663 modules/ml/test/test_emknearestkmeans.cpp for(int i = 0; i < samples.rows; i++) i 665 modules/ml/test/test_emknearestkmeans.cpp Mat sample = samples.row(i); i 671 modules/ml/test/test_emknearestkmeans.cpp if(trainSamplesMask[i]) i 672 modules/ml/test/test_emknearestkmeans.cpp trainConfusionMat.at<int>((int)responses.at<float>(i), classID)++; i 674 modules/ml/test/test_emknearestkmeans.cpp testConfusionMat.at<int>((int)responses.at<float>(i), classID)++; i 256 modules/ml/test/test_gbttest.cpp for (int i = 0; i < 4; i++) i 259 modules/ml/test/test_gbttest.cpp int temp_code = TestTrainPredict(i); i 266 modules/ml/test/test_gbttest.cpp else if (i==0) i 159 modules/ml/test/test_mltests2.cpp for( int i = 0; i < sample_count; i++ ) i 161 modules/ml/test/test_mltests2.cpp int si = sidx ? sidx[i] : i; i 171 modules/ml/test/test_mltests2.cpp pred_resp[i] = (float)best_cls.x; i 238 modules/ml/test/test_mltests2.cpp for( int i = 0; i < test_case_count; i++, ++it ) i 240 modules/ml/test/test_mltests2.cpp dataSetNames[i] = (string)*it; i 255 modules/ml/test/test_mltests2.cpp for (int i = 0; i < test_case_count; i++) i 257 modules/ml/test/test_mltests2.cpp int temp_code = run_test_case( i ); i 259 modules/ml/test/test_mltests2.cpp temp_code = validate_test_results( i ); i 64 modules/ml/test/test_svmtrainauto.cpp for (int i = 0; i < datasize; ++i) i 67 modules/ml/test/test_svmtrainauto.cpp samples.at<float>( i, 0 ) = rng.uniform(0.f, 0.5f) + response * 0.5f; i 68 modules/ml/test/test_svmtrainauto.cpp samples.at<float>( i, 1 ) = rng.uniform(0.f, 0.5f) + response * 0.5f; i 69 modules/ml/test/test_svmtrainauto.cpp responses.at<int>( i, 0 ) = response; i 214 modules/objdetect/include/opencv2/objdetect/detection_based_tracker.hpp cv::Rect calcTrackedObjectPositionToShow(int i) const; i 215 modules/objdetect/include/opencv2/objdetect/detection_based_tracker.hpp cv::Rect calcTrackedObjectPositionToShow(int i, ObjectStatus& status) const; i 66 modules/objdetect/src/cascadedetect.cpp size_t i, sz = rectList.size(); i 68 modules/objdetect/src/cascadedetect.cpp for( i = 0; i < sz; i++ ) i 69 modules/objdetect/src/cascadedetect.cpp (*weights)[i] = 1; i 81 modules/objdetect/src/cascadedetect.cpp int i, j, nlabels = (int)labels.size(); i 82 modules/objdetect/src/cascadedetect.cpp for( i = 0; i < nlabels; i++ ) i 84 modules/objdetect/src/cascadedetect.cpp int cls = labels[i]; i 85 modules/objdetect/src/cascadedetect.cpp rrects[cls].x += rectList[i].x; i 86 modules/objdetect/src/cascadedetect.cpp rrects[cls].y += rectList[i].y; i 87 modules/objdetect/src/cascadedetect.cpp rrects[cls].width += rectList[i].width; i 88 modules/objdetect/src/cascadedetect.cpp rrects[cls].height += rectList[i].height; i 96 modules/objdetect/src/cascadedetect.cpp for( i = 0; i < nlabels; i++ ) i 98 modules/objdetect/src/cascadedetect.cpp int cls = labels[i]; i 99 modules/objdetect/src/cascadedetect.cpp if( (*weights)[i] > rejectLevels[cls] ) i 101 modules/objdetect/src/cascadedetect.cpp rejectLevels[cls] = (*weights)[i]; i 102 modules/objdetect/src/cascadedetect.cpp rejectWeights[cls] = (*levelWeights)[i]; i 104 modules/objdetect/src/cascadedetect.cpp else if( ( (*weights)[i] == rejectLevels[cls] ) && ( (*levelWeights)[i] > rejectWeights[cls] ) ) i 105 modules/objdetect/src/cascadedetect.cpp rejectWeights[cls] = (*levelWeights)[i]; i 111 modules/objdetect/src/cascadedetect.cpp for( i = 0; i < nclasses; i++ ) i 113 modules/objdetect/src/cascadedetect.cpp Rect r = rrects[i]; i 114 modules/objdetect/src/cascadedetect.cpp float s = 1.f/rweights[i]; i 115 modules/objdetect/src/cascadedetect.cpp rrects[i] = Rect(saturate_cast<int>(r.x*s), i 127 modules/objdetect/src/cascadedetect.cpp for( i = 0; i < nclasses; i++ ) i 129 modules/objdetect/src/cascadedetect.cpp Rect r1 = rrects[i]; i 130 modules/objdetect/src/cascadedetect.cpp int n1 = rweights[i]; i 131 modules/objdetect/src/cascadedetect.cpp double w1 = rejectWeights[i]; i 132 modules/objdetect/src/cascadedetect.cpp int l1 = rejectLevels[i]; i 142 modules/objdetect/src/cascadedetect.cpp if( j == i || n2 <= groupThreshold ) i 149 modules/objdetect/src/cascadedetect.cpp if( i != j && i 184 modules/objdetect/src/cascadedetect.cpp for (unsigned i = 0; i<positionsV.size(); i++) i 186 modules/objdetect/src/cascadedetect.cpp meanshiftV[i] = getNewValue(positionsV[i]); i 187 modules/objdetect/src/cascadedetect.cpp distanceV[i] = moveToMode(meanshiftV[i]); i 188 modules/objdetect/src/cascadedetect.cpp meanshiftV[i] -= positionsV[i]; i 194 modules/objdetect/src/cascadedetect.cpp for (size_t i=0; i <distanceV.size(); i++) i 199 modules/objdetect/src/cascadedetect.cpp if ( getDistance(distanceV[i], modesV[j]) < eps) i 207 modules/objdetect/src/cascadedetect.cpp modesV.push_back(distanceV[i]); i 213 modules/objdetect/src/cascadedetect.cpp for (size_t i=0; i<modesV.size(); i++) i 215 modules/objdetect/src/cascadedetect.cpp resWeightsV[i] = getResultWeight(modesV[i]); i 235 modules/objdetect/src/cascadedetect.cpp for (size_t i=0; i<positionsV.size(); i++) i 237 modules/objdetect/src/cascadedetect.cpp Point3d aPt= positionsV[i]; i 252 modules/objdetect/src/cascadedetect.cpp double w = (weightsV[i])*std::exp(-((aPt-bPt).dot(aPt-bPt))/2)/std::sqrt(sPt.dot(Point3d(1,1,1))); i 269 modules/objdetect/src/cascadedetect.cpp for (size_t i=0; i<positionsV.size(); i++) i 271 modules/objdetect/src/cascadedetect.cpp Point3d aPt = positionsV[i]; i 283 modules/objdetect/src/cascadedetect.cpp sumW+=(weightsV[i])*std::exp(-(aPt.dot(aPt))/2)/std::sqrt(sPt.dot(Point3d(1,1,1))); i 291 modules/objdetect/src/cascadedetect.cpp for (int i = 0; i<iterMax; i++) i 324 modules/objdetect/src/cascadedetect.cpp for (int i=0; i < detectionCount; i++) i 326 modules/objdetect/src/cascadedetect.cpp hitWeights[i] = (*foundWeights)[i]; i 327 modules/objdetect/src/cascadedetect.cpp hitCenter = (rectList[i].tl() + rectList[i].br())*(0.5); //center of rectangles i 328 modules/objdetect/src/cascadedetect.cpp hits[i] = Point3d(hitCenter.x, hitCenter.y, std::log(scales[i])); i 342 modules/objdetect/src/cascadedetect.cpp for (unsigned i=0; i < resultHits.size(); ++i) i 345 modules/objdetect/src/cascadedetect.cpp double scale = std::exp(resultHits[i].z); i 346 modules/objdetect/src/cascadedetect.cpp hitCenter.x = resultHits[i].x; i 347 modules/objdetect/src/cascadedetect.cpp hitCenter.y = resultHits[i].y; i 352 modules/objdetect/src/cascadedetect.cpp if (resultWeights[i] > detectThreshold) i 355 modules/objdetect/src/cascadedetect.cpp foundWeights->push_back(resultWeights[i]); i 430 modules/objdetect/src/cascadedetect.cpp size_t i, nscales = _scales.size(); i 440 modules/objdetect/src/cascadedetect.cpp for( i = 0; i < nscales; i++ ) i 442 modules/objdetect/src/cascadedetect.cpp FeatureEvaluator::ScaleData& s = scaleData->at(i); i 443 modules/objdetect/src/cascadedetect.cpp if( !recalcOptFeatures && fabs(s.scale - _scales[i]) > FLT_EPSILON*100*_scales[i] ) i 445 modules/objdetect/src/cascadedetect.cpp float sc = _scales[i]; i 453 modules/objdetect/src/cascadedetect.cpp if( i == 0 ) i 479 modules/objdetect/src/cascadedetect.cpp size_t i, nscales = scaleData->size(); i 498 modules/objdetect/src/cascadedetect.cpp for (i = 0; i < nscales; i++) i 500 modules/objdetect/src/cascadedetect.cpp const ScaleData& s = scaleData->at(i); i 503 modules/objdetect/src/cascadedetect.cpp computeChannels((int)i, dst); i 513 modules/objdetect/src/cascadedetect.cpp for (i = 0; i < nscales; i++) i 515 modules/objdetect/src/cascadedetect.cpp const ScaleData& s = scaleData->at(i); i 518 modules/objdetect/src/cascadedetect.cpp computeChannels((int)i, dst); i 569 modules/objdetect/src/cascadedetect.cpp size_t i, n = node.size(); i 584 modules/objdetect/src/cascadedetect.cpp for(i = 0; i < n; i++, ++it) i 586 modules/objdetect/src/cascadedetect.cpp if(!ff[i].read(*it)) i 588 modules/objdetect/src/cascadedetect.cpp if( ff[i].tilted ) i 777 modules/objdetect/src/cascadedetect.cpp for(int i = 0; it != it_end; ++it, i++) i 779 modules/objdetect/src/cascadedetect.cpp if(!ff[i].read(*it)) i 1163 modules/objdetect/src/cascadedetect.cpp for( int i = 0; i < nfaces; i++ ) i 1165 modules/objdetect/src/cascadedetect.cpp const FeatureEvaluator::ScaleData& s = featureEvaluator->getScaleData(fptr[i*3 + 1]); i 1166 modules/objdetect/src/cascadedetect.cpp candidates.push_back(Rect(cvRound(fptr[i*3 + 2]*s.scale), i 1167 modules/objdetect/src/cascadedetect.cpp cvRound(fptr[i*3 + 3]*s.scale), i 1293 modules/objdetect/src/cascadedetect.cpp size_t i, nscales = scales.size(); i 1299 modules/objdetect/src/cascadedetect.cpp for( i = 0; i < nscales; i++ ) i 1301 modules/objdetect/src/cascadedetect.cpp szw = s[i].getWorkingSize(data.origWinSize); i 1302 modules/objdetect/src/cascadedetect.cpp stripeSizes[i] = std::max((szw.height/s[i].ystep + nstripes-1)/nstripes, 1)*s[i].ystep; i 1515 modules/objdetect/src/cascadedetect.cpp for( int i = 0; i < ntrees; i++, nodeOfs++, leafOfs+= 2 ) i 1593 modules/objdetect/src/cascadedetect.cpp size_t i, j = 0, n = objects.size(); i 1604 modules/objdetect/src/cascadedetect.cpp for( i = 0; i < n; i++ ) i 1606 modules/objdetect/src/cascadedetect.cpp Rect r = win0 & objects[i]; i 1610 modules/objdetect/src/cascadedetect.cpp if( i > j ) i 1612 modules/objdetect/src/cascadedetect.cpp if(a) a->at(j) = a->at(i); i 1613 modules/objdetect/src/cascadedetect.cpp if(b) b->at(j) = b->at(i); i 363 modules/objdetect/src/cascadedetect.hpp virtual void computeChannels( int i, InputArray img ); i 445 modules/objdetect/src/cascadedetect.hpp virtual void computeChannels( int i, InputArray img ); i 464 modules/objdetect/src/cascadedetect.hpp for( int i = 0; i < 16; i++ ) i 465 modules/objdetect/src/cascadedetect.hpp ofs[i] = 0; i 585 modules/objdetect/src/cascadedetect.hpp for( int i = 0; i < ntrees; i++ ) i 587 modules/objdetect/src/cascadedetect.hpp const CascadeClassifierImpl::Data::Stump& stump = cascadeStumps[i]; i 77 modules/objdetect/src/cascadedetect_convert.cpp for( int i = 0; i < RECT_NUM; i++ ) i 79 modules/objdetect/src/cascadedetect_convert.cpp rect[i].r = Rect(0,0,0,0); i 80 modules/objdetect/src/cascadedetect_convert.cpp rect[i].weight = 0.f; i 129 modules/objdetect/src/cascadedetect_convert.cpp int i, j, k, n; i 135 modules/objdetect/src/cascadedetect_convert.cpp for( i = 0; i < nstages; i++ ) i 137 modules/objdetect/src/cascadedetect_convert.cpp FileNode stagenode = stages_seq[i]; i 138 modules/objdetect/src/cascadedetect_convert.cpp HaarStageClassifier& stage = stages[i]; i 202 modules/objdetect/src/cascadedetect_convert.cpp for( i = 0; i < nstages; i++ ) i 203 modules/objdetect/src/cascadedetect_convert.cpp maxWeakCount = std::max(maxWeakCount, (int)stages[i].weaks.size()); i 219 modules/objdetect/src/cascadedetect_convert.cpp for( i = 0; i < nstages; i++ ) i 221 modules/objdetect/src/cascadedetect_convert.cpp int nweaks = (int)stages[i].weaks.size(); i 223 modules/objdetect/src/cascadedetect_convert.cpp << "stageThreshold" << stages[i].threshold i 227 modules/objdetect/src/cascadedetect_convert.cpp const HaarClassifier& c = stages[i].weaks[j]; i 244 modules/objdetect/src/cascadedetect_convert.cpp for( i = 0; i < nfeatures; i++ ) i 246 modules/objdetect/src/cascadedetect_convert.cpp const HaarFeature& f = features[i]; i 649 modules/objdetect/src/detection_based_tracker.cpp for(size_t i = 0; i < trackedObjects.size(); i++) { i 650 modules/objdetect/src/detection_based_tracker.cpp size_t n = trackedObjects[i].lastPositions.size(); i 653 modules/objdetect/src/detection_based_tracker.cpp Rect r = trackedObjects[i].lastPositions[n-1]; i 662 modules/objdetect/src/detection_based_tracker.cpp Point2f center_prev = centerRect(trackedObjects[i].lastPositions[n-2]); i 678 modules/objdetect/src/detection_based_tracker.cpp for(size_t i=0; i < rectsWhereRegions.size(); i++) { i 679 modules/objdetect/src/detection_based_tracker.cpp Rect r = rectsWhereRegions[i]; i 692 modules/objdetect/src/detection_based_tracker.cpp for(size_t i=0; i < trackedObjects.size(); i++) { i 693 modules/objdetect/src/detection_based_tracker.cpp Rect r=calcTrackedObjectPositionToShow((int)i); i 706 modules/objdetect/src/detection_based_tracker.cpp for(size_t i=0; i < trackedObjects.size(); i++) { i 707 modules/objdetect/src/detection_based_tracker.cpp Rect r=calcTrackedObjectPositionToShow((int)i); i 711 modules/objdetect/src/detection_based_tracker.cpp result.push_back(Object(r, trackedObjects[i].id)); i 719 modules/objdetect/src/detection_based_tracker.cpp for(size_t i=0; i < trackedObjects.size(); i++) { i 721 modules/objdetect/src/detection_based_tracker.cpp Rect r=calcTrackedObjectPositionToShow((int)i, status); i 722 modules/objdetect/src/detection_based_tracker.cpp result.push_back(ExtObject(trackedObjects[i].id, r, status)); i 761 modules/objdetect/src/detection_based_tracker.cpp for(int i=0; i < N1; i++) { i 762 modules/objdetect/src/detection_based_tracker.cpp trackedObjects[i].numDetectedFrames++; i 769 modules/objdetect/src/detection_based_tracker.cpp for(int i=0; i < N1; i++) { i 770 modules/objdetect/src/detection_based_tracker.cpp LOGD("DetectionBasedTracker::updateTrackedObjects: i=%d", i); i 771 modules/objdetect/src/detection_based_tracker.cpp TrackedObject& curObject=trackedObjects[i]; i 779 modules/objdetect/src/detection_based_tracker.cpp LOGD("DetectionBasedTracker::updateTrackedObjects: prevRect[%d]={%d, %d, %d x %d}", i, prevRect.x, prevRect.y, prevRect.width, prevRect.height); i 808 modules/objdetect/src/detection_based_tracker.cpp LOGD("DetectionBasedTracker::updateTrackedObjects: The best correspondence for i=%d is j=%d", i, bestIndex); i 809 modules/objdetect/src/detection_based_tracker.cpp correspondence[bestIndex]=i; i 823 modules/objdetect/src/detection_based_tracker.cpp LOGD("DetectionBasedTracker::updateTrackedObjects: There is no correspondence for i=%d ", i); i 831 modules/objdetect/src/detection_based_tracker.cpp int i=correspondence[j]; i 832 modules/objdetect/src/detection_based_tracker.cpp if (i >= 0) {//add position i 834 modules/objdetect/src/detection_based_tracker.cpp trackedObjects[i].lastPositions.push_back(detectedObjects[j]); i 835 modules/objdetect/src/detection_based_tracker.cpp while ((int)trackedObjects[i].lastPositions.size() > (int) innerParameters.numLastPositionsToTrack) { i 836 modules/objdetect/src/detection_based_tracker.cpp trackedObjects[i].lastPositions.erase(trackedObjects[i].lastPositions.begin()); i 838 modules/objdetect/src/detection_based_tracker.cpp trackedObjects[i].numFramesNotDetected=0; i 839 modules/objdetect/src/detection_based_tracker.cpp } else if (i==NEW_RECTANGLE){ //new object i 880 modules/objdetect/src/detection_based_tracker.cpp Rect cv::DetectionBasedTracker::calcTrackedObjectPositionToShow(int i) const i 883 modules/objdetect/src/detection_based_tracker.cpp return calcTrackedObjectPositionToShow(i, status); i 885 modules/objdetect/src/detection_based_tracker.cpp Rect cv::DetectionBasedTracker::calcTrackedObjectPositionToShow(int i, ObjectStatus& status) const i 887 modules/objdetect/src/detection_based_tracker.cpp if ( (i < 0) || (i >= (int)trackedObjects.size()) ) { i 888 modules/objdetect/src/detection_based_tracker.cpp LOGE("DetectionBasedTracker::calcTrackedObjectPositionToShow: ERROR: wrong i=%d", i); i 892 modules/objdetect/src/detection_based_tracker.cpp if (trackedObjects[i].numDetectedFrames <= innerParameters.numStepsToWaitBeforeFirstShow){ i 894 modules/objdetect/src/detection_based_tracker.cpp i, trackedObjects[i].numDetectedFrames, innerParameters.numStepsToWaitBeforeFirstShow); i 898 modules/objdetect/src/detection_based_tracker.cpp if (trackedObjects[i].numFramesNotDetected > innerParameters.numStepsToShowWithoutDetecting) { i 903 modules/objdetect/src/detection_based_tracker.cpp const TrackedObject::PositionsVector& lastPositions=trackedObjects[i].lastPositions; i 907 modules/objdetect/src/detection_based_tracker.cpp LOGE("DetectionBasedTracker::calcTrackedObjectPositionToShow: ERROR: no positions for i=%d", i); i 965 modules/objdetect/src/detection_based_tracker.cpp LOGD("DetectionBasedTracker::calcTrackedObjectPositionToShow: Result for i=%d: {%d, %d, %d x %d}", i, res.x, res.y, res.width, res.height); i 1002 modules/objdetect/src/detection_based_tracker.cpp for(size_t i=0; i < tmpobjects.size(); i++) { i 1003 modules/objdetect/src/detection_based_tracker.cpp Rect curres(tmpobjects[i].tl() + r1.tl(), tmpobjects[i].size()); i 164 modules/objdetect/src/haar.cpp int i; i 165 modules/objdetect/src/haar.cpp for( i = 0; i < cascade->count; i++ ) i 167 modules/objdetect/src/haar.cpp if( cascade->ipp_stages[i] ) i 168 modules/objdetect/src/haar.cpp ippiHaarClassifierFree_32f( (IppiHaarClassifier_32f*)cascade->ipp_stages[i] ); i 187 modules/objdetect/src/haar.cpp int i, j, k, l; i 214 modules/objdetect/src/haar.cpp for( i = 0; i < cascade->count; i++ ) i 216 modules/objdetect/src/haar.cpp CvHaarStageClassifier* stage_classifier = cascade->stage_classifier + i; i 222 modules/objdetect/src/haar.cpp "(has null pointers or non-positive classfier count)", i ); i 254 modules/objdetect/src/haar.cpp "the reference (original) cascade window", k, j, i ); i 284 modules/objdetect/src/haar.cpp for( i = 0; i < cascade->count; i++ ) i 286 modules/objdetect/src/haar.cpp CvHaarStageClassifier* stage_classifier = cascade->stage_classifier + i; i 287 modules/objdetect/src/haar.cpp CvHidHaarStageClassifier* hid_stage_classifier = out->stage_classifier + i; i 435 modules/objdetect/src/haar.cpp int i; i 508 modules/objdetect/src/haar.cpp for( i = 0; i < _cascade->count; i++ ) i 511 modules/objdetect/src/haar.cpp for( j = 0; j < cascade->stage_classifier[i].count; j++ ) i 513 modules/objdetect/src/haar.cpp for( l = 0; l < cascade->stage_classifier[i].classifier[j].count; l++ ) i 516 modules/objdetect/src/haar.cpp &_cascade->stage_classifier[i].classifier[j].haar_feature[l]; i 520 modules/objdetect/src/haar.cpp &cascade->stage_classifier[i].classifier[j].node[l].feature; i 743 modules/objdetect/src/haar.cpp for(int i = 0; i < 8; i++) i 745 modules/objdetect/src/haar.cpp if(idxV[i]<=0) i 747 modules/objdetect/src/haar.cpp if(!flags[i]) i 750 modules/objdetect/src/haar.cpp flags[i] = 1; i 751 modules/objdetect/src/haar.cpp res += (classifier+i)->alpha[-idxV[i]]; i 753 modules/objdetect/src/haar.cpp idxV[i]=0; i 834 modules/objdetect/src/haar.cpp int i, j; i 908 modules/objdetect/src/haar.cpp for( i = start_stage; i < cascade->count; i++ ) i 913 modules/objdetect/src/haar.cpp if( cascade->stage_classifier[i].two_rects ) i 915 modules/objdetect/src/haar.cpp for( ; j <= cascade->stage_classifier[i].count - 8; j += 8 ) i 917 modules/objdetect/src/haar.cpp classifiers[0] = cascade->stage_classifier[i].classifier + j; i 919 modules/objdetect/src/haar.cpp classifiers[1] = cascade->stage_classifier[i].classifier + j + 1; i 921 modules/objdetect/src/haar.cpp classifiers[2] = cascade->stage_classifier[i].classifier + j + 2; i 923 modules/objdetect/src/haar.cpp classifiers[3] = cascade->stage_classifier[i].classifier + j + 3; i 925 modules/objdetect/src/haar.cpp classifiers[4] = cascade->stage_classifier[i].classifier + j + 4; i 927 modules/objdetect/src/haar.cpp classifiers[5] = cascade->stage_classifier[i].classifier + j + 5; i 929 modules/objdetect/src/haar.cpp classifiers[6] = cascade->stage_classifier[i].classifier + j + 6; i 931 modules/objdetect/src/haar.cpp classifiers[7] = cascade->stage_classifier[i].classifier + j + 7; i 1005 modules/objdetect/src/haar.cpp for( ; j < cascade->stage_classifier[i].count; j++ ) i 1007 modules/objdetect/src/haar.cpp CvHidHaarClassifier* classifier = cascade->stage_classifier[i].classifier + j; i 1018 modules/objdetect/src/haar.cpp for( ; j <= (cascade->stage_classifier[i].count)-8; j+=8 ) i 1022 modules/objdetect/src/haar.cpp classifiers[0] = cascade->stage_classifier[i].classifier + j; i 1024 modules/objdetect/src/haar.cpp classifiers[1] = cascade->stage_classifier[i].classifier + j + 1; i 1026 modules/objdetect/src/haar.cpp classifiers[2] = cascade->stage_classifier[i].classifier + j + 2; i 1028 modules/objdetect/src/haar.cpp classifiers[3] = cascade->stage_classifier[i].classifier + j + 3; i 1030 modules/objdetect/src/haar.cpp classifiers[4] = cascade->stage_classifier[i].classifier + j + 4; i 1032 modules/objdetect/src/haar.cpp classifiers[5] = cascade->stage_classifier[i].classifier + j + 5; i 1034 modules/objdetect/src/haar.cpp classifiers[6] = cascade->stage_classifier[i].classifier + j + 6; i 1036 modules/objdetect/src/haar.cpp classifiers[7] = cascade->stage_classifier[i].classifier + j + 7; i 1133 modules/objdetect/src/haar.cpp for( ; j < cascade->stage_classifier[i].count; j++ ) i 1135 modules/objdetect/src/haar.cpp CvHidHaarClassifier* classifier = cascade->stage_classifier[i].classifier + j; i 1146 modules/objdetect/src/haar.cpp if( stage_sum < cascade->stage_classifier[i].threshold ) i 1147 modules/objdetect/src/haar.cpp return -i; i 1154 modules/objdetect/src/haar.cpp for( i = start_stage; i < cascade->count; i++ ) i 1157 modules/objdetect/src/haar.cpp if( cascade->stage_classifier[i].two_rects ) i 1159 modules/objdetect/src/haar.cpp for( j = 0; j < cascade->stage_classifier[i].count; j++ ) i 1161 modules/objdetect/src/haar.cpp CvHidHaarClassifier* classifier = cascade->stage_classifier[i].classifier + j; i 1176 modules/objdetect/src/haar.cpp for( j = 0; j < cascade->stage_classifier[i].count; j++ ) i 1178 modules/objdetect/src/haar.cpp CvHidHaarClassifier* classifier = cascade->stage_classifier[i].classifier + j; i 1194 modules/objdetect/src/haar.cpp __m128d i_threshold = _mm_set1_pd(cascade->stage_classifier[i].threshold); i 1196 modules/objdetect/src/haar.cpp return -i; i 1202 modules/objdetect/src/haar.cpp for( i = start_stage; i < cascade->count; i++ ) i 1205 modules/objdetect/src/haar.cpp if( cascade->stage_classifier[i].two_rects ) i 1207 modules/objdetect/src/haar.cpp for( j = 0; j < cascade->stage_classifier[i].count; j++ ) i 1209 modules/objdetect/src/haar.cpp CvHidHaarClassifier* classifier = cascade->stage_classifier[i].classifier + j; i 1219 modules/objdetect/src/haar.cpp for( j = 0; j < cascade->stage_classifier[i].count; j++ ) i 1221 modules/objdetect/src/haar.cpp CvHidHaarClassifier* classifier = cascade->stage_classifier[i].classifier + j; i 1231 modules/objdetect/src/haar.cpp if( stage_sum < cascade->stage_classifier[i].threshold ) i 1232 modules/objdetect/src/haar.cpp return -i; i 1238 modules/objdetect/src/haar.cpp for( i = start_stage; i < cascade->count; i++ ) i 1246 modules/objdetect/src/haar.cpp for( ; k < cascade->stage_classifier[i].count - 8; k += 8 ) i 1249 modules/objdetect/src/haar.cpp cascade->stage_classifier[i].classifier + k, i 1254 modules/objdetect/src/haar.cpp for(; k < cascade->stage_classifier[i].count; k++ ) i 1258 modules/objdetect/src/haar.cpp cascade->stage_classifier[i].classifier + k, i 1262 modules/objdetect/src/haar.cpp if( stage_sum < cascade->stage_classifier[i].threshold ) i 1263 modules/objdetect/src/haar.cpp return -i; i 1733 modules/objdetect/src/haar.cpp size_t i, sz = rectList.size(); i 1736 modules/objdetect/src/haar.cpp for( i = 0; i < sz; i++ ) i 1738 modules/objdetect/src/haar.cpp if( rectList[i].area() > maxRect.area() ) i 1739 modules/objdetect/src/haar.cpp maxRect = rectList[i]; i 1782 modules/objdetect/src/haar.cpp for( size_t i = 0; i < rectList.size(); i++ ) i 1784 modules/objdetect/src/haar.cpp cv::Rect r = rectList[i]; i 1788 modules/objdetect/src/haar.cpp result_comp.neighbors = rweights[i]; i 1795 modules/objdetect/src/haar.cpp for( size_t i = 0; i < rectList.size(); i++ ) i 1798 modules/objdetect/src/haar.cpp c.rect = rectList[i]; i 1799 modules/objdetect/src/haar.cpp c.neighbors = !rweights.empty() ? rweights[i] : 0; i 1824 modules/objdetect/src/haar.cpp int i; i 1828 modules/objdetect/src/haar.cpp for( i = 0; i < n; i++ ) i 1832 modules/objdetect/src/haar.cpp const char* stage = input_cascade[i]; i 1843 modules/objdetect/src/haar.cpp cascade->stage_classifier[i].count = count; i 1844 modules/objdetect/src/haar.cpp cascade->stage_classifier[i].classifier = i 1845 modules/objdetect/src/haar.cpp (CvHaarClassifier*)cvAlloc( count*sizeof(cascade->stage_classifier[i].classifier[0])); i 1849 modules/objdetect/src/haar.cpp CvHaarClassifier* classifier = cascade->stage_classifier[i].classifier + j; i 1910 modules/objdetect/src/haar.cpp cascade->stage_classifier[i].threshold = threshold; i 1915 modules/objdetect/src/haar.cpp parent = i - 1; i 1920 modules/objdetect/src/haar.cpp cascade->stage_classifier[i].parent = parent; i 1921 modules/objdetect/src/haar.cpp cascade->stage_classifier[i].next = next; i 1922 modules/objdetect/src/haar.cpp cascade->stage_classifier[i].child = -1; i 1926 modules/objdetect/src/haar.cpp cascade->stage_classifier[parent].child = i; i 1975 modules/objdetect/src/haar.cpp for( int i = 0; i < n; i++ ) i 1977 modules/objdetect/src/haar.cpp sprintf( name, "%s/%d/AdaBoostCARTHaarClassifier.txt", directory, i ); i 1987 modules/objdetect/src/haar.cpp input_cascade[i] = ptr; i 2008 modules/objdetect/src/haar.cpp int i, j; i 2011 modules/objdetect/src/haar.cpp for( i = 0; i < cascade->count; i++ ) i 2013 modules/objdetect/src/haar.cpp for( j = 0; j < cascade->stage_classifier[i].count; j++ ) i 2014 modules/objdetect/src/haar.cpp cvFree( &cascade->stage_classifier[i].classifier[j].haar_feature ); i 2015 modules/objdetect/src/haar.cpp cvFree( &cascade->stage_classifier[i].classifier ); i 2061 modules/objdetect/src/haar.cpp int i, j, k, l; i 2076 modules/objdetect/src/haar.cpp if( !CV_NODE_IS_INT( fn->tag ) || fn->data.i <= 0 ) i 2078 modules/objdetect/src/haar.cpp cascade->orig_window_size.width = fn->data.i; i 2080 modules/objdetect/src/haar.cpp if( !CV_NODE_IS_INT( fn->tag ) || fn->data.i <= 0 ) i 2082 modules/objdetect/src/haar.cpp cascade->orig_window_size.height = fn->data.i; i 2085 modules/objdetect/src/haar.cpp for( i = 0; i < n; ++i ) i 2094 modules/objdetect/src/haar.cpp sprintf( buf, "Invalid stage %d", i ); i 2102 modules/objdetect/src/haar.cpp sprintf( buf, "Trees node is not a valid sequence. (stage %d)", i ); i 2106 modules/objdetect/src/haar.cpp cascade->stage_classifier[i].classifier = i 2108 modules/objdetect/src/haar.cpp * sizeof( cascade->stage_classifier[i].classifier[0] ) ); i 2111 modules/objdetect/src/haar.cpp cascade->stage_classifier[i].classifier[j].haar_feature = NULL; i 2113 modules/objdetect/src/haar.cpp cascade->stage_classifier[i].count = trees_fn->data.seq->total; i 2123 modules/objdetect/src/haar.cpp classifier = &cascade->stage_classifier[i].classifier[j]; i 2128 modules/objdetect/src/haar.cpp " (stage %d, tree %d)", i, j ); i 2156 modules/objdetect/src/haar.cpp k, i, j ); i 2163 modules/objdetect/src/haar.cpp "(stage %d, tree %d, node %d)", i, j, k ); i 2172 modules/objdetect/src/haar.cpp "(stage %d, tree %d, node %d)", i, j, k ); i 2185 modules/objdetect/src/haar.cpp "(stage %d, tree %d, node %d)", l, i, j, k ); i 2190 modules/objdetect/src/haar.cpp if( !CV_NODE_IS_INT( fn->tag ) || fn->data.i < 0 ) i 2193 modules/objdetect/src/haar.cpp "(stage %d, tree %d, node %d, rect %d)", i, j, k, l ); i 2196 modules/objdetect/src/haar.cpp r.x = fn->data.i; i 2198 modules/objdetect/src/haar.cpp if( !CV_NODE_IS_INT( fn->tag ) || fn->data.i < 0 ) i 2201 modules/objdetect/src/haar.cpp "(stage %d, tree %d, node %d, rect %d)", i, j, k, l ); i 2204 modules/objdetect/src/haar.cpp r.y = fn->data.i; i 2206 modules/objdetect/src/haar.cpp if( !CV_NODE_IS_INT( fn->tag ) || fn->data.i <= 0 i 2207 modules/objdetect/src/haar.cpp || r.x + fn->data.i > cascade->orig_window_size.width ) i 2211 modules/objdetect/src/haar.cpp "(stage %d, tree %d, node %d, rect %d)", i, j, k, l ); i 2214 modules/objdetect/src/haar.cpp r.width = fn->data.i; i 2216 modules/objdetect/src/haar.cpp if( !CV_NODE_IS_INT( fn->tag ) || fn->data.i <= 0 i 2217 modules/objdetect/src/haar.cpp || r.y + fn->data.i > cascade->orig_window_size.height ) i 2221 modules/objdetect/src/haar.cpp "(stage %d, tree %d, node %d, rect %d)", i, j, k, l ); i 2224 modules/objdetect/src/haar.cpp r.height = fn->data.i; i 2229 modules/objdetect/src/haar.cpp "(stage %d, tree %d, node %d, rect %d)", i, j, k, l ); i 2248 modules/objdetect/src/haar.cpp "(stage %d, tree %d, node %d)", i, j, k ); i 2251 modules/objdetect/src/haar.cpp classifier->haar_feature[k].tilted = ( fn->data.i != 0 ); i 2256 modules/objdetect/src/haar.cpp "(stage %d, tree %d, node %d)", i, j, k ); i 2263 modules/objdetect/src/haar.cpp if( !CV_NODE_IS_INT( fn->tag ) || fn->data.i <= k i 2264 modules/objdetect/src/haar.cpp || fn->data.i >= tree_fn->data.seq->total ) i 2267 modules/objdetect/src/haar.cpp "(stage %d, tree %d, node %d)", i, j, k ); i 2271 modules/objdetect/src/haar.cpp classifier->left[k] = fn->data.i; i 2279 modules/objdetect/src/haar.cpp "(stage %d, tree %d, node %d)", i, j, k ); i 2285 modules/objdetect/src/haar.cpp "(stage %d, tree %d, node %d)", i, j, k ); i 2292 modules/objdetect/src/haar.cpp "(stage %d, tree %d, node %d)", i, j, k ); i 2301 modules/objdetect/src/haar.cpp if( !CV_NODE_IS_INT( fn->tag ) || fn->data.i <= k i 2302 modules/objdetect/src/haar.cpp || fn->data.i >= tree_fn->data.seq->total ) i 2305 modules/objdetect/src/haar.cpp "(stage %d, tree %d, node %d)", i, j, k ); i 2309 modules/objdetect/src/haar.cpp classifier->right[k] = fn->data.i; i 2317 modules/objdetect/src/haar.cpp "(stage %d, tree %d, node %d)", i, j, k ); i 2323 modules/objdetect/src/haar.cpp "(stage %d, tree %d, node %d)", i, j, k ); i 2330 modules/objdetect/src/haar.cpp "(stage %d, tree %d, node %d)", i, j, k ); i 2342 modules/objdetect/src/haar.cpp "(stage %d, tree %d)", i, j ); i 2352 modules/objdetect/src/haar.cpp sprintf( buf, "stage threshold must be real number. (stage %d)", i ); i 2355 modules/objdetect/src/haar.cpp cascade->stage_classifier[i].threshold = (float) fn->data.f; i 2357 modules/objdetect/src/haar.cpp parent = i - 1; i 2362 modules/objdetect/src/haar.cpp || fn->data.i < -1 || fn->data.i >= cascade->count ) i 2364 modules/objdetect/src/haar.cpp sprintf( buf, "parent must be integer number. (stage %d)", i ); i 2367 modules/objdetect/src/haar.cpp parent = fn->data.i; i 2370 modules/objdetect/src/haar.cpp || fn->data.i < -1 || fn->data.i >= cascade->count ) i 2372 modules/objdetect/src/haar.cpp sprintf( buf, "next must be integer number. (stage %d)", i ); i 2375 modules/objdetect/src/haar.cpp next = fn->data.i; i 2377 modules/objdetect/src/haar.cpp cascade->stage_classifier[i].parent = parent; i 2378 modules/objdetect/src/haar.cpp cascade->stage_classifier[i].next = next; i 2379 modules/objdetect/src/haar.cpp cascade->stage_classifier[i].child = -1; i 2383 modules/objdetect/src/haar.cpp cascade->stage_classifier[parent].child = i; i 2396 modules/objdetect/src/haar.cpp int i, j, k, l; i 2410 modules/objdetect/src/haar.cpp for( i = 0; i < cascade->count; ++i ) i 2413 modules/objdetect/src/haar.cpp sprintf( buf, "stage %d", i ); i 2418 modules/objdetect/src/haar.cpp for( j = 0; j < cascade->stage_classifier[i].count; ++j ) i 2420 modules/objdetect/src/haar.cpp CvHaarClassifier* tree = &cascade->stage_classifier[i].classifier[j]; i 2488 modules/objdetect/src/haar.cpp cvWriteReal( fs, ICV_HAAR_STAGE_THRESHOLD_NAME, cascade->stage_classifier[i].threshold); i 2489 modules/objdetect/src/haar.cpp cvWriteInt( fs, ICV_HAAR_PARENT_NAME, cascade->stage_classifier[i].parent ); i 2490 modules/objdetect/src/haar.cpp cvWriteInt( fs, ICV_HAAR_NEXT_NAME, cascade->stage_classifier[i].next ); i 2504 modules/objdetect/src/haar.cpp int i, j, k, n; i 2512 modules/objdetect/src/haar.cpp for( i = 0; i < n; ++i ) i 2514 modules/objdetect/src/haar.cpp cascade->stage_classifier[i].parent = cascade_src->stage_classifier[i].parent; i 2515 modules/objdetect/src/haar.cpp cascade->stage_classifier[i].next = cascade_src->stage_classifier[i].next; i 2516 modules/objdetect/src/haar.cpp cascade->stage_classifier[i].child = cascade_src->stage_classifier[i].child; i 2517 modules/objdetect/src/haar.cpp cascade->stage_classifier[i].threshold = cascade_src->stage_classifier[i].threshold; i 2519 modules/objdetect/src/haar.cpp cascade->stage_classifier[i].count = 0; i 2520 modules/objdetect/src/haar.cpp cascade->stage_classifier[i].classifier = i 2521 modules/objdetect/src/haar.cpp (CvHaarClassifier*) cvAlloc( cascade_src->stage_classifier[i].count i 2522 modules/objdetect/src/haar.cpp * sizeof( cascade->stage_classifier[i].classifier[0] ) ); i 2524 modules/objdetect/src/haar.cpp cascade->stage_classifier[i].count = cascade_src->stage_classifier[i].count; i 2526 modules/objdetect/src/haar.cpp for( j = 0; j < cascade->stage_classifier[i].count; ++j ) i 2527 modules/objdetect/src/haar.cpp cascade->stage_classifier[i].classifier[j].haar_feature = NULL; i 2529 modules/objdetect/src/haar.cpp for( j = 0; j < cascade->stage_classifier[i].count; ++j ) i 2532 modules/objdetect/src/haar.cpp &cascade_src->stage_classifier[i].classifier[j]; i 2534 modules/objdetect/src/haar.cpp &cascade->stage_classifier[i].classifier[j]; i 124 modules/objdetect/src/hog.cpp for (int i = 0; i < blocks_per_img.height; ++i) i 127 modules/objdetect/src/hog.cpp const float *src = &svmDetector[0] + (j * blocks_per_img.height + i) * block_hist_size; i 128 modules/objdetect/src/hog.cpp float *dst = detector_reordered.ptr<float>() + (i * blocks_per_img.width + j) * block_hist_size; i 239 modules/objdetect/src/hog.cpp int i, x, y; i 251 modules/objdetect/src/hog.cpp for( i = 0; i < 256; i += 4 ) i 253 modules/objdetect/src/hog.cpp _mm_storeu_ps(_data + i, _mm_sqrt_ps(_mm_cvtepi32_ps(idx))); i 257 modules/objdetect/src/hog.cpp for( i = 0; i < 256; i += 4 ) i 259 modules/objdetect/src/hog.cpp _mm_storeu_ps(_data + i, _mm_cvtepi32_ps(idx)); i 264 modules/objdetect/src/hog.cpp for( i = 0; i < 256; i++ ) i 265 modules/objdetect/src/hog.cpp _lut(0,i) = std::sqrt((float)i); i 267 modules/objdetect/src/hog.cpp for( i = 0; i < 256; i++ ) i 268 modules/objdetect/src/hog.cpp _lut(0,i) = (float)i; i 558 modules/objdetect/src/hog.cpp int i, j, nbins = descriptor->nbins; i 589 modules/objdetect/src/hog.cpp i = 0; i 596 modules/objdetect/src/hog.cpp for (; i <= blockSize.height - 4; i += 4) i 601 modules/objdetect/src/hog.cpp _mm_storeu_ps(_di + i, t); i 604 modules/objdetect/src/hog.cpp for ( ; i < blockSize.height; ++i) i 606 modules/objdetect/src/hog.cpp _di[i] = i - bh; i 607 modules/objdetect/src/hog.cpp _di[i] *= _di[i]; i 627 modules/objdetect/src/hog.cpp for(i = 0; i < blockSize.height; i++) i 629 modules/objdetect/src/hog.cpp weights(i,j) = std::exp(-(_di[i] + _dj[j])*scale); i 662 modules/objdetect/src/hog.cpp for( i = 0; i < blockSize.height; i++ ) i 666 modules/objdetect/src/hog.cpp float cellY = (i+0.5f)/cellSize.height - 0.5f; i 738 modules/objdetect/src/hog.cpp data->gradOfs = (grad.cols*i + j)*2; i 739 modules/objdetect/src/hog.cpp data->qangleOfs = (qangle.cols*i + j)*2; i 740 modules/objdetect/src/hog.cpp data->gradWeight = weights(i,j); i 754 modules/objdetect/src/hog.cpp for( i = 0; i < nblocks.height; i++ ) i 756 modules/objdetect/src/hog.cpp BlockData& data = blockData[j*nblocks.height + i]; i 757 modules/objdetect/src/hog.cpp data.histOfs = (j*nblocks.height + i)*blockHistogramSize; i 758 modules/objdetect/src/hog.cpp data.imgOffset = Point(j*blockStride.width,i*blockStride.height); i 964 modules/objdetect/src/hog.cpp size_t i = 0, sz = blockHistogramSize; i 970 modules/objdetect/src/hog.cpp for (i = 4; i <= sz - 4; i += 4) i 972 modules/objdetect/src/hog.cpp p0 = _mm_loadu_ps(hist + i); i 981 modules/objdetect/src/hog.cpp for ( ; i <= sz - 4; i += 4) i 983 modules/objdetect/src/hog.cpp partSum[0] += hist[i] * hist[i]; i 984 modules/objdetect/src/hog.cpp partSum[1] += hist[i+1] * hist[i+1]; i 985 modules/objdetect/src/hog.cpp partSum[2] += hist[i+2] * hist[i+2]; i 986 modules/objdetect/src/hog.cpp partSum[3] += hist[i+3] * hist[i+3]; i 992 modules/objdetect/src/hog.cpp for ( ; i < sz; ++i) i 993 modules/objdetect/src/hog.cpp sum += hist[i]*hist[i]; i 996 modules/objdetect/src/hog.cpp i = 0, sum = 0.0f; i 1007 modules/objdetect/src/hog.cpp for(i = 4 ; i <= sz - 4; i += 4) i 1009 modules/objdetect/src/hog.cpp p = _mm_loadu_ps(hist + i); i 1013 modules/objdetect/src/hog.cpp _mm_storeu_ps(hist + i, p); i 1022 modules/objdetect/src/hog.cpp for( ; i <= sz - 4; i += 4) i 1024 modules/objdetect/src/hog.cpp hist[i] = std::min(hist[i]*scale, thresh); i 1025 modules/objdetect/src/hog.cpp hist[i+1] = std::min(hist[i+1]*scale, thresh); i 1026 modules/objdetect/src/hog.cpp hist[i+2] = std::min(hist[i+2]*scale, thresh); i 1027 modules/objdetect/src/hog.cpp hist[i+3] = std::min(hist[i+3]*scale, thresh); i 1028 modules/objdetect/src/hog.cpp partSum[0] += hist[i]*hist[i]; i 1029 modules/objdetect/src/hog.cpp partSum[1] += hist[i+1]*hist[i+1]; i 1030 modules/objdetect/src/hog.cpp partSum[2] += hist[i+2]*hist[i+2]; i 1031 modules/objdetect/src/hog.cpp partSum[3] += hist[i+3]*hist[i+3]; i 1037 modules/objdetect/src/hog.cpp for( ; i < sz; ++i) i 1039 modules/objdetect/src/hog.cpp hist[i] = std::min(hist[i]*scale, thresh); i 1040 modules/objdetect/src/hog.cpp sum += hist[i]*hist[i]; i 1043 modules/objdetect/src/hog.cpp scale = 1.f/(std::sqrt(sum)+1e-3f), i = 0; i 1046 modules/objdetect/src/hog.cpp for ( ; i <= sz - 4; i += 4) i 1048 modules/objdetect/src/hog.cpp __m128 t = _mm_mul_ps(_scale2, _mm_loadu_ps(hist + i)); i 1049 modules/objdetect/src/hog.cpp _mm_storeu_ps(hist + i, t); i 1052 modules/objdetect/src/hog.cpp for ( ; i < sz; ++i) i 1053 modules/objdetect/src/hog.cpp hist[i] *= scale; i 1184 modules/objdetect/src/hog.cpp for(unsigned int i = 1; i<=1024; i<<=1) i 1185 modules/objdetect/src/hog.cpp if(n < i) i 1186 modules/objdetect/src/hog.cpp return i; i 1346 modules/objdetect/src/hog.cpp for(int i=-8; i<8; i++) i 1348 modules/objdetect/src/hog.cpp gaussian_lut.at<float>(idx++) = std::exp(-(j * j + i * i) * scale); i 1349 modules/objdetect/src/hog.cpp for(int i=-8; i<8; i++) i 1351 modules/objdetect/src/hog.cpp gaussian_lut.at<float>(idx++) = (8.f - fabs(j + 0.5f)) * (8.f - fabs(i + 0.5f)) / 64.f; i 1428 modules/objdetect/src/hog.cpp for( size_t i = 0; i < nwindows; i++ ) i 1430 modules/objdetect/src/hog.cpp float* descriptor = &descriptors[i*dsize]; i 1435 modules/objdetect/src/hog.cpp pt0 = locations[i]; i 1442 modules/objdetect/src/hog.cpp pt0 = cache.getWindow(paddedImgSize, winStride, (int)i).tl() - Point(padding); i 1496 modules/objdetect/src/hog.cpp for( size_t i = 0; i < nwindows; i++ ) i 1501 modules/objdetect/src/hog.cpp pt0 = locations[i]; i 1508 modules/objdetect/src/hog.cpp pt0 = cache.getWindow(paddedImgSize, winStride, (int)i).tl() - Point(padding); i 1584 modules/objdetect/src/hog.cpp int i, i1 = range.start, i2 = range.end; i 1591 modules/objdetect/src/hog.cpp for( i = i1; i < i2; i++ ) i 1593 modules/objdetect/src/hog.cpp double scale = levelScale[i]; i 1748 modules/objdetect/src/hog.cpp for(int i=-8; i<8; i++) i 1750 modules/objdetect/src/hog.cpp gaussian_lut.at<float>(idx++) = std::exp(-(j * j + i * i) * scale); i 1751 modules/objdetect/src/hog.cpp for(int i=-8; i<8; i++) i 1753 modules/objdetect/src/hog.cpp gaussian_lut.at<float>(idx++) = (8.f - fabs(j + 0.5f)) * (8.f - fabs(i + 0.5f)) / 64.f; i 1780 modules/objdetect/src/hog.cpp for (int i = 0; i < wins_per_img.area(); i++) i 1782 modules/objdetect/src/hog.cpp int y = i / wins_per_img.width; i 1783 modules/objdetect/src/hog.cpp int x = i - wins_per_img.width * y; i 1784 modules/objdetect/src/hog.cpp if (vec[i]) i 1804 modules/objdetect/src/hog.cpp for (size_t i = 0; i<level_scale.size() ; i++) i 1806 modules/objdetect/src/hog.cpp double scale = level_scale[i]; i 3288 modules/objdetect/src/hog.cpp int i, i1 = range.start, i2 = range.end; i 3294 modules/objdetect/src/hog.cpp for( i = i1; i < i2; i++ ) i 3296 modules/objdetect/src/hog.cpp double scale = (*locations)[i].scale; i 3306 modules/objdetect/src/hog.cpp hog->detectROI(smallerImg, (*locations)[i].locations, dets, (*locations)[i].confidences, hitThreshold, Size(), padding); i 3364 modules/objdetect/src/hog.cpp for( size_t i = 0; i < nwindows; i++ ) i 3367 modules/objdetect/src/hog.cpp pt0 = locations[i]; i 3515 modules/objdetect/src/hog.cpp for(int i = 0; i < length; i++) i 3516 modules/objdetect/src/hog.cpp detector.push_back((float)linearwt[i]); i 3542 modules/objdetect/src/hog.cpp int i, j, nlabels = (int)labels.size(); i 3544 modules/objdetect/src/hog.cpp for( i = 0; i < nlabels; i++ ) i 3546 modules/objdetect/src/hog.cpp int cls = labels[i]; i 3547 modules/objdetect/src/hog.cpp rrects[cls].x += rectList[i].x; i 3548 modules/objdetect/src/hog.cpp rrects[cls].y += rectList[i].y; i 3549 modules/objdetect/src/hog.cpp rrects[cls].width += rectList[i].width; i 3550 modules/objdetect/src/hog.cpp rrects[cls].height += rectList[i].height; i 3551 modules/objdetect/src/hog.cpp foundWeights[cls] = max(foundWeights[cls], weights[i]); i 3555 modules/objdetect/src/hog.cpp for( i = 0; i < nclasses; i++ ) i 3558 modules/objdetect/src/hog.cpp cv::Rect_<double> r = rrects[i]; i 3559 modules/objdetect/src/hog.cpp double s = 1.0/numInClass[i]; i 3560 modules/objdetect/src/hog.cpp rrects[i] = cv::Rect_<double>(cv::saturate_cast<double>(r.x*s), i 3569 modules/objdetect/src/hog.cpp for( i = 0; i < nclasses; i++ ) i 3571 modules/objdetect/src/hog.cpp cv::Rect r1 = rrects[i]; i 3572 modules/objdetect/src/hog.cpp int n1 = numInClass[i]; i 3573 modules/objdetect/src/hog.cpp double w1 = foundWeights[i]; i 3581 modules/objdetect/src/hog.cpp if( j == i || n2 <= groupThreshold ) i 297 modules/objdetect/test/test_cascadeandhog.cpp bool isZero( uchar i ) {return i == 0;} i 446 modules/objdetect/test/test_cascadeandhog.cpp for( int i = 0; i < rs->total; i++ ) i 448 modules/objdetect/test/test_cascadeandhog.cpp Rect r = *(Rect*)cvGetSeqElem(rs, i); i 662 modules/objdetect/test/test_cascadeandhog.cpp int i, j, nbins = descriptor->nbins; i 686 modules/objdetect/test/test_cascadeandhog.cpp for(i = 0; i < blockSize.height; i++) i 689 modules/objdetect/test/test_cascadeandhog.cpp float di = i - blockSize.height*0.5f; i 691 modules/objdetect/test/test_cascadeandhog.cpp weights(i,j) = std::exp(-(di*di + dj*dj)*scale); i 723 modules/objdetect/test/test_cascadeandhog.cpp for( i = 0; i < blockSize.height; i++ ) i 727 modules/objdetect/test/test_cascadeandhog.cpp float cellY = (i+0.5f)/cellSize.height - 0.5f; i 799 modules/objdetect/test/test_cascadeandhog.cpp data->gradOfs = (grad.cols*i + j)*2; i 800 modules/objdetect/test/test_cascadeandhog.cpp data->qangleOfs = (qangle.cols*i + j)*2; i 801 modules/objdetect/test/test_cascadeandhog.cpp data->gradWeight = weights(i,j); i 815 modules/objdetect/test/test_cascadeandhog.cpp for( i = 0; i < nblocks.height; i++ ) i 817 modules/objdetect/test/test_cascadeandhog.cpp BlockData& data = blockData[j*nblocks.height + i]; i 818 modules/objdetect/test/test_cascadeandhog.cpp data.histOfs = (j*nblocks.height + i)*blockHistogramSize; i 819 modules/objdetect/test/test_cascadeandhog.cpp data.imgOffset = Point(j*blockStride.width,i*blockStride.height); i 939 modules/objdetect/test/test_cascadeandhog.cpp size_t i, sz = blockHistogramSize; i 941 modules/objdetect/test/test_cascadeandhog.cpp for (i = 0; i <= sz - 4; i += 4) i 943 modules/objdetect/test/test_cascadeandhog.cpp partSum[0] += hist[i] * hist[i]; i 944 modules/objdetect/test/test_cascadeandhog.cpp partSum[1] += hist[i+1] * hist[i+1]; i 945 modules/objdetect/test/test_cascadeandhog.cpp partSum[2] += hist[i+2] * hist[i+2]; i 946 modules/objdetect/test/test_cascadeandhog.cpp partSum[3] += hist[i+3] * hist[i+3]; i 951 modules/objdetect/test/test_cascadeandhog.cpp for( ; i < sz; i++ ) i 952 modules/objdetect/test/test_cascadeandhog.cpp sum += hist[i]*hist[i]; i 956 modules/objdetect/test/test_cascadeandhog.cpp for(i = 0; i <= sz - 4; i += 4) i 958 modules/objdetect/test/test_cascadeandhog.cpp hist[i] = std::min(hist[i]*scale, thresh); i 959 modules/objdetect/test/test_cascadeandhog.cpp hist[i+1] = std::min(hist[i+1]*scale, thresh); i 960 modules/objdetect/test/test_cascadeandhog.cpp hist[i+2] = std::min(hist[i+2]*scale, thresh); i 961 modules/objdetect/test/test_cascadeandhog.cpp hist[i+3] = std::min(hist[i+3]*scale, thresh); i 962 modules/objdetect/test/test_cascadeandhog.cpp partSum[0] += hist[i]*hist[i]; i 963 modules/objdetect/test/test_cascadeandhog.cpp partSum[1] += hist[i+1]*hist[i+1]; i 964 modules/objdetect/test/test_cascadeandhog.cpp partSum[2] += hist[i+2]*hist[i+2]; i 965 modules/objdetect/test/test_cascadeandhog.cpp partSum[3] += hist[i+3]*hist[i+3]; i 970 modules/objdetect/test/test_cascadeandhog.cpp for( ; i < sz; i++ ) i 972 modules/objdetect/test/test_cascadeandhog.cpp hist[i] = std::min(hist[i]*scale, thresh); i 973 modules/objdetect/test/test_cascadeandhog.cpp sum += hist[i]*hist[i]; i 977 modules/objdetect/test/test_cascadeandhog.cpp for( i = 0; i < sz; i++ ) i 978 modules/objdetect/test/test_cascadeandhog.cpp hist[i] *= scale; i 1036 modules/objdetect/test/test_cascadeandhog.cpp for( size_t i = 0; i < nwindows; i++ ) i 1041 modules/objdetect/test/test_cascadeandhog.cpp pt0 = locations[i]; i 1048 modules/objdetect/test/test_cascadeandhog.cpp pt0 = cache.getWindow(paddedImgSize, winStride, (int)i).tl() - Point(padding); i 1136 modules/objdetect/test/test_cascadeandhog.cpp for( size_t i = 0; i < nwindows; i++ ) i 1138 modules/objdetect/test/test_cascadeandhog.cpp float* descriptor = &descriptors[i*dsize]; i 1143 modules/objdetect/test/test_cascadeandhog.cpp pt0 = locations[i]; i 1150 modules/objdetect/test/test_cascadeandhog.cpp pt0 = cache.getWindow(paddedImgSize, winStride, (int)i).tl() - Point(padding); i 1198 modules/objdetect/test/test_cascadeandhog.cpp int i, x, y; i 1205 modules/objdetect/test/test_cascadeandhog.cpp for( i = 0; i < 256; i++ ) i 1206 modules/objdetect/test/test_cascadeandhog.cpp _lut(0,i) = std::sqrt((float)i); i 1208 modules/objdetect/test/test_cascadeandhog.cpp for( i = 0; i < 256; i++ ) i 1209 modules/objdetect/test/test_cascadeandhog.cpp _lut(0,i) = (float)i; i 1319 modules/objdetect/test/test_cascadeandhog.cpp for (i = 0; i < 2; ++i) i 1321 modules/objdetect/test/test_cascadeandhog.cpp double diff_norm = cvtest::norm(reference_mats[i], actual_mats[i], NORM_L2); i 1325 modules/objdetect/test/test_cascadeandhog.cpp "Norm of the difference is %lf\n", args[i], diff_norm); i 1345 modules/objdetect/test/test_cascadeandhog.cpp for (unsigned int i = 0; i < test_case_count && !reference_hog.is_failed(); ++i) i 1378 modules/objdetect/test/test_cascadeandhog.cpp for( int i = 0; !cascades[i].empty(); i++ ) i 1380 modules/objdetect/test/test_cascadeandhog.cpp printf("%d. %s\n", i, cascades[i].c_str()); i 1381 modules/objdetect/test/test_cascadeandhog.cpp CascadeClassifier cascade(cascades[i]); i 54 modules/photo/perf/opencl/perf_denoising.cpp for (int i = 0; i < imgs_count; i++) i 56 modules/photo/perf/opencl/perf_denoising.cpp string original_path = format("cv/denoising/lena_noised_gaussian_sigma=20_multi_%d.png", i); i 59 modules/photo/perf/opencl/perf_denoising.cpp tmp.copyTo(original[i]); i 60 modules/photo/perf/opencl/perf_denoising.cpp declare.in(original[i]); i 77 modules/photo/perf/opencl/perf_denoising.cpp for (int i = 0; i < imgs_count; i++) i 79 modules/photo/perf/opencl/perf_denoising.cpp string original_path = format("cv/denoising/lena_noised_gaussian_sigma=20_multi_%d.png", i); i 83 modules/photo/perf/opencl/perf_denoising.cpp tmp.copyTo(original[i]); i 84 modules/photo/perf/opencl/perf_denoising.cpp declare.in(original[i]); i 81 modules/photo/src/align.cpp for(size_t i = 0; i < src.size(); i++) { i 82 modules/photo/src/align.cpp if(i == pivot) { i 87 modules/photo/src/align.cpp cvtColor(src[i], gray, COLOR_RGB2GRAY); i 90 modules/photo/src/align.cpp shiftMat(src[i], dst[i], shift); i 94 modules/photo/src/align.cpp for(size_t i = 0; i < shifts.size(); i++) { i 95 modules/photo/src/align.cpp if(shifts[i].x > max.x) { i 96 modules/photo/src/align.cpp max.x = shifts[i].x; i 98 modules/photo/src/align.cpp if(shifts[i].y > max.y) { i 99 modules/photo/src/align.cpp max.y = shifts[i].y; i 101 modules/photo/src/align.cpp if(shifts[i].x < min.x) { i 102 modules/photo/src/align.cpp min.x = shifts[i].x; i 104 modules/photo/src/align.cpp if(shifts[i].y < min.y) { i 105 modules/photo/src/align.cpp min.y = shifts[i].y; i 109 modules/photo/src/align.cpp for(size_t i = 0; i < dst.size(); i++) { i 110 modules/photo/src/align.cpp dst[i] = dst[i](Rect(max, min + size)); i 140 modules/photo/src/align.cpp for(int i = -1; i <= 1; i++) { i 142 modules/photo/src/align.cpp Point test_shift = shift + Point(i, j); i 83 modules/photo/src/arrays.hpp T* operator [] (int i) i 85 modules/photo/src/arrays.hpp return a + i*n2; i 88 modules/photo/src/arrays.hpp inline T* row_ptr(int i) i 90 modules/photo/src/arrays.hpp return (*this)[i]; i 118 modules/photo/src/arrays.hpp Array2d<T> operator [] (int i) i 120 modules/photo/src/arrays.hpp Array2d<T> array2d(a + i*n2*n3, n2, n3); i 165 modules/photo/src/arrays.hpp Array3d<T> operator [] (int i) i 167 modules/photo/src/arrays.hpp Array3d<T> array3d(a + i*n2*n3*n4, n2, n3, n4); i 82 modules/photo/src/calibrate.cpp for(int i = 0; i < samples; i++) { i 91 modules/photo/src/calibrate.cpp for(int i = 0, x = step_x / 2; i < x_points; i++, x += step_x) { i 106 modules/photo/src/calibrate.cpp for(size_t i = 0; i < sample_points.size(); i++) { i 109 modules/photo/src/calibrate.cpp int val = images[j].ptr()[3*(sample_points[i].y * images[j].cols + sample_points[i].x) + channel]; i 111 modules/photo/src/calibrate.cpp A.at<float>(eq, LDR_SIZE + (int)i) = -w.at<float>(val); i 119 modules/photo/src/calibrate.cpp for(int i = 0; i < 254; i++) { i 120 modules/photo/src/calibrate.cpp A.at<float>(eq, i) = lambda * w.at<float>(i + 1); i 121 modules/photo/src/calibrate.cpp A.at<float>(eq, i + 1) = -2 * lambda * w.at<float>(i + 1); i 122 modules/photo/src/calibrate.cpp A.at<float>(eq, i + 2) = lambda * w.at<float>(i + 1); i 202 modules/photo/src/calibrate.cpp for(size_t i = 0; i < images.size(); i++) { i 203 modules/photo/src/calibrate.cpp uchar *ptr = images[i].ptr(); i 204 modules/photo/src/calibrate.cpp for(size_t pos = 0; pos < images[i].total(); pos++) { i 219 modules/photo/src/calibrate.cpp for(size_t i = 0; i < images.size(); i++) { i 220 modules/photo/src/calibrate.cpp uchar *ptr = images[i].ptr(); i 222 modules/photo/src/calibrate.cpp for(size_t pos = 0; pos < images[i].total(); pos++) { i 224 modules/photo/src/calibrate.cpp new_response.at<Vec3f>(*ptr)[c] += times.at<float>((int)i) * *rad_ptr; i 231 modules/photo/src/calibrate.cpp for(int i = 0; i < LDR_SIZE; i++) { i 232 modules/photo/src/calibrate.cpp new_response.at<Vec3f>(i)[c] /= middle; i 111 modules/photo/src/contrast_preserve.cpp for(unsigned int i=0;i< polyGrad[0].size();i++) i 115 modules/photo/src/contrast_preserve.cpp val = val + (polyGrad[j][i] * wei[j]); i 116 modules/photo/src/contrast_preserve.cpp temp.push_back(val - Cg[i]); i 117 modules/photo/src/contrast_preserve.cpp temp1.push_back(val + Cg[i]); i 122 modules/photo/src/contrast_preserve.cpp for(unsigned int i =0;i<alf.size();i++) i 124 modules/photo/src/contrast_preserve.cpp pos = ((1 + alf[i])/2) * exp((-1.0 * 0.5 * pow(temp[i],2))/pow(obj.sigma,2)); i 125 modules/photo/src/contrast_preserve.cpp neg = ((1 - alf[i])/2) * exp((-1.0 * 0.5 * pow(temp1[i],2))/pow(obj.sigma,2)); i 133 modules/photo/src/contrast_preserve.cpp for(unsigned int i = 0;i<G_pos.size();i++) i 134 modules/photo/src/contrast_preserve.cpp EXPsum.push_back(G_pos[i]+G_neg[i]); i 138 modules/photo/src/contrast_preserve.cpp for(unsigned int i=0;i<EXPsum.size();i++) i 140 modules/photo/src/contrast_preserve.cpp if(EXPsum[i] == 0) i 146 modules/photo/src/contrast_preserve.cpp for(unsigned int i =0; i < G_pos.size();i++) i 147 modules/photo/src/contrast_preserve.cpp EXPterm.push_back((G_pos[i] - G_neg[i])/(EXPsum[i] + temp2[i])); i 152 modules/photo/src/contrast_preserve.cpp for(unsigned int i=0;i< polyGrad.size();i++) i 157 modules/photo/src/contrast_preserve.cpp val1 = val1 + (Mt.at<float>(i,j) * EXPterm[j]); i 162 modules/photo/src/contrast_preserve.cpp for(unsigned int i =0;i<wei.size();i++) i 163 modules/photo/src/contrast_preserve.cpp wei[i] = wei1[i]; i 91 modules/photo/src/contrast_preserve.hpp for(unsigned int i=0;i< polyGrad[0].size();i++) i 95 modules/photo/src/contrast_preserve.hpp val = val + (polyGrad[j][i] * wei[j]); i 96 modules/photo/src/contrast_preserve.hpp temp.push_back(val - Cg[i]); i 97 modules/photo/src/contrast_preserve.hpp temp1.push_back(val + Cg[i]); i 100 modules/photo/src/contrast_preserve.hpp for(unsigned int i=0;i<polyGrad[0].size();i++) i 101 modules/photo/src/contrast_preserve.hpp energy.push_back(-1.0*log(exp(-1.0*pow(temp[i],2)/sigma) + exp(-1.0*pow(temp1[i],2)/sigma))); i 104 modules/photo/src/contrast_preserve.hpp for(unsigned int i=0;i<polyGrad[0].size();i++) i 105 modules/photo/src/contrast_preserve.hpp sum +=energy[i]; i 127 modules/photo/src/contrast_preserve.hpp for (unsigned int i=0;i<comb.size();i++) i 131 modules/photo/src/contrast_preserve.hpp dp = dp + (comb[i][j] * initRGB[j]); i 143 modules/photo/src/contrast_preserve.hpp for(int i=0;i<h;i++) i 144 modules/photo/src/contrast_preserve.hpp dest.at<float>(i,w-1)=0.0; i 170 modules/photo/src/contrast_preserve.hpp for(int i=0;i<height;i++) i 172 modules/photo/src/contrast_preserve.hpp grad.push_back(d_trans.at<float>(i,j)); i 174 modules/photo/src/contrast_preserve.hpp for(int i=0;i<height;i++) i 176 modules/photo/src/contrast_preserve.hpp grad.push_back(d1_trans.at<float>(i,j)); i 200 modules/photo/src/contrast_preserve.hpp for(unsigned int i=0;i<ImL.size();i++) i 202 modules/photo/src/contrast_preserve.hpp res=sqrt(pow(ImL[i],2) + pow(Ima[i],2) + pow(Imb[i],2))/100; i 223 modules/photo/src/contrast_preserve.hpp for(unsigned int i=0;i<curGrad.size();i++) i 224 modules/photo/src/contrast_preserve.hpp polyGrad.at(idx1).push_back(curGrad[i]); i 253 modules/photo/src/contrast_preserve.hpp for(unsigned int i=0;i<Rg.size();i++) i 255 modules/photo/src/contrast_preserve.hpp if(Rg[i] > level) i 260 modules/photo/src/contrast_preserve.hpp if(Gg[i] > level) i 265 modules/photo/src/contrast_preserve.hpp if(Bg[i] > level) i 270 modules/photo/src/contrast_preserve.hpp if(Rg[i] < -1.0*level) i 275 modules/photo/src/contrast_preserve.hpp if(Gg[i] < -1.0*level) i 280 modules/photo/src/contrast_preserve.hpp if(Bg[i] < -1.0*level) i 285 modules/photo/src/contrast_preserve.hpp for(unsigned int i =0 ;i < Rg.size();i++) i 286 modules/photo/src/contrast_preserve.hpp alf.push_back(t1[i] * t2[i] * t3[i]); i 288 modules/photo/src/contrast_preserve.hpp for(unsigned int i =0 ;i < Rg.size();i++) i 289 modules/photo/src/contrast_preserve.hpp alf[i] -= tmp1[i] * tmp2[i] * tmp3[i]; i 292 modules/photo/src/contrast_preserve.hpp for(unsigned int i=0;i<alf.size();i++) i 293 modules/photo/src/contrast_preserve.hpp sum += abs(alf[i]); i 331 modules/photo/src/contrast_preserve.hpp for(int i = 0;i<h;i++) i 333 modules/photo/src/contrast_preserve.hpp curIm.at<float>(i,j)= i 334 modules/photo/src/contrast_preserve.hpp pow(rgb_channel[2].at<float>(i,j),r)*pow(rgb_channel[1].at<float>(i,j),g)* i 335 modules/photo/src/contrast_preserve.hpp pow(rgb_channel[0].at<float>(i,j),b); i 349 modules/photo/src/contrast_preserve.hpp for (int i = 0; i < size; i++) i 351 modules/photo/src/contrast_preserve.hpp P.at<float>(i,j) = (float) poly[i][j]; i 355 modules/photo/src/contrast_preserve.hpp for(int i =0;i < size;i++) i 358 modules/photo/src/contrast_preserve.hpp B.at<float>(i,j) = (float) (poly[i][j] * Cg[j]); i 377 modules/photo/src/contrast_preserve.hpp for(unsigned int i=0;i<comb.size();i++) i 378 modules/photo/src/contrast_preserve.hpp sum.push_back(comb[i][0] + comb[i][1] + comb[i][2]); i 380 modules/photo/src/contrast_preserve.hpp for(unsigned int i=0;i<sum.size();i++) i 382 modules/photo/src/contrast_preserve.hpp if(sum[i] == 1) i 383 modules/photo/src/contrast_preserve.hpp wei[i] = wei[i] * double(1); i 385 modules/photo/src/contrast_preserve.hpp wei[i] = wei[i] * double(0); i 408 modules/photo/src/contrast_preserve.hpp for(int i = 0;i<h;i++) i 410 modules/photo/src/contrast_preserve.hpp Gray.at<float>(i,j)=Gray.at<float>(i,j) + i 411 modules/photo/src/contrast_preserve.hpp (float) wei[kk]*pow(rgb_channel[2].at<float>(i,j),r)*pow(rgb_channel[1].at<float>(i,j),g)* i 412 modules/photo/src/contrast_preserve.hpp pow(rgb_channel[0].at<float>(i,j),b); i 420 modules/photo/src/contrast_preserve.hpp for(int i=0;i<h;i++) i 423 modules/photo/src/contrast_preserve.hpp if(Gray.at<float>(i,j) < minval) i 424 modules/photo/src/contrast_preserve.hpp minval = Gray.at<float>(i,j); i 426 modules/photo/src/contrast_preserve.hpp if(Gray.at<float>(i,j) > maxval) i 427 modules/photo/src/contrast_preserve.hpp maxval = Gray.at<float>(i,j); i 83 modules/photo/src/denoise_tvl1.cpp int i, x, y, rows=observations[0].rows, cols=observations[0].cols,count; i 84 modules/photo/src/denoise_tvl1.cpp for(i=1;i<(int)observations.size();i++){ i 85 modules/photo/src/denoise_tvl1.cpp CV_Assert(observations[i].rows==rows && observations[i].cols==cols); i 95 modules/photo/src/denoise_tvl1.cpp for( i = 0; i < niters; i++ ) i 97 modules/photo/src/denoise_tvl1.cpp double currsigma = i == 0 ? 1 + sigma : sigma; i 234 modules/photo/src/denoising.cpp for (int i = 1; i < src_imgs_size; i++) i 235 modules/photo/src/denoising.cpp if (srcImgs[0].size() != srcImgs[i].size() || srcImgs[0].type() != srcImgs[i].type()) i 406 modules/photo/src/denoising.cpp for (int i = 0; i < src_imgs_size; i++) i 408 modules/photo/src/denoising.cpp src_lab[i] = Mat::zeros(srcImgs[0].size(), type); i 409 modules/photo/src/denoising.cpp l[i] = Mat::zeros(srcImgs[0].size(), CV_MAKE_TYPE(depth, 1)); i 410 modules/photo/src/denoising.cpp ab[i] = Mat::zeros(srcImgs[0].size(), CV_MAKE_TYPE(depth, 2)); i 411 modules/photo/src/denoising.cpp cvtColor(srcImgs[i], src_lab[i], COLOR_LBGR2Lab); i 413 modules/photo/src/denoising.cpp Mat l_ab[] = { l[i], ab[i] }; i 414 modules/photo/src/denoising.cpp mixChannels(&src_lab[i], 1, l_ab, 2, from_to, 3); i 83 modules/photo/src/fast_nlmeans_denoising_invoker.hpp int i, Array2d<int>& dist_sums, i 88 modules/photo/src/fast_nlmeans_denoising_invoker.hpp int i, int j, int first_col_num, i 164 modules/photo/src/fast_nlmeans_denoising_invoker.hpp for (int i = row_from; i <= row_to; i++) i 168 modules/photo/src/fast_nlmeans_denoising_invoker.hpp int search_window_y = i - search_window_half_size_; i 174 modules/photo/src/fast_nlmeans_denoising_invoker.hpp calcDistSumsForFirstElementInRow(i, dist_sums, col_dist_sums, up_col_dist_sums); i 180 modules/photo/src/fast_nlmeans_denoising_invoker.hpp if (i == row_from) i 182 modules/photo/src/fast_nlmeans_denoising_invoker.hpp calcDistSumsForElementInFirstRow(i, j, first_col_num, i 187 modules/photo/src/fast_nlmeans_denoising_invoker.hpp int ay = border_size_ + i; i 190 modules/photo/src/fast_nlmeans_denoising_invoker.hpp int start_by = border_size_ + i - search_window_half_size_; i 247 modules/photo/src/fast_nlmeans_denoising_invoker.hpp dst_.at<T>(i,j) = saturateCastFromArray<T, IT>(estimation); i 254 modules/photo/src/fast_nlmeans_denoising_invoker.hpp int i, i 268 modules/photo/src/fast_nlmeans_denoising_invoker.hpp int start_y = i + y - search_window_half_size_; i 275 modules/photo/src/fast_nlmeans_denoising_invoker.hpp border_size_ + i + ty, border_size_ + j + tx, i 288 modules/photo/src/fast_nlmeans_denoising_invoker.hpp int i, int j, int first_col_num, i 293 modules/photo/src/fast_nlmeans_denoising_invoker.hpp int ay = border_size_ + i; i 296 modules/photo/src/fast_nlmeans_denoising_invoker.hpp int start_by = border_size_ + i - search_window_half_size_; i 153 modules/photo/src/fast_nlmeans_denoising_invoker_commons.hpp for (int i=0; i<n; i++) i 154 modules/photo/src/fast_nlmeans_denoising_invoker_commons.hpp res[i] = calcWeight<T, ET>(dist, &h[i], fixed_point_mult); i 275 modules/photo/src/fast_nlmeans_denoising_invoker_commons.hpp for (int i=0; i<n; i++) i 276 modules/photo/src/fast_nlmeans_denoising_invoker_commons.hpp res[i] = calcWeight<T, ET>(dist, &h[i], fixed_point_mult); i 420 modules/photo/src/fast_nlmeans_denoising_invoker_commons.hpp for (size_t i = 0; i < n; i++) i 421 modules/photo/src/fast_nlmeans_denoising_invoker_commons.hpp estimation[i] = (static_cast<UIT>(estimation[i]) + weights_sum[0]/2) / weights_sum[0]; i 429 modules/photo/src/fast_nlmeans_denoising_invoker_commons.hpp for (size_t i = 0; i < n; i++) i 430 modules/photo/src/fast_nlmeans_denoising_invoker_commons.hpp estimation[i] = (static_cast<UIT>(estimation[i]) + weights_sum[i]/2) / weights_sum[i]; i 60 modules/photo/src/fast_nlmeans_denoising_opencl.hpp for (int i=0; i<hn; i++) i 61 modules/photo/src/fast_nlmeans_denoising_opencl.hpp den[i] = 1.0f / (h[i] * h[i] * cn); i 88 modules/photo/src/fast_nlmeans_multi_denoising_invoker.hpp void calcDistSumsForFirstElementInRow(int i, Array3d<int>& dist_sums, i 92 modules/photo/src/fast_nlmeans_multi_denoising_invoker.hpp void calcDistSumsForElementInFirstRow(int i, int j, int first_col_num, i 123 modules/photo/src/fast_nlmeans_multi_denoising_invoker.hpp for (int i = 0; i < temporal_window_size_; i++) i 124 modules/photo/src/fast_nlmeans_multi_denoising_invoker.hpp copyMakeBorder(srcImgs[imgToDenoiseIndex - temporal_window_half_size_ + i], extended_srcs_[i], i 173 modules/photo/src/fast_nlmeans_multi_denoising_invoker.hpp for (int i = row_from; i <= row_to; i++) i 177 modules/photo/src/fast_nlmeans_multi_denoising_invoker.hpp int search_window_y = i - search_window_half_size_; i 183 modules/photo/src/fast_nlmeans_multi_denoising_invoker.hpp calcDistSumsForFirstElementInRow(i, dist_sums, col_dist_sums, up_col_dist_sums); i 189 modules/photo/src/fast_nlmeans_multi_denoising_invoker.hpp if (i == row_from) i 191 modules/photo/src/fast_nlmeans_multi_denoising_invoker.hpp calcDistSumsForElementInFirstRow(i, j, first_col_num, i 197 modules/photo/src/fast_nlmeans_multi_denoising_invoker.hpp int ay = border_size_ + i; i 201 modules/photo/src/fast_nlmeans_multi_denoising_invoker.hpp border_size_ + i - search_window_half_size_; i 274 modules/photo/src/fast_nlmeans_multi_denoising_invoker.hpp dst_.at<T>(i,j) = saturateCastFromArray<T, IT>(estimation); i 281 modules/photo/src/fast_nlmeans_multi_denoising_invoker.hpp int i, Array3d<int>& dist_sums, Array4d<int>& col_dist_sums, Array4d<int>& up_col_dist_sums) const i 295 modules/photo/src/fast_nlmeans_multi_denoising_invoker.hpp int start_y = i + y - search_window_half_size_; i 306 modules/photo/src/fast_nlmeans_multi_denoising_invoker.hpp main_extended_src_.at<T>(border_size_ + i + ty, border_size_ + j + tx), i 322 modules/photo/src/fast_nlmeans_multi_denoising_invoker.hpp int i, int j, int first_col_num, Array3d<int>& dist_sums, i 325 modules/photo/src/fast_nlmeans_multi_denoising_invoker.hpp int ay = border_size_ + i; i 328 modules/photo/src/fast_nlmeans_multi_denoising_invoker.hpp int start_by = border_size_ + i - search_window_half_size_; i 56 modules/photo/src/hdr_common.cpp for(size_t i = 0; i < images.size(); i++) { i 57 modules/photo/src/hdr_common.cpp CV_Assert(images[i].cols == width && images[i].rows == height); i 58 modules/photo/src/hdr_common.cpp CV_Assert(images[i].type() == type); i 66 modules/photo/src/hdr_common.cpp for(int i = 0; i < LDR_SIZE; i++) { i 67 modules/photo/src/hdr_common.cpp w.at<float>(i) = i < half ? i + 1.0f : LDR_SIZE - i; i 76 modules/photo/src/hdr_common.cpp for(int i = 0; i < LDR_SIZE; i++) { i 77 modules/photo/src/hdr_common.cpp float value = i / q - 2.0f; i 79 modules/photo/src/hdr_common.cpp weight.at<Vec3f>(i) = Vec3f::all(value); i 88 modules/photo/src/hdr_common.cpp for(int i = 0; i < 3; i++) { i 89 modules/photo/src/hdr_common.cpp channels[i] = channels[i].mul(1.0f / lum); i 90 modules/photo/src/hdr_common.cpp pow(channels[i], saturation, channels[i]); i 91 modules/photo/src/hdr_common.cpp channels[i] = channels[i].mul(new_lum); i 99 modules/photo/src/hdr_common.cpp for(int i = 0; i < LDR_SIZE; i++) { i 100 modules/photo/src/hdr_common.cpp response.at<Vec3f>(i) = Vec3f::all(static_cast<float>(i)); i 73 modules/photo/src/inpaint.cpp int i,j; i 89 modules/photo/src/inpaint.cpp int i,j; i 90 modules/photo/src/inpaint.cpp for( i = num = 0; i < f->rows; i++ ) i 93 modules/photo/src/inpaint.cpp num += CV_MAT_ELEM(*f,uchar,i,j)!=0; i 100 modules/photo/src/inpaint.cpp head->i = head->j = -1; i 105 modules/photo/src/inpaint.cpp for (i=1; i<=num; i++) { i 106 modules/photo/src/inpaint.cpp mem[i].prev = mem+i-1; i 107 modules/photo/src/inpaint.cpp mem[i].next = mem+i+1; i 108 modules/photo/src/inpaint.cpp mem[i].i = -1; i 109 modules/photo/src/inpaint.cpp mem[i].T = FLT_MAX; i 111 modules/photo/src/inpaint.cpp tail = mem+i; i 112 modules/photo/src/inpaint.cpp tail->i = tail->j = -1; i 113 modules/photo/src/inpaint.cpp tail->prev = mem+i-1; i 120 modules/photo/src/inpaint.cpp int i,j; i 121 modules/photo/src/inpaint.cpp for (i=0; i<f->rows; i++) { i 123 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,i,j)!=0) { i 124 modules/photo/src/inpaint.cpp if (!Push(i,j,0)) return false; i 131 modules/photo/src/inpaint.cpp bool Push(int i, int j, float T) { i 146 modules/photo/src/inpaint.cpp add->i = i; i 154 modules/photo/src/inpaint.cpp bool Pop(int *i, int *j) { i 157 modules/photo/src/inpaint.cpp *i = tmp->i; i 171 modules/photo/src/inpaint.cpp bool Pop(int *i, int *j, float *T) { i 174 modules/photo/src/inpaint.cpp *i = tmp->i; i 240 modules/photo/src/inpaint.cpp int i, j, ii = 0, jj = 0, q; i 249 modules/photo/src/inpaint.cpp i=0; j=0; i 250 modules/photo/src/inpaint.cpp if (q==0) {i=ii-1; j=jj;} i 251 modules/photo/src/inpaint.cpp else if(q==1) {i=ii; j=jj-1;} i 252 modules/photo/src/inpaint.cpp else if(q==2) {i=ii+1; j=jj;} i 253 modules/photo/src/inpaint.cpp else {i=ii; j=jj+1;} i 254 modules/photo/src/inpaint.cpp if ((i<=0)||(j<=0)||(i>f->rows)||(j>f->cols)) continue; i 256 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,i,j)==INSIDE) { i 257 modules/photo/src/inpaint.cpp dist = min4(FastMarching_solve(i-1,j,i,j-1,f,t), i 258 modules/photo/src/inpaint.cpp FastMarching_solve(i+1,j,i,j-1,f,t), i 259 modules/photo/src/inpaint.cpp FastMarching_solve(i-1,j,i,j+1,f,t), i 260 modules/photo/src/inpaint.cpp FastMarching_solve(i+1,j,i,j+1,f,t)); i 261 modules/photo/src/inpaint.cpp CV_MAT_ELEM(*t,float,i,j) = dist; i 262 modules/photo/src/inpaint.cpp CV_MAT_ELEM(*f,uchar,i,j) = BAND; i 263 modules/photo/src/inpaint.cpp Heap->Push(i,j,dist); i 269 modules/photo/src/inpaint.cpp for (i=0; i<f->rows; i++) { i 271 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,i,j) == CHANGE) { i 272 modules/photo/src/inpaint.cpp CV_MAT_ELEM(*f,uchar,i,j) = KNOWN; i 273 modules/photo/src/inpaint.cpp CV_MAT_ELEM(*t,float,i,j) = -CV_MAT_ELEM(*t,float,i,j); i 283 modules/photo/src/inpaint.cpp int i = 0, j = 0, ii = 0, jj = 0, k, l, q, color = 0; i 292 modules/photo/src/inpaint.cpp if (q==0) {i=ii-1; j=jj;} i 293 modules/photo/src/inpaint.cpp else if(q==1) {i=ii; j=jj-1;} i 294 modules/photo/src/inpaint.cpp else if(q==2) {i=ii+1; j=jj;} i 295 modules/photo/src/inpaint.cpp else if(q==3) {i=ii; j=jj+1;} i 296 modules/photo/src/inpaint.cpp if ((i<=1)||(j<=1)||(i>t->rows-1)||(j>t->cols-1)) continue; i 298 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,i,j)==INSIDE) { i 299 modules/photo/src/inpaint.cpp dist = min4(FastMarching_solve(i-1,j,i,j-1,f,t), i 300 modules/photo/src/inpaint.cpp FastMarching_solve(i+1,j,i,j-1,f,t), i 301 modules/photo/src/inpaint.cpp FastMarching_solve(i-1,j,i,j+1,f,t), i 302 modules/photo/src/inpaint.cpp FastMarching_solve(i+1,j,i,j+1,f,t)); i 303 modules/photo/src/inpaint.cpp CV_MAT_ELEM(*t,float,i,j) = dist; i 309 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,i,j+1)!=INSIDE) { i 310 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,i,j-1)!=INSIDE) { i 311 modules/photo/src/inpaint.cpp gradT.x=(float)((CV_MAT_ELEM(*t,float,i,j+1)-CV_MAT_ELEM(*t,float,i,j-1)))*0.5f; i 313 modules/photo/src/inpaint.cpp gradT.x=(float)((CV_MAT_ELEM(*t,float,i,j+1)-CV_MAT_ELEM(*t,float,i,j))); i 316 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,i,j-1)!=INSIDE) { i 317 modules/photo/src/inpaint.cpp gradT.x=(float)((CV_MAT_ELEM(*t,float,i,j)-CV_MAT_ELEM(*t,float,i,j-1))); i 322 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,i+1,j)!=INSIDE) { i 323 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,i-1,j)!=INSIDE) { i 324 modules/photo/src/inpaint.cpp gradT.y=(float)((CV_MAT_ELEM(*t,float,i+1,j)-CV_MAT_ELEM(*t,float,i-1,j)))*0.5f; i 326 modules/photo/src/inpaint.cpp gradT.y=(float)((CV_MAT_ELEM(*t,float,i+1,j)-CV_MAT_ELEM(*t,float,i,j))); i 329 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,i-1,j)!=INSIDE) { i 330 modules/photo/src/inpaint.cpp gradT.y=(float)((CV_MAT_ELEM(*t,float,i,j)-CV_MAT_ELEM(*t,float,i-1,j))); i 335 modules/photo/src/inpaint.cpp for (k=i-range; k<=i+range; k++) { i 341 modules/photo/src/inpaint.cpp ((l-j)*(l-j)+(k-i)*(k-i)<=range*range)) { i 342 modules/photo/src/inpaint.cpp r.y = (float)(i-k); i 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)))); i 388 modules/photo/src/inpaint.cpp CV_MAT_3COLOR_ELEM(*out,uchar,i-1,j-1,color) = cv::saturate_cast<uchar>(sat); i 392 modules/photo/src/inpaint.cpp CV_MAT_ELEM(*f,uchar,i,j) = BAND; i 393 modules/photo/src/inpaint.cpp Heap->Push(i,j,dist); i 404 modules/photo/src/inpaint.cpp if (q==0) {i=ii-1; j=jj;} i 405 modules/photo/src/inpaint.cpp else if(q==1) {i=ii; j=jj-1;} i 406 modules/photo/src/inpaint.cpp else if(q==2) {i=ii+1; j=jj;} i 407 modules/photo/src/inpaint.cpp else if(q==3) {i=ii; j=jj+1;} i 408 modules/photo/src/inpaint.cpp if ((i<=1)||(j<=1)||(i>t->rows-1)||(j>t->cols-1)) continue; i 410 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,i,j)==INSIDE) { i 411 modules/photo/src/inpaint.cpp dist = min4(FastMarching_solve(i-1,j,i,j-1,f,t), i 412 modules/photo/src/inpaint.cpp FastMarching_solve(i+1,j,i,j-1,f,t), i 413 modules/photo/src/inpaint.cpp FastMarching_solve(i-1,j,i,j+1,f,t), i 414 modules/photo/src/inpaint.cpp FastMarching_solve(i+1,j,i,j+1,f,t)); i 415 modules/photo/src/inpaint.cpp CV_MAT_ELEM(*t,float,i,j) = dist; i 421 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,i,j+1)!=INSIDE) { i 422 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,i,j-1)!=INSIDE) { i 423 modules/photo/src/inpaint.cpp gradT.x=(float)((CV_MAT_ELEM(*t,float,i,j+1)-CV_MAT_ELEM(*t,float,i,j-1)))*0.5f; i 425 modules/photo/src/inpaint.cpp gradT.x=(float)((CV_MAT_ELEM(*t,float,i,j+1)-CV_MAT_ELEM(*t,float,i,j))); i 428 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,i,j-1)!=INSIDE) { i 429 modules/photo/src/inpaint.cpp gradT.x=(float)((CV_MAT_ELEM(*t,float,i,j)-CV_MAT_ELEM(*t,float,i,j-1))); i 434 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,i+1,j)!=INSIDE) { i 435 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,i-1,j)!=INSIDE) { i 436 modules/photo/src/inpaint.cpp gradT.y=(float)((CV_MAT_ELEM(*t,float,i+1,j)-CV_MAT_ELEM(*t,float,i-1,j)))*0.5f; i 438 modules/photo/src/inpaint.cpp gradT.y=(float)((CV_MAT_ELEM(*t,float,i+1,j)-CV_MAT_ELEM(*t,float,i,j))); i 441 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,i-1,j)!=INSIDE) { i 442 modules/photo/src/inpaint.cpp gradT.y=(float)((CV_MAT_ELEM(*t,float,i,j)-CV_MAT_ELEM(*t,float,i-1,j))); i 447 modules/photo/src/inpaint.cpp for (k=i-range; k<=i+range; k++) { i 453 modules/photo/src/inpaint.cpp ((l-j)*(l-j)+(k-i)*(k-i)<=range*range)) { i 454 modules/photo/src/inpaint.cpp r.y = (float)(i-k); i 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)))); i 500 modules/photo/src/inpaint.cpp CV_MAT_ELEM(*out,uchar,i-1,j-1) = cv::saturate_cast<uchar>(sat); i 504 modules/photo/src/inpaint.cpp CV_MAT_ELEM(*f,uchar,i,j) = BAND; i 505 modules/photo/src/inpaint.cpp Heap->Push(i,j,dist); i 515 modules/photo/src/inpaint.cpp int i = 0, j = 0, ii = 0, jj = 0, k, l, q, color = 0; i 524 modules/photo/src/inpaint.cpp if (q==0) {i=ii-1; j=jj;} i 525 modules/photo/src/inpaint.cpp else if(q==1) {i=ii; j=jj-1;} i 526 modules/photo/src/inpaint.cpp else if(q==2) {i=ii+1; j=jj;} i 527 modules/photo/src/inpaint.cpp else if(q==3) {i=ii; j=jj+1;} i 528 modules/photo/src/inpaint.cpp if ((i<=1)||(j<=1)||(i>t->rows-1)||(j>t->cols-1)) continue; i 530 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,i,j)==INSIDE) { i 531 modules/photo/src/inpaint.cpp dist = min4(FastMarching_solve(i-1,j,i,j-1,f,t), i 532 modules/photo/src/inpaint.cpp FastMarching_solve(i+1,j,i,j-1,f,t), i 533 modules/photo/src/inpaint.cpp FastMarching_solve(i-1,j,i,j+1,f,t), i 534 modules/photo/src/inpaint.cpp FastMarching_solve(i+1,j,i,j+1,f,t)); i 535 modules/photo/src/inpaint.cpp CV_MAT_ELEM(*t,float,i,j) = dist; i 541 modules/photo/src/inpaint.cpp for (k=i-range; k<=i+range; k++) { i 547 modules/photo/src/inpaint.cpp ((l-j)*(l-j)+(k-i)*(k-i)<=range*range)) { i 548 modules/photo/src/inpaint.cpp r.y=(float)(k-i); i 597 modules/photo/src/inpaint.cpp CV_MAT_3COLOR_ELEM(*out,uchar,i-1,j-1,color) = cv::saturate_cast<uchar>((double)Ia/s); i 600 modules/photo/src/inpaint.cpp CV_MAT_ELEM(*f,uchar,i,j) = BAND; i 601 modules/photo/src/inpaint.cpp Heap->Push(i,j,dist); i 612 modules/photo/src/inpaint.cpp if (q==0) {i=ii-1; j=jj;} i 613 modules/photo/src/inpaint.cpp else if(q==1) {i=ii; j=jj-1;} i 614 modules/photo/src/inpaint.cpp else if(q==2) {i=ii+1; j=jj;} i 615 modules/photo/src/inpaint.cpp else if(q==3) {i=ii; j=jj+1;} i 616 modules/photo/src/inpaint.cpp if ((i<=1)||(j<=1)||(i>t->rows-1)||(j>t->cols-1)) continue; i 618 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*f,uchar,i,j)==INSIDE) { i 619 modules/photo/src/inpaint.cpp dist = min4(FastMarching_solve(i-1,j,i,j-1,f,t), i 620 modules/photo/src/inpaint.cpp FastMarching_solve(i+1,j,i,j-1,f,t), i 621 modules/photo/src/inpaint.cpp FastMarching_solve(i-1,j,i,j+1,f,t), i 622 modules/photo/src/inpaint.cpp FastMarching_solve(i+1,j,i,j+1,f,t)); i 623 modules/photo/src/inpaint.cpp CV_MAT_ELEM(*t,float,i,j) = dist; i 629 modules/photo/src/inpaint.cpp for (k=i-range; k<=i+range; k++) { i 635 modules/photo/src/inpaint.cpp ((l-j)*(l-j)+(k-i)*(k-i)<=range*range)) { i 636 modules/photo/src/inpaint.cpp r.y=(float)(i-k); i 685 modules/photo/src/inpaint.cpp CV_MAT_ELEM(*out,uchar,i-1,j-1) = cv::saturate_cast<uchar>((double)Ia/s); i 688 modules/photo/src/inpaint.cpp CV_MAT_ELEM(*f,uchar,i,j) = BAND; i 689 modules/photo/src/inpaint.cpp Heap->Push(i,j,dist); i 698 modules/photo/src/inpaint.cpp int i,j;\ i 702 modules/photo/src/inpaint.cpp for (i=1; i<image->rows-1; i++) {\ i 703 modules/photo/src/inpaint.cpp CV_MAT_ELEM(*image,type,i,0) = CV_MAT_ELEM(*image,type,i,image->cols-1) = value;\ i 711 modules/photo/src/inpaint.cpp int i,j;\ i 712 modules/photo/src/inpaint.cpp for (i=0; i<src->rows; i++) {\ i 714 modules/photo/src/inpaint.cpp if (CV_MAT_ELEM(*src,type,i,j)!=0)\ i 715 modules/photo/src/inpaint.cpp CV_MAT_ELEM(*dst,type,i+1,j+1) = INSIDE;\ i 94 modules/photo/src/merge.cpp for(size_t i = 0; i < images.size(); i++) { i 96 modules/photo/src/merge.cpp split(images[i], splitted); i 106 modules/photo/src/merge.cpp LUT(images[i], response, response_img); i 109 modules/photo/src/merge.cpp result_split[c] += w.mul(splitted[c] - exp_values.at<float>((int)i)); i 166 modules/photo/src/merge.cpp for(size_t i = 0; i < images.size(); i++) { i 170 modules/photo/src/merge.cpp images[i].convertTo(img, CV_32F, 1.0f/255.0f); i 207 modules/photo/src/merge.cpp weights[i] = contrast; i 209 modules/photo/src/merge.cpp weights[i] = weights[i].mul(saturation); i 211 modules/photo/src/merge.cpp weights[i] = weights[i].mul(wellexp) + 1e-12f; i 212 modules/photo/src/merge.cpp weight_sum += weights[i]; i 217 modules/photo/src/merge.cpp for(size_t i = 0; i < images.size(); i++) { i 218 modules/photo/src/merge.cpp weights[i] /= weight_sum; i 220 modules/photo/src/merge.cpp images[i].convertTo(img, CV_32F, 1.0f/255.0f); i 224 modules/photo/src/merge.cpp buildPyramid(weights[i], weight_pyr, maxlevel); i 325 modules/photo/src/merge.cpp for(size_t i = 0; i < images.size(); i++) { i 327 modules/photo/src/merge.cpp LUT(images[i], weight, w); i 328 modules/photo/src/merge.cpp LUT(images[i], response, im); i 330 modules/photo/src/merge.cpp result += times.at<float>((int)i) * w.mul(im); i 331 modules/photo/src/merge.cpp wsum += times.at<float>((int)i) * times.at<float>((int)i) * w; i 77 modules/photo/src/npr.hpp for(int i = 0; i < img.size().height; i++) i 82 modules/photo/src/npr.hpp temp.at<float>(i,j*channel+c) = i 83 modules/photo/src/npr.hpp img.at<float>(i,(j+1)*channel+c) - img.at<float>(i,j*channel+c); i 92 modules/photo/src/npr.hpp for(int i = 0; i < img.size().height-1; i++) i 97 modules/photo/src/npr.hpp temp.at<float>(i,j*channel+c) = i 98 modules/photo/src/npr.hpp img.at<float>((i+1),j*channel+c) - img.at<float>(i,j*channel+c); i 109 modules/photo/src/npr.hpp for(int i=0;i<h;i++) i 113 modules/photo/src/npr.hpp gx.at<float>(i,j*channel+c) = i 114 modules/photo/src/npr.hpp img.at<float>(i,(j+1)*channel+c) - img.at<float>(i,j*channel+c); i 124 modules/photo/src/npr.hpp for(int i=0;i<h;i++) i 128 modules/photo/src/npr.hpp gy.at<float>(i,j*channel+c) = i 129 modules/photo/src/npr.hpp img.at<float>(i+1,j*channel+c) - img.at<float>(i,j*channel+c); i 185 modules/photo/src/npr.hpp for(int i=0;i<h;i++) i 187 modules/photo/src/npr.hpp V.at<float>(i,j) = pow(a,hz.at<float>(i,j)); i 189 modules/photo/src/npr.hpp for(int i=0; i<h; i++) i 195 modules/photo/src/npr.hpp temp.at<float>(i,j*channel+c) = temp.at<float>(i,j*channel+c) + i 196 modules/photo/src/npr.hpp (temp.at<float>(i,(j-1)*channel+c) - temp.at<float>(i,j*channel+c)) * V.at<float>(i,j); i 201 modules/photo/src/npr.hpp for(int i=0; i<h; i++) i 207 modules/photo/src/npr.hpp temp.at<float>(i,j*channel+c) = temp.at<float>(i,j*channel+c) + i 208 modules/photo/src/npr.hpp (temp.at<float>(i,(j+1)*channel+c) - temp.at<float>(i,j*channel+c))*V.at<float>(i,j+1); i 231 modules/photo/src/npr.hpp for(int i=0;i<h;i++) i 234 modules/photo/src/npr.hpp domain_row.at<float>(0,j) = hz.at<float>(i,j); i 242 modules/photo/src/npr.hpp lower_pos_row.at<float>(0,j) = lower_pos.at<float>(i,j); i 243 modules/photo/src/npr.hpp upper_pos_row.at<float>(0,j) = upper_pos.at<float>(i,j); i 300 modules/photo/src/npr.hpp lower_idx.at<float>(i,j) = temp_lower_idx.at<float>(0,j) + 1; i 301 modules/photo/src/npr.hpp upper_idx.at<float>(i,j) = temp_upper_idx.at<float>(0,j) + 1; i 317 modules/photo/src/npr.hpp for(int i = 0; i < h; i++) i 319 modules/photo/src/npr.hpp box_filter.at<float>(i,1*channel+0) = output.at<float>(i,0*channel+0); i 320 modules/photo/src/npr.hpp box_filter.at<float>(i,1*channel+1) = output.at<float>(i,0*channel+1); i 321 modules/photo/src/npr.hpp box_filter.at<float>(i,1*channel+2) = output.at<float>(i,0*channel+2); i 325 modules/photo/src/npr.hpp box_filter.at<float>(i,j*channel+c) = output.at<float>(i,(j-1)*channel+c) + box_filter.at<float>(i,(j-1)*channel+c); i 332 modules/photo/src/npr.hpp for(int i=0;i<h;i++) i 334 modules/photo/src/npr.hpp indices.at<float>(i,j) = (float) i+1; i 358 modules/photo/src/npr.hpp for(int i=0;i<h;i++) i 363 modules/photo/src/npr.hpp r = (int) b.at<float>(i,j)/(h*(w+1)); i 364 modules/photo/src/npr.hpp rem = (int) b.at<float>(i,j) - r*h*(w+1); i 379 modules/photo/src/npr.hpp r1 = (int) a.at<float>(i,j)/(h*(w+1)); i 380 modules/photo/src/npr.hpp rem1 = (int) a.at<float>(i,j) - r1*h*(w+1); i 389 modules/photo/src/npr.hpp final.at<float>(i,j*channel+2-c) = (box_filter.at<float>(p-1,q*channel+(2-r)) - box_filter.at<float>(p1-1,q1*channel+(2-r1))) i 390 modules/photo/src/npr.hpp /(upper_idx.at<float>(i,j) - lower_idx.at<float>(i,j)); i 416 modules/photo/src/npr.hpp for(int i = 0; i < h; i++) i 420 modules/photo/src/npr.hpp distx.at<float>(i,k) = i 421 modules/photo/src/npr.hpp distx.at<float>(i,k) + abs(derivx.at<float>(i,j*channel+c)); i 424 modules/photo/src/npr.hpp for(int i = 0,k=1; i < h-1; i++,k++) i 429 modules/photo/src/npr.hpp disty.at<float>(k,j) + abs(derivy.at<float>(i,j*channel+c)); i 457 modules/photo/src/npr.hpp for(int i = 0; i < h; i++) i 459 modules/photo/src/npr.hpp ct_H.at<float>(i,0) = horiz.at<float>(i,0); i 462 modules/photo/src/npr.hpp ct_H.at<float>(i,j) = horiz.at<float>(i,j) + ct_H.at<float>(i,j-1); i 469 modules/photo/src/npr.hpp for(int i = 1; i < h; i++) i 471 modules/photo/src/npr.hpp ct_V.at<float>(i,j) = vert.at<float>(i,j) + ct_V.at<float>(i-1,j); i 491 modules/photo/src/npr.hpp for(int i=0;i<no_of_iter;i++) i 493 modules/photo/src/npr.hpp sigma_h = (float) (sigma_s * sqrt(3.0) * pow(2.0,(no_of_iter - (i+1))) / sqrt(pow(4.0,no_of_iter) -1)); i 514 modules/photo/src/npr.hpp for(int i=0;i<no_of_iter;i++) i 516 modules/photo/src/npr.hpp sigma_h = (float) (sigma_s * sqrt(3.0) * pow(2.0,(no_of_iter - (i+1))) / sqrt(pow(4.0,no_of_iter) -1)); i 561 modules/photo/src/npr.hpp for(int i=0;i<no_of_iter;i++) i 563 modules/photo/src/npr.hpp sigma_h = (float) (sigma_s * sqrt(3.0) * pow(2.0,(no_of_iter - (i+1))) / sqrt(pow(4.0,no_of_iter) -1)); i 581 modules/photo/src/npr.hpp if(i==0) i 72 modules/photo/src/seamless_cloning.cpp for(int i=0;i<h;i++) i 76 modules/photo/src/seamless_cloning.cpp if(gray.at<uchar>(i,j) == 255) i 78 modules/photo/src/seamless_cloning.cpp minx = std::min(minx,i); i 79 modules/photo/src/seamless_cloning.cpp maxx = std::max(maxx,i); i 118 modules/photo/src/seamless_cloning_impl.cpp for(int i = 0 ; i < src.cols ; ++i) i 120 modules/photo/src/seamless_cloning_impl.cpp tempLinePtr[src.cols + 2 + i] = - srcLinePtr[src.cols - 1 - i]; i 135 modules/photo/src/seamless_cloning_impl.cpp for(int i = 0 ; i < src.rows ; ++i) i 137 modules/photo/src/seamless_cloning_impl.cpp float val = planes[1].ptr<float>(i)[j + 1]; i 138 modules/photo/src/seamless_cloning_impl.cpp tempLinePtr[i + 1] = val; i 139 modules/photo/src/seamless_cloning_impl.cpp tempLinePtr[temp.cols - 1 - i] = - val; i 170 modules/photo/src/seamless_cloning_impl.cpp for(int i = 0 ; i < w-2; i++) i 172 modules/photo/src/seamless_cloning_impl.cpp resLinePtr[i] /= (filter_X[i] + filter_Y[j] - 4); i 183 modules/photo/src/seamless_cloning_impl.cpp for(int i = 0 ; i < w ; ++i) i 184 modules/photo/src/seamless_cloning_impl.cpp result.ptr<unsigned char>(0)[i] = img.ptr<unsigned char>(0)[i]; i 195 modules/photo/src/seamless_cloning_impl.cpp for(int i = 1 ; i < w-1 ; ++i) i 199 modules/photo/src/seamless_cloning_impl.cpp float value = interpLinePtr[i-1]; i 201 modules/photo/src/seamless_cloning_impl.cpp resLinePtr[i] = 0; i 203 modules/photo/src/seamless_cloning_impl.cpp resLinePtr[i] = 255; i 205 modules/photo/src/seamless_cloning_impl.cpp resLinePtr[i] = static_cast<unsigned char>(value); i 215 modules/photo/src/seamless_cloning_impl.cpp for(int i = 0 ; i < w ; ++i) i 216 modules/photo/src/seamless_cloning_impl.cpp resLinePtr[i] = imgLinePtr[i]; i 254 modules/photo/src/seamless_cloning_impl.cpp for(int i = 0 ; i < w-2 ; ++i) i 255 modules/photo/src/seamless_cloning_impl.cpp filter_X[i] = 2.0f * std::cos(static_cast<float>(CV_PI) * (i + 1) / (w - 1)); i 359 modules/photo/src/seamless_cloning_impl.cpp for (int i = 0; i < n_elem_in_line; ++i) i 360 modules/photo/src/seamless_cloning_impl.cpp maskIndices[i] = i / channel; i 362 modules/photo/src/seamless_cloning_impl.cpp for(int i=0;i < h; i++) i 364 modules/photo/src/seamless_cloning_impl.cpp float * patchXLinePtr = patchGradientX.ptr<float>(i); i 365 modules/photo/src/seamless_cloning_impl.cpp float * patchYLinePtr = patchGradientY.ptr<float>(i); i 366 modules/photo/src/seamless_cloning_impl.cpp const float * destinationXLinePtr = destinationGradientX.ptr<float>(i); i 367 modules/photo/src/seamless_cloning_impl.cpp const float * destinationYLinePtr = destinationGradientY.ptr<float>(i); i 368 modules/photo/src/seamless_cloning_impl.cpp const float * binaryMaskLinePtr = binaryMaskFloat.ptr<float>(i); i 314 modules/photo/src/tonemap.cpp for(int i = 0; i < 3; i++) { i 315 modules/photo/src/tonemap.cpp float global = color_adapt * static_cast<float>(chan_mean[i]) + (1.0f - color_adapt) * gray_mean; i 316 modules/photo/src/tonemap.cpp Mat adapt = color_adapt * channels[i] + (1.0f - color_adapt) * gray_img; i 319 modules/photo/src/tonemap.cpp channels[i] = channels[i].mul(1.0f / (adapt + channels[i])); i 397 modules/photo/src/tonemap.cpp for(size_t i = 0; i < x_contrast.size(); i++) { i 398 modules/photo/src/tonemap.cpp mapContrast(x_contrast[i]); i 399 modules/photo/src/tonemap.cpp mapContrast(y_contrast[i]); i 415 modules/photo/src/tonemap.cpp for(int i = 0; i < max_iterations; i++) i 504 modules/photo/src/tonemap.cpp for(int i = 0; i < levels; i++) { i 505 modules/photo/src/tonemap.cpp getGradient(layer, x_contrast[i], 0); i 506 modules/photo/src/tonemap.cpp getGradient(layer.t(), y_contrast[i], 0); i 514 modules/photo/src/tonemap.cpp for(int i = (int)x_contrast.size() - 1; i >= 0; i--) i 517 modules/photo/src/tonemap.cpp getGradient(x_contrast[i], grad_x, 1); i 518 modules/photo/src/tonemap.cpp getGradient(y_contrast[i], grad_y, 1); i 519 modules/photo/src/tonemap.cpp resize(sum, sum, x_contrast[i].size()); i 36 modules/photo/test/ocl/test_denoising.cpp for (int i=0; i<cn; i++) i 37 modules/photo/test/ocl/test_denoising.cpp h[i] = 3.0f + 0.5f*i; i 60 modules/photo/test/test_denoise_tvl1.cpp for(int i=0;i<n;i++) i 86 modules/photo/test/test_denoise_tvl1.cpp for(int i=0;i<(int)images.size();i++) i 88 modules/photo/test/test_denoise_tvl1.cpp make_noisy(img,images[i], 20, 0.02,rng); i 109 modules/photo/test/test_denoising.cpp for (int i = 0; i < imgs_count; i++) i 111 modules/photo/test/test_denoising.cpp string original_path = format("%slena_noised_gaussian_sigma=20_multi_%d.png", folder.c_str(), i); i 112 modules/photo/test/test_denoising.cpp original[i] = imread(original_path, IMREAD_GRAYSCALE); i 113 modules/photo/test/test_denoising.cpp ASSERT_FALSE(original[i].empty()) << "Could not load input image " << original_path; i 134 modules/photo/test/test_denoising.cpp for (int i = 0; i < imgs_count; i++) i 136 modules/photo/test/test_denoising.cpp string original_path = format("%slena_noised_gaussian_sigma=20_multi_%d.png", folder.c_str(), i); i 137 modules/photo/test/test_denoising.cpp original[i] = imread(original_path, IMREAD_COLOR); i 138 modules/photo/test/test_denoising.cpp ASSERT_FALSE(original[i].empty()) << "Could not load input image " << original_path; i 80 modules/photo/test/test_hdr.cpp for(int i = 0; i < 256; i++) { i 82 modules/photo/test/test_hdr.cpp resp_file >> response.at<Vec3f>(i)[c]; i 145 modules/photo/test/test_hdr.cpp for(int i = 0; i < TESTS_COUNT; i++) { i 149 modules/python/src2/cv2.cpp for( int i = 0; i < dims - 1; i++ ) i 150 modules/python/src2/cv2.cpp step[i] = (size_t)_strides[i]; i 174 modules/python/src2/cv2.cpp int i, dims = dims0; i 176 modules/python/src2/cv2.cpp for( i = 0; i < dims; i++ ) i 177 modules/python/src2/cv2.cpp _sizes[i] = sizes[i]; i 241 modules/python/src2/cv2.cpp int i, sz = (int)PyTuple_Size((PyObject*)o); i 243 modules/python/src2/cv2.cpp for( i = 0; i < sz; i++ ) i 245 modules/python/src2/cv2.cpp PyObject* oi = PyTuple_GET_ITEM(o, i); i 247 modules/python/src2/cv2.cpp m.at<double>(i) = (double)PyInt_AsLong(oi); i 249 modules/python/src2/cv2.cpp m.at<double>(i) = (double)PyFloat_AsDouble(oi); i 312 modules/python/src2/cv2.cpp for( int i = ndims-1; i >= 0 && !needcopy; i-- ) i 318 modules/python/src2/cv2.cpp if( (i == ndims-1 && (size_t)_strides[i] != elemsize) || i 319 modules/python/src2/cv2.cpp (i < ndims-1 && _strides[i] < _strides[i+1]) ) i 346 modules/python/src2/cv2.cpp for(int i = 0; i < ndims; i++) i 348 modules/python/src2/cv2.cpp size[i] = (int)_sizes[i]; i 349 modules/python/src2/cv2.cpp step[i] = (size_t)_strides[i]; i 421 modules/python/src2/cv2.cpp for (Py_ssize_t i = 0; i < PySequence_Fast_GET_SIZE(fi); i++) { i 422 modules/python/src2/cv2.cpp PyObject *item = PySequence_Fast_GET_ITEM(fi, i); i 424 modules/python/src2/cv2.cpp s[(int)i] = PyFloat_AsDouble(item); i 762 modules/python/src2/cv2.cpp int i, j, n = (int)PySequence_Fast_GET_SIZE(seq); i 769 modules/python/src2/cv2.cpp for( i = 0; i < n; i++ ) i 771 modules/python/src2/cv2.cpp PyObject* item = items[i]; i 774 modules/python/src2/cv2.cpp _Cp* data = (_Cp*)&value[i]; i 841 modules/python/src2/cv2.cpp return i == n; i 874 modules/python/src2/cv2.cpp int i, n = (int)PySequence_Fast_GET_SIZE(seq); i 879 modules/python/src2/cv2.cpp for( i = 0; i < n; i++ ) i 881 modules/python/src2/cv2.cpp PyObject* item = items[i]; i 882 modules/python/src2/cv2.cpp if(!pyopencv_to(item, value[i], info)) i 886 modules/python/src2/cv2.cpp return i == n; i 891 modules/python/src2/cv2.cpp int i, n = (int)value.size(); i 893 modules/python/src2/cv2.cpp for( i = 0; i < n; i++ ) i 895 modules/python/src2/cv2.cpp PyObject* item = pyopencv_from(value[i]); i 898 modules/python/src2/cv2.cpp PyList_SET_ITEM(seq, i, item); i 900 modules/python/src2/cv2.cpp if( i < n ) i 1241 modules/python/src2/cv2.cpp size_t i = s.find('.'); i 1242 modules/python/src2/cv2.cpp while (i < s.length() && i != std::string::npos) i 1244 modules/python/src2/cv2.cpp size_t j = s.find('.', i); i 1247 modules/python/src2/cv2.cpp std::string short_name = s.substr(i, j-i); i 1249 modules/python/src2/cv2.cpp i = j+1; i 197 modules/shape/src/aff_trans.cpp for (size_t i=0; i<_matches.size(); i++) i 199 modules/shape/src/aff_trans.cpp if (_matches[i].queryIdx<pts1.cols && i 200 modules/shape/src/aff_trans.cpp _matches[i].trainIdx<pts2.cols) i 202 modules/shape/src/aff_trans.cpp matches.push_back(_matches[i]); i 209 modules/shape/src/aff_trans.cpp for (size_t i=0; i<matches.size(); i++) i 211 modules/shape/src/aff_trans.cpp Point2f pt1=pts1.at<Point2f>(0,matches[i].queryIdx); i 214 modules/shape/src/aff_trans.cpp Point2f pt2=pts2.at<Point2f>(0,matches[i].trainIdx); i 242 modules/shape/src/aff_trans.cpp for (int i=0; i<fAffine.cols; i++) i 243 modules/shape/src/aff_trans.cpp outMat.at<Point2f>(0,i)=fAffine.at<Point2f>(0,i); i 140 modules/shape/src/hist_cost.cpp for(int i=0; i<scd1.rows; i++) i 142 modules/shape/src/hist_cost.cpp scd1.row(i)/=(sum(scd1.row(i))[0]+FLT_EPSILON); i 144 modules/shape/src/hist_cost.cpp for(int i=0; i<scd2.rows; i++) i 146 modules/shape/src/hist_cost.cpp scd2.row(i)/=(sum(scd2.row(i))[0]+FLT_EPSILON); i 150 modules/shape/src/hist_cost.cpp for(int i=0; i<costrows; i++) i 154 modules/shape/src/hist_cost.cpp if (i<scd1.rows && j<scd2.rows) i 156 modules/shape/src/hist_cost.cpp Mat columnDiff = scd1.row(i)-scd2.row(j); i 157 modules/shape/src/hist_cost.cpp costMatrix.at<float>(i,j)=(float)norm(columnDiff, flag); i 161 modules/shape/src/hist_cost.cpp costMatrix.at<float>(i,j)=defaultCost; i 264 modules/shape/src/hist_cost.cpp for(int i=0; i<scd1.rows; i++) i 266 modules/shape/src/hist_cost.cpp cv::Mat row = scd1.row(i); i 267 modules/shape/src/hist_cost.cpp scd1.row(i)/=(sum(row)[0]+FLT_EPSILON); i 269 modules/shape/src/hist_cost.cpp for(int i=0; i<scd2.rows; i++) i 271 modules/shape/src/hist_cost.cpp cv::Mat row = scd2.row(i); i 272 modules/shape/src/hist_cost.cpp scd2.row(i)/=(sum(row)[0]+FLT_EPSILON); i 276 modules/shape/src/hist_cost.cpp for(int i=0; i<costrows; i++) i 280 modules/shape/src/hist_cost.cpp if (i<scd1.rows && j<scd2.rows) i 283 modules/shape/src/hist_cost.cpp sig1.col(0)=scd1.row(i).t(); i 294 modules/shape/src/hist_cost.cpp costMatrix.at<float>(i,j) = cv::EMD(sig1, sig2, flag); i 298 modules/shape/src/hist_cost.cpp costMatrix.at<float>(i,j) = defaultCost; i 385 modules/shape/src/hist_cost.cpp for(int i=0; i<scd1.rows; i++) i 387 modules/shape/src/hist_cost.cpp cv::Mat row = scd1.row(i); i 388 modules/shape/src/hist_cost.cpp scd1.row(i)/=(sum(row)[0]+FLT_EPSILON); i 390 modules/shape/src/hist_cost.cpp for(int i=0; i<scd2.rows; i++) i 392 modules/shape/src/hist_cost.cpp cv::Mat row = scd2.row(i); i 393 modules/shape/src/hist_cost.cpp scd2.row(i)/=(sum(row)[0]+FLT_EPSILON); i 397 modules/shape/src/hist_cost.cpp for(int i=0; i<costrows; i++) i 401 modules/shape/src/hist_cost.cpp if (i<scd1.rows && j<scd2.rows) i 406 modules/shape/src/hist_cost.cpp float resta=scd1.at<float>(i,k)-scd2.at<float>(j,k); i 407 modules/shape/src/hist_cost.cpp float suma=scd1.at<float>(i,k)+scd2.at<float>(j,k); i 410 modules/shape/src/hist_cost.cpp costMatrix.at<float>(i,j)=csum/2; i 414 modules/shape/src/hist_cost.cpp costMatrix.at<float>(i,j)=defaultCost; i 501 modules/shape/src/hist_cost.cpp for(int i=0; i<scd1.rows; i++) i 503 modules/shape/src/hist_cost.cpp cv::Mat row = scd1.row(i); i 504 modules/shape/src/hist_cost.cpp scd1.row(i)/=(sum(row)[0]+FLT_EPSILON); i 506 modules/shape/src/hist_cost.cpp for(int i=0; i<scd2.rows; i++) i 508 modules/shape/src/hist_cost.cpp cv::Mat row = scd2.row(i); i 509 modules/shape/src/hist_cost.cpp scd2.row(i)/=(sum(row)[0]+FLT_EPSILON); i 513 modules/shape/src/hist_cost.cpp for(int i=0; i<costrows; i++) i 517 modules/shape/src/hist_cost.cpp if (i<scd1.rows && j<scd2.rows) i 520 modules/shape/src/hist_cost.cpp sig1.col(0)=scd1.row(i).t(); i 522 modules/shape/src/hist_cost.cpp costMatrix.at<float>(i,j) = cv::EMDL1(sig1, sig2); i 526 modules/shape/src/hist_cost.cpp costMatrix.at<float>(i,j) = defaultCost; i 350 modules/shape/src/sc_dis.cpp for (int i=0; i<nRadialBins; i++) i 352 modules/shape/src/sc_dis.cpp if (disMatrix.at<float>(ptidx, cmp)<logspaces[i]) i 354 modules/shape/src/sc_dis.cpp radidx=i; i 358 modules/shape/src/sc_dis.cpp for (int i=0; i<nAngularBins; i++) i 360 modules/shape/src/sc_dis.cpp if (angleMatrix.at<float>(ptidx, cmp)<angspaces[i]) i 362 modules/shape/src/sc_dis.cpp angidx=i; i 382 modules/shape/src/sc_dis.cpp for (int i=0; i<nRadialBins; i++) i 395 modules/shape/src/sc_dis.cpp for (int i=0; i<nAngularBins; i++) i 407 modules/shape/src/sc_dis.cpp for (int i=0; i<contourMat.cols; i++) i 411 modules/shape/src/sc_dis.cpp disMatrix.at<float>(i,j) = (float)norm( cv::Mat(contourMat.at<cv::Point2f>(0,i)-contourMat.at<cv::Point2f>(0,j)), cv::NORM_L2 ); i 416 modules/shape/src/sc_dis.cpp mask.at<char>(i,j)=char(queryInliers[j] && queryInliers[i]); i 420 modules/shape/src/sc_dis.cpp mask.at<char>(i,j)=1; i 445 modules/shape/src/sc_dis.cpp for (int i=0; i<contourMat.cols; i++) i 447 modules/shape/src/sc_dis.cpp massCenter+=contourMat.at<cv::Point2f>(0,i); i 454 modules/shape/src/sc_dis.cpp for (int i=0; i<contourMat.cols; i++) i 458 modules/shape/src/sc_dis.cpp if (i==j) i 460 modules/shape/src/sc_dis.cpp angleMatrix.at<float>(i,j)=0.0; i 464 modules/shape/src/sc_dis.cpp cv::Point2f dif = contourMat.at<cv::Point2f>(0,i) - contourMat.at<cv::Point2f>(0,j); i 465 modules/shape/src/sc_dis.cpp angleMatrix.at<float>(i,j) = std::atan2(dif.y, dif.x); i 469 modules/shape/src/sc_dis.cpp cv::Point2f refPt = contourMat.at<cv::Point2f>(0,i) - massCenter; i 471 modules/shape/src/sc_dis.cpp angleMatrix.at<float>(i,j) -= refAngle; i 473 modules/shape/src/sc_dis.cpp angleMatrix.at<float>(i,j) = float(fmod(double(angleMatrix.at<float>(i,j)+(double)FLT_EPSILON),2*CV_PI)+CV_PI); i 508 modules/shape/src/sc_dis.cpp int i=0, imin=0, numfree=0, prvnumfree=0, f=0, i0=0, k=0, freerow=0; i 518 modules/shape/src/sc_dis.cpp for (i = 1; i < costMatrix.rows; i++) i 519 modules/shape/src/sc_dis.cpp if (costMatrix.at<float>(i,j) < min) i 521 modules/shape/src/sc_dis.cpp min = costMatrix.at<float>(i,j); i 522 modules/shape/src/sc_dis.cpp imin = i; i 538 modules/shape/src/sc_dis.cpp for (i=0; i<costMatrix.rows; i++) i 540 modules/shape/src/sc_dis.cpp if (matches[i] == 0) i 542 modules/shape/src/sc_dis.cpp free[numfree++] = i; i 546 modules/shape/src/sc_dis.cpp if (matches[i] == 1) i 548 modules/shape/src/sc_dis.cpp j1=rowsol[i]; i 554 modules/shape/src/sc_dis.cpp if (costMatrix.at<float>(i,j)-v[j] < min) i 556 modules/shape/src/sc_dis.cpp min=costMatrix.at<float>(i,j)-v[j]; i 574 modules/shape/src/sc_dis.cpp i=free[k]; i 576 modules/shape/src/sc_dis.cpp umin = costMatrix.at<float>(i,0)-v[0]; i 581 modules/shape/src/sc_dis.cpp h = costMatrix.at<float>(i,j)-v[j]; i 613 modules/shape/src/sc_dis.cpp rowsol[i]=j1; i 614 modules/shape/src/sc_dis.cpp colsol[j1]=i; i 684 modules/shape/src/sc_dis.cpp i = colsol[j1]; i 685 modules/shape/src/sc_dis.cpp h = costMatrix.at<float>(i,j1)-v[j1]-min; i 690 modules/shape/src/sc_dis.cpp v2 = costMatrix.at<float>(i,j) - v[j] - h; i 693 modules/shape/src/sc_dis.cpp pred[j] = float(i); i 725 modules/shape/src/sc_dis.cpp i = int(pred[endofpath]); i 726 modules/shape/src/sc_dis.cpp colsol[endofpath] = i; i 728 modules/shape/src/sc_dis.cpp endofpath = rowsol[i]; i 729 modules/shape/src/sc_dis.cpp rowsol[i] = j1; i 730 modules/shape/src/sc_dis.cpp }while (i != freerow); i 756 modules/shape/src/sc_dis.cpp for (i=0;i<costMatrix.cols;i++) i 758 modules/shape/src/sc_dis.cpp cv::DMatch singleMatch(colsol[i],i,costMatrix.at<float>(colsol[i],i));//queryIdx,trainIdx,distance i 118 modules/shape/src/tps_trans.cpp for (int i=0; i<2; i++) i 120 modules/shape/src/tps_trans.cpp float a1=tpsParameters.at<float>(tpsParameters.rows-3,i); i 121 modules/shape/src/tps_trans.cpp float ax=tpsParameters.at<float>(tpsParameters.rows-2,i); i 122 modules/shape/src/tps_trans.cpp float ay=tpsParameters.at<float>(tpsParameters.rows-1,i); i 128 modules/shape/src/tps_trans.cpp nonrigid+=tpsParameters.at<float>(j,i)* i 132 modules/shape/src/tps_trans.cpp if (i==0) i 136 modules/shape/src/tps_trans.cpp if (i==1) i 178 modules/shape/src/tps_trans.cpp for (int i=0; i<pts1.cols; i++) i 180 modules/shape/src/tps_trans.cpp Point2f pt=pts1.at<Point2f>(0,i); i 181 modules/shape/src/tps_trans.cpp outMat.at<Point2f>(0,i)=_applyTransformation(shapeReference, pt, tpsParameters); i 203 modules/shape/src/tps_trans.cpp for (size_t i=0; i<_matches.size(); i++) i 205 modules/shape/src/tps_trans.cpp if (_matches[i].queryIdx<pts1.cols && i 206 modules/shape/src/tps_trans.cpp _matches[i].trainIdx<pts2.cols) i 208 modules/shape/src/tps_trans.cpp matches.push_back(_matches[i]); i 215 modules/shape/src/tps_trans.cpp for (int i=0, end = (int)matches.size(); i<end; i++) i 217 modules/shape/src/tps_trans.cpp Point2f pt1=pts1.at<Point2f>(0,matches[i].queryIdx); i 218 modules/shape/src/tps_trans.cpp shape1.at<float>(i,0) = pt1.x; i 219 modules/shape/src/tps_trans.cpp shape1.at<float>(i,1) = pt1.y; i 221 modules/shape/src/tps_trans.cpp Point2f pt2=pts2.at<Point2f>(0,matches[i].trainIdx); i 222 modules/shape/src/tps_trans.cpp shape2.at<float>(i,0) = pt2.x; i 223 modules/shape/src/tps_trans.cpp shape2.at<float>(i,1) = pt2.y; i 232 modules/shape/src/tps_trans.cpp for (int i=0, end=(int)matches.size(); i<end; i++) i 236 modules/shape/src/tps_trans.cpp if (i==j) i 238 modules/shape/src/tps_trans.cpp matK.at<float>(i,j)=float(regularizationParameter); i 242 modules/shape/src/tps_trans.cpp matK.at<float>(i,j) = distance(Point2f(shape1.at<float>(i,0),shape1.at<float>(i,1)), i 246 modules/shape/src/tps_trans.cpp matP.at<float>(i,0) = 1; i 247 modules/shape/src/tps_trans.cpp matP.at<float>(i,1) = shape1.at<float>(i,0); i 248 modules/shape/src/tps_trans.cpp matP.at<float>(i,2) = shape1.at<float>(i,1); i 264 modules/shape/src/tps_trans.cpp for (int i=0, end = (int)matches.size(); i<end; i++) i 266 modules/shape/src/tps_trans.cpp matB.at<float>(i,0) = shape2.at<float>(i,0); //x's i 267 modules/shape/src/tps_trans.cpp matB.at<float>(i,1) = shape2.at<float>(i,1); //y's i 62 modules/shape/test/test_shape.cpp for (vector<string>::const_iterator i = shapeNames.begin(); i != shapeNames.end(); ++i) i 68 modules/shape/test/test_shape.cpp << "shape/mpeg_test/" << *i << "-" << j + 1 << ".png"; i 109 modules/shape/test/test_shape.cpp for (int i=0; i<nStart; i++) i 111 modules/shape/test/test_shape.cpp cont.push_back(contoursQuery[i]); i 169 modules/shape/test/test_shape.cpp for (int i=0; i<distanceMat.cols; i++) i 171 modules/shape/test/test_shape.cpp if (distanceMat.at<float>(row,col) > distanceMat.at<float>(row,i)) i 58 modules/stitching/include/opencv2/stitching/detail/util_inl.hpp for (int i = 0; i < numVertices(); ++i) i 60 modules/stitching/include/opencv2/stitching/detail/util_inl.hpp std::list<GraphEdge>::const_iterator edge = edges_[i].begin(); i 61 modules/stitching/include/opencv2/stitching/detail/util_inl.hpp for (; edge != edges_[i].end(); ++edge) i 189 modules/stitching/perf/perf_stich.cpp for(int i = 0; i < featuresVectorSize/2; i++) i 55 modules/stitching/src/autocalib.cpp for (int i = 0; i < m; ++i) i 56 modules/stitching/src/autocalib.cpp A[i*astep + i] = (_Tp)(1./A[i*astep + i]); i 105 modules/stitching/src/autocalib.cpp for (int i = 0; i < num_images; ++i) i 109 modules/stitching/src/autocalib.cpp const MatchesInfo &m = pairwise_matches[i*num_images + j]; i 130 modules/stitching/src/autocalib.cpp for (int i = 0; i < num_images; ++i) i 131 modules/stitching/src/autocalib.cpp focals[i] = median; i 137 modules/stitching/src/autocalib.cpp for (int i = 0; i < num_images; ++i) i 138 modules/stitching/src/autocalib.cpp focals_sum += features[i].img_size.width + features[i].img_size.height; i 139 modules/stitching/src/autocalib.cpp for (int i = 0; i < num_images; ++i) i 140 modules/stitching/src/autocalib.cpp focals[i] = focals_sum / num_images; i 151 modules/stitching/src/autocalib.cpp for (int i = 0; i < m; ++i) i 153 modules/stitching/src/autocalib.cpp CV_Assert(Hs[i].size() == Size(3, 3) && Hs[i].type() == CV_64F); i 154 modules/stitching/src/autocalib.cpp Hs_[i] = Hs[i] / std::pow(determinant(Hs[i]), 1./3.); i 165 modules/stitching/src/autocalib.cpp for (int i = 0; i < 3; ++i) i 167 modules/stitching/src/autocalib.cpp for (int j = i; j < 3; ++j, ++eq_idx) i 174 modules/stitching/src/autocalib.cpp A(eq_idx, idx) += H(i,l) * H(j,s); i 177 modules/stitching/src/autocalib.cpp A(eq_idx, idx_map[i][j]) -= 1; i 186 modules/stitching/src/autocalib.cpp for (int i = 0; i < 3; ++i) i 187 modules/stitching/src/autocalib.cpp for (int j = i; j < 3; ++j) i 188 modules/stitching/src/autocalib.cpp W(i,j) = W(j,i) = wcoef(idx_map[i][j], 0) / wcoef(5,0); i 174 modules/stitching/src/blenders.cpp for (size_t i = 0; i < masks.size(); ++i) i 175 modules/stitching/src/blenders.cpp createWeightMap(masks[i], sharpness_, weight_maps[i]); i 181 modules/stitching/src/blenders.cpp for (size_t i = 0; i < weight_maps.size(); ++i) i 183 modules/stitching/src/blenders.cpp Rect roi(corners[i].x - dst_roi.x, corners[i].y - dst_roi.y, i 184 modules/stitching/src/blenders.cpp weight_maps[i].cols, weight_maps[i].rows); i 185 modules/stitching/src/blenders.cpp add(weights_sum(roi), weight_maps[i], weights_sum(roi)); i 188 modules/stitching/src/blenders.cpp for (size_t i = 0; i < weight_maps.size(); ++i) i 190 modules/stitching/src/blenders.cpp Rect roi(corners[i].x - dst_roi.x, corners[i].y - dst_roi.y, i 191 modules/stitching/src/blenders.cpp weight_maps[i].cols, weight_maps[i].rows); i 194 modules/stitching/src/blenders.cpp divide(weight_maps[i], tmp, weight_maps[i]); i 238 modules/stitching/src/blenders.cpp for (int i = 1; i <= num_bands_; ++i) i 240 modules/stitching/src/blenders.cpp dst_pyr_laplace_[i].create((dst_pyr_laplace_[i - 1].rows + 1) / 2, i 241 modules/stitching/src/blenders.cpp (dst_pyr_laplace_[i - 1].cols + 1) / 2, CV_16SC3); i 242 modules/stitching/src/blenders.cpp dst_band_weights_[i].create((dst_band_weights_[i - 1].rows + 1) / 2, i 243 modules/stitching/src/blenders.cpp (dst_band_weights_[i - 1].cols + 1) / 2, weight_type_); i 244 modules/stitching/src/blenders.cpp dst_pyr_laplace_[i].setTo(Scalar::all(0)); i 245 modules/stitching/src/blenders.cpp dst_band_weights_[i].setTo(0); i 353 modules/stitching/src/blenders.cpp for (int i = 0; i < num_bands_; ++i) i 354 modules/stitching/src/blenders.cpp pyrDown(weight_pyr_gauss[i], weight_pyr_gauss[i + 1]); i 367 modules/stitching/src/blenders.cpp for (int i = 0; i <= num_bands_; ++i) i 372 modules/stitching/src/blenders.cpp !ocl_MultiBandBlender_feed(src_pyr_laplace[i], weight_pyr_gauss[i], i 373 modules/stitching/src/blenders.cpp dst_pyr_laplace_[i](rc), dst_band_weights_[i](rc)) ) i 376 modules/stitching/src/blenders.cpp Mat _src_pyr_laplace = src_pyr_laplace[i].getMat(ACCESS_READ); i 377 modules/stitching/src/blenders.cpp Mat _dst_pyr_laplace = dst_pyr_laplace_[i](rc).getMat(ACCESS_RW); i 378 modules/stitching/src/blenders.cpp Mat _weight_pyr_gauss = weight_pyr_gauss[i].getMat(ACCESS_READ); i 379 modules/stitching/src/blenders.cpp Mat _dst_band_weights = dst_band_weights_[i](rc).getMat(ACCESS_RW); i 434 modules/stitching/src/blenders.cpp for (int i = 0; i <= num_bands_; ++i) i 435 modules/stitching/src/blenders.cpp normalizeUsingWeightMap(dst_band_weights_[i], dst_pyr_laplace_[i]); i 573 modules/stitching/src/blenders.cpp for(int i = 1; i < num_levels; ++i) i 580 modules/stitching/src/blenders.cpp subtract(current, lvl_up, pyr[i-1], noArray(), CV_16S); i 597 modules/stitching/src/blenders.cpp for (int i = 0; i < num_levels; ++i) i 598 modules/stitching/src/blenders.cpp pyrDown(pyr[i], pyr[i + 1]); i 600 modules/stitching/src/blenders.cpp for (int i = 0; i < num_levels; ++i) i 602 modules/stitching/src/blenders.cpp pyrUp(pyr[i + 1], tmp, pyr[i].size()); i 603 modules/stitching/src/blenders.cpp subtract(pyr[i], tmp, pyr[i]); i 616 modules/stitching/src/blenders.cpp for (int i = 0; i < num_levels; ++i) i 617 modules/stitching/src/blenders.cpp cuda::pyrDown(gpu_pyr[i], gpu_pyr[i + 1]); i 620 modules/stitching/src/blenders.cpp for (int i = 0; i < num_levels; ++i) i 622 modules/stitching/src/blenders.cpp cuda::pyrUp(gpu_pyr[i + 1], tmp); i 623 modules/stitching/src/blenders.cpp cuda::subtract(gpu_pyr[i], tmp, gpu_pyr[i]); i 624 modules/stitching/src/blenders.cpp gpu_pyr[i].download(pyr[i]); i 642 modules/stitching/src/blenders.cpp for (size_t i = pyr.size() - 1; i > 0; --i) i 644 modules/stitching/src/blenders.cpp pyrUp(pyr[i], tmp, pyr[i - 1].size()); i 645 modules/stitching/src/blenders.cpp add(tmp, pyr[i - 1], pyr[i - 1]); i 657 modules/stitching/src/blenders.cpp for (size_t i = 0; i < pyr.size(); ++i) i 658 modules/stitching/src/blenders.cpp gpu_pyr[i].upload(pyr[i]); i 661 modules/stitching/src/blenders.cpp for (size_t i = pyr.size() - 1; i > 0; --i) i 663 modules/stitching/src/blenders.cpp cuda::pyrUp(gpu_pyr[i], tmp); i 664 modules/stitching/src/blenders.cpp cuda::add(tmp, gpu_pyr[i - 1], gpu_pyr[i - 1]); i 65 modules/stitching/src/exposure_compensate.cpp for (size_t i = 0; i < masks.size(); ++i) i 66 modules/stitching/src/exposure_compensate.cpp level_masks.push_back(std::make_pair(masks[i], 255)); i 89 modules/stitching/src/exposure_compensate.cpp for (int i = 0; i < num_images; ++i) i 91 modules/stitching/src/exposure_compensate.cpp for (int j = i; j < num_images; ++j) i 94 modules/stitching/src/exposure_compensate.cpp if (overlapRoi(corners[i], corners[j], images[i].size(), images[j].size(), roi)) i 96 modules/stitching/src/exposure_compensate.cpp subimg1 = images[i](Rect(roi.tl() - corners[i], roi.br() - corners[i])).getMat(ACCESS_READ); i 99 modules/stitching/src/exposure_compensate.cpp submask1 = masks[i].first(Rect(roi.tl() - corners[i], roi.br() - corners[i])).getMat(ACCESS_READ); i 101 modules/stitching/src/exposure_compensate.cpp intersect = (submask1 == masks[i].second) & (submask2 == masks[j].second); i 103 modules/stitching/src/exposure_compensate.cpp N(i, j) = N(j, i) = std::max(1, countNonZero(intersect)); i 119 modules/stitching/src/exposure_compensate.cpp I(i, j) = Isum1 / N(i, j); i 120 modules/stitching/src/exposure_compensate.cpp I(j, i) = Isum2 / N(i, j); i 130 modules/stitching/src/exposure_compensate.cpp for (int i = 0; i < num_images; ++i) i 134 modules/stitching/src/exposure_compensate.cpp b(i, 0) += beta * N(i, j); i 135 modules/stitching/src/exposure_compensate.cpp A(i, i) += beta * N(i, j); i 136 modules/stitching/src/exposure_compensate.cpp if (j == i) continue; i 137 modules/stitching/src/exposure_compensate.cpp A(i, i) += 2 * alpha * I(i, j) * I(i, j) * N(i, j); i 138 modules/stitching/src/exposure_compensate.cpp A(i, j) -= 2 * alpha * I(i, j) * I(j, i) * N(i, j); i 157 modules/stitching/src/exposure_compensate.cpp for (int i = 0; i < gains_.rows; ++i) i 158 modules/stitching/src/exposure_compensate.cpp gains_vec[i] = gains_(i, 0); i 74 modules/stitching/src/matchers.cpp for (int i = r.start; i < r.end; ++i) i 76 modules/stitching/src/matchers.cpp int from = near_pairs[i].first; i 77 modules/stitching/src/matchers.cpp int to = near_pairs[i].second; i 182 modules/stitching/src/matchers.cpp for (size_t i = 0; i < pair_matches.size(); ++i) i 184 modules/stitching/src/matchers.cpp if (pair_matches[i].size() < 2) i 186 modules/stitching/src/matchers.cpp const DMatch& m0 = pair_matches[i][0]; i 187 modules/stitching/src/matchers.cpp const DMatch& m1 = pair_matches[i][1]; i 199 modules/stitching/src/matchers.cpp for (size_t i = 0; i < pair_matches.size(); ++i) i 201 modules/stitching/src/matchers.cpp if (pair_matches[i].size() < 2) i 203 modules/stitching/src/matchers.cpp const DMatch& m0 = pair_matches[i][0]; i 204 modules/stitching/src/matchers.cpp const DMatch& m1 = pair_matches[i][1]; i 230 modules/stitching/src/matchers.cpp for (size_t i = 0; i < pair_matches.size(); ++i) i 232 modules/stitching/src/matchers.cpp if (pair_matches[i].size() < 2) i 234 modules/stitching/src/matchers.cpp const DMatch& m0 = pair_matches[i][0]; i 235 modules/stitching/src/matchers.cpp const DMatch& m1 = pair_matches[i][1]; i 246 modules/stitching/src/matchers.cpp for (size_t i = 0; i < pair_matches.size(); ++i) i 248 modules/stitching/src/matchers.cpp if (pair_matches[i].size() < 2) i 250 modules/stitching/src/matchers.cpp const DMatch& m0 = pair_matches[i][0]; i 251 modules/stitching/src/matchers.cpp const DMatch& m1 = pair_matches[i][1]; i 288 modules/stitching/src/matchers.cpp for (size_t i = 0; i < rois.size(); ++i) i 290 modules/stitching/src/matchers.cpp find(image.getUMat()(rois[i]), roi_features[i]); i 291 modules/stitching/src/matchers.cpp total_kps_count += roi_features[i].keypoints.size(); i 292 modules/stitching/src/matchers.cpp total_descriptors_height += roi_features[i].descriptors.rows; i 303 modules/stitching/src/matchers.cpp for (size_t i = 0; i < rois.size(); ++i) i 305 modules/stitching/src/matchers.cpp for (size_t j = 0; j < roi_features[i].keypoints.size(); ++j, ++kp_idx) i 307 modules/stitching/src/matchers.cpp features.keypoints[kp_idx] = roi_features[i].keypoints[j]; i 308 modules/stitching/src/matchers.cpp features.keypoints[kp_idx].pt.x += (float)rois[i].x; i 309 modules/stitching/src/matchers.cpp features.keypoints[kp_idx].pt.y += (float)rois[i].y; i 312 modules/stitching/src/matchers.cpp descr_offset, descr_offset + roi_features[i].descriptors.rows); i 313 modules/stitching/src/matchers.cpp roi_features[i].descriptors.copyTo(subdescr); i 314 modules/stitching/src/matchers.cpp descr_offset += roi_features[i].descriptors.rows; i 538 modules/stitching/src/matchers.cpp for (int i = 0; i < num_images - 1; ++i) i 539 modules/stitching/src/matchers.cpp for (int j = i + 1; j < num_images; ++j) i 540 modules/stitching/src/matchers.cpp if (features[i].keypoints.size() > 0 && features[j].keypoints.size() > 0 && mask_(i, j)) i 541 modules/stitching/src/matchers.cpp near_pairs.push_back(std::make_pair(i, j)); i 589 modules/stitching/src/matchers.cpp for (size_t i = 0; i < matches_info.matches.size(); ++i) i 591 modules/stitching/src/matchers.cpp const DMatch& m = matches_info.matches[i]; i 596 modules/stitching/src/matchers.cpp src_points.at<Point2f>(0, static_cast<int>(i)) = p; i 601 modules/stitching/src/matchers.cpp dst_points.at<Point2f>(0, static_cast<int>(i)) = p; i 611 modules/stitching/src/matchers.cpp for (size_t i = 0; i < matches_info.inliers_mask.size(); ++i) i 612 modules/stitching/src/matchers.cpp if (matches_info.inliers_mask[i]) i 631 modules/stitching/src/matchers.cpp for (size_t i = 0; i < matches_info.matches.size(); ++i) i 633 modules/stitching/src/matchers.cpp if (!matches_info.inliers_mask[i]) i 636 modules/stitching/src/matchers.cpp const DMatch& m = matches_info.matches[i]; i 678 modules/stitching/src/matchers.cpp for (int i = 0; i < num_images - 1; ++i) i 679 modules/stitching/src/matchers.cpp for (int j = i + 1; j < std::min(num_images, i + range_width_); ++j) i 680 modules/stitching/src/matchers.cpp if (features[i].keypoints.size() > 0 && features[j].keypoints.size() > 0 && mask_(i, j)) i 681 modules/stitching/src/matchers.cpp near_pairs.push_back(std::make_pair(i, j)); i 95 modules/stitching/src/motion_estimators.cpp for (int i = 0; i < err1.rows; ++i) i 96 modules/stitching/src/motion_estimators.cpp res.at<double>(i, 0) = (err2.at<double>(i, 0) - err1.at<double>(i, 0)) / h; i 126 modules/stitching/src/motion_estimators.cpp for (size_t i = 0; i < subset.size(); ++i) i 127 modules/stitching/src/motion_estimators.cpp if (!pairwise_matches[subset[i]].H.empty()) i 128 modules/stitching/src/motion_estimators.cpp Hs.push_back(pairwise_matches[subset[i]].H); i 144 modules/stitching/src/motion_estimators.cpp for (int i = 0; i < num_images; ++i) i 145 modules/stitching/src/motion_estimators.cpp cameras[i].focal = focals[i]; i 149 modules/stitching/src/motion_estimators.cpp for (int i = 0; i < num_images; ++i) i 151 modules/stitching/src/motion_estimators.cpp cameras[i].ppx -= 0.5 * features[i].img_size.width; i 152 modules/stitching/src/motion_estimators.cpp cameras[i].ppy -= 0.5 * features[i].img_size.height; i 163 modules/stitching/src/motion_estimators.cpp for (int i = 0; i < num_images; ++i) i 165 modules/stitching/src/motion_estimators.cpp cameras[i].ppx += 0.5 * features[i].img_size.width; i 166 modules/stitching/src/motion_estimators.cpp cameras[i].ppy += 0.5 * features[i].img_size.height; i 193 modules/stitching/src/motion_estimators.cpp for (int i = 0; i < num_images_ - 1; ++i) i 195 modules/stitching/src/motion_estimators.cpp for (int j = i + 1; j < num_images_; ++j) i 197 modules/stitching/src/motion_estimators.cpp const MatchesInfo& matches_info = pairwise_matches_[i * num_images_ + j]; i 199 modules/stitching/src/motion_estimators.cpp edges_.push_back(std::make_pair(i, j)); i 205 modules/stitching/src/motion_estimators.cpp for (size_t i = 0; i < edges_.size(); ++i) i 206 modules/stitching/src/motion_estimators.cpp total_num_matches_ += static_cast<int>(pairwise_matches[edges_[i].first * num_images_ + i 207 modules/stitching/src/motion_estimators.cpp edges_[i].second].num_inliers); i 254 modules/stitching/src/motion_estimators.cpp for (int i = 0; i < cam_params_.rows; ++i) i 256 modules/stitching/src/motion_estimators.cpp if (cvIsNaN(cam_params_.at<double>(i,0))) i 272 modules/stitching/src/motion_estimators.cpp for (int i = 0; i < num_images_; ++i) i 273 modules/stitching/src/motion_estimators.cpp cameras[i].R = R_inv * cameras[i].R; i 286 modules/stitching/src/motion_estimators.cpp for (int i = 0; i < num_images_; ++i) i 288 modules/stitching/src/motion_estimators.cpp cam_params_.at<double>(i * 7, 0) = cameras[i].focal; i 289 modules/stitching/src/motion_estimators.cpp cam_params_.at<double>(i * 7 + 1, 0) = cameras[i].ppx; i 290 modules/stitching/src/motion_estimators.cpp cam_params_.at<double>(i * 7 + 2, 0) = cameras[i].ppy; i 291 modules/stitching/src/motion_estimators.cpp cam_params_.at<double>(i * 7 + 3, 0) = cameras[i].aspect; i 293 modules/stitching/src/motion_estimators.cpp svd(cameras[i].R, SVD::FULL_UV); i 301 modules/stitching/src/motion_estimators.cpp cam_params_.at<double>(i * 7 + 4, 0) = rvec.at<float>(0, 0); i 302 modules/stitching/src/motion_estimators.cpp cam_params_.at<double>(i * 7 + 5, 0) = rvec.at<float>(1, 0); i 303 modules/stitching/src/motion_estimators.cpp cam_params_.at<double>(i * 7 + 6, 0) = rvec.at<float>(2, 0); i 310 modules/stitching/src/motion_estimators.cpp for (int i = 0; i < num_images_; ++i) i 312 modules/stitching/src/motion_estimators.cpp cameras[i].focal = cam_params_.at<double>(i * 7, 0); i 313 modules/stitching/src/motion_estimators.cpp cameras[i].ppx = cam_params_.at<double>(i * 7 + 1, 0); i 314 modules/stitching/src/motion_estimators.cpp cameras[i].ppy = cam_params_.at<double>(i * 7 + 2, 0); i 315 modules/stitching/src/motion_estimators.cpp cameras[i].aspect = cam_params_.at<double>(i * 7 + 3, 0); i 318 modules/stitching/src/motion_estimators.cpp rvec.at<double>(0, 0) = cam_params_.at<double>(i * 7 + 4, 0); i 319 modules/stitching/src/motion_estimators.cpp rvec.at<double>(1, 0) = cam_params_.at<double>(i * 7 + 5, 0); i 320 modules/stitching/src/motion_estimators.cpp rvec.at<double>(2, 0) = cam_params_.at<double>(i * 7 + 6, 0); i 321 modules/stitching/src/motion_estimators.cpp Rodrigues(rvec, cameras[i].R); i 324 modules/stitching/src/motion_estimators.cpp cameras[i].R.convertTo(tmp, CV_32F); i 325 modules/stitching/src/motion_estimators.cpp cameras[i].R = tmp; i 337 modules/stitching/src/motion_estimators.cpp int i = edges_[edge_idx].first; i 339 modules/stitching/src/motion_estimators.cpp double f1 = cam_params_.at<double>(i * 7, 0); i 341 modules/stitching/src/motion_estimators.cpp double ppx1 = cam_params_.at<double>(i * 7 + 1, 0); i 343 modules/stitching/src/motion_estimators.cpp double ppy1 = cam_params_.at<double>(i * 7 + 2, 0); i 345 modules/stitching/src/motion_estimators.cpp double a1 = cam_params_.at<double>(i * 7 + 3, 0); i 351 modules/stitching/src/motion_estimators.cpp rvec.at<double>(0, 0) = cam_params_.at<double>(i * 7 + 4, 0); i 352 modules/stitching/src/motion_estimators.cpp rvec.at<double>(1, 0) = cam_params_.at<double>(i * 7 + 5, 0); i 353 modules/stitching/src/motion_estimators.cpp rvec.at<double>(2, 0) = cam_params_.at<double>(i * 7 + 6, 0); i 363 modules/stitching/src/motion_estimators.cpp const ImageFeatures& features1 = features_[i]; i 365 modules/stitching/src/motion_estimators.cpp const MatchesInfo& matches_info = pairwise_matches_[i * num_images_ + j]; i 405 modules/stitching/src/motion_estimators.cpp for (int i = 0; i < num_images_; ++i) i 409 modules/stitching/src/motion_estimators.cpp val = cam_params_.at<double>(i * 7, 0); i 410 modules/stitching/src/motion_estimators.cpp cam_params_.at<double>(i * 7, 0) = val - step; i 412 modules/stitching/src/motion_estimators.cpp cam_params_.at<double>(i * 7, 0) = val + step; i 414 modules/stitching/src/motion_estimators.cpp calcDeriv(err1_, err2_, 2 * step, jac.col(i * 7)); i 415 modules/stitching/src/motion_estimators.cpp cam_params_.at<double>(i * 7, 0) = val; i 419 modules/stitching/src/motion_estimators.cpp val = cam_params_.at<double>(i * 7 + 1, 0); i 420 modules/stitching/src/motion_estimators.cpp cam_params_.at<double>(i * 7 + 1, 0) = val - step; i 422 modules/stitching/src/motion_estimators.cpp cam_params_.at<double>(i * 7 + 1, 0) = val + step; i 424 modules/stitching/src/motion_estimators.cpp calcDeriv(err1_, err2_, 2 * step, jac.col(i * 7 + 1)); i 425 modules/stitching/src/motion_estimators.cpp cam_params_.at<double>(i * 7 + 1, 0) = val; i 429 modules/stitching/src/motion_estimators.cpp val = cam_params_.at<double>(i * 7 + 2, 0); i 430 modules/stitching/src/motion_estimators.cpp cam_params_.at<double>(i * 7 + 2, 0) = val - step; i 432 modules/stitching/src/motion_estimators.cpp cam_params_.at<double>(i * 7 + 2, 0) = val + step; i 434 modules/stitching/src/motion_estimators.cpp calcDeriv(err1_, err2_, 2 * step, jac.col(i * 7 + 2)); i 435 modules/stitching/src/motion_estimators.cpp cam_params_.at<double>(i * 7 + 2, 0) = val; i 439 modules/stitching/src/motion_estimators.cpp val = cam_params_.at<double>(i * 7 + 3, 0); i 440 modules/stitching/src/motion_estimators.cpp cam_params_.at<double>(i * 7 + 3, 0) = val - step; i 442 modules/stitching/src/motion_estimators.cpp cam_params_.at<double>(i * 7 + 3, 0) = val + step; i 444 modules/stitching/src/motion_estimators.cpp calcDeriv(err1_, err2_, 2 * step, jac.col(i * 7 + 3)); i 445 modules/stitching/src/motion_estimators.cpp cam_params_.at<double>(i * 7 + 3, 0) = val; i 449 modules/stitching/src/motion_estimators.cpp val = cam_params_.at<double>(i * 7 + j, 0); i 450 modules/stitching/src/motion_estimators.cpp cam_params_.at<double>(i * 7 + j, 0) = val - step; i 452 modules/stitching/src/motion_estimators.cpp cam_params_.at<double>(i * 7 + j, 0) = val + step; i 454 modules/stitching/src/motion_estimators.cpp calcDeriv(err1_, err2_, 2 * step, jac.col(i * 7 + j)); i 455 modules/stitching/src/motion_estimators.cpp cam_params_.at<double>(i * 7 + j, 0) = val; i 467 modules/stitching/src/motion_estimators.cpp for (int i = 0; i < num_images_; ++i) i 469 modules/stitching/src/motion_estimators.cpp cam_params_.at<double>(i * 4, 0) = cameras[i].focal; i 471 modules/stitching/src/motion_estimators.cpp svd(cameras[i].R, SVD::FULL_UV); i 479 modules/stitching/src/motion_estimators.cpp cam_params_.at<double>(i * 4 + 1, 0) = rvec.at<float>(0, 0); i 480 modules/stitching/src/motion_estimators.cpp cam_params_.at<double>(i * 4 + 2, 0) = rvec.at<float>(1, 0); i 481 modules/stitching/src/motion_estimators.cpp cam_params_.at<double>(i * 4 + 3, 0) = rvec.at<float>(2, 0); i 488 modules/stitching/src/motion_estimators.cpp for (int i = 0; i < num_images_; ++i) i 490 modules/stitching/src/motion_estimators.cpp cameras[i].focal = cam_params_.at<double>(i * 4, 0); i 493 modules/stitching/src/motion_estimators.cpp rvec.at<double>(0, 0) = cam_params_.at<double>(i * 4 + 1, 0); i 494 modules/stitching/src/motion_estimators.cpp rvec.at<double>(1, 0) = cam_params_.at<double>(i * 4 + 2, 0); i 495 modules/stitching/src/motion_estimators.cpp rvec.at<double>(2, 0) = cam_params_.at<double>(i * 4 + 3, 0); i 496 modules/stitching/src/motion_estimators.cpp Rodrigues(rvec, cameras[i].R); i 499 modules/stitching/src/motion_estimators.cpp cameras[i].R.convertTo(tmp, CV_32F); i 500 modules/stitching/src/motion_estimators.cpp cameras[i].R = tmp; i 512 modules/stitching/src/motion_estimators.cpp int i = edges_[edge_idx].first; i 514 modules/stitching/src/motion_estimators.cpp double f1 = cam_params_.at<double>(i * 4, 0); i 520 modules/stitching/src/motion_estimators.cpp rvec.at<double>(0, 0) = cam_params_.at<double>(i * 4 + 1, 0); i 521 modules/stitching/src/motion_estimators.cpp rvec.at<double>(1, 0) = cam_params_.at<double>(i * 4 + 2, 0); i 522 modules/stitching/src/motion_estimators.cpp rvec.at<double>(2, 0) = cam_params_.at<double>(i * 4 + 3, 0); i 532 modules/stitching/src/motion_estimators.cpp const ImageFeatures& features1 = features_[i]; i 534 modules/stitching/src/motion_estimators.cpp const MatchesInfo& matches_info = pairwise_matches_[i * num_images_ + j]; i 586 modules/stitching/src/motion_estimators.cpp for (int i = 0; i < num_images_; ++i) i 590 modules/stitching/src/motion_estimators.cpp val = cam_params_.at<double>(i * 4 + j, 0); i 591 modules/stitching/src/motion_estimators.cpp cam_params_.at<double>(i * 4 + j, 0) = val - step; i 593 modules/stitching/src/motion_estimators.cpp cam_params_.at<double>(i * 4 + j, 0) = val + step; i 595 modules/stitching/src/motion_estimators.cpp calcDeriv(err1_, err2_, 2 * step, jac.col(i * 4 + j)); i 596 modules/stitching/src/motion_estimators.cpp cam_params_.at<double>(i * 4 + j, 0) = val; i 617 modules/stitching/src/motion_estimators.cpp for (size_t i = 0; i < rmats.size(); ++i) i 619 modules/stitching/src/motion_estimators.cpp Mat col = rmats[i].col(0); i 634 modules/stitching/src/motion_estimators.cpp for (size_t i = 0; i < rmats.size(); ++i) i 635 modules/stitching/src/motion_estimators.cpp img_k += rmats[i].col(2); i 651 modules/stitching/src/motion_estimators.cpp for (size_t i = 0; i < rmats.size(); ++i) i 652 modules/stitching/src/motion_estimators.cpp conf += rg0.dot(rmats[i].col(0)); i 661 modules/stitching/src/motion_estimators.cpp for (size_t i = 0; i < rmats.size(); ++i) i 662 modules/stitching/src/motion_estimators.cpp conf -= rg1.dot(rmats[i].col(0)); i 678 modules/stitching/src/motion_estimators.cpp for (size_t i = 0; i < rmats.size(); ++i) i 679 modules/stitching/src/motion_estimators.cpp rmats[i] = R * rmats[i]; i 697 modules/stitching/src/motion_estimators.cpp for (int i = 0; i < num_images; ++i) i 701 modules/stitching/src/motion_estimators.cpp if (pairwise_matches[i*num_images + j].confidence < conf_threshold) i 703 modules/stitching/src/motion_estimators.cpp int comp1 = comps.findSetByElem(i); i 708 modules/stitching/src/motion_estimators.cpp span_tree_edges.insert(std::make_pair(i, j)); i 737 modules/stitching/src/motion_estimators.cpp for (size_t i = 0; i < comps.size.size(); ++i) i 739 modules/stitching/src/motion_estimators.cpp if (comps.size[comps.findSetByElem((int)i)] == 1) i 741 modules/stitching/src/motion_estimators.cpp String name = pathes[i]; i 759 modules/stitching/src/motion_estimators.cpp for (int i = 0; i < num_images; ++i) i 763 modules/stitching/src/motion_estimators.cpp if (pairwise_matches[i*num_images + j].confidence < conf_threshold) i 765 modules/stitching/src/motion_estimators.cpp int comp1 = comps.findSetByElem(i); i 776 modules/stitching/src/motion_estimators.cpp for (int i = 0; i < num_images; ++i) i 777 modules/stitching/src/motion_estimators.cpp if (comps.findSetByElem(i) == max_comp) i 778 modules/stitching/src/motion_estimators.cpp indices.push_back(i); i 780 modules/stitching/src/motion_estimators.cpp indices_removed.push_back(i); i 784 modules/stitching/src/motion_estimators.cpp for (size_t i = 0; i < indices.size(); ++i) i 786 modules/stitching/src/motion_estimators.cpp features_subset.push_back(features[indices[i]]); i 789 modules/stitching/src/motion_estimators.cpp pairwise_matches_subset.push_back(pairwise_matches[indices[i]*num_images + indices[j]]); i 790 modules/stitching/src/motion_estimators.cpp pairwise_matches_subset.back().src_img_idx = static_cast<int>(i); i 800 modules/stitching/src/motion_estimators.cpp for (size_t i = 1; i < indices_removed.size(); ++i) i 801 modules/stitching/src/motion_estimators.cpp LOG(", " << indices_removed[i]+1); i 819 modules/stitching/src/motion_estimators.cpp for (int i = 0; i < num_images; ++i) i 823 modules/stitching/src/motion_estimators.cpp if (pairwise_matches[i * num_images + j].H.empty()) i 825 modules/stitching/src/motion_estimators.cpp float conf = static_cast<float>(pairwise_matches[i * num_images + j].num_inliers); i 826 modules/stitching/src/motion_estimators.cpp graph.addEdge(i, j, conf); i 827 modules/stitching/src/motion_estimators.cpp edges.push_back(GraphEdge(i, j, conf)); i 837 modules/stitching/src/motion_estimators.cpp for (size_t i = 0; i < edges.size(); ++i) i 839 modules/stitching/src/motion_estimators.cpp int comp1 = comps.findSetByElem(edges[i].from); i 840 modules/stitching/src/motion_estimators.cpp int comp2 = comps.findSetByElem(edges[i].to); i 844 modules/stitching/src/motion_estimators.cpp span_tree.addEdge(edges[i].from, edges[i].to, edges[i].weight); i 845 modules/stitching/src/motion_estimators.cpp span_tree.addEdge(edges[i].to, edges[i].from, edges[i].weight); i 846 modules/stitching/src/motion_estimators.cpp span_tree_powers[edges[i].from]++; i 847 modules/stitching/src/motion_estimators.cpp span_tree_powers[edges[i].to]++; i 853 modules/stitching/src/motion_estimators.cpp for (int i = 0; i < num_images; ++i) i 854 modules/stitching/src/motion_estimators.cpp if (span_tree_powers[i] == 1) i 855 modules/stitching/src/motion_estimators.cpp span_tree_leafs.push_back(i); i 860 modules/stitching/src/motion_estimators.cpp for (size_t i = 0; i < span_tree_leafs.size(); ++i) i 863 modules/stitching/src/motion_estimators.cpp span_tree.walkBreadthFirst(span_tree_leafs[i], IncDistance(cur_dists)); i 870 modules/stitching/src/motion_estimators.cpp for (int i = 1; i < num_images; ++i) i 871 modules/stitching/src/motion_estimators.cpp if (min_max_dist > max_dists[i]) i 872 modules/stitching/src/motion_estimators.cpp min_max_dist = max_dists[i]; i 876 modules/stitching/src/motion_estimators.cpp for (int i = 0; i < num_images; ++i) i 877 modules/stitching/src/motion_estimators.cpp if (max_dists[i] == min_max_dist) i 878 modules/stitching/src/motion_estimators.cpp centers.push_back(i); i 62 modules/stitching/src/seam_finders.cpp for (size_t i = 0; i < src.size(); ++i) i 63 modules/stitching/src/seam_finders.cpp sizes_[i] = src[i].size(); i 74 modules/stitching/src/seam_finders.cpp for (size_t i = 0; i < sizes_.size() - 1; ++i) i 76 modules/stitching/src/seam_finders.cpp for (size_t j = i + 1; j < sizes_.size(); ++j) i 79 modules/stitching/src/seam_finders.cpp if (overlapRoi(corners_[i], corners_[j], sizes_[i], sizes_[j], roi)) i 80 modules/stitching/src/seam_finders.cpp findInPair(i, j, roi); i 180 modules/stitching/src/seam_finders.cpp for (size_t i = 0; i+1 < src.size(); ++i) i 181 modules/stitching/src/seam_finders.cpp for (size_t j = i+1; j < src.size(); ++j) i 182 modules/stitching/src/seam_finders.cpp pairs.push_back(std::make_pair(i, j)); i 186 modules/stitching/src/seam_finders.cpp for (size_t i = 0; i < src.size(); ++i) _src[i] = src[i].getMat(ACCESS_READ); i 191 modules/stitching/src/seam_finders.cpp for (size_t i = 0; i < pairs.size(); ++i) i 193 modules/stitching/src/seam_finders.cpp size_t i0 = pairs[i].first, i1 = pairs[i].second; i 349 modules/stitching/src/seam_finders.cpp for (size_t i = 0; i < contours_[ci].size(); ++i) i 351 modules/stitching/src/seam_finders.cpp int x = contours_[ci][i].x; i 352 modules/stitching/src/seam_finders.cpp int y = contours_[ci][i].y; i 460 modules/stitching/src/seam_finders.cpp for (int i = 0; i < 2; ++i) i 464 modules/stitching/src/seam_finders.cpp int x0 = tls_[c[i]].x, x1 = brs_[c[i]].x; i 465 modules/stitching/src/seam_finders.cpp int y0 = tls_[c[i]].y, y1 = brs_[c[i]].y; i 467 modules/stitching/src/seam_finders.cpp tls_[c[i]] = Point(std::numeric_limits<int>::max(), std::numeric_limits<int>::max()); i 468 modules/stitching/src/seam_finders.cpp brs_[c[i]] = Point(std::numeric_limits<int>::min(), std::numeric_limits<int>::min()); i 469 modules/stitching/src/seam_finders.cpp contours_[c[i]].clear(); i 475 modules/stitching/src/seam_finders.cpp if (labels_(y, x) == l[i]) i 477 modules/stitching/src/seam_finders.cpp tls_[c[i]].x = std::min(tls_[c[i]].x, x); i 478 modules/stitching/src/seam_finders.cpp tls_[c[i]].y = std::min(tls_[c[i]].y, y); i 479 modules/stitching/src/seam_finders.cpp brs_[c[i]].x = std::max(brs_[c[i]].x, x+1); i 480 modules/stitching/src/seam_finders.cpp brs_[c[i]].y = std::max(brs_[c[i]].y, y+1); i 482 modules/stitching/src/seam_finders.cpp if ((x == 0 || labels_(y, x-1) != l[i]) || (x == unionSize_.width-1 || labels_(y, x+1) != l[i]) || i 483 modules/stitching/src/seam_finders.cpp (y == 0 || labels_(y-1, x) != l[i]) || (y == unionSize_.height-1 || labels_(y+1, x) != l[i])) i 485 modules/stitching/src/seam_finders.cpp contours_[c[i]].push_back(Point(x, y)); i 593 modules/stitching/src/seam_finders.cpp for (size_t i = 0; i < contours_[comp1].size(); ++i) i 595 modules/stitching/src/seam_finders.cpp int x = contours_[comp1][i].x; i 596 modules/stitching/src/seam_finders.cpp int y = contours_[comp1][i].y; i 624 modules/stitching/src/seam_finders.cpp for (size_t i = 0; i < specialPoints.size(); ++i) i 626 modules/stitching/src/seam_finders.cpp sum[labels[i]] += specialPoints[i]; i 627 modules/stitching/src/seam_finders.cpp points[labels[i]].push_back(specialPoints[i]); i 635 modules/stitching/src/seam_finders.cpp for (int i = 0; i < nlabels-1; ++i) i 637 modules/stitching/src/seam_finders.cpp for (int j = i+1; j < nlabels; ++j) i 639 modules/stitching/src/seam_finders.cpp double size1 = static_cast<double>(points[i].size()), size2 = static_cast<double>(points[j].size()); i 640 modules/stitching/src/seam_finders.cpp double cx1 = cvRound(sum[i].x / size1), cy1 = cvRound(sum[i].y / size1); i 647 modules/stitching/src/seam_finders.cpp idx[0] = i; i 657 modules/stitching/src/seam_finders.cpp for (int i = 0; i < 2; ++i) i 659 modules/stitching/src/seam_finders.cpp double size = static_cast<double>(points[idx[i]].size()); i 660 modules/stitching/src/seam_finders.cpp double cx = cvRound(sum[idx[i]].x / size); i 661 modules/stitching/src/seam_finders.cpp double cy = cvRound(sum[idx[i]].y / size); i 663 modules/stitching/src/seam_finders.cpp size_t closest = points[idx[i]].size(); i 666 modules/stitching/src/seam_finders.cpp for (size_t j = 0; j < points[idx[i]].size(); ++j) i 668 modules/stitching/src/seam_finders.cpp double dist = (points[idx[i]][j].x - cx) * (points[idx[i]][j].x - cx) + i 669 modules/stitching/src/seam_finders.cpp (points[idx[i]][j].y - cy) * (points[idx[i]][j].y - cy); i 677 modules/stitching/src/seam_finders.cpp p[i] = points[idx[i]][closest]; i 939 modules/stitching/src/seam_finders.cpp for (size_t i = 0; i < contours_[comp1].size(); ++i) i 940 modules/stitching/src/seam_finders.cpp mask(contours_[comp1][i] - tls_[comp1]) = 255; i 942 modules/stitching/src/seam_finders.cpp for (size_t i = 0; i < seam.size(); ++i) i 943 modules/stitching/src/seam_finders.cpp mask(seam[i] - tls_[comp1]) = 255; i 956 modules/stitching/src/seam_finders.cpp for (size_t i = 0; i < contours_[comp1].size(); ++i) i 958 modules/stitching/src/seam_finders.cpp int x = contours_[comp1][i].x - tls_[comp1].x; i 959 modules/stitching/src/seam_finders.cpp int y = contours_[comp1][i].y - tls_[comp1].y; i 984 modules/stitching/src/seam_finders.cpp for (size_t i = 0; i < seam.size(); ++i) i 986 modules/stitching/src/seam_finders.cpp int x = seam[i].x - tls_[comp1].x; i 987 modules/stitching/src/seam_finders.cpp int y = seam[i].y - tls_[comp1].y; i 997 modules/stitching/src/seam_finders.cpp for (size_t i = 0; i < seam.size(); ++i) i 999 modules/stitching/src/seam_finders.cpp int x = seam[i].x - tls_[comp1].x; i 1000 modules/stitching/src/seam_finders.cpp int y = seam[i].y - tls_[comp1].y; i 1015 modules/stitching/src/seam_finders.cpp for (int i = 1; i <= ncomps; ++i) i 1017 modules/stitching/src/seam_finders.cpp connect2.insert(std::make_pair(i, 0)); i 1018 modules/stitching/src/seam_finders.cpp connectOther.insert(std::make_pair(i, 0)); i 1021 modules/stitching/src/seam_finders.cpp for (size_t i = 0; i < contours_[comp1].size(); ++i) i 1023 modules/stitching/src/seam_finders.cpp int x = contours_[comp1][i].x; i 1024 modules/stitching/src/seam_finders.cpp int y = contours_[comp1][i].y; i 1092 modules/stitching/src/seam_finders.cpp for (size_t i = 0; i < src.size(); ++i) i 1094 modules/stitching/src/seam_finders.cpp CV_Assert(src[i].channels() == 3); i 1095 modules/stitching/src/seam_finders.cpp Sobel(src[i], dx, CV_32F, 1, 0); i 1096 modules/stitching/src/seam_finders.cpp Sobel(src[i], dy, CV_32F, 0, 1); i 1097 modules/stitching/src/seam_finders.cpp dx_[i].create(src[i].size(), CV_32F); i 1098 modules/stitching/src/seam_finders.cpp dy_[i].create(src[i].size(), CV_32F); i 1099 modules/stitching/src/seam_finders.cpp for (int y = 0; y < src[i].rows; ++y) i 1103 modules/stitching/src/seam_finders.cpp float* dx_row_ = dx_[i].ptr<float>(y); i 1104 modules/stitching/src/seam_finders.cpp float* dy_row_ = dy_[i].ptr<float>(y); i 1105 modules/stitching/src/seam_finders.cpp for (int x = 0; x < src[i].cols; ++x) i 1337 modules/stitching/src/seam_finders.cpp for (size_t i = 0; i < src.size(); ++i) i 1339 modules/stitching/src/seam_finders.cpp CV_Assert(src[i].channels() == 3); i 1340 modules/stitching/src/seam_finders.cpp Sobel(src[i], dx, CV_32F, 1, 0); i 1341 modules/stitching/src/seam_finders.cpp Sobel(src[i], dy, CV_32F, 0, 1); i 1342 modules/stitching/src/seam_finders.cpp dx_[i].create(src[i].size(), CV_32F); i 1343 modules/stitching/src/seam_finders.cpp dy_[i].create(src[i].size(), CV_32F); i 1344 modules/stitching/src/seam_finders.cpp for (int y = 0; y < src[i].rows; ++y) i 1348 modules/stitching/src/seam_finders.cpp float* dx_row_ = dx_[i].ptr<float>(y); i 1349 modules/stitching/src/seam_finders.cpp float* dy_row_ = dy_[i].ptr<float>(y); i 1350 modules/stitching/src/seam_finders.cpp for (int x = 0; x < src[i].cols; ++x) i 132 modules/stitching/src/stitcher.cpp for (size_t i = 0; i < imgs.size(); ++i) i 134 modules/stitching/src/stitcher.cpp imgs_[i] = imgs[i]; i 135 modules/stitching/src/stitcher.cpp resize(imgs[i], img, Size(), seam_scale_, seam_scale_); i 136 modules/stitching/src/stitcher.cpp seam_est_imgs_[i] = img.clone(); i 142 modules/stitching/src/stitcher.cpp for (size_t i = 0; i < indices_.size(); ++i) i 144 modules/stitching/src/stitcher.cpp imgs_subset.push_back(imgs_[indices_[i]]); i 145 modules/stitching/src/stitcher.cpp seam_est_imgs_subset.push_back(seam_est_imgs_[indices_[i]]); i 165 modules/stitching/src/stitcher.cpp for (size_t i = 0; i < imgs_.size(); ++i) i 167 modules/stitching/src/stitcher.cpp masks[i].create(seam_est_imgs_[i].size(), CV_8U); i 168 modules/stitching/src/stitcher.cpp masks[i].setTo(Scalar::all(255)); i 173 modules/stitching/src/stitcher.cpp for (size_t i = 0; i < imgs_.size(); ++i) i 176 modules/stitching/src/stitcher.cpp cameras_[i].K().convertTo(K, CV_32F); i 182 modules/stitching/src/stitcher.cpp corners[i] = w->warp(seam_est_imgs_[i], K, cameras_[i].R, INTER_LINEAR, BORDER_CONSTANT, images_warped[i]); i 183 modules/stitching/src/stitcher.cpp sizes[i] = images_warped[i].size(); i 185 modules/stitching/src/stitcher.cpp w->warp(masks[i], K, cameras_[i].R, INTER_NEAREST, BORDER_CONSTANT, masks_warped[i]); i 189 modules/stitching/src/stitcher.cpp for (size_t i = 0; i < imgs_.size(); ++i) i 190 modules/stitching/src/stitcher.cpp images_warped[i].convertTo(images_warped_f[i], CV_32F); i 244 modules/stitching/src/stitcher.cpp for (size_t i = 0; i < imgs_.size(); ++i) i 247 modules/stitching/src/stitcher.cpp cameras_[i].focal *= compose_work_aspect; i 248 modules/stitching/src/stitcher.cpp cameras_[i].ppx *= compose_work_aspect; i 249 modules/stitching/src/stitcher.cpp cameras_[i].ppy *= compose_work_aspect; i 252 modules/stitching/src/stitcher.cpp Size sz = full_img_sizes_[i]; i 255 modules/stitching/src/stitcher.cpp sz.width = cvRound(full_img_sizes_[i].width * compose_scale); i 256 modules/stitching/src/stitcher.cpp sz.height = cvRound(full_img_sizes_[i].height * compose_scale); i 260 modules/stitching/src/stitcher.cpp cameras_[i].K().convertTo(K, CV_32F); i 261 modules/stitching/src/stitcher.cpp Rect roi = w->warpRoi(sz, K, cameras_[i].R); i 262 modules/stitching/src/stitcher.cpp corners[i] = roi.tl(); i 263 modules/stitching/src/stitcher.cpp sizes[i] = roi.size(); i 402 modules/stitching/src/stitcher.cpp for (size_t i = 0; i < imgs_.size(); ++i) i 404 modules/stitching/src/stitcher.cpp full_img = imgs_[i]; i 405 modules/stitching/src/stitcher.cpp full_img_sizes_[i] = full_img.size(); i 430 modules/stitching/src/stitcher.cpp (*features_finder_)(img, features_[i]); i 433 modules/stitching/src/stitcher.cpp std::vector<Rect> rois(rois_[i].size()); i 434 modules/stitching/src/stitcher.cpp for (size_t j = 0; j < rois_[i].size(); ++j) i 436 modules/stitching/src/stitcher.cpp Point tl(cvRound(rois_[i][j].x * work_scale_), cvRound(rois_[i][j].y * work_scale_)); i 437 modules/stitching/src/stitcher.cpp Point br(cvRound(rois_[i][j].br().x * work_scale_), cvRound(rois_[i][j].br().y * work_scale_)); i 440 modules/stitching/src/stitcher.cpp (*features_finder_)(img, features_[i], rois); i 442 modules/stitching/src/stitcher.cpp features_[i].img_idx = (int)i; i 443 modules/stitching/src/stitcher.cpp LOGLN("Features in image #" << i+1 << ": " << features_[i].keypoints.size()); i 446 modules/stitching/src/stitcher.cpp seam_est_imgs_[i] = img.clone(); i 469 modules/stitching/src/stitcher.cpp for (size_t i = 0; i < indices_.size(); ++i) i 471 modules/stitching/src/stitcher.cpp imgs_subset.push_back(imgs_[indices_[i]]); i 472 modules/stitching/src/stitcher.cpp seam_est_imgs_subset.push_back(seam_est_imgs_[indices_[i]]); i 473 modules/stitching/src/stitcher.cpp full_img_sizes_subset.push_back(full_img_sizes_[indices_[i]]); i 495 modules/stitching/src/stitcher.cpp for (size_t i = 0; i < cameras_.size(); ++i) i 498 modules/stitching/src/stitcher.cpp cameras_[i].R.convertTo(R, CV_32F); i 499 modules/stitching/src/stitcher.cpp cameras_[i].R = R; i 509 modules/stitching/src/stitcher.cpp for (size_t i = 0; i < cameras_.size(); ++i) i 512 modules/stitching/src/stitcher.cpp focals.push_back(cameras_[i].focal); i 524 modules/stitching/src/stitcher.cpp for (size_t i = 0; i < cameras_.size(); ++i) i 525 modules/stitching/src/stitcher.cpp rmats.push_back(cameras_[i].R.clone()); i 527 modules/stitching/src/stitcher.cpp for (size_t i = 0; i < cameras_.size(); ++i) i 528 modules/stitching/src/stitcher.cpp cameras_[i].R = rmats[i]; i 53 modules/stitching/src/util.cpp for (int i = 0; i < n; ++i) i 54 modules/stitching/src/util.cpp parent[i] = i; i 119 modules/stitching/src/util.cpp for (size_t i = 0; i < images.size(); ++i) i 120 modules/stitching/src/util.cpp sizes[i] = images[i].size(); i 130 modules/stitching/src/util.cpp for (size_t i = 0; i < corners.size(); ++i) i 132 modules/stitching/src/util.cpp tl.x = std::min(tl.x, corners[i].x); i 133 modules/stitching/src/util.cpp tl.y = std::min(tl.y, corners[i].y); i 134 modules/stitching/src/util.cpp br.x = std::max(br.x, corners[i].x + sizes[i].width); i 135 modules/stitching/src/util.cpp br.y = std::max(br.y, corners[i].y + sizes[i].height); i 145 modules/stitching/src/util.cpp for (size_t i = 0; i < corners.size(); ++i) i 147 modules/stitching/src/util.cpp tl.x = std::max(tl.x, corners[i].x); i 148 modules/stitching/src/util.cpp tl.y = std::max(tl.y, corners[i].y); i 149 modules/stitching/src/util.cpp br.x = std::min(br.x, corners[i].x + sizes[i].width); i 150 modules/stitching/src/util.cpp br.y = std::min(br.y, corners[i].y + sizes[i].height); i 159 modules/stitching/src/util.cpp for (size_t i = 0; i < corners.size(); ++i) i 161 modules/stitching/src/util.cpp tl.x = std::min(tl.x, corners[i].x); i 162 modules/stitching/src/util.cpp tl.y = std::min(tl.y, corners[i].y); i 171 modules/stitching/src/util.cpp for (int i = 0; i < size; ++i) i 173 modules/stitching/src/util.cpp if (randu<int>() % (size - i) < count) i 175 modules/stitching/src/util.cpp subset.push_back(i); i 62 modules/stitching/test/test_matchers.cpp for (size_t i = 0; i < roi_features.keypoints.size(); ++i) i 64 modules/stitching/test/test_matchers.cpp Point2f pt = roi_features.keypoints[i].pt; i 76 modules/superres/src/btv_l1.cpp for (int i = baseIdx - 1; i >= 0; --i) i 78 modules/superres/src/btv_l1.cpp add(relForwardMotions[i + 1], forwardMotions[i], relForwardMotions[i]); i 79 modules/superres/src/btv_l1.cpp add(relBackwardMotions[i + 1], backwardMotions[i + 1], relBackwardMotions[i]); i 82 modules/superres/src/btv_l1.cpp for (int i = baseIdx + 1; i < count; ++i) i 84 modules/superres/src/btv_l1.cpp add(relForwardMotions[i - 1], backwardMotions[i], relForwardMotions[i]); i 85 modules/superres/src/btv_l1.cpp add(relBackwardMotions[i - 1], forwardMotions[i - 1], relBackwardMotions[i]); i 117 modules/superres/src/btv_l1.cpp for (int i = baseIdx - 1; i >= 0; --i) i 119 modules/superres/src/btv_l1.cpp add(relForwardMotions[i + 1], forwardMotions[i], relForwardMotions[i]); i 120 modules/superres/src/btv_l1.cpp add(relBackwardMotions[i + 1], backwardMotions[i + 1], relBackwardMotions[i]); i 123 modules/superres/src/btv_l1.cpp for (int i = baseIdx + 1; i < count; ++i) i 125 modules/superres/src/btv_l1.cpp add(relForwardMotions[i - 1], backwardMotions[i], relForwardMotions[i]); i 126 modules/superres/src/btv_l1.cpp add(relBackwardMotions[i - 1], forwardMotions[i - 1], relBackwardMotions[i]); i 138 modules/superres/src/btv_l1.cpp for (size_t i = 0; i < lowResMotions.size(); ++i) i 140 modules/superres/src/btv_l1.cpp resize(lowResMotions[i], highResMotions[i], Size(), scale, scale, INTER_LINEAR); // TODO i 141 modules/superres/src/btv_l1.cpp multiply(highResMotions[i], Scalar::all(scale), highResMotions[i]); i 159 modules/superres/src/btv_l1.cpp for (size_t i = 0; i < lowResMotions.size(); ++i) i 161 modules/superres/src/btv_l1.cpp resize(lowResMotions[i], highResMotions[i], Size(), scale, scale, INTER_CUBIC); i 162 modules/superres/src/btv_l1.cpp multiply(highResMotions[i], Scalar::all(scale), highResMotions[i]); i 377 modules/superres/src/btv_l1.cpp for (int i = range.start; i < range.end; ++i) i 379 modules/superres/src/btv_l1.cpp const T * const srcRow = src.ptr<T>(i); i 380 modules/superres/src/btv_l1.cpp T * const dstRow = dst.ptr<T>(i); i 388 modules/superres/src/btv_l1.cpp const T* srcRow2 = src.ptr<T>(i - m); i 389 modules/superres/src/btv_l1.cpp const T* srcRow3 = src.ptr<T>(i + m); i 600 modules/superres/src/btv_l1.cpp for (size_t i = 0; i < uhighResForwardMotions_.size(); ++i) i 601 modules/superres/src/btv_l1.cpp buildMotionMaps(uhighResForwardMotions_[i], uhighResBackwardMotions_[i], uforwardMaps_[i], ubackwardMaps_[i]); i 615 modules/superres/src/btv_l1.cpp for (int i = 0; i < iterations_; ++i) i 701 modules/superres/src/btv_l1.cpp for (size_t i = 0; i < highResForwardMotions_.size(); ++i) i 702 modules/superres/src/btv_l1.cpp buildMotionMaps(highResForwardMotions_[i], highResBackwardMotions_[i], forwardMaps_[i], backwardMaps_[i]); i 716 modules/superres/src/btv_l1.cpp for (int i = 0; i < iterations_; ++i) i 908 modules/superres/src/btv_l1.cpp for (int i = 0; i <= temporalAreaRadius_; ++i) i 909 modules/superres/src/btv_l1.cpp processFrame(i); i 936 modules/superres/src/btv_l1.cpp for (int i = 0; i <= temporalAreaRadius_; ++i) i 937 modules/superres/src/btv_l1.cpp processFrame(i); i 1046 modules/superres/src/btv_l1.cpp for (int i = startIdx, k = 0; i <= endIdx; ++i, ++k) i 1048 modules/superres/src/btv_l1.cpp if (i == procIdx) i 1051 modules/superres/src/btv_l1.cpp usrcFrames_[k] = at(i, uframes_); i 1053 modules/superres/src/btv_l1.cpp if (i < endIdx) i 1054 modules/superres/src/btv_l1.cpp usrcForwardMotions_[k] = at(i, uforwardMotions_); i 1055 modules/superres/src/btv_l1.cpp if (i > startIdx) i 1056 modules/superres/src/btv_l1.cpp usrcBackwardMotions_[k] = at(i, ubackwardMotions_); i 1083 modules/superres/src/btv_l1.cpp for (int i = startIdx, k = 0; i <= endIdx; ++i, ++k) i 1085 modules/superres/src/btv_l1.cpp if (i == procIdx) i 1088 modules/superres/src/btv_l1.cpp srcFrames_[k] = at(i, frames_); i 1090 modules/superres/src/btv_l1.cpp if (i < endIdx) i 1091 modules/superres/src/btv_l1.cpp srcForwardMotions_[k] = at(i, forwardMotions_); i 1092 modules/superres/src/btv_l1.cpp if (i > startIdx) i 1093 modules/superres/src/btv_l1.cpp srcBackwardMotions_[k] = at(i, backwardMotions_); i 99 modules/superres/src/btv_l1_cuda.cpp for (int i = baseIdx - 1; i >= 0; --i) i 101 modules/superres/src/btv_l1_cuda.cpp cuda::add(relForwardMotions[i + 1].first, forwardMotions[i].first, relForwardMotions[i].first); i 102 modules/superres/src/btv_l1_cuda.cpp cuda::add(relForwardMotions[i + 1].second, forwardMotions[i].second, relForwardMotions[i].second); i 104 modules/superres/src/btv_l1_cuda.cpp cuda::add(relBackwardMotions[i + 1].first, backwardMotions[i + 1].first, relBackwardMotions[i].first); i 105 modules/superres/src/btv_l1_cuda.cpp cuda::add(relBackwardMotions[i + 1].second, backwardMotions[i + 1].second, relBackwardMotions[i].second); i 108 modules/superres/src/btv_l1_cuda.cpp for (int i = baseIdx + 1; i < count; ++i) i 110 modules/superres/src/btv_l1_cuda.cpp cuda::add(relForwardMotions[i - 1].first, backwardMotions[i].first, relForwardMotions[i].first); i 111 modules/superres/src/btv_l1_cuda.cpp cuda::add(relForwardMotions[i - 1].second, backwardMotions[i].second, relForwardMotions[i].second); i 113 modules/superres/src/btv_l1_cuda.cpp cuda::add(relBackwardMotions[i - 1].first, forwardMotions[i - 1].first, relBackwardMotions[i].first); i 114 modules/superres/src/btv_l1_cuda.cpp cuda::add(relBackwardMotions[i - 1].second, forwardMotions[i - 1].second, relBackwardMotions[i].second); i 122 modules/superres/src/btv_l1_cuda.cpp for (size_t i = 0; i < lowResMotions.size(); ++i) i 124 modules/superres/src/btv_l1_cuda.cpp cuda::resize(lowResMotions[i].first, highResMotions[i].first, Size(), scale, scale, INTER_CUBIC); i 125 modules/superres/src/btv_l1_cuda.cpp cuda::resize(lowResMotions[i].second, highResMotions[i].second, Size(), scale, scale, INTER_CUBIC); i 127 modules/superres/src/btv_l1_cuda.cpp cuda::multiply(highResMotions[i].first, Scalar::all(scale), highResMotions[i].first); i 128 modules/superres/src/btv_l1_cuda.cpp cuda::multiply(highResMotions[i].second, Scalar::all(scale), highResMotions[i].second); i 314 modules/superres/src/btv_l1_cuda.cpp for (size_t i = 0; i < src.size(); ++i) i 315 modules/superres/src/btv_l1_cuda.cpp filters_[i] = cuda::createGaussianFilter(src[0].type(), -1, Size(blurKernelSize_, blurKernelSize_), blurSigma_); i 337 modules/superres/src/btv_l1_cuda.cpp for (size_t i = 0; i < highResForwardMotions_.size(); ++i) i 338 modules/superres/src/btv_l1_cuda.cpp buildMotionMaps(highResForwardMotions_[i], highResBackwardMotions_[i], forwardMaps_[i], backwardMaps_[i]); i 355 modules/superres/src/btv_l1_cuda.cpp for (int i = 0; i < iterations_; ++i) i 488 modules/superres/src/btv_l1_cuda.cpp for (int i = 0; i <= temporalAreaRadius_; ++i) i 489 modules/superres/src/btv_l1_cuda.cpp processFrame(i); i 559 modules/superres/src/btv_l1_cuda.cpp for (int i = startIdx, k = 0; i <= endIdx; ++i, ++k) i 561 modules/superres/src/btv_l1_cuda.cpp if (i == procIdx) i 564 modules/superres/src/btv_l1_cuda.cpp srcFrames_[k] = at(i, frames_); i 566 modules/superres/src/btv_l1_cuda.cpp if (i < endIdx) i 567 modules/superres/src/btv_l1_cuda.cpp srcForwardMotions_[k] = at(i, forwardMotions_); i 568 modules/superres/src/btv_l1_cuda.cpp if (i > startIdx) i 569 modules/superres/src/btv_l1_cuda.cpp srcBackwardMotions_[k] = at(i, backwardMotions_); i 156 modules/superres/src/optical_flow.cpp for (int i = 0; i < 6; ++i) i 157 modules/superres/src/optical_flow.cpp buf_[i].release(); i 163 modules/superres/src/optical_flow.cpp for (int i = 0; i < 6; ++i) i 164 modules/superres/src/optical_flow.cpp ubuf_[i].release(); i 469 modules/superres/src/optical_flow.cpp for (int i = 0; i < 6; ++i) i 470 modules/superres/src/optical_flow.cpp buf_[i].release(); i 252 modules/superres/test/test_superres.cpp for (int i = 0; i < count; ++i) i 454 modules/ts/include/opencv2/ts.hpp virtual void fill_array( int test_case_idx, int i, int j, Mat& arr ); i 455 modules/ts/include/opencv2/ts.hpp virtual void get_minmax_bounds( int i, int j, int type, Scalar& low, Scalar& high ); i 456 modules/ts/include/opencv2/ts.hpp virtual double get_success_error_level( int test_case_idx, int i, int j ); i 92 modules/ts/include/opencv2/ts/cuda_test.hpp void load(int i); i 66 modules/ts/include/opencv2/ts/ocl_test.hpp for (size_t i = 0; i < src.size(); ++i) i 68 modules/ts/include/opencv2/ts/ocl_test.hpp src[i].copyTo(dst[i]); i 7923 modules/ts/include/opencv2/ts/ts_gtest.h for (size_t i = 0; i != size; i++) { i 7924 modules/ts/include/opencv2/ts/ts_gtest.h if (!internal::ArrayEq(lhs[i], rhs[i])) i 7963 modules/ts/include/opencv2/ts/ts_gtest.h for (size_t i = 0; i != size; i++) { i 7964 modules/ts/include/opencv2/ts/ts_gtest.h internal::CopyArray(from[i], to + i); i 9701 modules/ts/include/opencv2/ts/ts_gtest.h for (size_t i = 1; i != count; i++) { i 9703 modules/ts/include/opencv2/ts/ts_gtest.h UniversalPrint(a[i], os); i 10306 modules/ts/include/opencv2/ts/ts_gtest.h for (T i = begin; i < end; i = i + step) i 10562 modules/ts/include/opencv2/ts/ts_gtest.h int i = 0; i 10565 modules/ts/include/opencv2/ts/ts_gtest.h param_it != generator.end(); ++param_it, ++i) { i 10567 modules/ts/include/opencv2/ts/ts_gtest.h test_name_stream << test_info->test_base_name << "/" << i; i 18010 modules/ts/include/opencv2/ts/ts_gtest.h const TestPartResult& GetTestPartResult(int i) const; i 18015 modules/ts/include/opencv2/ts/ts_gtest.h const TestProperty& GetTestProperty(int i) const; i 18290 modules/ts/include/opencv2/ts/ts_gtest.h const TestInfo* GetTestInfo(int i) const; i 18310 modules/ts/include/opencv2/ts/ts_gtest.h TestInfo* GetMutableTestInfo(int i); i 18687 modules/ts/include/opencv2/ts/ts_gtest.h const TestCase* GetTestCase(int i) const; i 18729 modules/ts/include/opencv2/ts/ts_gtest.h TestCase* GetMutableTestCase(int i); i 105 modules/ts/include/opencv2/ts/ts_perf.hpp for(int i = 0, pos = 0; i < (int)(sizeof(vals)/sizeof(int)); ++i) { \ i 110 modules/ts/include/opencv2/ts/ts_perf.hpp if (val_ == vals[i]) { \ i 137 modules/ts/include/opencv2/ts/ts_perf.hpp for(int i = 0, pos = 0; i < (int)(sizeof(vals)/sizeof(int)); ++i) { \ i 142 modules/ts/include/opencv2/ts/ts_perf.hpp if ((value & vals[i]) == vals[i]) { \ i 143 modules/ts/include/opencv2/ts/ts_perf.hpp value &= ~vals[i]; \ i 303 modules/ts/include/opencv2/ts/ts_perf.hpp for(int i = 0; i < implCode.size(); i++) i 305 modules/ts/include/opencv2/ts/ts_perf.hpp if(impl == implCode[i]) i 306 modules/ts/include/opencv2/ts/ts_perf.hpp out.push_back(funName[i]); i 317 modules/ts/include/opencv2/ts/ts_perf.hpp for(int i = 0; i < implCode.size(); i++) i 322 modules/ts/include/opencv2/ts/ts_perf.hpp if(implCode[i] == savedCode[j] && !funName[i].compare(savedName[j])) i 330 modules/ts/include/opencv2/ts/ts_perf.hpp savedCode.push_back(implCode[i]); i 331 modules/ts/include/opencv2/ts/ts_perf.hpp savedName.push_back(funName[i]); i 265 modules/ts/src/cuda_perf.cpp for (int i = 0; i < cv::cuda::getCudaEnabledDeviceCount(); i++) i 266 modules/ts/src/cuda_perf.cpp cv::cuda::printCudaDeviceInfo(i); i 292 modules/ts/src/cuda_perf.cpp for (size_t i = 0; i < indexies.size(); ++i) i 293 modules/ts/src/cuda_perf.cpp indexies[i] = i; i 309 modules/ts/src/cuda_perf.cpp for (size_t i = 0; i < indexies.size(); ++i) i 311 modules/ts/src/cuda_perf.cpp size_t new_idx = indexies[i]; i 312 modules/ts/src/cuda_perf.cpp new_keypoints[i] = keypoints[new_idx]; i 314 modules/ts/src/cuda_perf.cpp descriptors.row((int) new_idx).copyTo(new_descriptors.row((int) i)); i 152 modules/ts/src/cuda_test.cpp void DeviceManager::load(int i) i 159 modules/ts/src/cuda_test.cpp if (i < 0 || i >= getCudaEnabledDeviceCount()) i 161 modules/ts/src/cuda_test.cpp msg << "Incorrect device number - " << i; i 165 modules/ts/src/cuda_test.cpp DeviceInfo info(i); i 169 modules/ts/src/cuda_test.cpp msg << "Device " << i << " [" << info.name() << "] is NOT compatible with current CUDA module build"; i 183 modules/ts/src/cuda_test.cpp for (int i = 0; i < deviceCount; ++i) i 185 modules/ts/src/cuda_test.cpp DeviceInfo info(i); i 480 modules/ts/src/cuda_test.cpp for (size_t i = 0; i < gold.size(); ++i) i 482 modules/ts/src/cuda_test.cpp const cv::KeyPoint& p1 = gold[i]; i 483 modules/ts/src/cuda_test.cpp const cv::KeyPoint& p2 = actual[i]; i 487 modules/ts/src/cuda_test.cpp return testing::AssertionFailure() << "KeyPoints differ at " << i << "\n" i 508 modules/ts/src/cuda_test.cpp for (size_t i = 0; i < gold.size(); ++i) i 510 modules/ts/src/cuda_test.cpp const cv::KeyPoint& p1 = gold[i]; i 511 modules/ts/src/cuda_test.cpp const cv::KeyPoint& p2 = actual[i]; i 524 modules/ts/src/cuda_test.cpp for (size_t i = 0; i < matches.size(); ++i) i 526 modules/ts/src/cuda_test.cpp const cv::DMatch& m = matches[i]; i 113 modules/ts/src/ocl_test.cpp for (size_t i = 0; i < platforms.size(); i++) i 115 modules/ts/src/ocl_test.cpp const PlatformInfo* platform = &platforms[i]; i 124 modules/ts/src/ocl_test.cpp DUMP_PROPERTY_XML( cv::format("cv_ocl_platform_%d_device_%d", (int)i, (int)j ), i 150 modules/ts/src/ts.cpp for( int i = 0; str[i]; i++ ) i 152 modules/ts/src/ts.cpp int c = tolower(str[i]); i 156 modules/ts/src/ts.cpp (str[i] < 'a' ? str[i] - '0' : str[i] - 'a' + 10); i 473 modules/ts/src/ts.cpp for( int i = 0; tsSigId[i] >= 0; i++ ) i 474 modules/ts/src/ts.cpp signal( tsSigId[i], signalHandler ); i 484 modules/ts/src/ts.cpp for( int i = 0; tsSigId[i] >= 0; i++ ) i 485 modules/ts/src/ts.cpp signal( tsSigId[i], SIG_DFL ); i 527 modules/ts/src/ts.cpp for( int i = 0; i <= CONSOLE_IDX; i++ ) i 528 modules/ts/src/ts.cpp output_buf[i] = string(); i 558 modules/ts/src/ts.cpp for( int i = 0; i < MAX_IDX; i++ ) i 559 modules/ts/src/ts.cpp if( (streams & (1 << i)) ) i 561 modules/ts/src/ts.cpp output_buf[i] += std::string(str); i 592 modules/ts/src/ts.cpp int r, c, i; i 603 modules/ts/src/ts.cpp for(i=0; i<ch; i++) p[i] = vals[i]; i 618 modules/ts/src/ts.cpp int r, c, i; i 625 modules/ts/src/ts.cpp for(i=0; i<ch; i++) s[i] = p[i]; i 627 modules/ts/src/ts.cpp for(i=0; i<ch; i++) p[i] = uchar(s[i]); i 632 modules/ts/src/ts.cpp for(i=0; i<ch; i++) s[i] = p[i]; i 634 modules/ts/src/ts.cpp for(i=0; i<ch; i++) p[i] = uchar(s[i]); i 644 modules/ts/src/ts.cpp for(i=0; i<ch; i++) s[i] = p[i]; i 646 modules/ts/src/ts.cpp for(i=0; i<ch; i++) p[i] = uchar(s[i]); i 652 modules/ts/src/ts.cpp for(i=0; i<ch; i++) s[i] = p[i]; i 654 modules/ts/src/ts.cpp for(i=0; i<ch; i++) p[i] = uchar(s[i]); i 74 modules/ts/src/ts_arrtest.cpp for( size_t i = 0; i < test_array.size(); i++ ) i 76 modules/ts/src/ts_arrtest.cpp for( size_t j = 0; j < test_array[i].size(); j++ ) i 77 modules/ts/src/ts_arrtest.cpp cvRelease( &test_array[i][j] ); i 107 modules/ts/src/ts_arrtest.cpp size_t i, j; i 114 modules/ts/src/ts_arrtest.cpp for( i = 0; i < test_array.size(); i++ ) i 116 modules/ts/src/ts_arrtest.cpp size_t sizei = test_array[i].size(); i 119 modules/ts/src/ts_arrtest.cpp sizes[i][j] = size; i 120 modules/ts/src/ts_arrtest.cpp types[i][j] = CV_8UC1; i 140 modules/ts/src/ts_arrtest.cpp size_t i, j; i 144 modules/ts/src/ts_arrtest.cpp for( i = 0; i < max_arr; i++ ) i 146 modules/ts/src/ts_arrtest.cpp size_t sizei = std::max(test_array[i].size(), (size_t)1); i 147 modules/ts/src/ts_arrtest.cpp sizes[i].resize(sizei); i 148 modules/ts/src/ts_arrtest.cpp types[i].resize(sizei); i 149 modules/ts/src/ts_arrtest.cpp whole_sizes[i].resize(sizei); i 154 modules/ts/src/ts_arrtest.cpp for( i = 0; i < max_arr; i++ ) i 156 modules/ts/src/ts_arrtest.cpp size_t sizei = test_array[i].size(); i 161 modules/ts/src/ts_arrtest.cpp CvSize size = sizes[i][j], whole_size = size; i 173 modules/ts/src/ts_arrtest.cpp cvRelease( &test_array[i][j] ); i 175 modules/ts/src/ts_arrtest.cpp types[i][j] >= 0 && (i != MASK || create_mask) ) i 190 modules/ts/src/ts_arrtest.cpp test_array[i][j] = cvCreateImage( whole_size, i 191 modules/ts/src/ts_arrtest.cpp icvTsTypeToDepth[CV_MAT_DEPTH(types[i][j])], CV_MAT_CN(types[i][j]) ); i 193 modules/ts/src/ts_arrtest.cpp cvSetImageROI( (IplImage*)test_array[i][j], roi ); i 197 modules/ts/src/ts_arrtest.cpp test_array[i][j] = cvCreateMat( whole_size.height, whole_size.width, types[i][j] ); i 200 modules/ts/src/ts_arrtest.cpp CvMat submat, *mat = (CvMat*)test_array[i][j]; i 201 modules/ts/src/ts_arrtest.cpp cvGetSubRect( test_array[i][j], &submat, roi ); i 211 modules/ts/src/ts_arrtest.cpp for( i = 0; i < max_arr; i++ ) i 213 modules/ts/src/ts_arrtest.cpp size_t sizei = test_array[i].size(); i 214 modules/ts/src/ts_arrtest.cpp test_mat[i].resize(sizei); i 217 modules/ts/src/ts_arrtest.cpp CvArr* arr = test_array[i][j]; i 218 modules/ts/src/ts_arrtest.cpp test_mat[i][j] = cv::cvarrToMat(arr); i 219 modules/ts/src/ts_arrtest.cpp if( !test_mat[i][j].empty() ) i 220 modules/ts/src/ts_arrtest.cpp fill_array( test_case_idx, (int)i, (int)j, test_mat[i][j] ); i 228 modules/ts/src/ts_arrtest.cpp void ArrayTest::get_minmax_bounds( int i, int /*j*/, int type, Scalar& low, Scalar& high ) i 233 modules/ts/src/ts_arrtest.cpp if( i == MASK ) i 254 modules/ts/src/ts_arrtest.cpp void ArrayTest::fill_array( int /*test_case_idx*/, int i, int j, Mat& arr ) i 256 modules/ts/src/ts_arrtest.cpp if( i == REF_INPUT_OUTPUT ) i 258 modules/ts/src/ts_arrtest.cpp else if( i == INPUT || i == INPUT_OUTPUT || i == MASK ) i 262 modules/ts/src/ts_arrtest.cpp get_minmax_bounds( i, j, arr.type(), low, high ); i 268 modules/ts/src/ts_arrtest.cpp double ArrayTest::get_success_error_level( int /*test_case_idx*/, int i, int j ) i 270 modules/ts/src/ts_arrtest.cpp int elem_depth = CV_MAT_DEPTH(cvGetElemType(test_array[i][j])); i 271 modules/ts/src/ts_arrtest.cpp assert( i == OUTPUT || i == INPUT_OUTPUT ); i 287 modules/ts/src/ts_arrtest.cpp size_t i, j; i 290 modules/ts/src/ts_arrtest.cpp for( i = 0; i < 2; i++ ) i 292 modules/ts/src/ts_arrtest.cpp int i0 = i == 0 ? OUTPUT : INPUT_OUTPUT; i 293 modules/ts/src/ts_arrtest.cpp int i1 = i == 0 ? REF_OUTPUT : REF_INPUT_OUTPUT; i 22 modules/ts/src/ts_func.cpp int i; i 23 modules/ts/src/ts_func.cpp for( i = 0; i < CV_DEPTH_MAX; i++ ) i 24 modules/ts/src/ts_func.cpp if( strcmp(name, getTypeName(i)) == 0 ) i 25 modules/ts/src/ts_func.cpp return i; i 33 modules/ts/src/ts_func.cpp for( size_t i = 0; i < nelems; i++ ) i 35 modules/ts/src/ts_func.cpp sprintf(buf, "%d", v[i]); i 37 modules/ts/src/ts_func.cpp if( i < nelems - 1 ) i 58 modules/ts/src/ts_func.cpp int i, dims = rng.uniform(minDims, maxDims+1); i 60 modules/ts/src/ts_func.cpp for( i = 0; i < dims; i++ ) i 64 modules/ts/src/ts_func.cpp sz[i] = cvRound(exp(v)); i 66 modules/ts/src/ts_func.cpp for( i = 0; i < dims; i++ ) i 127 modules/ts/src/ts_func.cpp int i, dims = (int)size.size(); i 131 modules/ts/src/ts_func.cpp for( i = 0; i < dims; i++ ) i 133 modules/ts/src/ts_func.cpp size0[i] = size[i]; i 134 modules/ts/src/ts_func.cpp r[i] = Range::all(); i 137 modules/ts/src/ts_func.cpp size0[i] += std::max(rng.uniform(0, 5) - 2, 0); i 138 modules/ts/src/ts_func.cpp r[i] = Range((size0[i] - size[i])/2, (size0[i] - size[i])/2 + size[i]); i 140 modules/ts/src/ts_func.cpp eqsize = eqsize && size[i] == size0[i]; i 184 modules/ts/src/ts_func.cpp size_t i, nplanes = it.nplanes; i 195 modules/ts/src/ts_func.cpp for( i = 0; i < nplanes; i++, ++it) i 236 modules/ts/src/ts_func.cpp size_t i; i 238 modules/ts/src/ts_func.cpp for( i = 0; i < total; i++ ) i 239 modules/ts/src/ts_func.cpp dst[i] = saturate_cast<_Tp2>(src[i]); i 241 modules/ts/src/ts_func.cpp for( i = 0; i < total; i++ ) i 242 modules/ts/src/ts_func.cpp dst[i] = saturate_cast<_Tp2>(src[i]*alpha); i 244 modules/ts/src/ts_func.cpp for( i = 0; i < total; i++ ) i 245 modules/ts/src/ts_func.cpp dst[i] = saturate_cast<_Tp2>(src[i]*alpha + beta); i 302 modules/ts/src/ts_func.cpp size_t i, nplanes = it.nplanes; i 304 modules/ts/src/ts_func.cpp for( i = 0; i < nplanes; i++, ++it) i 346 modules/ts/src/ts_func.cpp size_t i, nplanes = it.nplanes; i 349 modules/ts/src/ts_func.cpp for( i = 0; i < nplanes; i++, ++it ) i 362 modules/ts/src/ts_func.cpp size_t i, nplanes = it.nplanes; i 364 modules/ts/src/ts_func.cpp for( i = 0; i < nplanes; i++, ++it) i 391 modules/ts/src/ts_func.cpp size_t i, nplanes = it.nplanes; i 399 modules/ts/src/ts_func.cpp for( i = 0; i < nplanes; i++, ++it ) i 404 modules/ts/src/ts_func.cpp else if( i == 0 ) i 423 modules/ts/src/ts_func.cpp size_t i, nplanes = it.nplanes; i 425 modules/ts/src/ts_func.cpp for( i = 0; i < nplanes; i++, ++it) i 448 modules/ts/src/ts_func.cpp size_t i, nplanes = it.nplanes; i 451 modules/ts/src/ts_func.cpp for( i = 0; i < nplanes; i++, ++it ) i 473 modules/ts/src/ts_func.cpp size_t i, nplanes = it.nplanes; i 476 modules/ts/src/ts_func.cpp for( i = 0; i < nplanes; i++, ++it ) i 494 modules/ts/src/ts_func.cpp int i, j, k, esz = (int)src.elemSize(); i 496 modules/ts/src/ts_func.cpp for( i = 0; i < dst.rows; i++ ) i 498 modules/ts/src/ts_func.cpp const uchar* sptr = src.ptr(0) + i*esz; i 499 modules/ts/src/ts_func.cpp uchar* dptr = dst.ptr(i); i 513 modules/ts/src/ts_func.cpp for( size_t i = 0; i < total; i += cn ) i 517 modules/ts/src/ts_func.cpp data[i + k] = saturate_cast<_Tp>(val); i 525 modules/ts/src/ts_func.cpp for( size_t i = 0; i < total; i += cn ) i 529 modules/ts/src/ts_func.cpp data[i + k] = saturate_cast<_Tp>(val); i 557 modules/ts/src/ts_func.cpp size_t i, nplanes = it.nplanes; i 561 modules/ts/src/ts_func.cpp for( i = 0; i < nplanes; i++, ++it ) i 607 modules/ts/src/ts_func.cpp for( int i = 1; i < n; i++ ) i 608 modules/ts/src/ts_func.cpp result = std::min(result, sptr[x + ofs[i]]); i 629 modules/ts/src/ts_func.cpp for( int i = 1; i < n; i++ ) i 630 modules/ts/src/ts_func.cpp result = std::max(result, sptr[x + ofs[i]]); i 661 modules/ts/src/ts_func.cpp for( int i = 0; i < kernel.rows; i++ ) i 663 modules/ts/src/ts_func.cpp if( kernel.at<uchar>(i, j) != 0 ) i 664 modules/ts/src/ts_func.cpp ofs.push_back(i*step + j*cn); i 718 modules/ts/src/ts_func.cpp for( int i = 0; i < kernel.rows; i++ ) i 720 modules/ts/src/ts_func.cpp if( kernel.at<uchar>(i, j) != 0 ) i 721 modules/ts/src/ts_func.cpp ofs.push_back(i*step + j*cn); i 769 modules/ts/src/ts_func.cpp for( int i = 0; i < ncoeffs; i++ ) i 770 modules/ts/src/ts_func.cpp s += sptr[x + ofs[i]]*coeff[i]; i 798 modules/ts/src/ts_func.cpp for( int i = 0; i < kernel.rows; i++ ) i 800 modules/ts/src/ts_func.cpp ofs.push_back(i*step + j*cn); i 872 modules/ts/src/ts_func.cpp int i, j, k, esz = (int)src.elemSize(); i 883 modules/ts/src/ts_func.cpp for( i = 0; i < src.rows; i++ ) i 885 modules/ts/src/ts_func.cpp const uchar* sptr = src.ptr(i); i 886 modules/ts/src/ts_func.cpp uchar* dptr = dst.ptr(i + top) + left; i 896 modules/ts/src/ts_func.cpp for( i = 0; i < top; i++ ) i 898 modules/ts/src/ts_func.cpp uchar* dptr = dst.ptr(i); i 903 modules/ts/src/ts_func.cpp for( i = 0; i < bottom; i++ ) i 905 modules/ts/src/ts_func.cpp uchar* dptr = dst.ptr(i + top + src.rows); i 915 modules/ts/src/ts_func.cpp for( i = 0; i < left; i++ ) i 917 modules/ts/src/ts_func.cpp j = borderInterpolate(i - left, src.cols, borderType)*esz; i 919 modules/ts/src/ts_func.cpp ltab[i*esz + k] = j + k; i 921 modules/ts/src/ts_func.cpp for( i = 0; i < right; i++ ) i 923 modules/ts/src/ts_func.cpp j = borderInterpolate(src.cols + i, src.cols, borderType)*esz; i 925 modules/ts/src/ts_func.cpp rtab[i*esz + k] = j + k; i 930 modules/ts/src/ts_func.cpp for( i = 0; i < src.rows; i++ ) i 932 modules/ts/src/ts_func.cpp const uchar* sptr = src.ptr(i); i 933 modules/ts/src/ts_func.cpp uchar* dptr = dst.ptr(i + top); i 946 modules/ts/src/ts_func.cpp for( i = 0; i < top; i++ ) i 948 modules/ts/src/ts_func.cpp j = borderInterpolate(i - top, src.rows, borderType); i 950 modules/ts/src/ts_func.cpp uchar* dptr = dst.ptr(i); i 956 modules/ts/src/ts_func.cpp for( i = 0; i < bottom; i++ ) i 958 modules/ts/src/ts_func.cpp j = borderInterpolate(i + src.rows, src.rows, borderType); i 960 modules/ts/src/ts_func.cpp uchar* dptr = dst.ptr(i + top + src.rows); i 980 modules/ts/src/ts_func.cpp for( size_t i = 0; i < total; i++ ) i 982 modules/ts/src/ts_func.cpp _Tp val = src[i]; i 986 modules/ts/src/ts_func.cpp minpos = startidx + i; i 991 modules/ts/src/ts_func.cpp maxpos = startidx + i; i 997 modules/ts/src/ts_func.cpp for( size_t i = 0; i < total; i++ ) i 999 modules/ts/src/ts_func.cpp _Tp val = src[i]; i 1000 modules/ts/src/ts_func.cpp if( minval > val && mask[i] ) i 1003 modules/ts/src/ts_func.cpp minpos = startidx + i; i 1005 modules/ts/src/ts_func.cpp if( maxval < val && mask[i] ) i 1008 modules/ts/src/ts_func.cpp maxpos = startidx + i; i 1026 modules/ts/src/ts_func.cpp for( int i = mtx.dims-1; i >= 0; i-- ) i 1028 modules/ts/src/ts_func.cpp int sz = mtx.size[i]*(i == mtx.dims-1 ? mtx.channels() : 1); i 1029 modules/ts/src/ts_func.cpp pos[i] = (int)(idx % sz); i 1035 modules/ts/src/ts_func.cpp for( int i = mtx.dims-1; i >= 0; i-- ) i 1036 modules/ts/src/ts_func.cpp pos[i] = -1; i 1050 modules/ts/src/ts_func.cpp size_t i, nplanes = it.nplanes; i 1056 modules/ts/src/ts_func.cpp for( i = 0; i < nplanes; i++, ++it, startidx += total ) i 1117 modules/ts/src/ts_func.cpp for( size_t i = 0; i < total; i++ ) i 1119 modules/ts/src/ts_func.cpp unsigned a = src[i]; i 1130 modules/ts/src/ts_func.cpp size_t i; i 1138 modules/ts/src/ts_func.cpp for( i = 0; i < total; i++ ) i 1139 modules/ts/src/ts_func.cpp result = std::max(result, (double)std::abs(0+src[i]));// trick with 0 used to quiet gcc warning i 1143 modules/ts/src/ts_func.cpp for( i = 0; i < total; i++ ) i 1144 modules/ts/src/ts_func.cpp if( mask[i] ) i 1145 modules/ts/src/ts_func.cpp result = std::max(result, (double)std::abs(0+src[i*cn + c])); i 1151 modules/ts/src/ts_func.cpp for( i = 0; i < total; i++ ) i 1152 modules/ts/src/ts_func.cpp result += std::abs(0+src[i]); i 1156 modules/ts/src/ts_func.cpp for( i = 0; i < total; i++ ) i 1157 modules/ts/src/ts_func.cpp if( mask[i] ) i 1158 modules/ts/src/ts_func.cpp result += std::abs(0+src[i*cn + c]); i 1164 modules/ts/src/ts_func.cpp for( i = 0; i < total; i++ ) i 1166 modules/ts/src/ts_func.cpp double v = src[i]; i 1172 modules/ts/src/ts_func.cpp for( i = 0; i < total; i++ ) i 1173 modules/ts/src/ts_func.cpp if( mask[i] ) i 1175 modules/ts/src/ts_func.cpp double v = src[i*cn + c]; i 1187 modules/ts/src/ts_func.cpp size_t i; i 1195 modules/ts/src/ts_func.cpp for( i = 0; i < total; i++ ) i 1196 modules/ts/src/ts_func.cpp result = std::max(result, (double)std::abs(src1[i] - src2[i])); i 1200 modules/ts/src/ts_func.cpp for( i = 0; i < total; i++ ) i 1201 modules/ts/src/ts_func.cpp if( mask[i] ) i 1202 modules/ts/src/ts_func.cpp result = std::max(result, (double)std::abs(src1[i*cn + c] - src2[i*cn + c])); i 1208 modules/ts/src/ts_func.cpp for( i = 0; i < total; i++ ) i 1209 modules/ts/src/ts_func.cpp result += std::abs(src1[i] - src2[i]); i 1213 modules/ts/src/ts_func.cpp for( i = 0; i < total; i++ ) i 1214 modules/ts/src/ts_func.cpp if( mask[i] ) i 1215 modules/ts/src/ts_func.cpp result += std::abs(src1[i*cn + c] - src2[i*cn + c]); i 1221 modules/ts/src/ts_func.cpp for( i = 0; i < total; i++ ) i 1223 modules/ts/src/ts_func.cpp double v = src1[i] - src2[i]; i 1229 modules/ts/src/ts_func.cpp for( i = 0; i < total; i++ ) i 1230 modules/ts/src/ts_func.cpp if( mask[i] ) i 1232 modules/ts/src/ts_func.cpp double v = src1[i*cn + c] - src2[i*cn + c]; i 1260 modules/ts/src/ts_func.cpp size_t i, nplanes = it.nplanes; i 1264 modules/ts/src/ts_func.cpp for( i = 0; i < nplanes; i++, ++it ) i 1279 modules/ts/src/ts_func.cpp size_t i, nplanes = it.nplanes; i 1283 modules/ts/src/ts_func.cpp for( i = 0; i < nplanes; i++, ++it ) i 1341 modules/ts/src/ts_func.cpp size_t i, nplanes = it.nplanes; i 1345 modules/ts/src/ts_func.cpp for( i = 0; i < nplanes; i++, ++it ) i 1360 modules/ts/src/ts_func.cpp size_t i, nplanes = it.nplanes; i 1364 modules/ts/src/ts_func.cpp for( i = 0; i < nplanes; i++, ++it ) i 1413 modules/ts/src/ts_func.cpp for( size_t i = 0; i < total; i++ ) i 1414 modules/ts/src/ts_func.cpp result += (double)src1[i]*src2[i]; i 1426 modules/ts/src/ts_func.cpp size_t i, nplanes = it.nplanes; i 1430 modules/ts/src/ts_func.cpp for( i = 0; i < nplanes; i++, ++it ) i 1469 modules/ts/src/ts_func.cpp size_t i; i 1471 modules/ts/src/ts_func.cpp for( i = 0; i < total; i++ ) i 1472 modules/ts/src/ts_func.cpp dst[i] = src1[i] & src2[i]; i 1474 modules/ts/src/ts_func.cpp for( i = 0; i < total; i++ ) i 1475 modules/ts/src/ts_func.cpp dst[i] = src1[i] | src2[i]; i 1477 modules/ts/src/ts_func.cpp for( i = 0; i < total; i++ ) i 1478 modules/ts/src/ts_func.cpp dst[i] = src1[i] ^ src2[i]; i 1485 modules/ts/src/ts_func.cpp size_t i, j; i 1487 modules/ts/src/ts_func.cpp for( i = 0; i < total; i += blockSize, dst += blockSize, src += blockSize ) i 1489 modules/ts/src/ts_func.cpp size_t sz = MIN(total - i, blockSize); i 1494 modules/ts/src/ts_func.cpp for( i = 0; i < total; i += blockSize, dst += blockSize, src += blockSize ) i 1496 modules/ts/src/ts_func.cpp size_t sz = MIN(total - i, blockSize); i 1502 modules/ts/src/ts_func.cpp for( i = 0; i < total; i += blockSize, dst += blockSize, src += blockSize ) i 1504 modules/ts/src/ts_func.cpp size_t sz = MIN(total - i, blockSize); i 1510 modules/ts/src/ts_func.cpp for( i = 0; i < total; i++ ) i 1511 modules/ts/src/ts_func.cpp dst[i] = ~src[i]; i 1525 modules/ts/src/ts_func.cpp size_t i, nplanes = it.nplanes; i 1527 modules/ts/src/ts_func.cpp for( i = 0; i < nplanes; i++, ++it ) i 1547 modules/ts/src/ts_func.cpp size_t i, nplanes = it.nplanes; i 1551 modules/ts/src/ts_func.cpp for( i = 0; i < nplanes; i++, ++it ) i 1564 modules/ts/src/ts_func.cpp size_t i; i 1568 modules/ts/src/ts_func.cpp for( i = 0; i < total; i++ ) i 1569 modules/ts/src/ts_func.cpp dst[i] = src1[i] < src2[i] ? 255 : 0; i 1572 modules/ts/src/ts_func.cpp for( i = 0; i < total; i++ ) i 1573 modules/ts/src/ts_func.cpp dst[i] = src1[i] <= src2[i] ? 255 : 0; i 1576 modules/ts/src/ts_func.cpp for( i = 0; i < total; i++ ) i 1577 modules/ts/src/ts_func.cpp dst[i] = src1[i] == src2[i] ? 255 : 0; i 1580 modules/ts/src/ts_func.cpp for( i = 0; i < total; i++ ) i 1581 modules/ts/src/ts_func.cpp dst[i] = src1[i] != src2[i] ? 255 : 0; i 1584 modules/ts/src/ts_func.cpp for( i = 0; i < total; i++ ) i 1585 modules/ts/src/ts_func.cpp dst[i] = src1[i] >= src2[i] ? 255 : 0; i 1588 modules/ts/src/ts_func.cpp for( i = 0; i < total; i++ ) i 1589 modules/ts/src/ts_func.cpp dst[i] = src1[i] > src2[i] ? 255 : 0; i 1600 modules/ts/src/ts_func.cpp size_t i; i 1604 modules/ts/src/ts_func.cpp for( i = 0; i < total; i++ ) i 1605 modules/ts/src/ts_func.cpp dst[i] = src1[i] < value ? 255 : 0; i 1608 modules/ts/src/ts_func.cpp for( i = 0; i < total; i++ ) i 1609 modules/ts/src/ts_func.cpp dst[i] = src1[i] <= value ? 255 : 0; i 1612 modules/ts/src/ts_func.cpp for( i = 0; i < total; i++ ) i 1613 modules/ts/src/ts_func.cpp dst[i] = src1[i] == value ? 255 : 0; i 1616 modules/ts/src/ts_func.cpp for( i = 0; i < total; i++ ) i 1617 modules/ts/src/ts_func.cpp dst[i] = src1[i] != value ? 255 : 0; i 1620 modules/ts/src/ts_func.cpp for( i = 0; i < total; i++ ) i 1621 modules/ts/src/ts_func.cpp dst[i] = src1[i] >= value ? 255 : 0; i 1624 modules/ts/src/ts_func.cpp for( i = 0; i < total; i++ ) i 1625 modules/ts/src/ts_func.cpp dst[i] = src1[i] > value ? 255 : 0; i 1642 modules/ts/src/ts_func.cpp size_t i, nplanes = it.nplanes; i 1645 modules/ts/src/ts_func.cpp for( i = 0; i < nplanes; i++, ++it ) i 1689 modules/ts/src/ts_func.cpp size_t i, nplanes = it.nplanes; i 1693 modules/ts/src/ts_func.cpp for( i = 0; i < nplanes; i++, ++it ) i 1732 modules/ts/src/ts_func.cpp size_t i; i 1734 modules/ts/src/ts_func.cpp for( i = 0; i < total; i++ ) i 1736 modules/ts/src/ts_func.cpp int diff = std::abs(src1[i] - src2[i]); i 1741 modules/ts/src/ts_func.cpp idx = i + startidx; i 1752 modules/ts/src/ts_func.cpp size_t i; i 1754 modules/ts/src/ts_func.cpp for( i = 0; i < total; i++ ) i 1756 modules/ts/src/ts_func.cpp double diff = fabs((double)src1[i] - (double)src2[i]); i 1761 modules/ts/src/ts_func.cpp idx = i + startidx; i 1773 modules/ts/src/ts_func.cpp size_t i; i 1774 modules/ts/src/ts_func.cpp for( i = 0; i < total; i++ ) i 1776 modules/ts/src/ts_func.cpp int a = src1[i], b = src2[i]; i 1783 modules/ts/src/ts_func.cpp idx = i + startidx; i 1795 modules/ts/src/ts_func.cpp size_t i; i 1796 modules/ts/src/ts_func.cpp for( i = 0; i < total; i++ ) i 1798 modules/ts/src/ts_func.cpp int64 a = src1[i], b = src2[i]; i 1805 modules/ts/src/ts_func.cpp idx = i + startidx; i 1818 modules/ts/src/ts_func.cpp size_t i, nplanes = it.nplanes; i 1824 modules/ts/src/ts_func.cpp for( i = 0; i < nplanes; i++, ++it, startidx += total ) i 1869 modules/ts/src/ts_func.cpp for( size_t i = 0; i < total; i++ ) i 1871 modules/ts/src/ts_func.cpp int val = a[i]; i 1874 modules/ts/src/ts_func.cpp idx = i + startidx; i 1884 modules/ts/src/ts_func.cpp for( size_t i = 0; i < total; i++ ) i 1886 modules/ts/src/ts_func.cpp double val = a[i]; i 1889 modules/ts/src/ts_func.cpp idx = i + startidx; i 1904 modules/ts/src/ts_func.cpp size_t i, nplanes = it.nplanes; i 1915 modules/ts/src/ts_func.cpp for( i = 0; i < nplanes; i++, ++it, startidx += total ) i 1977 modules/ts/src/ts_func.cpp size_t i, nplanes = it.nplanes; i 1991 modules/ts/src/ts_func.cpp for( i = 0; i < nplanes; i++, ++it, startidx += total ) i 2161 modules/ts/src/ts_func.cpp for( int i = 0; i < d_rows; i++, d_data += d_step, c_data0 += c_step, a_data0 += a_step ) i 2275 modules/ts/src/ts_func.cpp for( size_t i = 0; i < total; i++, sptr += scn, dptr += dcn ) i 2306 modules/ts/src/ts_func.cpp for( int i = 0; i < transmat.rows; i++ ) i 2308 modules/ts/src/ts_func.cpp mat[i*(scn+1)+scn] = 0.; i 2310 modules/ts/src/ts_func.cpp mat[i*(scn+1)+j] = transmat.at<float>(i,j); i 2312 modules/ts/src/ts_func.cpp mat[i*(scn+1)+scn] = shift.at<float>(i); i 2317 modules/ts/src/ts_func.cpp for( int i = 0; i < transmat.rows; i++ ) i 2319 modules/ts/src/ts_func.cpp mat[i*(scn+1)+scn] = 0.; i 2321 modules/ts/src/ts_func.cpp mat[i*(scn+1)+j] = transmat.at<double>(i,j); i 2323 modules/ts/src/ts_func.cpp mat[i*(scn+1)+scn] = shift.at<double>(i); i 2331 modules/ts/src/ts_func.cpp size_t i, nplanes = it.nplanes; i 2333 modules/ts/src/ts_func.cpp for( i = 0; i < nplanes; i++, ++it ) i 2371 modules/ts/src/ts_func.cpp for( size_t i = 0; i < total; i++ ) i 2372 modules/ts/src/ts_func.cpp dst[i] = std::max(src1[i], src2[i]); i 2374 modules/ts/src/ts_func.cpp for( size_t i = 0; i < total; i++ ) i 2375 modules/ts/src/ts_func.cpp dst[i] = std::min(src1[i], src2[i]); i 2387 modules/ts/src/ts_func.cpp size_t i, nplanes = it.nplanes, depth = src1.depth(); i 2389 modules/ts/src/ts_func.cpp for( i = 0; i < nplanes; i++, ++it ) i 2440 modules/ts/src/ts_func.cpp for( size_t i = 0; i < total; i++ ) i 2441 modules/ts/src/ts_func.cpp dst[i] = std::max(src1[i], val); i 2443 modules/ts/src/ts_func.cpp for( size_t i = 0; i < total; i++ ) i 2444 modules/ts/src/ts_func.cpp dst[i] = std::min(src1[i], val); i 2455 modules/ts/src/ts_func.cpp size_t i, nplanes = it.nplanes, depth = src1.depth(); i 2458 modules/ts/src/ts_func.cpp for( i = 0; i < nplanes; i++, ++it ) i 2508 modules/ts/src/ts_func.cpp for( size_t i = 0; i < total; i++ ) i 2509 modules/ts/src/ts_func.cpp dst[i] = saturate_cast<_Tp>((scale*src1[i])*src2[i]); i 2511 modules/ts/src/ts_func.cpp for( size_t i = 0; i < total; i++ ) i 2512 modules/ts/src/ts_func.cpp dst[i] = src2[i] ? saturate_cast<_Tp>((scale*src1[i])/src2[i]) : 0; i 2514 modules/ts/src/ts_func.cpp for( size_t i = 0; i < total; i++ ) i 2515 modules/ts/src/ts_func.cpp dst[i] = src2[i] ? saturate_cast<_Tp>(scale/src2[i]) : 0; i 2527 modules/ts/src/ts_func.cpp size_t i, nplanes = it.nplanes, depth = src2.depth(); i 2529 modules/ts/src/ts_func.cpp for( i = 0; i < nplanes; i++, ++it ) i 2583 modules/ts/src/ts_func.cpp for( size_t i = 0; i < total; i += cn ) i 2586 modules/ts/src/ts_func.cpp sum[c] += src[i + c]; i 2591 modules/ts/src/ts_func.cpp for( size_t i = 0; i < total; i++ ) i 2592 modules/ts/src/ts_func.cpp if( mask[i] ) i 2596 modules/ts/src/ts_func.cpp sum[c] += src[i*cn + c]; i 2612 modules/ts/src/ts_func.cpp size_t i, nplanes = it.nplanes; i 2615 modules/ts/src/ts_func.cpp for( i = 0; i < nplanes; i++, ++it ) i 2658 modules/ts/src/ts_func.cpp for( int i = 0; i < mat.rows; i++ ) i 2662 modules/ts/src/ts_func.cpp float* data = mat.ptr<float>(i); i 2669 modules/ts/src/ts_func.cpp double* data = mat.ptr<double>(i); i 2680 modules/ts/src/ts_func.cpp int i, j, oldval, newval; i 2687 modules/ts/src/ts_func.cpp for( i = 0; i < size; i++ ) i 2688 modules/ts/src/ts_func.cpp kernel[i] = scharr[order*3 + i]; i 2692 modules/ts/src/ts_func.cpp for( i = 1; i <= size; i++ ) i 2693 modules/ts/src/ts_func.cpp kernel[i] = 0; i 2696 modules/ts/src/ts_func.cpp for( i = 0; i < size - order - 1; i++ ) i 2707 modules/ts/src/ts_func.cpp for( i = 0; i < order; i++ ) i 2733 modules/ts/src/ts_func.cpp for( int i = 0; i < kernel.rows; i++ ) i 2735 modules/ts/src/ts_func.cpp float ay = (float)ky[i]*(origin && (dy & 1) ? -1 : 1); i 2737 modules/ts/src/ts_func.cpp kernel.at<float>(i, j) = kx[j]*ay; i 2760 modules/ts/src/ts_func.cpp for( int i = 0; i < ksize; i++ ) i 2762 modules/ts/src/ts_func.cpp kernel.at<float>(i, j) = (float)(kx[j]*ky[i] + kx[i]*ky[j]); i 2812 modules/ts/src/ts_func.cpp for( int i = 0; i < m.m->dims; i++ ) i 2813 modules/ts/src/ts_func.cpp out << m.m->size[i] << (i < m.m->dims-1 ? " x " : ")"); i 2827 modules/ts/src/ts_func.cpp int i, d = m.dims; i 2830 modules/ts/src/ts_func.cpp for( i = 0; i < d; i++ ) i 2832 modules/ts/src/ts_func.cpp r[i].start = std::max(0, ofs0[i] - border); i 2833 modules/ts/src/ts_func.cpp r[i].end = std::min(ofs0[i] + 1 + border, m.size[i]); i 2834 modules/ts/src/ts_func.cpp ofs[i] = std::min(ofs0[i], border); i 2842 modules/ts/src/ts_func.cpp for(int i = 0; i < nelems; i++) i 2844 modules/ts/src/ts_func.cpp if( i == starpos ) i 2846 modules/ts/src/ts_func.cpp out << (_WTp)((_Tp*)data)[i]; i 2847 modules/ts/src/ts_func.cpp if( i == starpos ) i 2849 modules/ts/src/ts_func.cpp out << (i+1 < nelems ? ", " : ""); i 2900 modules/ts/src/ts_func.cpp int i, depth = m.m->depth(), cn = m.m->channels(), width = m.m->cols*cn; i 2901 modules/ts/src/ts_func.cpp for( i = 0; i < m.m->rows; i++ ) i 2903 modules/ts/src/ts_func.cpp writeElems(out, m.m->ptr(i), width, depth, i == (*m.loc)[0] ? (*m.loc)[1] : -1); i 2904 modules/ts/src/ts_func.cpp out << (i < m.m->rows-1 ? ";\n" : ""); i 712 modules/ts/src/ts_gtest.cpp inline E GetElementOr(const std::vector<E>& v, int i, E default_value) { i 713 modules/ts/src/ts_gtest.cpp return (i < 0 || i >= static_cast<int>(v.size())) ? default_value : v[i]; i 996 modules/ts/src/ts_gtest.cpp const TestCase* GetTestCase(int i) const { i 997 modules/ts/src/ts_gtest.cpp const int index = GetElementOr(test_case_indices_, i, -1); i 998 modules/ts/src/ts_gtest.cpp return index < 0 ? NULL : test_cases_[i]; i 1003 modules/ts/src/ts_gtest.cpp TestCase* GetMutableTestCase(int i) { i 1004 modules/ts/src/ts_gtest.cpp const int index = GetElementOr(test_case_indices_, i, -1); i 1824 modules/ts/src/ts_gtest.cpp for (size_t i = 0; i < case_list.size(); i++) { i 1825 modules/ts/src/ts_gtest.cpp sum += (case_list[i]->*method)(); i 2122 modules/ts/src/ts_gtest.cpp for (int i = 0; i < results.size(); i++) { i 2123 modules/ts/src/ts_gtest.cpp msg << "\n" << results.GetTestPartResult(i); i 2390 modules/ts/src/ts_gtest.cpp for (size_t i = 0; i != length; ) { // NOLINT i 2391 modules/ts/src/ts_gtest.cpp if (wstr[i] != L'\0') { i 2392 modules/ts/src/ts_gtest.cpp *msg << WideStringToUtf8(wstr + i, static_cast<int>(length - i)); i 2393 modules/ts/src/ts_gtest.cpp while (i != length && wstr[i] != L'\0') i 2394 modules/ts/src/ts_gtest.cpp i++; i 2397 modules/ts/src/ts_gtest.cpp i++; i 3005 modules/ts/src/ts_gtest.cpp for (int i = 0; i < num_chars; ++i) { i 3008 modules/ts/src/ts_gtest.cpp if (str[i] == L'\0') { i 3010 modules/ts/src/ts_gtest.cpp } else if (i + 1 < num_chars && IsUtf16SurrogatePair(str[i], str[i + 1])) { i 3011 modules/ts/src/ts_gtest.cpp unicode_code_point = CreateCodePointFromUtf16SurrogatePair(str[i], i 3012 modules/ts/src/ts_gtest.cpp str[i + 1]); i 3013 modules/ts/src/ts_gtest.cpp i++; i 3015 modules/ts/src/ts_gtest.cpp unicode_code_point = static_cast<UInt32>(str[i]); i 3206 modules/ts/src/ts_gtest.cpp const TestPartResult& TestResult::GetTestPartResult(int i) const { i 3207 modules/ts/src/ts_gtest.cpp if (i < 0 || i >= total_part_count()) i 3209 modules/ts/src/ts_gtest.cpp return test_part_results_.at(i); i 3215 modules/ts/src/ts_gtest.cpp const TestProperty& TestResult::GetTestProperty(int i) const { i 3216 modules/ts/src/ts_gtest.cpp if (i < 0 || i >= test_property_count()) i 3218 modules/ts/src/ts_gtest.cpp return test_properties_.at(i); i 3306 modules/ts/src/ts_gtest.cpp for (size_t i = 0; i < words.size(); ++i) { i 3307 modules/ts/src/ts_gtest.cpp if (i > 0 && words.size() > 2) { i 3310 modules/ts/src/ts_gtest.cpp if (i == words.size() - 1) { i 3313 modules/ts/src/ts_gtest.cpp word_list << "'" << words[i] << "'"; i 3348 modules/ts/src/ts_gtest.cpp for (int i = 0; i < total_part_count(); ++i) { i 3349 modules/ts/src/ts_gtest.cpp if (GetTestPartResult(i).failed()) i 3909 modules/ts/src/ts_gtest.cpp const TestInfo* TestCase::GetTestInfo(int i) const { i 3910 modules/ts/src/ts_gtest.cpp const int index = GetElementOr(test_indices_, i, -1); i 3916 modules/ts/src/ts_gtest.cpp TestInfo* TestCase::GetMutableTestInfo(int i) { i 3917 modules/ts/src/ts_gtest.cpp const int index = GetElementOr(test_indices_, i, -1); i 3943 modules/ts/src/ts_gtest.cpp for (int i = 0; i < total_test_count(); i++) { i 3944 modules/ts/src/ts_gtest.cpp GetMutableTestInfo(i)->Run(); i 3969 modules/ts/src/ts_gtest.cpp for (size_t i = 0; i < test_indices_.size(); i++) { i 3970 modules/ts/src/ts_gtest.cpp test_indices_[i] = static_cast<int>(i); i 4346 modules/ts/src/ts_gtest.cpp for (int i = 0; i < unit_test.total_test_case_count(); ++i) { i 4347 modules/ts/src/ts_gtest.cpp const TestCase& test_case = *unit_test.GetTestCase(i); i 4453 modules/ts/src/ts_gtest.cpp for (size_t i = 0; i < listeners_.size(); ++i) { i 4454 modules/ts/src/ts_gtest.cpp if (listeners_[i] == listener) { i 4455 modules/ts/src/ts_gtest.cpp listeners_.erase(listeners_.begin() + i); i 4468 modules/ts/src/ts_gtest.cpp for (size_t i = 0; i < listeners_.size(); i++) { \ i 4469 modules/ts/src/ts_gtest.cpp listeners_[i]->Name(parameter); \ i 4478 modules/ts/src/ts_gtest.cpp for (int i = static_cast<int>(listeners_.size()) - 1; i >= 0; i--) { \ i 4479 modules/ts/src/ts_gtest.cpp listeners_[i]->Name(parameter); \ i 4502 modules/ts/src/ts_gtest.cpp for (size_t i = 0; i < listeners_.size(); i++) { i 4503 modules/ts/src/ts_gtest.cpp listeners_[i]->OnTestIterationStart(unit_test, iteration); i 4511 modules/ts/src/ts_gtest.cpp for (int i = static_cast<int>(listeners_.size()) - 1; i >= 0; i--) { i 4512 modules/ts/src/ts_gtest.cpp listeners_[i]->OnTestIterationEnd(unit_test, iteration); i 4651 modules/ts/src/ts_gtest.cpp for (size_t i = 0; i < str.size(); ++i) { i 4652 modules/ts/src/ts_gtest.cpp const char ch = str[i]; i 4816 modules/ts/src/ts_gtest.cpp for (int i = 0; i < result.total_part_count(); ++i) { i 4817 modules/ts/src/ts_gtest.cpp const TestPartResult& part = result.GetTestPartResult(i); i 4859 modules/ts/src/ts_gtest.cpp for (int i = 0; i < test_case.total_test_count(); ++i) { i 4860 modules/ts/src/ts_gtest.cpp if (test_case.GetTestInfo(i)->is_reportable()) i 4861 modules/ts/src/ts_gtest.cpp OutputXmlTestInfo(stream, test_case.name(), *test_case.GetTestInfo(i)); i 4898 modules/ts/src/ts_gtest.cpp for (int i = 0; i < unit_test.total_test_case_count(); ++i) { i 4899 modules/ts/src/ts_gtest.cpp if (unit_test.GetTestCase(i)->reportable_test_count() > 0) i 4900 modules/ts/src/ts_gtest.cpp PrintXmlTestCase(stream, *unit_test.GetTestCase(i)); i 4910 modules/ts/src/ts_gtest.cpp for (int i = 0; i < result.test_property_count(); ++i) { i 4911 modules/ts/src/ts_gtest.cpp const TestProperty& property = result.GetTestProperty(i); i 5240 modules/ts/src/ts_gtest.cpp const TestCase* UnitTest::GetTestCase(int i) const { i 5241 modules/ts/src/ts_gtest.cpp return impl()->GetTestCase(i); i 5252 modules/ts/src/ts_gtest.cpp TestCase* UnitTest::GetMutableTestCase(int i) { i 5253 modules/ts/src/ts_gtest.cpp return impl()->GetMutableTestCase(i); i 5298 modules/ts/src/ts_gtest.cpp for (int i = static_cast<int>(impl_->gtest_trace_stack().size()); i 5299 modules/ts/src/ts_gtest.cpp i > 0; --i) { i 5300 modules/ts/src/ts_gtest.cpp const internal::TraceInfo& trace = impl_->gtest_trace_stack()[i - 1]; i 5792 modules/ts/src/ts_gtest.cpp for (int i = 0; forever || i != repeat; i++) { i 5809 modules/ts/src/ts_gtest.cpp repeater->OnTestIterationStart(*parent_, i); i 5837 modules/ts/src/ts_gtest.cpp repeater->OnTestIterationEnd(*parent_, i); i 5975 modules/ts/src/ts_gtest.cpp for (size_t i = 0; i < test_cases_.size(); i++) { i 5976 modules/ts/src/ts_gtest.cpp TestCase* const test_case = test_cases_[i]; i 6028 modules/ts/src/ts_gtest.cpp for (int i = 0; *str != '\0'; ++str) { i 6029 modules/ts/src/ts_gtest.cpp if (i >= max_length) { i 6035 modules/ts/src/ts_gtest.cpp i += 2; i 6038 modules/ts/src/ts_gtest.cpp ++i; i 6049 modules/ts/src/ts_gtest.cpp for (size_t i = 0; i < test_cases_.size(); i++) { i 6050 modules/ts/src/ts_gtest.cpp const TestCase* const test_case = test_cases_[i]; i 6124 modules/ts/src/ts_gtest.cpp for (size_t i = 0; i < test_cases_.size(); i++) { i 6125 modules/ts/src/ts_gtest.cpp test_cases_[i]->ShuffleTests(random()); i 6131 modules/ts/src/ts_gtest.cpp for (size_t i = 0; i < test_cases_.size(); i++) { i 6133 modules/ts/src/ts_gtest.cpp test_cases_[i]->UnshuffleTests(); i 6135 modules/ts/src/ts_gtest.cpp test_case_indices_[i] = static_cast<int>(i); i 6410 modules/ts/src/ts_gtest.cpp for (int i = 1; i < *argc; i++) { i 6411 modules/ts/src/ts_gtest.cpp const std::string arg_string = StreamableToString(argv[i]); i 6451 modules/ts/src/ts_gtest.cpp for (int j = i; j != *argc; j++) { i 6460 modules/ts/src/ts_gtest.cpp i--; i 6505 modules/ts/src/ts_gtest.cpp for (int i = 0; i != *argc; i++) { i 6506 modules/ts/src/ts_gtest.cpp g_argvs.push_back(StreamableToString(argv[i])); i 7427 modules/ts/src/ts_gtest.cpp for (std::vector<char*>::iterator i = args_.begin(); i != args_.end(); i 7428 modules/ts/src/ts_gtest.cpp ++i) { i 7429 modules/ts/src/ts_gtest.cpp free(*i); i 7438 modules/ts/src/ts_gtest.cpp for (typename ::std::vector<Str>::const_iterator i = arguments.begin(); i 7439 modules/ts/src/ts_gtest.cpp i != arguments.end(); i 7440 modules/ts/src/ts_gtest.cpp ++i) { i 7441 modules/ts/src/ts_gtest.cpp args_.insert(args_.end() - 1, posix::StrDup(i->c_str())); i 8521 modules/ts/src/ts_gtest.cpp for (int i = 0; regex[i]; i++) { i 8522 modules/ts/src/ts_gtest.cpp if (regex[i] == '\\') { // An escape sequence i 8523 modules/ts/src/ts_gtest.cpp i++; i 8524 modules/ts/src/ts_gtest.cpp if (regex[i] == '\0') { i 8525 modules/ts/src/ts_gtest.cpp ADD_FAILURE() << FormatRegexSyntaxError(regex, i - 1) i 8530 modules/ts/src/ts_gtest.cpp if (!IsValidEscape(regex[i])) { i 8531 modules/ts/src/ts_gtest.cpp ADD_FAILURE() << FormatRegexSyntaxError(regex, i - 1) i 8532 modules/ts/src/ts_gtest.cpp << "invalid escape sequence \"\\" << regex[i] << "\"."; i 8537 modules/ts/src/ts_gtest.cpp const char ch = regex[i]; i 8539 modules/ts/src/ts_gtest.cpp if (ch == '^' && i > 0) { i 8540 modules/ts/src/ts_gtest.cpp ADD_FAILURE() << FormatRegexSyntaxError(regex, i) i 8543 modules/ts/src/ts_gtest.cpp } else if (ch == '$' && regex[i + 1] != '\0') { i 8544 modules/ts/src/ts_gtest.cpp ADD_FAILURE() << FormatRegexSyntaxError(regex, i) i 8548 modules/ts/src/ts_gtest.cpp ADD_FAILURE() << FormatRegexSyntaxError(regex, i) i 8552 modules/ts/src/ts_gtest.cpp ADD_FAILURE() << FormatRegexSyntaxError(regex, i) i 8580 modules/ts/src/ts_gtest.cpp for (size_t i = 0; i <= max_count; ++i) { i 8582 modules/ts/src/ts_gtest.cpp if (i >= min_count && MatchRegexAtHead(regex, str + i)) { i 8589 modules/ts/src/ts_gtest.cpp if (str[i] == '\0' || !AtomMatchesChar(escaped, c, str[i])) i 8965 modules/ts/src/ts_gtest.cpp for (size_t i = 0; i != full_flag.length(); i++) { i 8966 modules/ts/src/ts_gtest.cpp env_var << ToUpper(full_flag.c_str()[i]); i 9116 modules/ts/src/ts_gtest.cpp for (size_t i = 0; i != count; i++) { i 9117 modules/ts/src/ts_gtest.cpp const size_t j = start + i; i 9118 modules/ts/src/ts_gtest.cpp if (i != 0) { i 287 modules/ts/src/ts_perf.cpp for(size_t i = 0; i < nodename.length(); ++i) i 288 modules/ts/src/ts_perf.cpp if (!isalnum(nodename[i]) && '_' != nodename[i]) i 289 modules/ts/src/ts_perf.cpp nodename[i] = '-'; i 703 modules/ts/src/ts_perf.cpp std::map<std::string, float>::const_iterator i; i 704 modules/ts/src/ts_perf.cpp for (i = perf_validation_results.begin(); i != perf_validation_results.end(); ++i) i 706 modules/ts/src/ts_perf.cpp outfile << i->second << ';'; i 707 modules/ts/src/ts_perf.cpp outfile << i->first << std::endl; i 832 modules/ts/src/ts_perf.cpp for (size_t i = 0; i < available_impls.size(); ++i) { i 834 modules/ts/src/ts_perf.cpp fputs(available_impls[i].c_str(), stdout); i 1041 modules/ts/src/ts_perf.cpp for (size_t i = 0; i < total; ++i) i 1042 modules/ts/src/ts_perf.cpp warmup_impl(a.getMat((int)i), wtype); i 1054 modules/ts/src/ts_perf.cpp for (int i = 0; i < total; ++i) i 1055 modules/ts/src/ts_perf.cpp size += (int)a.total(i) * CV_ELEM_SIZE(a.type(i)); i 1146 modules/ts/src/ts_perf.cpp std::map<std::string, float>::iterator i = perf_validation_results.find(name); i 1150 modules/ts/src/ts_perf.cpp if (i != perf_validation_results.end()) i 1153 modules/ts/src/ts_perf.cpp double prev_result = i->second; i 1256 modules/ts/src/ts_perf.cpp for (SizeVector::const_iterator i = inputData.begin(); i != inputData.end(); ++i) i 1257 modules/ts/src/ts_perf.cpp res += i->first; i 1264 modules/ts/src/ts_perf.cpp for (SizeVector::const_iterator i = outputData.begin(); i != outputData.end(); ++i) i 1265 modules/ts/src/ts_perf.cpp res += i->first; i 1320 modules/ts/src/ts_perf.cpp for(TimeVector::const_iterator i = times.begin(); i != times.end(); ++i) i 1322 modules/ts/src/ts_perf.cpp double x = static_cast<double>(*i)/runsPerIteration; i 1348 modules/ts/src/ts_perf.cpp for (unsigned int i = 0; i < metrics.outliers; i++) i 1468 modules/ts/src/ts_perf.cpp for(int i=0; i<rec.size();i++ ){rec_line += rec[i].c_str(); rec_line += " ";} i 1470 modules/ts/src/ts_perf.cpp for(int i=0; i<rec.size();i++ ){rec_line += rec[i].c_str(); rec_line += " ";} i 1475 modules/ts/src/ts_perf.cpp for(int i=0; i<rec.size();i++ ){rec_line += rec[i].c_str(); rec_line += " ";} i 1524 modules/ts/src/ts_perf.cpp for(int i=0; i<rec.size();i++ ){rec_line += rec[i].c_str(); rec_line += " ";} i 1526 modules/ts/src/ts_perf.cpp for(int i=0; i<rec.size();i++ ){rec_line += rec[i].c_str(); rec_line += " ";} i 1531 modules/ts/src/ts_perf.cpp for(int i=0; i<rec.size();i++ ){rec_line += rec[i].c_str(); rec_line += " ";} i 1611 modules/ts/src/ts_perf.cpp if(implConf.icv) {printf("ICV_MT "); std::vector<cv::String> fun = implConf.GetCallsForImpl(CV_IMPL_IPP|CV_IMPL_MT); printf("("); for(int i=0; i<fun.size();i++ ){printf("%s ", fun[i].c_str());} printf(") "); } i 1612 modules/ts/src/ts_perf.cpp if(implConf.ipp) {printf("IPP_MT "); std::vector<cv::String> fun = implConf.GetCallsForImpl(CV_IMPL_IPP|CV_IMPL_MT); printf("("); for(int i=0; i<fun.size();i++ ){printf("%s ", fun[i].c_str());} printf(") "); } i 1616 modules/ts/src/ts_perf.cpp if(implConf.icv) {printf("ICV "); std::vector<cv::String> fun = implConf.GetCallsForImpl(CV_IMPL_IPP); printf("("); for(int i=0; i<fun.size();i++ ){printf("%s ", fun[i].c_str());} printf(") "); } i 1617 modules/ts/src/ts_perf.cpp if(implConf.ipp) {printf("IPP "); std::vector<cv::String> fun = implConf.GetCallsForImpl(CV_IMPL_IPP); printf("("); for(int i=0; i<fun.size();i++ ){printf("%s ", fun[i].c_str());} printf(") "); } i 1619 modules/ts/src/ts_perf.cpp if(implConf.ocl) {printf("OCL "); std::vector<cv::String> fun = implConf.GetCallsForImpl(CV_IMPL_OCL); printf("("); for(int i=0; i<fun.size();i++ ){printf("%s ", fun[i].c_str());} printf(") "); } i 1856 modules/ts/src/ts_perf.cpp for (int i = 0; i < desc.rows; ++i) i 1857 modules/ts/src/ts_perf.cpp idxs[i] = i; i 31 modules/video/perf/opencl/perf_bgfg_mog2.cpp for(int i = 0; i< (int)(input.size()); i++) i 33 modules/video/perf/opencl/perf_bgfg_mog2.cpp cvtColor(input[i], output[i], COLOR_RGB2GRAY); i 42 modules/video/perf/opencl/perf_bgfg_mog2.cpp for(int i = 0; i < nFrame; i++) i 77 modules/video/perf/opencl/perf_bgfg_mog2.cpp for (int i = 0; i < nFrame; i++) i 79 modules/video/perf/opencl/perf_bgfg_mog2.cpp mog2->apply(frame_buffer[i], u_foreground); i 108 modules/video/perf/opencl/perf_bgfg_mog2.cpp for (int i = 0; i < nFrame; i++) i 110 modules/video/perf/opencl/perf_bgfg_mog2.cpp mog2->apply(frame_buffer[i], u_foreground); i 510 modules/video/src/bgfg_KNN.cpp long i = 0; i 519 modules/video/src/bgfg_KNN.cpp int result= _cvCheckPixelBackgroundNP(i, data, nchannels, i 522 modules/video/src/bgfg_KNN.cpp _cvUpdatePixelBackgroundNP(i,data,nchannels, i 553 modules/video/src/bgfg_KNN.cpp i++; i 650 modules/video/src/bgfg_gaussmix2.cpp for( int i = mode; i > 0; i-- ) i 653 modules/video/src/bgfg_gaussmix2.cpp if( weight < gmm[i-1].weight ) i 658 modules/video/src/bgfg_gaussmix2.cpp std::swap(gmm[i], gmm[i-1]); i 660 modules/video/src/bgfg_gaussmix2.cpp std::swap(mean[i*nchannels + c], mean[(i-1)*nchannels + c]); i 702 modules/video/src/bgfg_gaussmix2.cpp for( int i = 0; i < nmodes-1; i++ ) i 703 modules/video/src/bgfg_gaussmix2.cpp gmm[i].weight *= alpha1; i 714 modules/video/src/bgfg_gaussmix2.cpp for( int i = nmodes - 1; i > 0; i-- ) i 717 modules/video/src/bgfg_gaussmix2.cpp if( alphaT < gmm[i-1].weight ) i 721 modules/video/src/bgfg_gaussmix2.cpp std::swap(gmm[i], gmm[i-1]); i 723 modules/video/src/bgfg_gaussmix2.cpp std::swap(mean[i*nchannels + c], mean[(i-1)*nchannels + c]); i 68 modules/video/src/camshift.cpp int i, niters = (criteria.type & TermCriteria::MAX_ITER) ? std::max(criteria.maxCount, 1) : 100; i 70 modules/video/src/camshift.cpp for( i = 0; i < niters; i++ ) i 104 modules/video/src/camshift.cpp return i; i 227 modules/video/src/ecc.cpp for (int i=0; i<dst.rows; i++){ i 228 modules/video/src/ecc.cpp dstPtr[i] = (float) src2.dot(src1.colRange(i*w,(i+1)*w)); i 236 modules/video/src/ecc.cpp for (int i=0; i<dst.rows; i++){ i 238 modules/video/src/ecc.cpp mat = Mat(src1.colRange(i*w, (i+1)*w)); i 239 modules/video/src/ecc.cpp dstPtr[i*(dst.rows+1)] = (float) pow(norm(mat),2); //diagonal elements i 241 modules/video/src/ecc.cpp for (int j=i+1; j<dst.cols; j++){ //j starts from i+1 i 242 modules/video/src/ecc.cpp dstPtr[i*dst.cols+j] = (float) mat.dot(src2.colRange(j*w, (j+1)*w)); i 243 modules/video/src/ecc.cpp dstPtr[j*dst.cols+i] = dstPtr[i*dst.cols+j]; //due to symmetry i 462 modules/video/src/ecc.cpp for (int i = 1; (i <= numberOfIterations) && (fabs(rho-last_rho)>= termination_eps); i++) i 1109 modules/video/src/lkpyramid.cpp int level=0, i, npoints; i 1135 modules/video/src/lkpyramid.cpp for( i = 0; i < npoints; i++ ) i 1136 modules/video/src/lkpyramid.cpp status[i] = true; i 1276 modules/video/src/lkpyramid.cpp for( int i = 0; i < count; i++ ) i 1278 modules/video/src/lkpyramid.cpp sa[0][0] += a[i].x*a[i].x; i 1279 modules/video/src/lkpyramid.cpp sa[0][1] += a[i].y*a[i].x; i 1280 modules/video/src/lkpyramid.cpp sa[0][2] += a[i].x; i 1282 modules/video/src/lkpyramid.cpp sa[1][1] += a[i].y*a[i].y; i 1283 modules/video/src/lkpyramid.cpp sa[1][2] += a[i].y; i 1287 modules/video/src/lkpyramid.cpp sb[0] += a[i].x*b[i].x; i 1288 modules/video/src/lkpyramid.cpp sb[1] += a[i].y*b[i].x; i 1289 modules/video/src/lkpyramid.cpp sb[2] += b[i].x; i 1290 modules/video/src/lkpyramid.cpp sb[3] += a[i].x*b[i].y; i 1291 modules/video/src/lkpyramid.cpp sb[4] += a[i].y*b[i].y; i 1292 modules/video/src/lkpyramid.cpp sb[5] += b[i].y; i 1311 modules/video/src/lkpyramid.cpp for( int i = 0; i < count; i++ ) i 1313 modules/video/src/lkpyramid.cpp sa[0][0] += a[i].x*a[i].x + a[i].y*a[i].y; i 1314 modules/video/src/lkpyramid.cpp sa[0][2] += a[i].x; i 1315 modules/video/src/lkpyramid.cpp sa[0][3] += a[i].y; i 1318 modules/video/src/lkpyramid.cpp sa[2][1] += -a[i].y; i 1321 modules/video/src/lkpyramid.cpp sa[3][0] += a[i].y; i 1322 modules/video/src/lkpyramid.cpp sa[3][1] += a[i].x; i 1325 modules/video/src/lkpyramid.cpp sb[0] += a[i].x*b[i].x + a[i].y*b[i].y; i 1326 modules/video/src/lkpyramid.cpp sb[1] += a[i].x*b[i].y - a[i].y*b[i].x; i 1327 modules/video/src/lkpyramid.cpp sb[2] += b[i].x; i 1328 modules/video/src/lkpyramid.cpp sb[3] += b[i].y; i 1365 modules/video/src/lkpyramid.cpp int i, j, k, k1; i 1427 modules/video/src/lkpyramid.cpp for( i = 0, k = 0; i < count_y; i++ ) i 1431 modules/video/src/lkpyramid.cpp pA[k].y = (i+0.5f)*sz1.height/count_y; i 1439 modules/video/src/lkpyramid.cpp for( i = 0, k = 0; i < count; i++ ) i 1440 modules/video/src/lkpyramid.cpp if( status[i] ) i 1442 modules/video/src/lkpyramid.cpp if( i > k ) i 1444 modules/video/src/lkpyramid.cpp pA[k] = pA[i]; i 1445 modules/video/src/lkpyramid.cpp pB[k] = pB[i]; i 1472 modules/video/src/lkpyramid.cpp for( i = 0; i < RANSAC_SIZE0; i++ ) i 1476 modules/video/src/lkpyramid.cpp idx[i] = rng.uniform(0, count); i 1478 modules/video/src/lkpyramid.cpp for( j = 0; j < i; j++ ) i 1480 modules/video/src/lkpyramid.cpp if( idx[j] == idx[i] ) i 1483 modules/video/src/lkpyramid.cpp if( fabs(pA[idx[i]].x - pA[idx[j]].x) + i 1484 modules/video/src/lkpyramid.cpp fabs(pA[idx[i]].y - pA[idx[j]].y) < FLT_EPSILON ) i 1486 modules/video/src/lkpyramid.cpp if( fabs(pB[idx[i]].x - pB[idx[j]].x) + i 1487 modules/video/src/lkpyramid.cpp fabs(pB[idx[i]].y - pB[idx[j]].y) < FLT_EPSILON ) i 1491 modules/video/src/lkpyramid.cpp if( j < i ) i 1494 modules/video/src/lkpyramid.cpp if( i+1 == RANSAC_SIZE0 ) i 1522 modules/video/src/lkpyramid.cpp if( i < RANSAC_SIZE0 ) i 1529 modules/video/src/lkpyramid.cpp for( i = 0, good_count = 0; i < count; i++ ) i 1531 modules/video/src/lkpyramid.cpp if( std::abs( m[0]*pA[i].x + m[1]*pA[i].y + m[2] - pB[i].x ) + i 1532 modules/video/src/lkpyramid.cpp std::abs( m[3]*pA[i].x + m[4]*pA[i].y + m[5] - pB[i].y ) < std::max(brect.width,brect.height)*0.05 ) i 1533 modules/video/src/lkpyramid.cpp good_idx[good_count++] = i; i 1545 modules/video/src/lkpyramid.cpp for( i = 0; i < good_count; i++ ) i 1547 modules/video/src/lkpyramid.cpp j = good_idx[i]; i 1548 modules/video/src/lkpyramid.cpp pA[i] = pA[j]; i 1549 modules/video/src/lkpyramid.cpp pB[i] = pB[j]; i 411 modules/video/src/optflowgf.cpp int x, y, i, width = _flow.cols, height = _flow.rows; i 425 modules/video/src/optflowgf.cpp for( i = 1; i <= m; i++ ) i 427 modules/video/src/optflowgf.cpp float t = (float)std::exp(-i*i/(2*sigma*sigma) ); i 428 modules/video/src/optflowgf.cpp kernel[i] = t; i 433 modules/video/src/optflowgf.cpp for( i = 0; i <= m; i++ ) i 434 modules/video/src/optflowgf.cpp kernel[i] = (float)(kernel[i]*s); i 441 modules/video/src/optflowgf.cpp for( i = 0; i <= m; i++ ) i 442 modules/video/src/optflowgf.cpp _mm_store_ps(simd_kernel + i*4, _mm_set1_ps(kernel[i])); i 453 modules/video/src/optflowgf.cpp for( i = 0; i <= m; i++ ) i 455 modules/video/src/optflowgf.cpp srow[m-i] = matM.ptr<float>(std::max(y-i,0)); i 456 modules/video/src/optflowgf.cpp srow[m+i] = matM.ptr<float>(std::min(y+i,height-1)); i 473 modules/video/src/optflowgf.cpp for( i = 1; i <= m; i++ ) i 476 modules/video/src/optflowgf.cpp sptr0 = srow[m+i], sptr1 = srow[m-i]; i 477 modules/video/src/optflowgf.cpp g4 = _mm_load_ps(simd_kernel + i*4); i 500 modules/video/src/optflowgf.cpp for( i = 1; i <= m; i++ ) i 502 modules/video/src/optflowgf.cpp sptr0 = srow[m+i], sptr1 = srow[m-i]; i 503 modules/video/src/optflowgf.cpp g4 = _mm_load_ps(simd_kernel + i*4); i 514 modules/video/src/optflowgf.cpp for( i = 1; i <= m; i++ ) i 515 modules/video/src/optflowgf.cpp s0 += (srow[m+i][x] + srow[m-i][x])*kernel[i]; i 537 modules/video/src/optflowgf.cpp for( i = 1; i <= m; i++ ) i 539 modules/video/src/optflowgf.cpp g4 = _mm_load_ps(simd_kernel + i*4); i 540 modules/video/src/optflowgf.cpp __m128 x0 = _mm_add_ps(_mm_loadu_ps(vsum + x - i*5), i 541 modules/video/src/optflowgf.cpp _mm_loadu_ps(vsum + x + i*5)); i 542 modules/video/src/optflowgf.cpp __m128 x1 = _mm_add_ps(_mm_loadu_ps(vsum + x - i*5 + 4), i 543 modules/video/src/optflowgf.cpp _mm_loadu_ps(vsum + x + i*5 + 4)); i 556 modules/video/src/optflowgf.cpp for( i = 1; i <= m; i++ ) i 557 modules/video/src/optflowgf.cpp sum += kernel[i]*(vsum[x - i*5] + vsum[x + i*5]); i 649 modules/video/src/optflowgf.cpp for (int i = 1; i <= numLevelsCropped; ++i) i 651 modules/video/src/optflowgf.cpp pyrDown(pyramid0_[i - 1], pyramid0_[i]); i 652 modules/video/src/optflowgf.cpp pyrDown(pyramid1_[i - 1], pyramid1_[i]); i 661 modules/video/src/optflowgf.cpp for (int i = 0; i < k; i++) i 741 modules/video/src/optflowgf.cpp for (int i = 0; i < 2; i++) i 743 modules/video/src/optflowgf.cpp if (!gaussianBlurOcl(frames_[i], smoothSize/2, blurredFrame[i])) i 745 modules/video/src/optflowgf.cpp resize(blurredFrame[i], pyrLevel[i], Size(width, height), INTER_LINEAR); i 746 modules/video/src/optflowgf.cpp if (!polynomialExpansionOcl(pyrLevel[i], R[i])) i 756 modules/video/src/optflowgf.cpp for (int i = 0; i < numIters; i++) i 760 modules/video/src/optflowgf.cpp if (!updateFlow_gaussianBlur(R[0], R[1], curFlowX, curFlowY, M, bufM, winSize, i < numIters-1)) i 765 modules/video/src/optflowgf.cpp if (!updateFlow_boxFilter(R[0], R[1], curFlowX, curFlowY, M, bufM, winSize, i < numIters-1)) i 1093 modules/video/src/optflowgf.cpp int i, k; i 1113 modules/video/src/optflowgf.cpp for( i = 0, scale = 1; i < k; i++ ) i 1145 modules/video/src/optflowgf.cpp for( i = 0; i < 2; i++ ) i 1147 modules/video/src/optflowgf.cpp img[i]->convertTo(fimg, CV_32F); i 1150 modules/video/src/optflowgf.cpp FarnebackPolyExp( I, R[i], poly_n, poly_sigma ); i 1155 modules/video/src/optflowgf.cpp for( i = 0; i < iterations; i++ ) i 1158 modules/video/src/optflowgf.cpp FarnebackUpdateFlow_GaussianBlur( R[0], R[1], flow, M, winsize, i < iterations - 1 ); i 1160 modules/video/src/optflowgf.cpp FarnebackUpdateFlow_Blur( R[0], R[1], flow, M, winsize, i < iterations - 1 ); i 57 modules/video/test/ocl/test_bgfg_mog2.cpp for (int i = 0; i < 10; ++i) i 105 modules/video/test/ocl/test_bgfg_mog2.cpp for (int i = 0; i < 10; ++i) i 107 modules/video/test/ocl/test_optflowpyrlk.cpp for (size_t i = 0; i < nextPts.size(); ++i) i 109 modules/video/test/ocl/test_optflowpyrlk.cpp if (status[i] != cpuStatusCPU[i]) i 115 modules/video/test/ocl/test_optflowpyrlk.cpp if (status[i]) i 117 modules/video/test/ocl/test_optflowpyrlk.cpp cv::Point2i a = nextPts[i]; i 118 modules/video/test/ocl/test_optflowpyrlk.cpp cv::Point2i b = cpuNextPts[i]; i 55 modules/video/test/test_accum.cpp double get_success_error_level( int test_case_idx, int i, int j ); i 77 modules/video/test/test_accum.cpp int i, input_count = (int)test_array[INPUT].size(); i 83 modules/video/test/test_accum.cpp for( i = 0; i < input_count; i++ ) i 84 modules/video/test/test_accum.cpp types[INPUT][i] = CV_MAKETYPE(depth,cn); i 230 modules/video/test/test_camshift.cpp int i, area; i 237 modules/video/test/test_camshift.cpp for(i = 0; i < 100; i++) i 259 modules/video/test/test_camshift.cpp return i < 100 ? code : 0; i 397 modules/video/test/test_camshift.cpp int i; i 404 modules/video/test/test_camshift.cpp for(i = 0; i < 100; i++) i 426 modules/video/test/test_camshift.cpp return i < 100 ? code : 0; i 79 modules/video/test/test_ecc.cpp for(int i =0; i<map.rows; i++) i 81 modules/video/test/test_ecc.cpp mapVal = map.at<float>(i, j); i 446 modules/video/test/test_ecc.cpp for (int i=testImg.rows*2/3; i<testImg.rows; i++) { i 448 modules/video/test/test_ecc.cpp testImg(i, j) = 0; i 449 modules/video/test/test_ecc.cpp mask(i, j) = 0; i 71 modules/video/test/test_kalman.cpp int i, j; i 96 modules/video/test/test_kalman.cpp for(i = 0; i<Steps; i++) i 80 modules/video/test/test_optflowpyrlk.cpp int n = 0, i = 0; i 151 modules/video/test/test_optflowpyrlk.cpp for( i = 0; i < n; i++ ) i 153 modules/video/test/test_optflowpyrlk.cpp if( status[i] != 0 ) i 156 modules/video/test/test_optflowpyrlk.cpp if( cvIsNaN(v[i].x) ) i 162 modules/video/test/test_optflowpyrlk.cpp err = fabs(v2[i].x - v[i].x) + fabs(v2[i].y - v[i].y); i 166 modules/video/test/test_optflowpyrlk.cpp merr_i = i; i 175 modules/video/test/test_optflowpyrlk.cpp if( !cvIsNaN( v[i].x )) i 177 modules/video/test/test_optflowpyrlk.cpp merr_i = i; i 179 modules/video/test/test_optflowpyrlk.cpp ts->printf( cvtest::TS::LOG, "The algorithm lost the point #%d\n", i ); i 236 modules/video/test/test_optflowpyrlk.cpp for(int i = 0; i < 50; ++i) i 69 modules/video/test/test_tvl1optflow.cpp for (int i = 0; i < flow.rows; ++i) i 73 modules/video/test/test_tvl1optflow.cpp const Point2f u = flow(i, j); i 99 modules/video/test/test_tvl1optflow.cpp for (int i = 0; i < flow.rows; ++i) i 108 modules/video/test/test_tvl1optflow.cpp flow(i, j) = u; i 123 modules/video/test/test_tvl1optflow.cpp for (int i = 0; i < flow1.rows; ++i) i 127 modules/video/test/test_tvl1optflow.cpp const Point2f u1 = flow1(i, j); i 128 modules/video/test/test_tvl1optflow.cpp const Point2f u2 = flow2(i, j); i 186 modules/videoio/src/cap.cpp for (int i = 0; domains[i] >= 0; i++) i 215 modules/videoio/src/cap.cpp switch (domains[i]) i 526 modules/videoio/src/cap.cpp for (int i = 0; domains[i] >= 0; i++) i 535 modules/videoio/src/cap.cpp switch (domains[i]) i 582 modules/videoio/src/cap.cpp for (int i = 0; domains[i] >= 0; i++) i 586 modules/videoio/src/cap.cpp switch (domains[i]) i 282 modules/videoio/src/cap_cmu.cpp for(int i = 1; i < CMU_numCameras && i<CMU_MAX_CAMERAS; i++ ) i 284 modules/videoio/src/cap_cmu.cpp CMU_useCameraFlags[i] = false; i 285 modules/videoio/src/cap_cmu.cpp if (CMU_theCamera[i].CheckLink() != CAM_SUCCESS) i 304 modules/videoio/src/cap_cmu.cpp for(int i = 0; i < CMU_numCameras; i++ ) i 306 modules/videoio/src/cap_cmu.cpp if( !CMU_useCameraFlags[i] ){ i 307 modules/videoio/src/cap_cmu.cpp _index = i; i 216 modules/videoio/src/cap_dc1394.cpp for (int i=0;i<camCount[p];i++) { i 217 modules/videoio/src/cap_dc1394.cpp cameras[numCameras].cam.node = camera_nodes[i]; i 219 modules/videoio/src/cap_dc1394.cpp dc1394_stop_iso_transmission(handles[p], camera_nodes[i]); i 228 modules/videoio/src/cap_dc1394.cpp int i; i 252 modules/videoio/src/cap_dc1394.cpp for (i=0; i < NUM_FORMATS; i++) { i 253 modules/videoio/src/cap_dc1394.cpp modes[i]=0; i 254 modules/videoio/src/cap_dc1394.cpp if (icvFormatSupportedCAM_DC1394(i+FORMAT_MIN, formats)){ i 255 modules/videoio/src/cap_dc1394.cpp if (dc1394_query_supported_modes(pcap->handle, pcap->camera->node, i+FORMAT_MIN, &modes[i])<0) { i 256 modules/videoio/src/cap_dc1394.cpp fprintf(stderr,"%s:%d: Could not query Format%d modes\n",__FILE__,__LINE__,i); i 269 modules/videoio/src/cap_dc1394.cpp for(i=0; (pcap->mode == 0) && (preferred_modes[i] != 0); i++) { i 270 modules/videoio/src/cap_dc1394.cpp if((preferred_modes[i] >= FORMAT_MIN) && (preferred_modes[i] <= FORMAT_MAX)) { i 271 modules/videoio/src/cap_dc1394.cpp pcap->format = preferred_modes[i]; i 272 modules/videoio/src/cap_dc1394.cpp format_idx = preferred_modes[i] - FORMAT_MIN; i 278 modules/videoio/src/cap_dc1394.cpp if ( icvModeSupportedCAM_DC1394(pcap->format, preferred_modes[i], modes[format_idx]) ){ i 279 modules/videoio/src/cap_dc1394.cpp pcap->mode = preferred_modes[i]; i 390 modules/videoio/src/cap_dc1394.cpp for (int i=0;i<capture->frame.imageSize;i+=6) { i 391 modules/videoio/src/cap_dc1394.cpp dst[i] = src[i+2]; i 392 modules/videoio/src/cap_dc1394.cpp dst[i+1] = src[i+1]; i 393 modules/videoio/src/cap_dc1394.cpp dst[i+2] = src[i]; i 394 modules/videoio/src/cap_dc1394.cpp dst[i+3] = src[i+5]; i 395 modules/videoio/src/cap_dc1394.cpp dst[i+4] = src[i+4]; i 396 modules/videoio/src/cap_dc1394.cpp dst[i+5] = src[i+3]; i 910 modules/videoio/src/cap_dc1394.cpp register int i = NumPixels + (NumPixels << 1) - 1; i 915 modules/videoio/src/cap_dc1394.cpp while (i > 0) { i 916 modules/videoio/src/cap_dc1394.cpp v = src[i--] - 128; i 917 modules/videoio/src/cap_dc1394.cpp y = src[i--]; i 918 modules/videoio/src/cap_dc1394.cpp u = src[i--] - 128; i 930 modules/videoio/src/cap_dc1394.cpp register int i = (NumPixels << 1) - 1; i 935 modules/videoio/src/cap_dc1394.cpp while (i > 0) { i 936 modules/videoio/src/cap_dc1394.cpp y1 = src[i--]; i 937 modules/videoio/src/cap_dc1394.cpp v = src[i--] - 128; i 938 modules/videoio/src/cap_dc1394.cpp y0 = src[i--]; i 939 modules/videoio/src/cap_dc1394.cpp u = src[i--] - 128; i 956 modules/videoio/src/cap_dc1394.cpp register int i = NumPixels + (NumPixels >> 1) - 1; i 961 modules/videoio/src/cap_dc1394.cpp while (i > 0) { i 962 modules/videoio/src/cap_dc1394.cpp y3 = src[i--]; i 963 modules/videoio/src/cap_dc1394.cpp y2 = src[i--]; i 964 modules/videoio/src/cap_dc1394.cpp v = src[i--] - 128; i 965 modules/videoio/src/cap_dc1394.cpp y1 = src[i--]; i 966 modules/videoio/src/cap_dc1394.cpp y0 = src[i--]; i 967 modules/videoio/src/cap_dc1394.cpp u = src[i--] - 128; i 991 modules/videoio/src/cap_dc1394.cpp register int i = NumPixels - 1; i 995 modules/videoio/src/cap_dc1394.cpp while (i > 0) { i 996 modules/videoio/src/cap_dc1394.cpp y = src[i--]; i 1007 modules/videoio/src/cap_dc1394.cpp register int i = (NumPixels << 1) - 1; i 1011 modules/videoio/src/cap_dc1394.cpp while (i > 0) { i 1012 modules/videoio/src/cap_dc1394.cpp y = src[i--]; i 1013 modules/videoio/src/cap_dc1394.cpp y = (y + (src[i--] << 8)) >> (bits - 8); i 1025 modules/videoio/src/cap_dc1394.cpp register int i = (NumPixels << 1) - 1; i 1029 modules/videoio/src/cap_dc1394.cpp while (i > 0) { i 1030 modules/videoio/src/cap_dc1394.cpp y = src[i--]; i 1031 modules/videoio/src/cap_dc1394.cpp dest[j-2] = (y + (src[i--] << 8)) >> (bits - 8); i 1033 modules/videoio/src/cap_dc1394.cpp y = src[i--]; i 1034 modules/videoio/src/cap_dc1394.cpp dest[j] = (y + (src[i--] << 8)) >> (bits - 8); i 1036 modules/videoio/src/cap_dc1394.cpp y = src[i--]; i 1037 modules/videoio/src/cap_dc1394.cpp dest[j+2] = (y + (src[i--] << 8)) >> (bits - 8); i 291 modules/videoio/src/cap_dc1394_v2.cpp for (int i = 0; i < NIMG; i++) i 292 modules/videoio/src/cap_dc1394_v2.cpp img[i] = maps[i][0] = maps[i][1] = 0; i 302 modules/videoio/src/cap_dc1394_v2.cpp int i; i 376 modules/videoio/src/cap_dc1394_v2.cpp for (i = 0; i < (int)videoModes.num; i++) i 378 modules/videoio/src/cap_dc1394_v2.cpp dc1394video_mode_t mode = videoModes.modes[i]; i 427 modules/videoio/src/cap_dc1394_v2.cpp for (i = 0; i < (int)framerates.num; i++) i 429 modules/videoio/src/cap_dc1394_v2.cpp dc1394framerate_t ifps = framerates.framerates[i]; i 522 modules/videoio/src/cap_dc1394_v2.cpp for (int i = 0; i < NIMG; i++) i 524 modules/videoio/src/cap_dc1394_v2.cpp cvReleaseImage(&img[i]); i 525 modules/videoio/src/cap_dc1394_v2.cpp cvReleaseImage(&maps[i][0]); i 526 modules/videoio/src/cap_dc1394_v2.cpp cvReleaseImage(&maps[i][1]); i 543 modules/videoio/src/cap_dc1394_v2.cpp int i, nch; i 577 modules/videoio/src/cap_dc1394_v2.cpp for (i = 0; i < nimages; i++) i 582 modules/videoio/src/cap_dc1394_v2.cpp f.image += f.size[0] * f.size[1] * i; // TODO: make it more universal i 601 modules/videoio/src/cap_dc1394_v2.cpp if (!img[i]) i 602 modules/videoio/src/cap_dc1394_v2.cpp img[i] = cvCreateImage(cvSize(fc->size[0], fc->size[1]), 8, nch); i 612 modules/videoio/src/cap_dc1394_v2.cpp if( !maps[0][0] || maps[0][0]->width != img[i]->width || maps[0][0]->height != img[i]->height ) i 614 modules/videoio/src/cap_dc1394_v2.cpp CvSize size = cvGetSize(img[i]); i 630 modules/videoio/src/cap_dc1394_v2.cpp cvRemap(&fhdr, img[i], maps[i][0], maps[i][1]); i 633 modules/videoio/src/cap_dc1394_v2.cpp cvCopy(&fhdr, img[i]); i 875 modules/videoio/src/cap_dshow.cpp int i = 0; i 915 modules/videoio/src/cap_dshow.cpp i++; i 1056 modules/videoio/src/cap_dshow.cpp for(int i=0; i<VI_MAX_CAMERAS; i++) VDList[i] = new videoDevice(); i 1974 modules/videoio/src/cap_dshow.cpp for(int i = 0; i < VI_MAX_CAMERAS; i++) i 1976 modules/videoio/src/cap_dshow.cpp delete VDList[i]; i 2141 modules/videoio/src/cap_dshow.cpp for(int i = 0; i < numBytes; i+=3){ i 2161 modules/videoio/src/cap_dshow.cpp for(int i = 0; i < numBytes; i+=3){ i 2214 modules/videoio/src/cap_dshow.cpp for (int i=0;i<VI_NUM_TYPES;i++) { i 2215 modules/videoio/src/cap_dshow.cpp if ( (unsigned long)(unsigned)fourcc == mediaSubtypes[i].Data1 ) { i 2216 modules/videoio/src/cap_dshow.cpp return &mediaSubtypes[i]; i 2600 modules/videoio/src/cap_dshow.cpp for(int i = 0; i < VI_NUM_TYPES; i++){ i 2602 modules/videoio/src/cap_dshow.cpp getMediaSubtypeAsString(mediaSubtypes[i], guidStr); i 2605 modules/videoio/src/cap_dshow.cpp if( setSizeAndSubtype(VD, VD->tryWidth, VD->tryHeight, mediaSubtypes[i]) ){ i 2607 modules/videoio/src/cap_dshow.cpp VD->videoType = mediaSubtypes[i]; i 564 modules/videoio/src/cap_ffmpeg_impl.hpp unsigned i; i 592 modules/videoio/src/cap_ffmpeg_impl.hpp for(i = 0; i < ic->nb_streams; i++) i 595 modules/videoio/src/cap_ffmpeg_impl.hpp AVCodecContext *enc = ic->streams[i]->codec; i 597 modules/videoio/src/cap_ffmpeg_impl.hpp AVCodecContext *enc = &ic->streams[i]->codec; i 630 modules/videoio/src/cap_ffmpeg_impl.hpp video_stream = i; i 631 modules/videoio/src/cap_ffmpeg_impl.hpp video_st = ic->streams[i]; i 1558 modules/videoio/src/cap_ffmpeg_impl.hpp int i; i 1559 modules/videoio/src/cap_ffmpeg_impl.hpp for (i = 0; tags && tags[i]; i++) { i 1560 modules/videoio/src/cap_ffmpeg_impl.hpp bool res = cv_ff_codec_tag_match(tags[i], id, tag); i 1943 modules/videoio/src/cap_ffmpeg_impl.hpp for (unsigned int i = 0; i < oc_->nb_streams; ++i) i 1945 modules/videoio/src/cap_ffmpeg_impl.hpp av_freep(&oc_->streams[i]->codec); i 1946 modules/videoio/src/cap_ffmpeg_impl.hpp av_freep(&oc_->streams[i]); i 2276 modules/videoio/src/cap_ffmpeg_impl.hpp for (unsigned int i = 0; i < ctx_->nb_streams; ++i) i 2279 modules/videoio/src/cap_ffmpeg_impl.hpp AVCodecContext *enc = ctx_->streams[i]->codec; i 2281 modules/videoio/src/cap_ffmpeg_impl.hpp AVCodecContext *enc = &ctx_->streams[i]->codec; i 2286 modules/videoio/src/cap_ffmpeg_impl.hpp video_stream_id_ = static_cast<int>(i); i 394 modules/videoio/src/cap_giganetix.cpp for (int i = 0; i < (int) DevicesList.size() && !b_ret; i++) i 396 modules/videoio/src/cap_giganetix.cpp b_ret = (i == index); i 399 modules/videoio/src/cap_giganetix.cpp m_device = DevicesList[i]; i 606 modules/videoio/src/cap_giganetix.cpp INT64 i; i 613 modules/videoio/src/cap_giganetix.cpp m_device->GetIntegerNodeValue ("Width", i); i 614 modules/videoio/src/cap_giganetix.cpp d_ret = i; i 617 modules/videoio/src/cap_giganetix.cpp m_device->GetIntegerNodeValue ("Height", i); i 618 modules/videoio/src/cap_giganetix.cpp d_ret = i; i 621 modules/videoio/src/cap_giganetix.cpp m_device->GetIntegerNodeValue ("OffsetX", i); i 622 modules/videoio/src/cap_giganetix.cpp d_ret = i; i 625 modules/videoio/src/cap_giganetix.cpp m_device->GetIntegerNodeValue ("OffsetY", i); i 626 modules/videoio/src/cap_giganetix.cpp d_ret = i; i 629 modules/videoio/src/cap_giganetix.cpp m_device->GetIntegerNodeValue ("WidthMax", i); i 630 modules/videoio/src/cap_giganetix.cpp d_ret = i; i 633 modules/videoio/src/cap_giganetix.cpp m_device->GetIntegerNodeValue ("HeightMax", i); i 634 modules/videoio/src/cap_giganetix.cpp d_ret = i; i 637 modules/videoio/src/cap_giganetix.cpp m_device->GetIntegerNodeValue ("SensorWidth", i); i 638 modules/videoio/src/cap_giganetix.cpp d_ret = i; i 641 modules/videoio/src/cap_giganetix.cpp m_device->GetIntegerNodeValue ("SensorHeight", i); i 642 modules/videoio/src/cap_giganetix.cpp d_ret = i; i 645 modules/videoio/src/cap_giganetix.cpp m_device->GetIntegerNodeValue ("AcquisitionFrameCount", i); i 646 modules/videoio/src/cap_giganetix.cpp d_ret = i; i 637 modules/videoio/src/cap_gphoto2.cpp int cnt = 0, i; i 641 modules/videoio/src/cap_gphoto2.cpp for (i = 0; i < cnt; i++) i 644 modules/videoio/src/cap_gphoto2.cpp CR(gp_widget_get_choice(widget, i, &choice)); i 647 modules/videoio/src/cap_gphoto2.cpp return i; i 773 modules/videoio/src/cap_gphoto2.cpp int i = static_cast<int>(value); i 775 modules/videoio/src/cap_gphoto2.cpp CR(gp_widget_get_choice(widget, i, (const char**)&choice)); i 781 modules/videoio/src/cap_gphoto2.cpp int i = static_cast<int>(value); i 782 modules/videoio/src/cap_gphoto2.cpp CR(gp_widget_set_value(widget, &i)); i 912 modules/videoio/src/cap_gphoto2.cpp for (int i = 0; i < numDevices; ++i) i 914 modules/videoio/src/cap_gphoto2.cpp CR(gp_list_get_name(allDevices, i, &model)); i 917 modules/videoio/src/cap_gphoto2.cpp return i; i 1094 modules/videoio/src/cap_gphoto2.cpp int cnt = 0, i; i 1099 modules/videoio/src/cap_gphoto2.cpp for (i = 0; i < cnt; i++) i 1102 modules/videoio/src/cap_gphoto2.cpp CR(gp_widget_get_choice(widget, i, &choice)); i 1103 modules/videoio/src/cap_gphoto2.cpp os << i << ":" << choice; i 1104 modules/videoio/src/cap_gphoto2.cpp if (i + 1 < cnt) i 230 modules/videoio/src/cap_images.cpp int i; i 232 modules/videoio/src/cap_images.cpp for(i = 0, extension = at; isdigit(at[i]); i++, extension++) i 235 modules/videoio/src/cap_images.cpp sprintf(places, "%dd", i); i 514 modules/videoio/src/cap_libv4l.cpp int i; i 516 modules/videoio/src/cap_libv4l.cpp for (i = 0; i < capture->v4l2_ctrl_count; i++) { i 523 modules/videoio/src/cap_libv4l.cpp free(capture->v4l2_ctrl_ranges[i]); i 545 modules/videoio/src/cap_libv4l.cpp int i; i 546 modules/videoio/src/cap_libv4l.cpp for (i = 0; i < capture->v4l2_ctrl_count; i++) { i 547 modules/videoio/src/cap_libv4l.cpp if (id == capture->v4l2_ctrl_ranges[i]->ctrl_id) { i 548 modules/videoio/src/cap_libv4l.cpp return capture->v4l2_ctrl_ranges[i]->default_value; i 555 modules/videoio/src/cap_libv4l.cpp int i; i 556 modules/videoio/src/cap_libv4l.cpp for (i = 0; i < capture->v4l2_ctrl_count; i++) { i 557 modules/videoio/src/cap_libv4l.cpp if (id == capture->v4l2_ctrl_ranges[i]->ctrl_id) { i 558 modules/videoio/src/cap_libv4l.cpp return capture->v4l2_ctrl_ranges[i]->minimum; i 565 modules/videoio/src/cap_libv4l.cpp int i; i 566 modules/videoio/src/cap_libv4l.cpp for (i = 0; i < capture->v4l2_ctrl_count; i++) { i 567 modules/videoio/src/cap_libv4l.cpp if (id == capture->v4l2_ctrl_ranges[i]->ctrl_id) { i 568 modules/videoio/src/cap_libv4l.cpp return capture->v4l2_ctrl_ranges[i]->maximum; i 560 modules/videoio/src/cap_mjpeg_decoder.cpp for(DWORD i = 0; i < number_of_streams; ++i) i 572 modules/videoio/src/cap_mjpeg_decoder.cpp result = parseStrl(in_str, (uint8_t)i); i 272 modules/videoio/src/cap_mjpeg_encoder.cpp int i, k; i 277 modules/videoio/src/cap_mjpeg_encoder.cpp for( i = 1, k = 1; src[k] >= 0; i++ ) i 304 modules/videoio/src/cap_mjpeg_encoder.cpp for( i = 1, k = 1; src[k] >= 0; i++ ) i 313 modules/videoio/src/cap_mjpeg_encoder.cpp table[val - min_val + 2] = (code << 8) | i; i 322 modules/videoio/src/cap_mjpeg_encoder.cpp int i, val_idx, code = 0; i 325 modules/videoio/src/cap_mjpeg_encoder.cpp for (i = 1, val_idx = max_bits; i <= max_bits; i++) i 327 modules/videoio/src/cap_mjpeg_encoder.cpp int code_count = src[i - 1]; i 547 modules/videoio/src/cap_mjpeg_encoder.cpp for( int i = 0; i < nframes; i++ ) i 551 modules/videoio/src/cap_mjpeg_encoder.cpp strm.putInt((int)frameOffset[i]); i 552 modules/videoio/src/cap_mjpeg_encoder.cpp strm.putInt((int)frameSize[i]); i 1008 modules/videoio/src/cap_mjpeg_encoder.cpp int i; i 1011 modules/videoio/src/cap_mjpeg_encoder.cpp for( i = 8; i > 0; i--, src += step, work += 8 ) i 1058 modules/videoio/src/cap_mjpeg_encoder.cpp for( i = 8; i > 0; i--, work++, postscale += 8, dst += 8 ) i 1118 modules/videoio/src/cap_mjpeg_encoder.cpp for( int i = -CAT_TAB_SIZE; i <= CAT_TAB_SIZE; i++ ) i 1121 modules/videoio/src/cap_mjpeg_encoder.cpp a.f = (float)i; i 1122 modules/videoio/src/cap_mjpeg_encoder.cpp cat_table[i+CAT_TAB_SIZE] = ((a.i >> 23) & 255) - (126 & (i ? -1 : 0)); i 1137 modules/videoio/src/cap_mjpeg_encoder.cpp int i, j; i 1167 modules/videoio/src/cap_mjpeg_encoder.cpp for( i = 0; i < (channels > 1 ? 2 : 1); i++ ) i 1169 modules/videoio/src/cap_mjpeg_encoder.cpp const uchar* qtable = i == 0 ? jpegTableK1_T : jpegTableK2_T; i 1170 modules/videoio/src/cap_mjpeg_encoder.cpp int chroma_scale = i > 0 ? luma_count : 1; i 1174 modules/videoio/src/cap_mjpeg_encoder.cpp strm.putByte( 0*16 + i ); // 8-bit table i 1185 modules/videoio/src/cap_mjpeg_encoder.cpp fdct_qtab[i][idx] = (short)(cvRound((1 << (postshift + 11)))/ i 1192 modules/videoio/src/cap_mjpeg_encoder.cpp for( i = 0; i < (channels > 1 ? 4 : 2); i++ ) i 1194 modules/videoio/src/cap_mjpeg_encoder.cpp const uchar* htable = i == 0 ? jpegTableK3 : i == 1 ? jpegTableK5 : i 1195 modules/videoio/src/cap_mjpeg_encoder.cpp i == 2 ? jpegTableK4 : jpegTableK6; i 1196 modules/videoio/src/cap_mjpeg_encoder.cpp int is_ac_tab = i & 1; i 1197 modules/videoio/src/cap_mjpeg_encoder.cpp int idx = i >= 2; i 1218 modules/videoio/src/cap_mjpeg_encoder.cpp for( i = 0; i < channels; i++ ) i 1220 modules/videoio/src/cap_mjpeg_encoder.cpp strm.putByte( i + 1 ); // (i+1)-th component id (Y,U or V) i 1221 modules/videoio/src/cap_mjpeg_encoder.cpp if( i == 0 ) i 1225 modules/videoio/src/cap_mjpeg_encoder.cpp strm.putByte( i > 0 ); // quantization table idx i 1233 modules/videoio/src/cap_mjpeg_encoder.cpp for( i = 0; i < channels; i++ ) i 1235 modules/videoio/src/cap_mjpeg_encoder.cpp strm.putByte( i+1 ); // component id i 1236 modules/videoio/src/cap_mjpeg_encoder.cpp strm.putByte( (i>0)*16 + (i>0) );// selection of DC & AC tables i 1285 modules/videoio/src/cap_mjpeg_encoder.cpp for( i = 0; i < y_limit; i += 2, pix_data += step*2, Y_data += Y_step*2, UV_data += UV_step ) i 1344 modules/videoio/src/cap_mjpeg_encoder.cpp for( i = 0; i < y_limit; i++, pix_data += step, Y_data += Y_step ) i 1384 modules/videoio/src/cap_mjpeg_encoder.cpp if( ((i+1) & (y_scale - 1)) == 0 ) i 1395 modules/videoio/src/cap_mjpeg_encoder.cpp for( i = 0; i < y_limit; i++, pix_data += step, Y_data += Y_step ) i 1402 modules/videoio/src/cap_mjpeg_encoder.cpp for( i = 0; i < block_count; i++ ) i 1404 modules/videoio/src/cap_mjpeg_encoder.cpp int is_chroma = i >= luma_count; i 1407 modules/videoio/src/cap_mjpeg_encoder.cpp const short* src_ptr = block[i & -2] + (i & 1)*8; i 1414 modules/videoio/src/cap_mjpeg_encoder.cpp j = is_chroma + (i > luma_count); i 644 modules/videoio/src/cap_msmf.cpp videoDevice *getDevice(unsigned int i); i 749 modules/videoio/src/cap_msmf.cpp int i = 0; i 763 modules/videoio/src/cap_msmf.cpp i = va_arg (args, int); i 769 modules/videoio/src/cap_msmf.cpp wprintf(format, i,p); i 1179 modules/videoio/src/cap_msmf.cpp for (UINT32 i = 0; i < count; i++) i 1181 modules/videoio/src/cap_msmf.cpp hr = LogAttributeValueByIndexNew(pType, i, out); i 1559 modules/videoio/src/cap_msmf.cpp for (DWORD i = 0; i < cStreams; i++) i 1564 modules/videoio/src/cap_msmf.cpp CHECK_HR(hr = pPD->GetStreamDescriptorByIndex(i, &fSelected, &pSD)); i 1576 modules/videoio/src/cap_msmf.cpp CHECK_HR(hr = pPD->DeselectStream(i)); i 2010 modules/videoio/src/cap_msmf.cpp for(unsigned int i = 0; i < 10; i++) i 2012 modules/videoio/src/cap_msmf.cpp if(pPrevParametr[i].CurrentValue != pParametr[i].CurrentValue || pPrevParametr[i].Flag != pParametr[i].Flag) i 2013 modules/videoio/src/cap_msmf.cpp hr = pProcAmp->Set(VideoProcAmp_Brightness + i, pParametr[i].CurrentValue, pParametr[i].Flag); i 2021 modules/videoio/src/cap_msmf.cpp for(unsigned int i = 0; i < 7; i++) i 2023 modules/videoio/src/cap_msmf.cpp if(pPrevParametr[10 + i].CurrentValue != pParametr[10 + i].CurrentValue || pPrevParametr[10 + i].Flag != pParametr[10 + i].Flag) i 2024 modules/videoio/src/cap_msmf.cpp hr = pProcControl->Set(CameraControl_Pan+i, pParametr[10 + i].CurrentValue, pParametr[10 + i].Flag); i 2045 modules/videoio/src/cap_msmf.cpp for(unsigned int i = 0; i < 10; i++) i 2048 modules/videoio/src/cap_msmf.cpp hr = pProcAmp->GetRange(VideoProcAmp_Brightness+i, &temp.Min, &temp.Max, &temp.Step, &temp.Default, &temp.Flag); i 2052 modules/videoio/src/cap_msmf.cpp pParametr[i] = temp; i 2061 modules/videoio/src/cap_msmf.cpp for(unsigned int i = 0; i < 7; i++) i 2064 modules/videoio/src/cap_msmf.cpp hr = pProcControl->GetRange(CameraControl_Pan+i, &temp.Min, &temp.Max, &temp.Step, &temp.Default, &temp.Flag); i 2068 modules/videoio/src/cap_msmf.cpp pParametr[10 + i] = temp; i 2193 modules/videoio/src/cap_msmf.cpp for (UINT32 i = 0; i < count; i++) { i 2195 modules/videoio/src/cap_msmf.cpp WRL_METHOD(pVector, GetAt, pDevice, hr, i) i 2255 modules/videoio/src/cap_msmf.cpp for(UINT32 i = 0; i < count; i++) i 2257 modules/videoio/src/cap_msmf.cpp SafeRelease(&ppDevices[i]); i 2516 modules/videoio/src/cap_msmf.cpp std::vector<MediaType>::iterator i = vd_CurrentFormats.begin(); i 2518 modules/videoio/src/cap_msmf.cpp for(; i != vd_CurrentFormats.end(); i++) i 2521 modules/videoio/src/cap_msmf.cpp if( (*i).MF_MT_SUBTYPE == MFVideoFormat_RGB24 ) i 2523 modules/videoio/src/cap_msmf.cpp size = (*i).MF_MT_FRAME_SIZE; i 2524 modules/videoio/src/cap_msmf.cpp framerate = (*i).MF_MT_FRAME_RATE_NUMERATOR / (*i).MF_MT_FRAME_RATE_DENOMINATOR; i 2527 modules/videoio/src/cap_msmf.cpp String subType((*i).pMF_MT_SUBTYPEName); i 2775 modules/videoio/src/cap_msmf.cpp for (UINT32 i = 0; i < count; i++) { i 2777 modules/videoio/src/cap_msmf.cpp WRL_METHOD(pVector, GetAt, pMedEncProps, hr, i) i 2817 modules/videoio/src/cap_msmf.cpp for (DWORD i = 0; i < cTypes; i++) i 2819 modules/videoio/src/cap_msmf.cpp hr = pHandler->GetMediaTypeByIndex(i, pType.GetAddressOf()); i 2841 modules/videoio/src/cap_msmf.cpp std::vector<videoDevice *>::iterator i = vds_Devices.begin(); i 2842 modules/videoio/src/cap_msmf.cpp for(; i != vds_Devices.end(); ++i) i 2843 modules/videoio/src/cap_msmf.cpp delete (*i); i 2852 modules/videoio/src/cap_msmf.cpp videoDevice * videoDevices::getDevice(unsigned int i) i 2854 modules/videoio/src/cap_msmf.cpp if(i >= vds_Devices.size()) i 2858 modules/videoio/src/cap_msmf.cpp if(i < 0) i 2862 modules/videoio/src/cap_msmf.cpp return vds_Devices[i]; i 2882 modules/videoio/src/cap_msmf.cpp for (UINT32 i = 0; i < count; i++) { i 2885 modules/videoio/src/cap_msmf.cpp WRL_METHOD(pVector, GetAt, pDevice, hr, i) i 2887 modules/videoio/src/cap_msmf.cpp BEGIN_CALL_IN_CONTEXT(hr, context, vd, pDevice, i) i 2888 modules/videoio/src/cap_msmf.cpp vd->readInfoOfDevice(DEREF_WRL_OBJ(pDevice), i); i 2909 modules/videoio/src/cap_msmf.cpp for(UINT32 i = 0; i < count; i++) i 2912 modules/videoio/src/cap_msmf.cpp vd->readInfoOfDevice(ppDevices[i], i); i 2914 modules/videoio/src/cap_msmf.cpp SafeRelease(&ppDevices[i]); i 3253 modules/videoio/src/cap_msmf.cpp for(unsigned int i = 0; i < VDS->getCount(); i++) i 3254 modules/videoio/src/cap_msmf.cpp closeDevice(i); i 3414 modules/videoio/src/cap_msmf.cpp for(int i = 0; i < out; i++) i 3416 modules/videoio/src/cap_msmf.cpp if(!silent) DebugPrintOut(L"SETUP: %i) %s \n",i, getNameVideoDevice(i)); i 3546 modules/videoio/src/cap_msmf.cpp for(unsigned int i = 0; i < numBytes; i+=3) i 3565 modules/videoio/src/cap_msmf.cpp for(unsigned int i = 0; i < numBytes; i+=3) i 3995 modules/videoio/src/cap_msmf.cpp for (DWORD i = 0; i < cTypes; i++) i 3997 modules/videoio/src/cap_msmf.cpp hr = pHandler->GetMediaTypeByIndex(i, pType.GetAddressOf()); i 580 modules/videoio/src/cap_openni.cpp for( int i = 0; i < index && it!=devicesList.End(); ++i ) it++; i 938 modules/videoio/src/cap_qt.cpp for (int i = 0, current_index = 1; i < (*device_list)->count; i++) i 940 modules/videoio/src/cap_qt.cpp SGDeviceName device = (*device_list)->entry[i]; i 151 modules/videoio/src/cap_unicap.cpp int i; i 154 modules/videoio/src/cap_unicap.cpp for (i = format.size_count - 1; i > 0; i--) i 155 modules/videoio/src/cap_unicap.cpp if (format.sizes[i].width == desired_size.width && i 156 modules/videoio/src/cap_unicap.cpp format.sizes[i].height == desired_size.height) i 158 modules/videoio/src/cap_unicap.cpp format.size.width = format.sizes[i].width; i 159 modules/videoio/src/cap_unicap.cpp format.size.height = format.sizes[i].height; i 1508 modules/videoio/src/cap_v4l.cpp int i, j, y00, y01, y10, y11, u, v; i 1515 modules/videoio/src/cap_v4l.cpp for (i = 0; i <= width - 2; i += 2) { i 1551 modules/videoio/src/cap_v4l.cpp int i, j, y00, y01, y10, y11, u, v; i 1558 modules/videoio/src/cap_v4l.cpp for (i = 0; i <= width - 4; i += 4) { i 1613 modules/videoio/src/cap_v4l.cpp int i, j, y00, y01, y10, y11, u, v; i 1620 modules/videoio/src/cap_v4l.cpp for (i = 0; i <= width - 4; i += 4) { i 1765 modules/videoio/src/cap_v4l.cpp long int i; i 1773 modules/videoio/src/cap_v4l.cpp for ( i = 0; i < size; i++ ) { i 1774 modules/videoio/src/cap_v4l.cpp if ( (i/WIDTH) % 2 == 0 ) { i 1775 modules/videoio/src/cap_v4l.cpp if ( (i % 2) == 0 ) { i 1777 modules/videoio/src/cap_v4l.cpp if ( (i > WIDTH) && ((i % WIDTH) > 0) ) { i 1791 modules/videoio/src/cap_v4l.cpp if ( (i > WIDTH) && ((i % WIDTH) < (WIDTH-1)) ) { i 1803 modules/videoio/src/cap_v4l.cpp if ( (i % 2) == 0 ) { i 1805 modules/videoio/src/cap_v4l.cpp if ( (i < (WIDTH*(HEIGHT-1))) && ((i % WIDTH) > 0) ) { i 1817 modules/videoio/src/cap_v4l.cpp if ( i < (WIDTH*(HEIGHT-1)) && ((i % WIDTH) < (WIDTH-1)) ) { i 1843 modules/videoio/src/cap_v4l.cpp long int i; i 1851 modules/videoio/src/cap_v4l.cpp for ( i = 0; i < size; i++ ) i 1853 modules/videoio/src/cap_v4l.cpp if ( (i/WIDTH) % 2 == 0 ) //even row i 1855 modules/videoio/src/cap_v4l.cpp if ( (i % 2) == 0 ) //even pixel i 1857 modules/videoio/src/cap_v4l.cpp if ( (i > WIDTH) && ((i % WIDTH) > 0) ) i 1872 modules/videoio/src/cap_v4l.cpp if ( (i > WIDTH) && ((i % WIDTH) < (WIDTH-1)) ) i 1888 modules/videoio/src/cap_v4l.cpp if ( (i % 2) == 0 ) //even pixel i 1890 modules/videoio/src/cap_v4l.cpp if ( (i < (WIDTH*(HEIGHT-1))) && ((i % WIDTH) > 0) ) i 1905 modules/videoio/src/cap_v4l.cpp if ( i < (WIDTH*(HEIGHT-1)) && ((i % WIDTH) < (WIDTH-1)) ) i 1928 modules/videoio/src/cap_v4l.cpp for(int i = 0; i < size; ++i, src += 3, dst += 3) i 1961 modules/videoio/src/cap_v4l.cpp int i; i 1964 modules/videoio/src/cap_v4l.cpp for (i = 0; i < 256; i++) { i 1968 modules/videoio/src/cap_v4l.cpp if ((i & 0x80) == 0) { i 1973 modules/videoio/src/cap_v4l.cpp else if ((i & 0xE0) == 0x80) { i 1978 modules/videoio/src/cap_v4l.cpp else if ((i & 0xE0) == 0xA0) { i 1983 modules/videoio/src/cap_v4l.cpp else if ((i & 0xF0) == 0xD0) { i 1988 modules/videoio/src/cap_v4l.cpp else if ((i & 0xF0) == 0xF0) { i 1993 modules/videoio/src/cap_v4l.cpp else if ((i & 0xF8) == 0xC8) { i 1998 modules/videoio/src/cap_v4l.cpp else if ((i & 0xFC) == 0xC0) { i 2003 modules/videoio/src/cap_v4l.cpp else if ((i & 0xFC) == 0xC4) { i 2008 modules/videoio/src/cap_v4l.cpp else if ((i & 0xF0) == 0xE0) { i 2011 modules/videoio/src/cap_v4l.cpp val = (i & 0x0F) << 4; i 2014 modules/videoio/src/cap_v4l.cpp table[i].is_abs = is_abs; i 2015 modules/videoio/src/cap_v4l.cpp table[i].val = val; i 2016 modules/videoio/src/cap_v4l.cpp table[i].len = len; i 750 modules/videoio/src/cap_vfw.cpp for( int i = 0; i < 256; i++ ) i 752 modules/videoio/src/cap_vfw.cpp bmih.bmiColors[i].rgbBlue = (BYTE)i; i 753 modules/videoio/src/cap_vfw.cpp bmih.bmiColors[i].rgbGreen = (BYTE)i; i 754 modules/videoio/src/cap_vfw.cpp bmih.bmiColors[i].rgbRed = (BYTE)i; i 755 modules/videoio/src/cap_vfw.cpp bmih.bmiColors[i].rgbReserved = 0; i 173 modules/videoio/src/cap_winrt_video.cpp unsigned int i = 0; i 176 modules/videoio/src/cap_winrt_video.cpp while (i < colBytes) i 180 modules/videoio/src/cap_winrt_video.cpp buf[j--] = pbScanline[i++]; i 181 modules/videoio/src/cap_winrt_video.cpp buf[j--] = pbScanline[i++]; i 182 modules/videoio/src/cap_winrt_video.cpp buf[j--] = pbScanline[i++]; i 202 modules/videoio/src/cap_winrt_video.cpp for (unsigned int i = 0; i < colBytes; i += bytesPerPixel) i 205 modules/videoio/src/cap_winrt_video.cpp buf[i] = pbScanline[i + 2]; i 206 modules/videoio/src/cap_winrt_video.cpp buf[i + 1] = pbScanline[i + 1]; i 207 modules/videoio/src/cap_winrt_video.cpp buf[i + 2] = pbScanline[i]; i 257 modules/videoio/src/cap_winrt_video.cpp for (unsigned int i = 0, j = 0; i < plPitch; i += bytesPerPixel, j += 4) i 260 modules/videoio/src/cap_winrt_video.cpp buf[j] = pbScanline[i + 2]; i 261 modules/videoio/src/cap_winrt_video.cpp buf[j + 1] = pbScanline[i + 1]; i 262 modules/videoio/src/cap_winrt_video.cpp buf[j + 2] = pbScanline[i]; i 67 modules/videoio/test/test_basic_props.cpp for (size_t i = 0; i < n; ++i) i 69 modules/videoio/test/test_basic_props.cpp string file_path = src_dir+"video/big_buck_bunny."+ext[i]; i 73 modules/videoio/test/test_basic_props.cpp TS::ptr()->printf(cvtest::TS::LOG, "\nFile information (video %d): \n\nName: big_buck_bunny.%s\nFAILED\n\n", i+1, ext[i].c_str()); i 91 modules/videoio/test/test_basic_props.cpp for (size_t i = 0; i < n; ++i) i 93 modules/videoio/test/test_basic_props.cpp string file_path = src_dir+"video/big_buck_bunny."+ext[i]; i 97 modules/videoio/test/test_basic_props.cpp TS::ptr()->printf(cvtest::TS::LOG, "\nFile information (video %d): \n\nName: big_buck_bunny.%s\nFAILED\n\n", i+1, ext[i].c_str()); i 118 modules/videoio/test/test_basic_props.cpp for (size_t i = 0; i < n; ++i) i 120 modules/videoio/test/test_basic_props.cpp string file_path = src_dir+"video/big_buck_bunny."+ext[i]; i 124 modules/videoio/test/test_basic_props.cpp TS::ptr()->printf(cvtest::TS::LOG, "\nFile information (video %d): \n\nName: big_buck_bunny.%s\nFAILED\n\n", i+1, ext[i].c_str()); i 141 modules/videoio/test/test_basic_props.cpp for (size_t i = 0; i < n; ++i) i 143 modules/videoio/test/test_basic_props.cpp string file_path = src_dir+"video/big_buck_bunny."+ext[i]; i 147 modules/videoio/test/test_basic_props.cpp TS::ptr()->printf(cvtest::TS::LOG, "\nFile information (video %d): \n\nName: big_buck_bunny.%s\nFAILED\n\n", i+1, ext[i].c_str()); i 147 modules/videoio/test/test_ffmpeg.cpp for (int i = 0 ; i < static_cast<int>(fps * time_sec); i++ ) i 150 modules/videoio/test/test_ffmpeg.cpp rectangle(img, Point2i(coeff * i, coeff * i), Point2i(coeff * (i + 1), coeff * (i + 1)), i 151 modules/videoio/test/test_ffmpeg.cpp Scalar::all(255 * (1.0 - static_cast<double>(i) / (fps * time_sec * 2) )), -1); i 235 modules/videoio/test/test_ffmpeg.cpp for (int i = range.start; i != range.end; ++i) i 238 modules/videoio/test/test_ffmpeg.cpp stream << i << ".avi"; i 241 modules/videoio/test/test_ffmpeg.cpp files->operator[](i) = fileName; i 242 modules/videoio/test/test_ffmpeg.cpp writers->operator[](i) = new VideoWriter(fileName, VideoWriter::fourcc('X','V','I','D'), 25.0f, FrameSize); i 244 modules/videoio/test/test_ffmpeg.cpp CV_Assert(writers->operator[](i)->isOpened()); i 270 modules/videoio/test/test_ffmpeg.cpp static void GenerateFrame(Mat& frame, unsigned int i) i 272 modules/videoio/test/test_ffmpeg.cpp frame = Scalar::all(i % 255); i 274 modules/videoio/test/test_ffmpeg.cpp std::string text = to_string(i); i 276 modules/videoio/test/test_ffmpeg.cpp circle(frame, Center, i + 2, ObjectColor, 2, CV_AA); i 288 modules/videoio/test/test_ffmpeg.cpp for (unsigned int i = 0; i < FrameCount; ++i) i 290 modules/videoio/test/test_ffmpeg.cpp GenerateFrame(frame, i); i 297 modules/videoio/test/test_ffmpeg.cpp static std::string to_string(unsigned int i) i 300 modules/videoio/test/test_ffmpeg.cpp stream << "frame #" << i; i 323 modules/videoio/test/test_ffmpeg.cpp for (int i = range.start; i != range.end; ++i) i 325 modules/videoio/test/test_ffmpeg.cpp readers->operator[](i) = new VideoCapture(files->operator[](i)); i 326 modules/videoio/test/test_ffmpeg.cpp CV_Assert(readers->operator[](i)->isOpened()); i 356 modules/videoio/test/test_ffmpeg.cpp for (unsigned int i = 0; i < frameCount && next; ++i) i 361 modules/videoio/test/test_ffmpeg.cpp WriteVideo_Invoker::GenerateFrame(reference, i); i 374 modules/videoio/test/test_ffmpeg.cpp ts->printf(SUM, "Frame #: %d\n", i); i 415 modules/videoio/test/test_ffmpeg.cpp for (std::vector<VideoWriter*>::iterator i = writers.begin(), end = writers.end(); i != end; ++i) i 416 modules/videoio/test/test_ffmpeg.cpp delete *i; i 428 modules/videoio/test/test_ffmpeg.cpp for (std::vector<std::string>::const_iterator i = files.begin(), end = files.end(); i != end; ++i) i 430 modules/videoio/test/test_ffmpeg.cpp int code = remove(i->c_str()); i 432 modules/videoio/test/test_ffmpeg.cpp std::cerr << "Couldn't delete " << *i << std::endl; i 106 modules/videoio/test/test_fourcc.cpp for(int i = 0; allfourcc[i]; ++i) i 108 modules/videoio/test/test_fourcc.cpp unsigned long fourcc = allfourcc[i]; i 70 modules/videoio/test/test_framecount.cpp for (size_t i = 0; i < n; ++i) i 72 modules/videoio/test/test_framecount.cpp string file_path = src_dir+"video/big_buck_bunny."+ext[i]; i 77 modules/videoio/test/test_framecount.cpp ts->printf(cvtest::TS::LOG, "\nFile information (video %d): \n\nName: big_buck_bunny.%s\nFAILED\n\n", i+1, ext[i].c_str()); i 100 modules/videoio/test/test_framecount.cpp i+1, ext[i].c_str(), time_sec*fps, FrameCount, framecount); i 103 modules/videoio/test/test_framecount.cpp FrameCount != framecount) && ext[i] != "mpg" ) i 109 modules/videoio/test/test_positioning.cpp for( int i = 0; i < N-1; i++ ) i 131 modules/videoio/test/test_positioning.cpp for (int i = 0; i < n; ++i) i 134 modules/videoio/test/test_positioning.cpp if( method == RANDOM && ext[i] == "mpg" ) i 136 modules/videoio/test/test_positioning.cpp string file_path = src_dir + "video/big_buck_bunny." + ext[i]; i 144 modules/videoio/test/test_positioning.cpp ts->printf(cvtest::TS::LOG, "\nFile information (video %d): \n\nName: big_buck_bunny.%s\nFAILED\n\n", i+1, ext[i].c_str()); i 182 modules/videoio/test/test_positioning.cpp ts->printf(cvtest::TS::LOG, "\nFile information (video %d): \n\nName: big_buck_bunny.%s\n", i+1, ext[i].c_str()); i 186 modules/videoio/test/test_video_io.cpp for(size_t i = 0; i < ext_num; ++i) i 188 modules/videoio/test/test_video_io.cpp string ext = exts[i]; i 222 modules/videoio/test/test_video_io.cpp imencode("." + exts[i], image, buf); i 311 modules/videoio/test/test_video_io.cpp for(int i = 0;; i++) i 318 modules/videoio/test/test_video_io.cpp Mat img = frames[i]; i 324 modules/videoio/test/test_video_io.cpp ts->printf(ts->LOG, "Too low frame %d psnr = %gdb\n", i, psnr); i 346 modules/videoio/test/test_video_io.cpp for (size_t i = 0; i < IMAGE_COUNT; ++i) i 348 modules/videoio/test/test_video_io.cpp stringstream s; s << i; i 360 modules/videoio/test/test_video_io.cpp stringstream s_digit; s_digit << i; i 452 modules/videoio/test/test_video_io.cpp for( size_t i = 0; i < IMAGE_COUNT; ++i ) i 454 modules/videoio/test/test_video_io.cpp string file_path = format("%s../python/images/QCIF_%02d.bmp", dir.c_str(), i); i 516 modules/videoio/test/test_video_io.cpp for (int i = 0; (size_t)i < IMAGE_COUNT-allowed_frame_frop; i++) i 524 modules/videoio/test/test_video_io.cpp ts->printf(ts->LOG, "Error: cannot read the next frame with index %d.\n", i+1); i 529 modules/videoio/test/test_video_io.cpp Mat img = images[i]; i 537 modules/videoio/test/test_video_io.cpp ts->printf(ts->LOG, "Frame index: %d\n", i+1); i 558 modules/videoio/test/test_video_io.cpp for (int i = 0; ; ++i) i 560 modules/videoio/test/test_video_io.cpp const cvtest::VideoFormat& fmt = cvtest::g_specific_fmt_list[i]; i 569 modules/videoio/test/test_video_io.cpp for (int i = 0; ; ++i) i 571 modules/videoio/test/test_video_io.cpp const cvtest::VideoFormat& fmt = cvtest::g_specific_fmt_list[i]; i 57 modules/videoio/test/test_video_pos.cpp Mat drawFrame(int i) i 61 modules/videoio/test/test_video_pos.cpp mat = Scalar(fabs(cos(i*0.08)*255), fabs(sin(i*0.05)*255), i); i 62 modules/videoio/test/test_video_pos.cpp putText(mat, format("%03d", i), Point(10, 350), 0, 10, Scalar(128, 255, 255), 15); i 77 modules/videoio/test/test_video_pos.cpp for (int i = 0; i < framecount; ++i) i 79 modules/videoio/test/test_video_pos.cpp Mat img = drawFrame(i); i 81 modules/videostab/include/opencv2/videostab/fast_marching_inl.hpp for (int i = 0; i < 4; ++i) i 83 modules/videostab/include/opencv2/videostab/fast_marching_inl.hpp int xn = x + lut[i][0]; i 84 modules/videostab/include/opencv2/videostab/fast_marching_inl.hpp int yn = y + lut[i][1]; i 113 modules/videostab/include/opencv2/videostab/fast_marching_inl.hpp for (int i = size_/2-1; i >= 0; --i) i 114 modules/videostab/include/opencv2/videostab/fast_marching_inl.hpp heapDown(i); i 142 modules/videostab/include/opencv2/videostab/fast_marching_inl.hpp int i = index_(yn,xn); i 143 modules/videostab/include/opencv2/videostab/fast_marching_inl.hpp if (dist_(yn,xn) < narrowBand_[i].dist) i 145 modules/videostab/include/opencv2/videostab/fast_marching_inl.hpp narrowBand_[i].dist = dist_(yn,xn); i 146 modules/videostab/include/opencv2/videostab/fast_marching_inl.hpp heapUp(i); i 88 modules/videostab/src/global_motion.cpp for (int i = 0; i < npoints; ++i) i 90 modules/videostab/src/global_motion.cpp cx += points[i].x; i 91 modules/videostab/src/global_motion.cpp cy += points[i].y; i 97 modules/videostab/src/global_motion.cpp for (int i = 0; i < npoints; ++i) i 99 modules/videostab/src/global_motion.cpp points[i].x -= cx; i 100 modules/videostab/src/global_motion.cpp points[i].y -= cy; i 101 modules/videostab/src/global_motion.cpp d += std::sqrt(sqr(points[i].x) + sqr(points[i].y)); i 106 modules/videostab/src/global_motion.cpp for (int i = 0; i < npoints; ++i) i 108 modules/videostab/src/global_motion.cpp points[i].x *= s; i 109 modules/videostab/src/global_motion.cpp points[i].y *= s; i 124 modules/videostab/src/global_motion.cpp for (int i = 0; i < npoints; ++i) i 126 modules/videostab/src/global_motion.cpp M(0,2) += points1[i].x - points0[i].x; i 127 modules/videostab/src/global_motion.cpp M(1,2) += points1[i].y - points0[i].y; i 135 modules/videostab/src/global_motion.cpp for (int i = 0; i < npoints; ++i) i 136 modules/videostab/src/global_motion.cpp *rmse += sqr(points1[i].x - points0[i].x - M(0,2)) + i 137 modules/videostab/src/global_motion.cpp sqr(points1[i].y - points0[i].y - M(1,2)); i 155 modules/videostab/src/global_motion.cpp for (int i = 0; i < npoints; ++i) i 157 modules/videostab/src/global_motion.cpp a0 = A[2*i]; i 158 modules/videostab/src/global_motion.cpp a1 = A[2*i+1]; i 159 modules/videostab/src/global_motion.cpp p0 = points0[i]; i 160 modules/videostab/src/global_motion.cpp p1 = points1[i]; i 163 modules/videostab/src/global_motion.cpp b(2*i,0) = p1.x; i 164 modules/videostab/src/global_motion.cpp b(2*i+1,0) = p1.y; i 186 modules/videostab/src/global_motion.cpp for(int i=0; i<npoints; ++i) i 188 modules/videostab/src/global_motion.cpp p0 = points0[i]; i 189 modules/videostab/src/global_motion.cpp p1 = points1[i]; i 212 modules/videostab/src/global_motion.cpp for (int i = 0; i < npoints; ++i) i 214 modules/videostab/src/global_motion.cpp p0 = points0[i]; i 215 modules/videostab/src/global_motion.cpp p1 = points1[i]; i 231 modules/videostab/src/global_motion.cpp for (int i = 0; i < npoints; ++i) i 233 modules/videostab/src/global_motion.cpp mean0 += points0[i]; i 234 modules/videostab/src/global_motion.cpp mean1 += points1[i]; i 243 modules/videostab/src/global_motion.cpp for (int i = 0; i < npoints; ++i) i 245 modules/videostab/src/global_motion.cpp pt0 = points0[i] - mean0; i 246 modules/videostab/src/global_motion.cpp pt1 = points1[i] - mean1; i 266 modules/videostab/src/global_motion.cpp for (int i = 0; i < npoints; ++i) i 268 modules/videostab/src/global_motion.cpp pt0 = points0[i]; i 269 modules/videostab/src/global_motion.cpp pt1 = points1[i]; i 290 modules/videostab/src/global_motion.cpp for (int i = 0; i < npoints; ++i) i 292 modules/videostab/src/global_motion.cpp a0 = A[2*i]; i 293 modules/videostab/src/global_motion.cpp a1 = A[2*i+1]; i 294 modules/videostab/src/global_motion.cpp p0 = points0[i]; i 295 modules/videostab/src/global_motion.cpp p1 = points1[i]; i 298 modules/videostab/src/global_motion.cpp b(2*i,0) = p1.x; i 299 modules/videostab/src/global_motion.cpp b(2*i+1,0) = p1.y; i 329 modules/videostab/src/global_motion.cpp for (int i = 0; i < npoints; ++i) i 331 modules/videostab/src/global_motion.cpp a0 = A[2*i]; i 332 modules/videostab/src/global_motion.cpp a1 = A[2*i+1]; i 333 modules/videostab/src/global_motion.cpp p0 = points0[i]; i 334 modules/videostab/src/global_motion.cpp p1 = points1[i]; i 337 modules/videostab/src/global_motion.cpp b(2*i,0) = p1.x; i 338 modules/videostab/src/global_motion.cpp b(2*i+1,0) = p1.y; i 348 modules/videostab/src/global_motion.cpp for (int i = 0, k = 0; i < 2; ++i) i 350 modules/videostab/src/global_motion.cpp M(i,j) = sol(k,0); i 412 modules/videostab/src/global_motion.cpp for (int i = 0; i < params.size; ++i) i 418 modules/videostab/src/global_motion.cpp indices[i] = static_cast<unsigned>(rng) % npoints; i 419 modules/videostab/src/global_motion.cpp for (int j = 0; j < i; ++j) i 420 modules/videostab/src/global_motion.cpp if (indices[i] == indices[j]) i 424 modules/videostab/src/global_motion.cpp for (int i = 0; i < params.size; ++i) i 426 modules/videostab/src/global_motion.cpp subset0[i] = points0_[indices[i]]; i 427 modules/videostab/src/global_motion.cpp subset1[i] = points1_[indices[i]]; i 433 modules/videostab/src/global_motion.cpp for (int i = 0; i < npoints; ++i) i 435 modules/videostab/src/global_motion.cpp p0 = points0_[i]; i 436 modules/videostab/src/global_motion.cpp p1 = points1_[i]; i 458 modules/videostab/src/global_motion.cpp for (int i = 0, j = 0; i < npoints && j < ninliersMax ; ++i) i 460 modules/videostab/src/global_motion.cpp p0 = points0_[i]; i 461 modules/videostab/src/global_motion.cpp p1 = points1_[i]; i 507 modules/videostab/src/global_motion.cpp for (int i = 0; i < npoints; ++i) i 508 modules/videostab/src/global_motion.cpp if (mask[i]) ninliers++; i 574 modules/videostab/src/global_motion.cpp for (int i = 0; i < npoints; ++i, c += 2) i 590 modules/videostab/src/global_motion.cpp for (int i = 0; i < npoints; ++i, r += 4) i 592 modules/videostab/src/global_motion.cpp p0 = points0_[i]; i 593 modules/videostab/src/global_motion.cpp p1 = points1_[i]; i 595 modules/videostab/src/global_motion.cpp set(r, 0, p0.x); set(r, 1, p0.y); set(r, 2, 1); set(r, 6+2*i, -1); i 598 modules/videostab/src/global_motion.cpp set(r+1, 3, p0.x); set(r+1, 4, p0.y); set(r+1, 5, 1); set(r+1, 6+2*i+1, -1); i 601 modules/videostab/src/global_motion.cpp set(r+2, 0, p0.x); set(r+2, 1, p0.y); set(r+2, 2, 1); set(r+2, 6+2*i, 1); i 604 modules/videostab/src/global_motion.cpp set(r+3, 3, p0.x); set(r+3, 4, p0.y); set(r+3, 5, 1); set(r+3, 6+2*i+1, 1); i 717 modules/videostab/src/global_motion.cpp for (size_t i = 0; i < keypointsPrev_.size(); ++i) i 718 modules/videostab/src/global_motion.cpp pointsPrev_[i] = keypointsPrev_[i].pt; i 728 modules/videostab/src/global_motion.cpp for (size_t i = 0; i < points_.size(); ++i) i 730 modules/videostab/src/global_motion.cpp if (status_[i]) i 732 modules/videostab/src/global_motion.cpp pointsPrevGood_.push_back(pointsPrev_[i]); i 733 modules/videostab/src/global_motion.cpp pointsGood_.push_back(points_[i]); i 753 modules/videostab/src/global_motion.cpp for (size_t i = 0; i < points_.size(); ++i) i 755 modules/videostab/src/global_motion.cpp if (status_[i]) i 757 modules/videostab/src/global_motion.cpp pointsPrevGood_.push_back(pointsPrev_[i]); i 758 modules/videostab/src/global_motion.cpp pointsGood_.push_back(points_[i]); i 825 modules/videostab/src/global_motion.cpp for (int i = 0; i < hostPoints_.cols; ++i) i 827 modules/videostab/src/global_motion.cpp if (rejectionStatus_[i]) i 829 modules/videostab/src/global_motion.cpp hostPointsPrevTmp_.push_back(hostPointsPrev_.at<Point2f>(0,i)); i 830 modules/videostab/src/global_motion.cpp hostPointsTmp_.push_back(hostPoints_.at<Point2f>(0,i)); i 850 modules/videostab/src/global_motion.cpp for (int i = from; i < to; ++i) i 851 modules/videostab/src/global_motion.cpp M = at(i, motions) * M; i 855 modules/videostab/src/global_motion.cpp for (int i = to; i < from; ++i) i 856 modules/videostab/src/global_motion.cpp M = at(i, motions) * M; i 58 modules/videostab/src/inpainting.cpp for (size_t i = 0; i < inpainters_.size(); ++i) i 59 modules/videostab/src/inpainting.cpp inpainters_[i]->setRadius(val); i 66 modules/videostab/src/inpainting.cpp for (size_t i = 0; i < inpainters_.size(); ++i) i 67 modules/videostab/src/inpainting.cpp inpainters_[i]->setFrames(val); i 74 modules/videostab/src/inpainting.cpp for (size_t i = 0; i < inpainters_.size(); ++i) i 75 modules/videostab/src/inpainting.cpp inpainters_[i]->setMotionModel(val); i 82 modules/videostab/src/inpainting.cpp for (size_t i = 0; i < inpainters_.size(); ++i) i 83 modules/videostab/src/inpainting.cpp inpainters_[i]->setMotions(val); i 90 modules/videostab/src/inpainting.cpp for (size_t i = 0; i < inpainters_.size(); ++i) i 91 modules/videostab/src/inpainting.cpp inpainters_[i]->setStabilizedFrames(val); i 98 modules/videostab/src/inpainting.cpp for (size_t i = 0; i < inpainters_.size(); ++i) i 99 modules/videostab/src/inpainting.cpp inpainters_[i]->setStabilizationMotions(val); i 106 modules/videostab/src/inpainting.cpp for (size_t i = 0; i < inpainters_.size(); ++i) i 107 modules/videostab/src/inpainting.cpp inpainters_[i]->inpaint(idx, frame, mask); i 132 modules/videostab/src/inpainting.cpp for (int i = -radius_; i <= radius_; ++i) i 133 modules/videostab/src/inpainting.cpp vmotions[radius_ + i] = getMotion(idx, idx + i, *motions_) * invS; i 152 modules/videostab/src/inpainting.cpp for (int i = -radius_; i <= radius_; ++i) i 154 modules/videostab/src/inpainting.cpp const Mat_<Point3_<uchar> > &framei = at(idx + i, *frames_); i 155 modules/videostab/src/inpainting.cpp const Mat_<float> &Mi = vmotions[radius_ + i]; i 169 modules/videostab/src/inpainting.cpp for (int i = 0; i < n; ++i) i 170 modules/videostab/src/inpainting.cpp var += sqr(pixels[i].intens - mean); i 342 modules/videostab/src/inpainting.cpp for (int i = -radius_; i <= radius_; ++i) i 344 modules/videostab/src/inpainting.cpp Mat motion0to1 = getMotion(idx, idx + i, *motions_) * at(idx, *stabilizationMotions_).inv(); i 345 modules/videostab/src/inpainting.cpp vmotions[radius_ + i] = motion0to1; i 347 modules/videostab/src/inpainting.cpp if (i != 0) i 349 modules/videostab/src/inpainting.cpp float err = alignementError(motion0to1, frame, mask, at(idx + i, *frames_)); i 350 modules/videostab/src/inpainting.cpp neighbors.push(std::make_pair(-err, idx + i)); i 431 modules/videostab/src/inpainting.cpp for (int i = 0; i < 8; ++i) i 433 modules/videostab/src/inpainting.cpp int qx = x + lut[i][0]; i 434 modules/videostab/src/inpainting.cpp int qy = y + lut[i][1]; i 58 modules/videostab/src/motion_stabilizing.cpp for (size_t i = 0; i < motions.size(); ++i) i 59 modules/videostab/src/motion_stabilizing.cpp updatedMotions[i] = motions[i].clone(); i 63 modules/videostab/src/motion_stabilizing.cpp for (int i = 0; i < size; ++i) i 64 modules/videostab/src/motion_stabilizing.cpp stabilizationMotions[i] = Mat::eye(3, 3, CV_32F); i 66 modules/videostab/src/motion_stabilizing.cpp for (size_t i = 0; i < stabilizers_.size(); ++i) i 68 modules/videostab/src/motion_stabilizing.cpp stabilizers_[i]->stabilize(size, updatedMotions, range, &stabilizationMotions_[0]); i 86 modules/videostab/src/motion_stabilizing.cpp for (int i = 0; i < size; ++i) i 87 modules/videostab/src/motion_stabilizing.cpp stabilizationMotions[i] = stabilize(i, motions, range); i 98 modules/videostab/src/motion_stabilizing.cpp for (int i = -radius_; i <= radius_; ++i) i 99 modules/videostab/src/motion_stabilizing.cpp sum += weight_[radius_ + i] = std::exp(-i*i/(stdev_*stdev_)); i 100 modules/videostab/src/motion_stabilizing.cpp for (int i = -radius_; i <= radius_; ++i) i 101 modules/videostab/src/motion_stabilizing.cpp weight_[radius_ + i] /= sum; i 112 modules/videostab/src/motion_stabilizing.cpp for (int i = iMin; i <= iMax; ++i) i 114 modules/videostab/src/motion_stabilizing.cpp res += weight_[radius_ + i - idx] * getMotion(idx, i, motions); i 115 modules/videostab/src/motion_stabilizing.cpp sum += weight_[radius_ + i - idx]; i 261 modules/videostab/src/motion_stabilizing.cpp for (int i = 0; i < 4; ++i, r += 2) i 263 modules/videostab/src/motion_stabilizing.cpp set(r, c, pt[i].x); set(r, c+1, pt[i].y); set(r, c+2, 1); i 264 modules/videostab/src/motion_stabilizing.cpp set(r+1, c, pt[i].y); set(r+1, c+1, -pt[i].x); set(r+1, c+3, 1); i 265 modules/videostab/src/motion_stabilizing.cpp rowlb_[r] = pt[i].x-tw; i 266 modules/videostab/src/motion_stabilizing.cpp rowub_[r] = pt[i].x+tw; i 267 modules/videostab/src/motion_stabilizing.cpp rowlb_[r+1] = pt[i].y-th; i 268 modules/videostab/src/motion_stabilizing.cpp rowub_[r+1] = pt[i].y+th; i 294 modules/videostab/src/motion_stabilizing.cpp for (int i = 0; i < 6; ++i) i 295 modules/videostab/src/motion_stabilizing.cpp set(r+i, c+i, -1); i 327 modules/videostab/src/motion_stabilizing.cpp for (int i = 0; i < 6; ++i) i 328 modules/videostab/src/motion_stabilizing.cpp set(r+i, c+i, 1); i 368 modules/videostab/src/motion_stabilizing.cpp for (int i = 0; i < 6; ++i) i 369 modules/videostab/src/motion_stabilizing.cpp set(r+i, c+i, -1); i 409 modules/videostab/src/motion_stabilizing.cpp for (int i = 0; i < 6; ++i) i 410 modules/videostab/src/motion_stabilizing.cpp set(r+i, c+i, 1); i 458 modules/videostab/src/motion_stabilizing.cpp for (int i = 0; i < 6; ++i) i 459 modules/videostab/src/motion_stabilizing.cpp set(r+i, c+i, -1); i 507 modules/videostab/src/motion_stabilizing.cpp for (int i = 0; i < 6; ++i) i 508 modules/videostab/src/motion_stabilizing.cpp set(r+i, c+i, 1); i 590 modules/videostab/src/motion_stabilizing.cpp for (int i = 0; i < 4; ++i) i 591 modules/videostab/src/motion_stabilizing.cpp if (b[i].x > a[0].x && b[i].x < a[2].x && b[i].y > a[0].y && b[i].y < a[2].y) i 593 modules/videostab/src/motion_stabilizing.cpp for (int i = 0; i < 4; ++i) i 595 modules/videostab/src/motion_stabilizing.cpp if (segmentsIntersect(a[i], a[(i+1)%4], b[j], b[(j+1)%4])) i 607 modules/videostab/src/motion_stabilizing.cpp for (int i = 0; i < 4; ++i) i 609 modules/videostab/src/motion_stabilizing.cpp Mpt[i].x = M[0]*pt[i].x + M[1]*pt[i].y + M[2]; i 610 modules/videostab/src/motion_stabilizing.cpp Mpt[i].y = M[3]*pt[i].x + M[4]*pt[i].y + M[5]; i 611 modules/videostab/src/motion_stabilizing.cpp z = M[6]*pt[i].x + M[7]*pt[i].y + M[8]; i 612 modules/videostab/src/motion_stabilizing.cpp Mpt[i].x /= z; i 613 modules/videostab/src/motion_stabilizing.cpp Mpt[i].y /= z; i 686 modules/videostab/src/motion_stabilizing.cpp for (int i = 0; i < 4; ++i) i 688 modules/videostab/src/motion_stabilizing.cpp Mpt[i].x = M_(0,0)*pt[i].x + M_(0,1)*pt[i].y + M_(0,2); i 689 modules/videostab/src/motion_stabilizing.cpp Mpt[i].y = M_(1,0)*pt[i].x + M_(1,1)*pt[i].y + M_(1,2); i 690 modules/videostab/src/motion_stabilizing.cpp z = M_(2,0)*pt[i].x + M_(2,1)*pt[i].y + M_(2,2); i 691 modules/videostab/src/motion_stabilizing.cpp Mpt[i].x /= z; i 692 modules/videostab/src/motion_stabilizing.cpp Mpt[i].y /= z; i 93 modules/videostab/src/outlier_rejection.cpp for (int i = 0; i < npoints; ++i) i 95 modules/videostab/src/outlier_rejection.cpp cx = std::min(cvRound(points0_[i].x / cellSize_.width), ncells.width - 1); i 96 modules/videostab/src/outlier_rejection.cpp cy = std::min(cvRound(points0_[i].y / cellSize_.height), ncells.height - 1); i 97 modules/videostab/src/outlier_rejection.cpp grid_[cy * ncells.width + cx].push_back(i); i 129 modules/videostab/src/outlier_rejection.cpp for (size_t i = 0; i < cell.size(); ++i) i 131 modules/videostab/src/outlier_rejection.cpp x1 = points0_[cell[i]].x + dx; i 132 modules/videostab/src/outlier_rejection.cpp y1 = points0_[cell[i]].y + dy; i 133 modules/videostab/src/outlier_rejection.cpp if (sqr(x1 - points1_[cell[i]].x) + sqr(y1 - points1_[cell[i]].y) < i 153 modules/videostab/src/outlier_rejection.cpp for (size_t i = 0; i < cell.size(); ++i) i 155 modules/videostab/src/outlier_rejection.cpp x1 = points0_[cell[i]].x + dxBest; i 156 modules/videostab/src/outlier_rejection.cpp y1 = points0_[cell[i]].y + dyBest; i 157 modules/videostab/src/outlier_rejection.cpp if (sqr(x1 - points1_[cell[i]].x) + sqr(y1 - points1_[cell[i]].y) < i 160 modules/videostab/src/outlier_rejection.cpp inliers[ninliers++] = cell[i]; i 167 modules/videostab/src/outlier_rejection.cpp for (size_t i = 0; i < inliers.size(); ++i) i 169 modules/videostab/src/outlier_rejection.cpp dxBest += points1_[inliers[i]].x - points0_[inliers[i]].x; i 170 modules/videostab/src/outlier_rejection.cpp dyBest += points1_[inliers[i]].y - points0_[inliers[i]].y; i 180 modules/videostab/src/outlier_rejection.cpp for (size_t i = 0; i < cell.size(); ++i) i 182 modules/videostab/src/outlier_rejection.cpp x1 = points0_[cell[i]].x + dxBest; i 183 modules/videostab/src/outlier_rejection.cpp y1 = points0_[cell[i]].y + dyBest; i 184 modules/videostab/src/outlier_rejection.cpp if (sqr(x1 - points1_[cell[i]].x) + sqr(y1 - points1_[cell[i]].y) < i 187 modules/videostab/src/outlier_rejection.cpp mask_[cell[i]] = 1; i 191 modules/videostab/src/outlier_rejection.cpp mask_[cell[i]] = 0; i 176 modules/videostab/src/stabilizer.cpp for (int i = -radius_; i <= 0; ++i) i 177 modules/videostab/src/stabilizer.cpp at(i, blurrinessRates_) = blurriness; i 279 modules/videostab/src/stabilizer.cpp for (int i = -radius_; i < 0; ++i) i 281 modules/videostab/src/stabilizer.cpp at(i, motions_) = Mat::eye(3, 3, CV_32F); i 282 modules/videostab/src/stabilizer.cpp at(i, frames_) = firstFrame; i 341 modules/videostab/src/stabilizer.cpp for (int i = 0; i < frameCount - 1; ++i) i 343 modules/videostab/src/stabilizer.cpp Mat_<float> M = at(i, motions); i 349 modules/videostab/src/stabilizer.cpp for (int i = 0; i < frameCount; ++i) i 351 modules/videostab/src/stabilizer.cpp Mat_<float> M = getMotion(0, i, motions); i 357 modules/videostab/src/stabilizer.cpp for (int i = 0; i < frameCount; ++i) i 359 modules/videostab/src/stabilizer.cpp Mat_<float> M = stabilizationMotions[i] * getMotion(0, i, motions); i 424 modules/videostab/src/stabilizer.cpp for (int i = 0; i < radius_; ++i) i 444 modules/videostab/src/stabilizer.cpp for (int i = 0; i < frameCount_; ++i) i 446 modules/videostab/src/stabilizer.cpp Mat S = stabilizationMotions_[i]; i 469 modules/videostab/src/stabilizer.cpp for (int i = -radius_; i <= 0; ++i) i 470 modules/videostab/src/stabilizer.cpp at(i, frames_) = firstFrame; i 405 modules/viz/src/clouds.cpp for (size_t i = 0; i < polygons_size; ++idx) i 407 modules/viz/src/clouds.cpp int n_points = polygons[i++]; i 411 modules/viz/src/clouds.cpp cell_array->InsertCellPoint(lookup[polygons[i++]]); i 405 modules/viz/src/shapes.cpp for(vtkIdType i = 0; i < polydata->GetNumberOfPoints(); ++i) i 406 modules/viz/src/shapes.cpp cell_array->InsertCellPoint(i); i 1038 modules/viz/src/shapes.cpp for(size_t i = 0; i < total; ++i) i 1040 modules/viz/src/shapes.cpp Vec3d curr = traj[i].translation(); i 1044 modules/viz/src/shapes.cpp sphere_source->SetRadius( (i == 0) ? 2 * radius : radius ); i 1047 modules/viz/src/shapes.cpp double alpha = static_cast<double>(i)/total; i 1054 modules/viz/src/shapes.cpp if (i > 0) i 1056 modules/viz/src/shapes.cpp Vec3d prev = traj[i-1].translation(); i 85 modules/viz/src/types.cpp for (vtkIdType i = 0; i < nr_cell_points; ++i) i 86 modules/viz/src/types.cpp *poly_ptr++ = (int)cell_points[i]; i 278 modules/viz/src/vizcore.cpp for(int i = start; i < end; ++i) i 281 modules/viz/src/vizcore.cpp bool ok = readPose(cv::format(files_format.c_str(), i), affine, tag); i 301 modules/viz/src/vizcore.cpp for(size_t i = 0, index = max(0, start); i < v.size(); ++i, ++index) i 304 modules/viz/src/vizcore.cpp Mat pose = v[i]; i 319 modules/viz/src/vizcore.cpp for(size_t i = 0, index = max(0, start); i < traj.total(); ++i, ++index) i 320 modules/viz/src/vizcore.cpp writePose(cv::format(files_format.c_str(), index), traj.at<Affine3f>((int)i), tag); i 323 modules/viz/src/vizcore.cpp for(size_t i = 0, index = max(0, start); i < traj.total(); ++i, ++index) i 324 modules/viz/src/vizcore.cpp writePose(cv::format(files_format.c_str(), index), traj.at<Affine3d>((int)i), tag); i 345 modules/viz/src/vizcore.cpp for(int i = 0; i < generic_normals->GetNumberOfTuples(); ++i, ++optr) i 346 modules/viz/src/vizcore.cpp generic_normals->GetTuple(i, optr->val); i 81 modules/viz/src/vtk/vtkCloudMatSink.cpp for(size_t i = 0; i < cloud.total(); ++i) i 82 modules/viz/src/vtk/vtkCloudMatSink.cpp *fdata++ = Vec3d(points_Data->GetPoint((vtkIdType)i)); i 85 modules/viz/src/vtk/vtkCloudMatSink.cpp for(size_t i = 0; i < cloud.total(); ++i) i 86 modules/viz/src/vtk/vtkCloudMatSink.cpp *ddata++ = Vec3d(points_Data->GetPoint((vtkIdType)i)); i 103 modules/viz/src/vtk/vtkCloudMatSink.cpp for(size_t i = 0; i < buffer.total(); ++i) i 104 modules/viz/src/vtk/vtkCloudMatSink.cpp *cptr++ = Vec3d(scalars_data->GetTuple((vtkIdType)i)); i 123 modules/viz/src/vtk/vtkCloudMatSink.cpp for(size_t i = 0; i < buffer.total(); ++i) i 124 modules/viz/src/vtk/vtkCloudMatSink.cpp *cptr++ = Vec3d(normals_data->GetTuple((vtkIdType)i)); i 142 modules/viz/src/vtk/vtkCloudMatSink.cpp for(size_t i = 0; i < buffer.total(); ++i) i 143 modules/viz/src/vtk/vtkCloudMatSink.cpp *cptr++ = Vec2d(coords_data->GetTuple((vtkIdType)i)); i 81 modules/viz/src/vtk/vtkCloudMatSource.cpp for(int i = 0; i < total; ++i) i 82 modules/viz/src/vtk/vtkCloudMatSource.cpp vertices->InsertCellPoint(i); i 91 modules/viz/src/vtk/vtkOBJWriter.cpp for (int i = 0; i < input->GetNumberOfPoints(); i++) i 94 modules/viz/src/vtk/vtkOBJWriter.cpp input->GetPoint(i, p.val); i 104 modules/viz/src/vtk/vtkOBJWriter.cpp for (int i = 0; i < normals->GetNumberOfTuples(); i++) i 107 modules/viz/src/vtk/vtkOBJWriter.cpp normals->GetTuple(i, p.val); i 115 modules/viz/src/vtk/vtkOBJWriter.cpp for (int i = 0; i < tcoords->GetNumberOfTuples(); i++) i 118 modules/viz/src/vtk/vtkOBJWriter.cpp tcoords->GetTuple(i, p.val); i 135 modules/viz/src/vtk/vtkOBJWriter.cpp for (int i = 0; i < npts; i++) i 136 modules/viz/src/vtk/vtkOBJWriter.cpp outfile << index[i] + idStart << " "; i 151 modules/viz/src/vtk/vtkOBJWriter.cpp for (int i = 0; i < npts; i++) i 152 modules/viz/src/vtk/vtkOBJWriter.cpp outfile << index[i] + idStart << "/" << index[i] + idStart << " "; i 155 modules/viz/src/vtk/vtkOBJWriter.cpp for (int i = 0; i < npts; i++) i 156 modules/viz/src/vtk/vtkOBJWriter.cpp outfile << index[i] + idStart << " "; i 170 modules/viz/src/vtk/vtkOBJWriter.cpp for (int i = 0; i < npts; i++) i 175 modules/viz/src/vtk/vtkOBJWriter.cpp outfile << index[i] + idStart << "/" << index[i] + idStart << "/" << index[i] + idStart << " "; i 177 modules/viz/src/vtk/vtkOBJWriter.cpp outfile << index[i] + idStart << "//" << index[i] + idStart << " "; i 182 modules/viz/src/vtk/vtkOBJWriter.cpp outfile << index[i] + idStart << " " << index[i] + idStart << " "; i 184 modules/viz/src/vtk/vtkOBJWriter.cpp outfile << index[i] + idStart << " "; i 198 modules/viz/src/vtk/vtkOBJWriter.cpp for (int i = 2, i1, i2; i < npts; ++i) i 200 modules/viz/src/vtk/vtkOBJWriter.cpp if (i % 2) i 202 modules/viz/src/vtk/vtkOBJWriter.cpp i1 = i - 1; i 203 modules/viz/src/vtk/vtkOBJWriter.cpp i2 = i - 2; i 207 modules/viz/src/vtk/vtkOBJWriter.cpp i1 = i - 1; i 208 modules/viz/src/vtk/vtkOBJWriter.cpp i2 = i - 2; i 217 modules/viz/src/vtk/vtkOBJWriter.cpp << index[i] + idStart << "/" << index[i] + idStart << "/" << index[i] + idStart << std::endl; i 222 modules/viz/src/vtk/vtkOBJWriter.cpp << "//" << index[i2] + idStart << " " << index[i] + idStart << "//" << index[i] + idStart << std::endl; i 230 modules/viz/src/vtk/vtkOBJWriter.cpp << "/" << index[i2] + idStart << " " << index[i] + idStart << "/" << index[i] + idStart << std::endl; i 233 modules/viz/src/vtk/vtkOBJWriter.cpp outfile << "f " << index[i1] + idStart << " " << index[i2] + idStart << " " << index[i] + idStart << std::endl; i 73 modules/viz/src/vtk/vtkTrajectorySource.cpp for(size_t i = 0; i < total; ++i, ++dpath) i 76 modules/viz/src/vtk/vtkTrajectorySource.cpp tensors->SetTuple((vtkIdType)i, R.val); // column major order i 79 modules/viz/src/vtk/vtkTrajectorySource.cpp points->SetPoint((vtkIdType)i, p.val); i 93 modules/viz/src/vtk/vtkTrajectorySource.cpp for(int i = 0; i < points.cols; ++i) i 94 modules/viz/src/vtk/vtkTrajectorySource.cpp points.at<Vec3f>(i) = fpath[i].translation(); i 97 modules/viz/src/vtk/vtkTrajectorySource.cpp for(int i = 0; i < points.cols; ++i) i 98 modules/viz/src/vtk/vtkTrajectorySource.cpp points.at<Vec3d>(i) = dpath[i].translation(); i 83 modules/viz/src/vtk/vtkXYZWriter.cpp for(vtkIdType i = 0; i < input->GetNumberOfPoints(); ++i) i 86 modules/viz/src/vtk/vtkXYZWriter.cpp input->GetPoint(i, p.val); i 95 modules/viz/test/test_precomp.hpp for (int i = 0, j = 0; i <= 270; i += 3, j += 10) i 97 modules/viz/test/test_precomp.hpp double x = 2 * cos(i * 3 * CV_PI/180.0) * (1.0 + 0.5 * cos(1.2 + i * 1.2 * CV_PI/180.0)); i 98 modules/viz/test/test_precomp.hpp double y = 0.25 + i/270.0 + sin(j * CV_PI/180.0) * 0.2 * sin(0.6 + j * 1.5 * CV_PI/180.0); i 99 modules/viz/test/test_precomp.hpp double z = 2 * sin(i * 3 * CV_PI/180.0) * (1.0 + 0.5 * cos(1.2 + i * CV_PI/180.0)); i 85 modules/viz/test/tests_simple.cpp for(int i = 0; i < (int)dragon_cloud.total(); ++i) i 86 modules/viz/test/tests_simple.cpp if (i % 15 != 0) i 87 modules/viz/test/tests_simple.cpp dragon_cloud.at<Vec3f>(i) = qnan; i 165 modules/viz/test/tests_simple.cpp for(int i = 0; i < 77; ++i) i 187 modules/viz/test/tests_simple.cpp for(size_t i = 0; i < 64; ++i) i 189 modules/viz/test/tests_simple.cpp double angle = CV_PI/2 * i/64.0; i 192 modules/viz/test/tests_simple.cpp tcoords.push_back(Vec2d(0.0, i/64.0)); i 193 modules/viz/test/tests_simple.cpp tcoords.push_back(Vec2d(1.0, i/64.0)); i 196 modules/viz/test/tests_simple.cpp for(int i = 0; i < (int)points.size()/2-1; ++i) i 198 modules/viz/test/tests_simple.cpp int polys[] = {3, 2*i, 2*i+1, 2*i+2, 3, 2*i+1, 2*i+2, 2*i+3}; i 223 modules/viz/test/tests_simple.cpp for(int i = 0; i < (int)polyline.total(); ++i) i 225 modules/viz/test/tests_simple.cpp polyline.at<Vec3d>(i) = Vec3d(i/16.0, cos(i * CV_PI/6), sin(i * CV_PI/6)); i 226 modules/viz/test/tests_simple.cpp colors.at<Vec3b>(i) = palette[i & palette_size]; i 290 modules/viz/test/tests_simple.cpp int i = 0; i 293 modules/viz/test/tests_simple.cpp double a = --i % 360; i 320 modules/viz/test/tests_simple.cpp for(int i = 0; i < 2; ++i) i 322 modules/viz/test/tests_simple.cpp Vec3d pose = 5 * Vec3d(sin(3.14 + 2.7 + i*60 * CV_PI/180), 0.4 - i*0.3, cos(3.14 + 2.7 + i*60 * CV_PI/180)); i 323 modules/viz/test/tests_simple.cpp poses[i] = makeCameraPose(pose, Vec3d(0.0, 0.0, 0.0), Vec3d(0.0, -0.1, 0.0)); i 356 modules/viz/test/tests_simple.cpp int i = 0; i 359 modules/viz/test/tests_simple.cpp double a = ++i % 360; i 362 modules/viz/test/tests_simple.cpp viz.getWidget("img1").cast<WImageOverlay>().setImage(lena * pow(sin(i*10*CV_PI/180) * 0.5 + 0.5, 1.0)); i 401 modules/viz/test/tests_simple.cpp int i = 0; i 404 modules/viz/test/tests_simple.cpp viz.getWidget("img0").cast<WImage3D>().setImage(lena * pow(sin(i++*7.5*CV_PI/180) * 0.5 + 0.5, 1.0)); i 42 platforms/android/service/engine/src/org/opencv/engine/HardwareDetector.java Log.i(TAG, "ABIs: " + abis.toString()); i 65 platforms/android/service/engine/src/org/opencv/engine/OpenCVEngineService.java int i = 0; i 66 platforms/android/service/engine/src/org/opencv/engine/OpenCVEngineService.java for (; i < Math.min(expected.length, actual.length); ++i) { i 67 platforms/android/service/engine/src/org/opencv/engine/OpenCVEngineService.java int diff = Integer.valueOf(expected[i]) i 68 platforms/android/service/engine/src/org/opencv/engine/OpenCVEngineService.java - Integer.valueOf(actual[i]); i 69 platforms/android/service/engine/src/org/opencv/engine/OpenCVEngineService.java if (diff > 0 || (diff != 0 && i == 0)) { i 77 platforms/android/service/engine/src/org/opencv/engine/OpenCVEngineService.java if (expected.length > i) { i 149 platforms/android/service/engine/src/org/opencv/engine/OpenCVEngineService.java Log.i(TAG, "Service onBind called for intent " + intent.toString()); i 154 platforms/android/service/engine/src/org/opencv/engine/OpenCVEngineService.java Log.i(TAG, "Service onUnbind called for intent " + intent.toString()); i 159 platforms/android/service/engine/src/org/opencv/engine/OpenCVEngineService.java Log.i(TAG, "OpenCV Engine service destruction"); i 40 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Activity.java Log.i(TAG, "OpenCV loaded successfully"); i 96 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Activity.java Log.i(TAG, "called onCreateOptionsMenu"); i 104 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Activity.java Log.i(TAG, "Menu Item selected " + item); i 40 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Processor.java for (int i = 0; i < GRID_AREA; i++) i 41 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Processor.java mIndexes[i] = i; i 59 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Processor.java for (int i = 0; i < GRID_SIZE; i++) { i 61 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Processor.java int k = i * GRID_SIZE + j; i 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); i 66 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Processor.java for (int i = 0; i < GRID_AREA; i++) { i 67 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Processor.java Size s = Imgproc.getTextSize(Integer.toString(i + 1), 3/* CV_FONT_HERSHEY_COMPLEX */, 1, 2, null); i 68 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Processor.java mTextHeights[i] = (int) s.height; i 69 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Processor.java mTextWidths[i] = (int) s.width; i 84 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Processor.java for (int i = 0; i < GRID_SIZE; i++) { i 86 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Processor.java int k = i * GRID_SIZE + j; i 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); i 95 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Processor.java for (int i = 0; i < GRID_AREA; i++) { i 96 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Processor.java int idx = mIndexes[i]; i 98 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Processor.java mCells15[i].setTo(GRID_EMPTY_COLOR); i 100 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Processor.java cells[idx].copyTo(mCells15[i]); i 102 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Processor.java Imgproc.putText(mCells15[i], Integer.toString(1 + idx), new Point((cols / GRID_SIZE - mTextWidths[idx]) / 2, i 108 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Processor.java for (int i = 0; i < GRID_AREA; i++) i 109 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Processor.java cells[i].release(); i 163 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Processor.java for (int i = 1; i < GRID_SIZE; i++) { i 164 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Processor.java Imgproc.line(drawMat, new Point(0, i * rows / GRID_SIZE), new Point(cols, i * rows / GRID_SIZE), new Scalar(0, 255, 0, 255), 3); i 165 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Processor.java Imgproc.line(drawMat, new Point(i * cols / GRID_SIZE, 0), new Point(i * cols / GRID_SIZE, rows), new Scalar(0, 255, 0, 255), 3); i 170 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Processor.java for (int i = array.length; i > 1; i--) { i 171 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Processor.java int temp = array[i - 1]; i 172 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Processor.java int randIx = (int) (Math.random() * i); i 173 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Processor.java array[i - 1] = array[randIx]; i 181 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Processor.java for (int i = 0; i < GRID_AREA; i++) { i 182 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Processor.java if (mIndexes[i] == GRID_EMPTY_INDEX) i 183 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Processor.java sum += (i / GRID_SIZE) + 1; i 186 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Processor.java for (int j = i + 1; j < GRID_AREA; j++) { i 187 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Processor.java if (mIndexes[j] < mIndexes[i]) i 23 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CalibrationResult.java for (int i = 0; i < CAMERA_MATRIX_ROWS; i++) { i 25 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CalibrationResult.java Integer id = i * CAMERA_MATRIX_ROWS + j; i 33 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CalibrationResult.java for (Integer i = shift; i < DISTORTION_COEFFICIENTS_SIZE + shift; i++) { i 34 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CalibrationResult.java editor.putFloat(i.toString(), (float)distortionCoefficientsArray[i-shift]); i 38 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CalibrationResult.java Log.i(TAG, "Saved camera matrix: " + cameraMatrix.dump()); i 39 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CalibrationResult.java Log.i(TAG, "Saved distortion coefficients: " + distortionCoefficients.dump()); i 45 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CalibrationResult.java Log.i(TAG, "No previous calibration results found"); i 50 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CalibrationResult.java for (int i = 0; i < CAMERA_MATRIX_ROWS; i++) { i 52 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CalibrationResult.java Integer id = i * CAMERA_MATRIX_ROWS + j; i 57 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CalibrationResult.java Log.i(TAG, "Loaded camera matrix: " + cameraMatrix.dump()); i 61 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CalibrationResult.java for (Integer i = shift; i < DISTORTION_COEFFICIENTS_SIZE + shift; i++) { i 62 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CalibrationResult.java distortionCoefficientsArray[i - shift] = sharedPref.getFloat(i.toString(), -1); i 65 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CalibrationResult.java Log.i(TAG, "Loaded distortion coefficients: " + distortionCoefficients.dump()); i 54 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrationActivity.java Log.i(TAG, "OpenCV loaded successfully"); i 67 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrationActivity.java Log.i(TAG, "Instantiated new " + this.getClass()); i 72 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrationActivity.java Log.i(TAG, "called onCreate"); i 47 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrator.java Log.i(TAG, "Instantiated new " + this.getClass()); i 62 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrator.java for (int i = 1; i < mCornersBuffer.size(); i++) { i 73 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrator.java Log.i(TAG, String.format("Average re-projection error: %f", mRms)); i 74 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrator.java Log.i(TAG, "Camera matrix: " + mCameraMatrix.dump()); i 75 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrator.java Log.i(TAG, "Distortion coefficients: " + mDistortionCoefficients.dump()); i 86 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrator.java for (int i = 0; i < mPatternSize.height; i++) { i 88 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrator.java positions[(int) (i * mPatternSize.width * cn + j + 0)] = i 89 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrator.java (2 * (j / cn) + i % 2) * (float) mSquareSize; i 90 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrator.java positions[(int) (i * mPatternSize.width * cn + j + 1)] = i 91 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrator.java i * (float) mSquareSize; i 92 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrator.java positions[(int) (i * mPatternSize.width * cn + j + 2)] = 0; i 108 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrator.java for (int i = 0; i < objectPoints.size(); i++) { i 109 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrator.java MatOfPoint3f points = new MatOfPoint3f(objectPoints.get(i)); i 110 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrator.java Calib3d.projectPoints(points, rvecs.get(i), tvecs.get(i), i 112 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrator.java error = Core.norm(mCornersBuffer.get(i), cornersProjected, Core.NORM_L2); i 114 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrator.java int n = objectPoints.get(i).rows(); i 115 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrator.java viewErrors[i] = (float) Math.sqrt(error * error / n); i 49 samples/android/color-blob-detection/src/org/opencv/samples/colorblobdetect/ColorBlobDetectionActivity.java Log.i(TAG, "OpenCV loaded successfully"); i 62 samples/android/color-blob-detection/src/org/opencv/samples/colorblobdetect/ColorBlobDetectionActivity.java Log.i(TAG, "Instantiated new " + this.getClass()); i 68 samples/android/color-blob-detection/src/org/opencv/samples/colorblobdetect/ColorBlobDetectionActivity.java Log.i(TAG, "called onCreate"); i 130 samples/android/color-blob-detection/src/org/opencv/samples/colorblobdetect/ColorBlobDetectionActivity.java Log.i(TAG, "Touch image coordinates: (" + x + ", " + y + ")"); i 150 samples/android/color-blob-detection/src/org/opencv/samples/colorblobdetect/ColorBlobDetectionActivity.java for (int i = 0; i < mBlobColorHsv.val.length; i++) i 151 samples/android/color-blob-detection/src/org/opencv/samples/colorblobdetect/ColorBlobDetectionActivity.java mBlobColorHsv.val[i] /= pointCount; i 155 samples/android/color-blob-detection/src/org/opencv/samples/colorblobdetect/ColorBlobDetectionActivity.java Log.i(TAG, "Touched rgba color: (" + mBlobColorRgba.val[0] + ", " + mBlobColorRgba.val[1] + i 64 samples/android/face-detection/src/org/opencv/samples/facedetect/FdActivity.java Log.i(TAG, "OpenCV loaded successfully"); i 89 samples/android/face-detection/src/org/opencv/samples/facedetect/FdActivity.java Log.i(TAG, "Loaded cascade classifier from " + mCascadeFile.getAbsolutePath()); i 115 samples/android/face-detection/src/org/opencv/samples/facedetect/FdActivity.java Log.i(TAG, "Instantiated new " + this.getClass()); i 121 samples/android/face-detection/src/org/opencv/samples/facedetect/FdActivity.java Log.i(TAG, "called onCreate"); i 196 samples/android/face-detection/src/org/opencv/samples/facedetect/FdActivity.java for (int i = 0; i < facesArray.length; i++) i 197 samples/android/face-detection/src/org/opencv/samples/facedetect/FdActivity.java Imgproc.rectangle(mRgba, facesArray[i].tl(), facesArray[i].br(), FACE_RECT_COLOR, 3); i 204 samples/android/face-detection/src/org/opencv/samples/facedetect/FdActivity.java Log.i(TAG, "called onCreateOptionsMenu"); i 215 samples/android/face-detection/src/org/opencv/samples/facedetect/FdActivity.java Log.i(TAG, "called onOptionsItemSelected; selected item: " + item); i 242 samples/android/face-detection/src/org/opencv/samples/facedetect/FdActivity.java Log.i(TAG, "Detection Based Tracker enabled"); i 245 samples/android/face-detection/src/org/opencv/samples/facedetect/FdActivity.java Log.i(TAG, "Cascade detector enabled"); i 74 samples/android/image-manipulations/src/org/opencv/samples/imagemanipulations/ImageManipulationsActivity.java Log.i(TAG, "OpenCV loaded successfully"); i 86 samples/android/image-manipulations/src/org/opencv/samples/imagemanipulations/ImageManipulationsActivity.java Log.i(TAG, "Instantiated new " + this.getClass()); i 92 samples/android/image-manipulations/src/org/opencv/samples/imagemanipulations/ImageManipulationsActivity.java Log.i(TAG, "called onCreate"); i 131 samples/android/image-manipulations/src/org/opencv/samples/imagemanipulations/ImageManipulationsActivity.java Log.i(TAG, "called onCreateOptionsMenu"); i 145 samples/android/image-manipulations/src/org/opencv/samples/imagemanipulations/ImageManipulationsActivity.java Log.i(TAG, "called onOptionsItemSelected; selected item: " + item); i 33 samples/android/tutorial-1-camerapreview/src/org/opencv/samples/tutorial1/Tutorial1Activity.java Log.i(TAG, "OpenCV loaded successfully"); i 45 samples/android/tutorial-1-camerapreview/src/org/opencv/samples/tutorial1/Tutorial1Activity.java Log.i(TAG, "Instantiated new " + this.getClass()); i 51 samples/android/tutorial-1-camerapreview/src/org/opencv/samples/tutorial1/Tutorial1Activity.java Log.i(TAG, "called onCreate"); i 21 samples/android/tutorial-2-mixedprocessing/jni/jni_part.cpp for( unsigned int i = 0; i < v.size(); i++ ) i 23 samples/android/tutorial-2-mixedprocessing/jni/jni_part.cpp const KeyPoint& kp = v[i]; i 46 samples/android/tutorial-2-mixedprocessing/src/org/opencv/samples/tutorial2/Tutorial2Activity.java Log.i(TAG, "OpenCV loaded successfully"); i 62 samples/android/tutorial-2-mixedprocessing/src/org/opencv/samples/tutorial2/Tutorial2Activity.java Log.i(TAG, "Instantiated new " + this.getClass()); i 68 samples/android/tutorial-2-mixedprocessing/src/org/opencv/samples/tutorial2/Tutorial2Activity.java Log.i(TAG, "called onCreate"); i 80 samples/android/tutorial-2-mixedprocessing/src/org/opencv/samples/tutorial2/Tutorial2Activity.java Log.i(TAG, "called onCreateOptionsMenu"); i 156 samples/android/tutorial-2-mixedprocessing/src/org/opencv/samples/tutorial2/Tutorial2Activity.java Log.i(TAG, "called onOptionsItemSelected; selected item: " + item); i 47 samples/android/tutorial-3-cameracontrol/src/org/opencv/samples/tutorial3/Tutorial3Activity.java Log.i(TAG, "OpenCV loaded successfully"); i 60 samples/android/tutorial-3-cameracontrol/src/org/opencv/samples/tutorial3/Tutorial3Activity.java Log.i(TAG, "Instantiated new " + this.getClass()); i 66 samples/android/tutorial-3-cameracontrol/src/org/opencv/samples/tutorial3/Tutorial3Activity.java Log.i(TAG, "called onCreate"); i 153 samples/android/tutorial-3-cameracontrol/src/org/opencv/samples/tutorial3/Tutorial3Activity.java Log.i(TAG, "called onOptionsItemSelected; selected item: " + item); i 175 samples/android/tutorial-3-cameracontrol/src/org/opencv/samples/tutorial3/Tutorial3Activity.java Log.i(TAG,"onTouch event"); i 58 samples/android/tutorial-3-cameracontrol/src/org/opencv/samples/tutorial3/Tutorial3View.java Log.i(TAG, "Taking picture"); i 70 samples/android/tutorial-3-cameracontrol/src/org/opencv/samples/tutorial3/Tutorial3View.java Log.i(TAG, "Saving a bitmap to file"); i 39 samples/cpp/3calibration.cpp for( int i = 0; i < boardSize.height; i++ ) i 42 samples/cpp/3calibration.cpp float(i*squareSize), 0)); i 56 samples/cpp/3calibration.cpp int c, i; i 69 samples/cpp/3calibration.cpp for( i = 0; i < (int)imgpt0.size(); i++ ) i 70 samples/cpp/3calibration.cpp if( !imgpt0[i].empty() ) i 72 samples/cpp/3calibration.cpp imgpt.push_back(imgpt0[i]); i 73 samples/cpp/3calibration.cpp N += (int)imgpt0[i].size(); i 120 samples/cpp/3calibration.cpp for( i = 0; i < (int)std::min(imagePoints1.size(), imgpt0.size()); i++ ) i 121 samples/cpp/3calibration.cpp if( !imagePoints1.empty() && !imgpt0[i].empty() ) i 123 samples/cpp/3calibration.cpp imgpt.push_back(imagePoints1[i]); i 124 samples/cpp/3calibration.cpp imgpt_right.push_back(imgpt0[i]); i 125 samples/cpp/3calibration.cpp N += (int)imgpt0[i].size(); i 177 samples/cpp/3calibration.cpp int i, k; i 194 samples/cpp/3calibration.cpp for( i = 1; i < argc; i++ ) i 196 samples/cpp/3calibration.cpp const char* s = argv[i]; i 199 samples/cpp/3calibration.cpp if( sscanf( argv[++i], "%u", &boardSize.width ) != 1 || boardSize.width <= 0 ) i 204 samples/cpp/3calibration.cpp if( sscanf( argv[++i], "%u", &boardSize.height ) != 1 || boardSize.height <= 0 ) i 209 samples/cpp/3calibration.cpp if( sscanf( argv[++i], "%f", &squareSize ) != 1 || squareSize <= 0 ) i 214 samples/cpp/3calibration.cpp if( sscanf( argv[++i], "%f", &aspectRatio ) != 1 || aspectRatio <= 0 ) i 228 samples/cpp/3calibration.cpp outputFilename = argv[++i]; i 263 samples/cpp/3calibration.cpp for( i = 0; i < (int)(imageList.size()/3); i++ ) i 268 samples/cpp/3calibration.cpp printf("%s\n", imageList[i*3+k].c_str()); i 269 samples/cpp/3calibration.cpp view = imread(imageList[i*3+k], 1); i 281 samples/cpp/3calibration.cpp imgpt[k1][i].resize(ptvec.size()); i 282 samples/cpp/3calibration.cpp std::copy(ptvec.begin(), ptvec.end(), imgpt[k1][i].begin()); i 350 samples/cpp/3calibration.cpp for( i = 0; i < (int)(imageList.size()/3); i++ ) i 357 samples/cpp/3calibration.cpp view = imread(imageList[i*3+k], 1); i 365 samples/cpp/3calibration.cpp printf("%s %s %s\n", imageList[i*3].c_str(), imageList[i*3+1].c_str(), imageList[i*3+2].c_str()); i 93 samples/cpp/calibration.cpp int i, totalPoints = 0; i 97 samples/cpp/calibration.cpp for( i = 0; i < (int)objectPoints.size(); i++ ) i 99 samples/cpp/calibration.cpp projectPoints(Mat(objectPoints[i]), rvecs[i], tvecs[i], i 101 samples/cpp/calibration.cpp err = norm(Mat(imagePoints[i]), Mat(imagePoints2), NORM_L2); i 102 samples/cpp/calibration.cpp int n = (int)objectPoints[i].size(); i 103 samples/cpp/calibration.cpp perViewErrors[i] = (float)std::sqrt(err*err/n); i 119 samples/cpp/calibration.cpp for( int i = 0; i < boardSize.height; i++ ) i 122 samples/cpp/calibration.cpp float(i*squareSize), 0)); i 126 samples/cpp/calibration.cpp for( int i = 0; i < boardSize.height; i++ ) i 128 samples/cpp/calibration.cpp corners.push_back(Point3f(float((2*j + i % 2)*squareSize), i 129 samples/cpp/calibration.cpp float(i*squareSize), 0)); i 223 samples/cpp/calibration.cpp for( int i = 0; i < (int)rvecs.size(); i++ ) i 225 samples/cpp/calibration.cpp Mat r = bigmat(Range(i, i+1), Range(0,3)); i 226 samples/cpp/calibration.cpp Mat t = bigmat(Range(i, i+1), Range(3,6)); i 228 samples/cpp/calibration.cpp CV_Assert(rvecs[i].rows == 3 && rvecs[i].cols == 1); i 229 samples/cpp/calibration.cpp CV_Assert(tvecs[i].rows == 3 && tvecs[i].cols == 1); i 231 samples/cpp/calibration.cpp r = rvecs[i].t(); i 232 samples/cpp/calibration.cpp t = tvecs[i].t(); i 241 samples/cpp/calibration.cpp for( int i = 0; i < (int)imagePoints.size(); i++ ) i 243 samples/cpp/calibration.cpp Mat r = imagePtMat.row(i).reshape(2, imagePtMat.cols); i 244 samples/cpp/calibration.cpp Mat imgpti(imagePoints[i]); i 305 samples/cpp/calibration.cpp int i, nframes = 10; i 327 samples/cpp/calibration.cpp for( i = 1; i < argc; i++ ) i 329 samples/cpp/calibration.cpp const char* s = argv[i]; i 332 samples/cpp/calibration.cpp if( sscanf( argv[++i], "%u", &boardSize.width ) != 1 || boardSize.width <= 0 ) i 337 samples/cpp/calibration.cpp if( sscanf( argv[++i], "%u", &boardSize.height ) != 1 || boardSize.height <= 0 ) i 342 samples/cpp/calibration.cpp i++; i 343 samples/cpp/calibration.cpp if( !strcmp( argv[i], "circles" ) ) i 345 samples/cpp/calibration.cpp else if( !strcmp( argv[i], "acircles" ) ) i 347 samples/cpp/calibration.cpp else if( !strcmp( argv[i], "chessboard" ) ) i 354 samples/cpp/calibration.cpp if( sscanf( argv[++i], "%f", &squareSize ) != 1 || squareSize <= 0 ) i 359 samples/cpp/calibration.cpp if( sscanf( argv[++i], "%u", &nframes ) != 1 || nframes <= 3 ) i 364 samples/cpp/calibration.cpp if( sscanf( argv[++i], "%f", &aspectRatio ) != 1 || aspectRatio <= 0 ) i 370 samples/cpp/calibration.cpp if( sscanf( argv[++i], "%u", &delay ) != 1 || delay <= 0 ) i 399 samples/cpp/calibration.cpp outputFilename = argv[++i]; i 437 samples/cpp/calibration.cpp for(i = 0;;i++) i 448 samples/cpp/calibration.cpp else if( i < (int)imageList.size() ) i 449 samples/cpp/calibration.cpp view = imread(imageList[i], 1); i 563 samples/cpp/calibration.cpp for( i = 0; i < (int)imageList.size(); i++ ) i 565 samples/cpp/calibration.cpp view = imread(imageList[i], 1); i 142 samples/cpp/camshiftdemo.cpp for( int i = 0; i < hsize; i++ ) i 143 samples/cpp/camshiftdemo.cpp buf.at<Vec3b>(i) = Vec3b(saturate_cast<uchar>(i*180./hsize), 255, 255); i 146 samples/cpp/camshiftdemo.cpp for( int i = 0; i < hsize; i++ ) i 148 samples/cpp/camshiftdemo.cpp int val = saturate_cast<int>(hist.at<float>(i)*histimg.rows/255); i 149 samples/cpp/camshiftdemo.cpp rectangle( histimg, Point(i*binW,histimg.rows), i 150 samples/cpp/camshiftdemo.cpp Point((i+1)*binW,histimg.rows - val), i 151 samples/cpp/camshiftdemo.cpp Scalar(buf.at<Vec3b>(i)), -1, 8 ); i 105 samples/cpp/cloning_gui.cpp for(int i = var; i < numpts ; i++) i 106 samples/cpp/cloning_gui.cpp pts[i] = point; i 114 samples/cpp/cloning_gui.cpp for(int i=0;i<var;i++) i 116 samples/cpp/cloning_gui.cpp minx = min(minx,pts[i].x); i 117 samples/cpp/cloning_gui.cpp maxx = max(maxx,pts[i].x); i 118 samples/cpp/cloning_gui.cpp miny = min(miny,pts[i].y); i 119 samples/cpp/cloning_gui.cpp maxy = max(maxy,pts[i].y); i 127 samples/cpp/cloning_gui.cpp for(int i=0;i<var;i++) i 129 samples/cpp/cloning_gui.cpp pts_diff[i].x = pts[i].x - mid_pointx; i 130 samples/cpp/cloning_gui.cpp pts_diff[i].y = pts[i].y - mid_pointy; i 172 samples/cpp/cloning_gui.cpp for(int i = 0; i < numpts ; i++) i 174 samples/cpp/cloning_gui.cpp pts[i].x=0; i 175 samples/cpp/cloning_gui.cpp pts[i].y=0; i 200 samples/cpp/cloning_gui.cpp for(int i=0;i<var;i++) i 202 samples/cpp/cloning_gui.cpp pts2[i].x = point.x + pts_diff[i].x; i 203 samples/cpp/cloning_gui.cpp pts2[i].y = point.y + pts_diff[i].y; i 206 samples/cpp/cloning_gui.cpp for(int i=var;i<numpts;i++) i 208 samples/cpp/cloning_gui.cpp pts2[i].x = point.x + pts_diff[0].x; i 209 samples/cpp/cloning_gui.cpp pts2[i].y = point.y + pts_diff[0].y; i 223 samples/cpp/cloning_gui.cpp for(int i=0;i<flag;i++) i 225 samples/cpp/cloning_gui.cpp minxd = min(minxd,pts2[i].x); i 226 samples/cpp/cloning_gui.cpp maxxd = max(maxxd,pts2[i].x); i 227 samples/cpp/cloning_gui.cpp minyd = min(minyd,pts2[i].y); i 228 samples/cpp/cloning_gui.cpp maxyd = max(maxyd,pts2[i].y); i 239 samples/cpp/cloning_gui.cpp for(int i=miny, k=minyd;i<(miny+leny);i++,k++) i 244 samples/cpp/cloning_gui.cpp final1.at<uchar>(k,l*channel+c) = final.at<uchar>(i,j*channel+c); i 260 samples/cpp/cloning_gui.cpp for(int i = 0; i < flag ; i++) i 262 samples/cpp/cloning_gui.cpp pts2[i].x=0; i 263 samples/cpp/cloning_gui.cpp pts2[i].y=0; i 463 samples/cpp/cloning_gui.cpp for(int i = var; i < numpts ; i++) i 464 samples/cpp/cloning_gui.cpp pts[i] = point; i 472 samples/cpp/cloning_gui.cpp for(int i=0;i<var;i++) i 474 samples/cpp/cloning_gui.cpp minx = min(minx,pts[i].x); i 475 samples/cpp/cloning_gui.cpp maxx = max(maxx,pts[i].x); i 476 samples/cpp/cloning_gui.cpp miny = min(miny,pts[i].y); i 477 samples/cpp/cloning_gui.cpp maxy = max(maxy,pts[i].y); i 485 samples/cpp/cloning_gui.cpp for(int i=0;i<var;i++) i 487 samples/cpp/cloning_gui.cpp pts_diff[i].x = pts[i].x - mid_pointx; i 488 samples/cpp/cloning_gui.cpp pts_diff[i].y = pts[i].y - mid_pointy; i 504 samples/cpp/cloning_gui.cpp for(int i = 0; i < numpts ; i++) i 506 samples/cpp/cloning_gui.cpp pts[i].x=0; i 507 samples/cpp/cloning_gui.cpp pts[i].y=0; i 45 samples/cpp/contours2.cpp for( int i = 0; i < 6; i++ ) i 47 samples/cpp/contours2.cpp int dx = (i%2)*250 - 30; i 48 samples/cpp/contours2.cpp int dy = (i/2)*150; i 52 samples/cpp/contours2.cpp if( i == 0 ) i 26 samples/cpp/convexhull.cpp int i, count = (unsigned)rng%100 + 1; i 30 samples/cpp/convexhull.cpp for( i = 0; i < count; i++ ) i 43 samples/cpp/convexhull.cpp for( i = 0; i < count; i++ ) i 44 samples/cpp/convexhull.cpp circle(img, points[i], 3, Scalar(0, 0, 255), FILLED, LINE_AA); i 49 samples/cpp/convexhull.cpp for( i = 0; i < hullcount; i++ ) i 51 samples/cpp/convexhull.cpp Point pt = points[hull[i]]; i 59 samples/cpp/cout_mat.cpp for (size_t i = 0; i < points.size(); ++i) i 60 samples/cpp/cout_mat.cpp points[i] = Point2f((float)(i * 5), (float)(i % 7)); i 71 samples/cpp/create_mask.cpp for(int i = var; i < numpts ; i++) i 72 samples/cpp/create_mask.cpp pts[i] = point; i 80 samples/cpp/create_mask.cpp for(int i=0;i<var;i++) i 82 samples/cpp/create_mask.cpp minx = min(minx,pts[i].x); i 83 samples/cpp/create_mask.cpp maxx = max(maxx,pts[i].x); i 84 samples/cpp/create_mask.cpp miny = min(miny,pts[i].y); i 85 samples/cpp/create_mask.cpp maxy = max(maxy,pts[i].y); i 111 samples/cpp/create_mask.cpp for(int i = 0; i < numpts ; i++) i 113 samples/cpp/create_mask.cpp pts[i].x=0; i 114 samples/cpp/create_mask.cpp pts[i].y=0; i 81 samples/cpp/dbt_face_detection.cpp for (size_t i = 0; i < Faces.size(); i++) i 83 samples/cpp/dbt_face_detection.cpp rectangle(ReferenceFrame, Faces[i], Scalar(0,255,0)); i 31 samples/cpp/delaunay2.cpp for( size_t i = 0; i < triangleList.size(); i++ ) i 33 samples/cpp/delaunay2.cpp Vec6f t = triangleList[i]; i 44 samples/cpp/delaunay2.cpp for( size_t i = 0; i < edgeList.size(); i++ ) i 46 samples/cpp/delaunay2.cpp Vec4f e = edgeList[i]; i 87 samples/cpp/delaunay2.cpp for( size_t i = 0; i < facets.size(); i++ ) i 89 samples/cpp/delaunay2.cpp ifacet.resize(facets[i].size()); i 90 samples/cpp/delaunay2.cpp for( size_t j = 0; j < facets[i].size(); j++ ) i 91 samples/cpp/delaunay2.cpp ifacet[j] = facets[i][j]; i 101 samples/cpp/delaunay2.cpp circle(img, centers[i], 3, Scalar(), FILLED, LINE_AA, 0); i 120 samples/cpp/delaunay2.cpp for( int i = 0; i < 200; i++ ) i 53 samples/cpp/demhist.cpp for( int i = 0; i < histSize; i++ ) i 54 samples/cpp/demhist.cpp rectangle( histImage, Point(i*binW, histImage.rows), i 55 samples/cpp/demhist.cpp Point((i+1)*binW, histImage.rows - cvRound(hist.at<float>(i))), i 120 samples/cpp/detect_blob.cpp for (int i = 0; i<65536; i++) i 189 samples/cpp/detect_blob.cpp int i = 0; i 190 samples/cpp/detect_blob.cpp for (vector<KeyPoint>::iterator k = keyImg.begin(); k != keyImg.end(); k++, i++) i 191 samples/cpp/detect_blob.cpp circle(result, k->pt, (int)k->size, palette[i % 65536]); i 228 samples/cpp/detect_mser.cpp for (int i = 0, nbPix = 0; i<img.rows; i++) i 233 samples/cpp/detect_mser.cpp float y = (i) / (float)img.rows; i 234 samples/cpp/detect_mser.cpp vertex.at< Vec3f >(0, nbPix) = Vec3f(float(2 * (x - 0.5)), float(2 * (0.5 - y)), float(imgGray.at<uchar>(i, j) / 512.0)); i 240 samples/cpp/detect_mser.cpp for (int i = 1, nbPix = 0; i<img.rows; i++) i 244 samples/cpp/detect_mser.cpp int c = i*img.cols + j; i 347 samples/cpp/detect_mser.cpp for (int i = 0; i<13; i++) i 349 samples/cpp/detect_mser.cpp rectangle(img, Rect(p0, Size(width[i], width[i])), Scalar(color[i]), 1); i 350 samples/cpp/detect_mser.cpp p0 += Point((width[i] - width[i + 1]) / 2, (width[i] - width[i + 1]) / 2); i 351 samples/cpp/detect_mser.cpp floodFill(img, p0, Scalar(color[i])); i 357 samples/cpp/detect_mser.cpp for (int i = 0; i<13; i++) i 359 samples/cpp/detect_mser.cpp circle(img, p0, width[i] / 2, Scalar(color[i]), 1); i 360 samples/cpp/detect_mser.cpp floodFill(img, p0, Scalar(color[i])); i 366 samples/cpp/detect_mser.cpp for (int i = 0; i<13; i++) i 368 samples/cpp/detect_mser.cpp rectangle(img, Rect(p0, Size(width[i], width[i])), Scalar(color[i]), 1); i 369 samples/cpp/detect_mser.cpp p0 += Point((width[i] - width[i + 1]) / 2, (width[i] - width[i + 1]) / 2); i 370 samples/cpp/detect_mser.cpp floodFill(img, p0, Scalar(color[i])); i 377 samples/cpp/detect_mser.cpp for (int i = 0; i<13; i++) i 379 samples/cpp/detect_mser.cpp circle(img, p0, width[i] / 2, Scalar(color[i]), 1); i 380 samples/cpp/detect_mser.cpp floodFill(img, p0, Scalar(color[i])); i 389 samples/cpp/detect_mser.cpp for (int i = 0; i < hist.rows ; i++) i 391 samples/cpp/detect_mser.cpp if (hist.at<float>(i, 0)!=0) i 393 samples/cpp/detect_mser.cpp cout << "h" << i << "=\t" << hist.at<float>(i, 0) << "\n"; i 427 samples/cpp/detect_mser.cpp for (int i = 0; i<65536; i++) i 506 samples/cpp/detect_mser.cpp int i = 0; i 509 samples/cpp/detect_mser.cpp for (vector<vector <Point> >::iterator itr = region.begin(); itr != region.end(); itr++, i++) i 511 samples/cpp/detect_mser.cpp for (vector <Point>::iterator itp = region[i].begin(); itp != region[i].end(); itp ++) i 68 samples/cpp/distrans.cpp for( int i = 0; i < labels.rows; i++ ) i 70 samples/cpp/distrans.cpp const int* ll = (const int*)labels.ptr(i); i 71 samples/cpp/distrans.cpp const float* dd = (const float*)dist.ptr(i); i 72 samples/cpp/distrans.cpp uchar* d = (uchar*)dist8u.ptr(i); i 26 samples/cpp/drawing.cpp int i, width = 1000, height = 700; i 34 samples/cpp/drawing.cpp for (i = 0; i < NUMBER; i++) i 49 samples/cpp/drawing.cpp for (i = 0; i < NUMBER; i++) i 65 samples/cpp/drawing.cpp for (i = 0; i < NUMBER; i++) i 83 samples/cpp/drawing.cpp for (i = 0; i< NUMBER; i++) i 108 samples/cpp/drawing.cpp for (i = 0; i< NUMBER; i++) i 133 samples/cpp/drawing.cpp for (i = 0; i < NUMBER; i++) i 147 samples/cpp/drawing.cpp for (i = 1; i < NUMBER; i++) i 165 samples/cpp/drawing.cpp for( i = 0; i < 255; i += 2 ) i 167 samples/cpp/drawing.cpp image2 = image - Scalar::all(i); i 169 samples/cpp/drawing.cpp Scalar(i, i, 255), 5, lineType); i 18 samples/cpp/em.cpp int i, j; i 26 samples/cpp/em.cpp for( i = 0; i < N; i++ ) i 29 samples/cpp/em.cpp Mat samples_part = samples.rowRange(i*nsamples/N, (i+1)*nsamples/N ); i 31 samples/cpp/em.cpp Scalar mean(((i%N1)+1)*img.rows/(N1+1), i 32 samples/cpp/em.cpp ((i/N1)+1)*img.rows/(N1+1)); i 46 samples/cpp/em.cpp for( i = 0; i < img.rows; i++ ) i 51 samples/cpp/em.cpp sample.at<float>(1) = (float)i; i 55 samples/cpp/em.cpp circle( img, Point(j, i), 1, c*0.75, FILLED ); i 60 samples/cpp/em.cpp for( i = 0; i < nsamples; i++ ) i 62 samples/cpp/em.cpp Point pt(cvRound(samples.at<float>(i, 0)), cvRound(samples.at<float>(i, 1))); i 63 samples/cpp/em.cpp circle( img, pt, 1, colors[labels.at<int>(i)], FILLED ); i 63 samples/cpp/facedetect.cpp for( int i = 1; i < argc; i++ ) i 65 samples/cpp/facedetect.cpp cout << "Processing " << i << " " << argv[i] << endl; i 66 samples/cpp/facedetect.cpp if( cascadeOpt.compare( 0, cascadeOptLen, argv[i], cascadeOptLen ) == 0 ) i 68 samples/cpp/facedetect.cpp cascadeName.assign( argv[i] + cascadeOptLen ); i 71 samples/cpp/facedetect.cpp else if( nestedCascadeOpt.compare( 0, nestedCascadeOptLen, argv[i], nestedCascadeOptLen ) == 0 ) i 73 samples/cpp/facedetect.cpp if( argv[i][nestedCascadeOpt.length()] == '=' ) i 74 samples/cpp/facedetect.cpp nestedCascadeName.assign( argv[i] + nestedCascadeOpt.length() + 1 ); i 78 samples/cpp/facedetect.cpp else if( scaleOpt.compare( 0, scaleOptLen, argv[i], scaleOptLen ) == 0 ) i 80 samples/cpp/facedetect.cpp if( !sscanf( argv[i] + scaleOpt.length(), "%lf", &scale ) || scale < 1 ) i 84 samples/cpp/facedetect.cpp else if( tryFlipOpt.compare( 0, tryFlipOptLen, argv[i], tryFlipOptLen ) == 0 ) i 89 samples/cpp/facedetect.cpp else if( argv[i][0] == '-' ) i 91 samples/cpp/facedetect.cpp cerr << "WARNING: Unknown option %s" << argv[i] << endl; i 94 samples/cpp/facedetect.cpp inputName.assign( argv[i] ); i 202 samples/cpp/facedetect.cpp int i = 0; i 244 samples/cpp/facedetect.cpp for( vector<Rect>::const_iterator r = faces.begin(); r != faces.end(); r++, i++ ) i 249 samples/cpp/facedetect.cpp Scalar color = colors[i%8]; i 72 samples/cpp/facial_features.cpp for(int i = 1; i < argc; ++i) i 74 samples/cpp/facial_features.cpp args.push_back(argv[i]); i 138 samples/cpp/facial_features.cpp for(unsigned int i = 0; i < faces.size(); ++i) i 141 samples/cpp/facial_features.cpp Rect face = faces[i]; i 72 samples/cpp/fitellipse.cpp for(size_t i = 0; i < contours.size(); i++) i 74 samples/cpp/fitellipse.cpp size_t count = contours[i].size(); i 79 samples/cpp/fitellipse.cpp Mat(contours[i]).convertTo(pointsf, CV_32F); i 84 samples/cpp/fitellipse.cpp drawContours(cimage, contours, (int)i, Scalar::all(255), 1, 8); i 38 samples/cpp/houghcircles.cpp for( size_t i = 0; i < circles.size(); i++ ) i 40 samples/cpp/houghcircles.cpp Vec3i c = circles[i]; i 37 samples/cpp/houghlines.cpp for( size_t i = 0; i < lines.size(); i++ ) i 39 samples/cpp/houghlines.cpp float rho = lines[i][0], theta = lines[i][1]; i 52 samples/cpp/houghlines.cpp for( size_t i = 0; i < lines.size(); i++ ) i 54 samples/cpp/houghlines.cpp Vec4i l = lines[i]; i 86 samples/cpp/image_alignment.cpp int i; i 92 samples/cpp/image_alignment.cpp for(i=0; i<numOfElements; i++){ i 93 samples/cpp/image_alignment.cpp myfile >> matPtr[i]; i 43 samples/cpp/imagelist_creator.cpp for(int i = 2; i < ac; i++){ i 44 samples/cpp/imagelist_creator.cpp fs << string(av[i]); i 54 samples/cpp/intelperc_capture.cpp for( int i = 1; i < argc; i++ ) i 56 samples/cpp/intelperc_capture.cpp if ((0 == strcmp(argv[i], "--help")) || (0 == strcmp( argv[i], "-h"))) i 61 samples/cpp/intelperc_capture.cpp else if ((0 == strcmp( argv[i], "--print-streams")) || (0 == strcmp( argv[i], "-ps"))) i 65 samples/cpp/intelperc_capture.cpp else if ((0 == strcmp( argv[i], "--image-stream-prof")) || (0 == strcmp( argv[i], "-isp"))) i 67 samples/cpp/intelperc_capture.cpp g_imageStreamProfileIdx = atoi(argv[++i]); i 69 samples/cpp/intelperc_capture.cpp else if ((0 == strcmp( argv[i], "--depth-stream-prof")) || (0 == strcmp( argv[i], "-dsp"))) i 71 samples/cpp/intelperc_capture.cpp g_depthStreamProfileIdx = atoi(argv[++i]); i 73 samples/cpp/intelperc_capture.cpp else if (0 == strcmp( argv[i], "-ir")) i 77 samples/cpp/intelperc_capture.cpp else if (0 == strcmp( argv[i], "-imb")) i 79 samples/cpp/intelperc_capture.cpp g_imageBrightness = atof(argv[++i]); i 81 samples/cpp/intelperc_capture.cpp else if (0 == strcmp( argv[i], "-imc")) i 83 samples/cpp/intelperc_capture.cpp g_imageContrast = atof(argv[++i]); i 85 samples/cpp/intelperc_capture.cpp else if (0 == strcmp(argv[i], "-pts")) i 89 samples/cpp/intelperc_capture.cpp else if (0 == strcmp(argv[i], "--show-closed")) i 95 samples/cpp/intelperc_capture.cpp cout << "Unsupported command line argument: " << argv[i] << "." << endl; i 120 samples/cpp/intelperc_capture.cpp for (size_t i = 0; i < profilesCount; i++) i 122 samples/cpp/intelperc_capture.cpp capture.set(CAP_INTELPERC_IMAGE_GENERATOR | CAP_PROP_INTELPERC_PROFILE_IDX, (double)i); i 123 samples/cpp/intelperc_capture.cpp cout << " Profile[" << i << "]: "; i 141 samples/cpp/intelperc_capture.cpp for (size_t i = 0; i < profilesCount; i++) i 143 samples/cpp/intelperc_capture.cpp capture.set(CAP_INTELPERC_DEPTH_GENERATOR | CAP_PROP_INTELPERC_PROFILE_IDX, (double)i); i 144 samples/cpp/intelperc_capture.cpp cout << " Profile[" << i << "]: "; i 36 samples/cpp/kmeans.cpp int i, sampleCount = rng.uniform(1, 1001); i 62 samples/cpp/kmeans.cpp for( i = 0; i < sampleCount; i++ ) i 64 samples/cpp/kmeans.cpp int clusterIdx = labels.at<int>(i); i 65 samples/cpp/kmeans.cpp Point ipt = points.at<Point2f>(i); i 46 samples/cpp/letter_recog.cpp int i; i 66 samples/cpp/letter_recog.cpp for( i = 0; i < var_count; i++ ) i 69 samples/cpp/letter_recog.cpp sscanf( ptr, "%f%n", &el_ptr.at<float>(i), &n ); i 72 samples/cpp/letter_recog.cpp if( i < var_count ) i 123 samples/cpp/letter_recog.cpp int i, nsamples_all = data.rows; i 127 samples/cpp/letter_recog.cpp for( i = 0; i < nsamples_all; i++ ) i 129 samples/cpp/letter_recog.cpp Mat sample = data.row(i); i 132 samples/cpp/letter_recog.cpp r = std::abs(r + rdelta - responses.at<int>(i)) <= FLT_EPSILON ? 1.f : 0.f; i 134 samples/cpp/letter_recog.cpp if( i < ntrain_samples ) i 210 samples/cpp/letter_recog.cpp int i, n = (int)var_importance.total(); i 211 samples/cpp/letter_recog.cpp for( i = 0; i < n; i++ ) i 212 samples/cpp/letter_recog.cpp printf( "%-2d\t%-4.1f\n", i, 100.f*var_importance.at<float>(i)/rt_imp_sum); i 233 samples/cpp/letter_recog.cpp int i, j, k; i 264 samples/cpp/letter_recog.cpp for( i = 0; i < ntrain_samples; i++ ) i 266 samples/cpp/letter_recog.cpp const float* data_row = data.ptr<float>(i); i 269 samples/cpp/letter_recog.cpp float* new_data_row = (float*)new_data.ptr<float>(i*class_count+j); i 272 samples/cpp/letter_recog.cpp new_responses.at<int>(i*class_count + j) = responses.at<int>(i) == j+'A'; i 303 samples/cpp/letter_recog.cpp for( i = 0; i < nsamples_all; i++ ) i 307 samples/cpp/letter_recog.cpp const float* ptr = data.ptr<float>(i); i 322 samples/cpp/letter_recog.cpp double r = std::abs(best_class - responses.at<int>(i)) < FLT_EPSILON ? 1 : 0; i 323 samples/cpp/letter_recog.cpp if( i < ntrain_samples ) i 387 samples/cpp/letter_recog.cpp for( int i = 0; i < ntrain_samples; i++ ) i 389 samples/cpp/letter_recog.cpp int cls_label = responses.at<int>(i) - 'A'; i 390 samples/cpp/letter_recog.cpp train_responses.at<float>(i, cls_label) = 1.f; i 523 samples/cpp/letter_recog.cpp int i; i 524 samples/cpp/letter_recog.cpp for( i = 1; i < argc; i++ ) i 526 samples/cpp/letter_recog.cpp if( strcmp(argv[i],"-data") == 0 ) // flag "-data letter_recognition.xml" i 528 samples/cpp/letter_recog.cpp i++; i 529 samples/cpp/letter_recog.cpp data_filename = argv[i]; i 531 samples/cpp/letter_recog.cpp else if( strcmp(argv[i],"-save") == 0 ) // flag "-save filename.xml" i 533 samples/cpp/letter_recog.cpp i++; i 534 samples/cpp/letter_recog.cpp filename_to_save = argv[i]; i 536 samples/cpp/letter_recog.cpp else if( strcmp(argv[i],"-load") == 0) // flag "-load filename.xml" i 538 samples/cpp/letter_recog.cpp i++; i 539 samples/cpp/letter_recog.cpp filename_to_load = argv[i]; i 541 samples/cpp/letter_recog.cpp else if( strcmp(argv[i],"-boost") == 0) i 545 samples/cpp/letter_recog.cpp else if( strcmp(argv[i],"-mlp") == 0 ) i 549 samples/cpp/letter_recog.cpp else if( strcmp(argv[i], "-knearest") == 0 || strcmp(argv[i], "-knn") == 0 ) i 553 samples/cpp/letter_recog.cpp else if( strcmp(argv[i], "-nbayes") == 0) i 557 samples/cpp/letter_recog.cpp else if( strcmp(argv[i], "-svm") == 0) i 565 samples/cpp/letter_recog.cpp if( i < argc || i 94 samples/cpp/lkdemo.cpp size_t i, k; i 95 samples/cpp/lkdemo.cpp for( i = k = 0; i < points[1].size(); i++ ) i 99 samples/cpp/lkdemo.cpp if( norm(point - points[1][i]) <= 5 ) i 106 samples/cpp/lkdemo.cpp if( !status[i] ) i 109 samples/cpp/lkdemo.cpp points[1][k++] = points[1][i]; i 110 samples/cpp/lkdemo.cpp circle( image, points[1][i], 3, Scalar(0,255,0), -1, 8); i 72 samples/cpp/logistic_regression.cpp for(int i = 0; i < data.rows; ++i) i 74 samples/cpp/logistic_regression.cpp bigImage.push_back(data.row(i).reshape(0, columns)); i 116 samples/cpp/logistic_regression.cpp for(int i = 0; i < data.rows; i++) i 118 samples/cpp/logistic_regression.cpp if(i % 2 == 0) i 120 samples/cpp/logistic_regression.cpp data_train.push_back(data.row(i)); i 121 samples/cpp/logistic_regression.cpp labels_train.push_back(labels.row(i)); i 125 samples/cpp/logistic_regression.cpp data_test.push_back(data.row(i)); i 126 samples/cpp/logistic_regression.cpp labels_test.push_back(labels.row(i)); i 120 samples/cpp/matchmethod_orb_akaze_brisk.cpp for (int i = 0; i<nbMatch; i++) i 122 samples/cpp/matchmethod_orb_akaze_brisk.cpp tab.at<float>(i, 0) = matches[i].distance; i 126 samples/cpp/matchmethod_orb_akaze_brisk.cpp for (int i = 0; i<30; i++) i 128 samples/cpp/matchmethod_orb_akaze_brisk.cpp bestMatches.push_back(matches[index.at<int>(i, 0)]); i 170 samples/cpp/matchmethod_orb_akaze_brisk.cpp int i=0; i 181 samples/cpp/matchmethod_orb_akaze_brisk.cpp for (vector<String>::iterator itMatcher = typeAlgoMatch.begin(); itMatcher != typeAlgoMatch.end(); itMatcher++, i++) i 183 samples/cpp/matchmethod_orb_akaze_brisk.cpp cout << desMethCmp[i]<<"\t"; i 29 samples/cpp/minarea.cpp int i, count = rng.uniform(1, 101); i 33 samples/cpp/minarea.cpp for( i = 0; i < count; i++ ) i 59 samples/cpp/minarea.cpp for( i = 0; i < count; i++ ) i 60 samples/cpp/minarea.cpp circle( img, points[i], 3, Scalar(0, 0, 255), FILLED, LINE_AA ); i 63 samples/cpp/minarea.cpp for( i = 0; i < 4; i++ ) i 64 samples/cpp/minarea.cpp line(img, vtx[i], vtx[(i+1)%4], Scalar(0, 255, 0), 1, LINE_AA); i 67 samples/cpp/minarea.cpp for( i = 0; i < 3; i++ ) i 68 samples/cpp/minarea.cpp line(img, triangle[i], triangle[(i+1)%3], Scalar(255, 255, 0), 1, LINE_AA); i 123 samples/cpp/openni_capture.cpp for( int i = 1; i < argc; i++ ) i 125 samples/cpp/openni_capture.cpp if( !strcmp( argv[i], "--help" ) || !strcmp( argv[i], "-h" ) ) i 130 samples/cpp/openni_capture.cpp else if( !strcmp( argv[i], "-cd" ) ) i 132 samples/cpp/openni_capture.cpp isColorizeDisp = atoi(argv[++i]) == 0 ? false : true; i 134 samples/cpp/openni_capture.cpp else if( !strcmp( argv[i], "-fmd" ) ) i 136 samples/cpp/openni_capture.cpp isFixedMaxDisp = atoi(argv[++i]) == 0 ? false : true; i 138 samples/cpp/openni_capture.cpp else if( !strcmp( argv[i], "-mode" ) ) i 140 samples/cpp/openni_capture.cpp imageMode = atoi(argv[++i]); i 142 samples/cpp/openni_capture.cpp else if( !strcmp( argv[i], "-m" ) ) i 144 samples/cpp/openni_capture.cpp string mask( argv[++i] ); i 163 samples/cpp/openni_capture.cpp else if( !strcmp( argv[i], "-r" ) ) i 165 samples/cpp/openni_capture.cpp filename = argv[++i]; i 170 samples/cpp/openni_capture.cpp cout << "Unsupported command line argument: " << argv[i] << "." << endl; i 69 samples/cpp/pca.cpp for(unsigned int i = 0; i < data.size(); i++) i 71 samples/cpp/pca.cpp Mat image_row = data[i].clone().reshape(1,1); i 72 samples/cpp/pca.cpp Mat row_i = dst.row(i); i 62 samples/cpp/points_classifier.cpp for( size_t i = 0; i < trainedPoints.size(); i++ ) i 64 samples/cpp/points_classifier.cpp Vec3b c = classColors[trainedPointsMarkers[i]]; i 65 samples/cpp/points_classifier.cpp circle( img, trainedPoints[i], 5, Scalar(c), -1 ); i 141 samples/cpp/points_classifier.cpp for( int i = 0; i < sv.rows; i++ ) i 143 samples/cpp/points_classifier.cpp const float* supportVector = sv.ptr<float>(i); i 219 samples/cpp/points_classifier.cpp for( int i = 0; i < trainClasses.rows; i++ ) i 221 samples/cpp/points_classifier.cpp trainClasses.at<float>(i, trainedPointsMarkers[i]) = 1.f; i 244 samples/cpp/points_classifier.cpp int i, j, nmodels = (int)classColors.size(); i 248 samples/cpp/points_classifier.cpp for( i = 0; i < nmodels; i++ ) i 255 samples/cpp/points_classifier.cpp if( trainedPointsMarkers[j] == i ) i 266 samples/cpp/points_classifier.cpp em_models[i] = em; i 282 samples/cpp/points_classifier.cpp for( i = 0; i < nmodels; i++ ) i 284 samples/cpp/points_classifier.cpp if( !em_models[i].empty() ) i 285 samples/cpp/points_classifier.cpp logLikelihoods.at<double>(i) = em_models[i]->predict2(testSample, noArray())[0]; i 108 samples/cpp/select3dobj.cpp for( int i = 0; i < boardSize.height; i++ ) i 111 samples/cpp/select3dobj.cpp float(i*squareSize), 0)); i 145 samples/cpp/select3dobj.cpp for( int i = 0; i < 4; i++ ) i 146 samples/cpp/select3dobj.cpp objpt.push_back(Point3f(objpt[i].x, objpt[i].y, box[3].z)); i 161 samples/cpp/select3dobj.cpp for( int i = 0; i < 4; i++ ) i 163 samples/cpp/select3dobj.cpp circle(shownFrame, imgpt[i], 3, Scalar(0,255,0), -1, LINE_AA); i 164 samples/cpp/select3dobj.cpp line(shownFrame, imgpt[i], imgpt[(i+1)%4], Scalar(0,255,0), 3, LINE_AA); i 167 samples/cpp/select3dobj.cpp for( int i = 0; i < 8; i++ ) i 169 samples/cpp/select3dobj.cpp circle(shownFrame, imgpt[i], 3, Scalar(0,255,0), -1, LINE_AA); i 170 samples/cpp/select3dobj.cpp line(shownFrame, imgpt[i], imgpt[(i+1)%4 + (i/4)*4], Scalar(0,255,0), 3, LINE_AA); i 171 samples/cpp/select3dobj.cpp line(shownFrame, imgpt[i], imgpt[i%4], Scalar(0,255,0), 3, LINE_AA); i 235 samples/cpp/select3dobj.cpp for( int i = 1; i < npt; i++ ) i 236 samples/cpp/select3dobj.cpp if( norm(m - imgpt[i]) < norm(m - imgpt[nearestIdx]) ) i 237 samples/cpp/select3dobj.cpp nearestIdx = i; i 350 samples/cpp/select3dobj.cpp size_t i, nviews = imagelist.size(); i 354 samples/cpp/select3dobj.cpp for( i = 0; i < nviews; i++ ) i 356 samples/cpp/select3dobj.cpp Rect r = roiList[i]; i 357 samples/cpp/select3dobj.cpp Vec6f p = poseList[i]; i 359 samples/cpp/select3dobj.cpp fs << "{" << "image" << imagelist[i] << i 411 samples/cpp/select3dobj.cpp for( int i = 1; i < argc; i++ ) i 413 samples/cpp/select3dobj.cpp if( strcmp(argv[i], "-i") == 0 ) i 414 samples/cpp/select3dobj.cpp intrinsicsFilename = argv[++i]; i 415 samples/cpp/select3dobj.cpp else if( strcmp(argv[i], "-o") == 0 ) i 416 samples/cpp/select3dobj.cpp outprefix = argv[++i]; i 417 samples/cpp/select3dobj.cpp else if( strcmp(argv[i], "-w") == 0 ) i 419 samples/cpp/select3dobj.cpp if(sscanf(argv[++i], "%d", &boardSize.width) != 1 || boardSize.width <= 0) i 426 samples/cpp/select3dobj.cpp else if( strcmp(argv[i], "-h") == 0 ) i 428 samples/cpp/select3dobj.cpp if(sscanf(argv[++i], "%d", &boardSize.height) != 1 || boardSize.height <= 0) i 435 samples/cpp/select3dobj.cpp else if( strcmp(argv[i], "-s") == 0 ) i 437 samples/cpp/select3dobj.cpp if(sscanf(argv[++i], "%lf", &squareSize) != 1 || squareSize <= 0) i 444 samples/cpp/select3dobj.cpp else if( argv[i][0] != '-' ) i 446 samples/cpp/select3dobj.cpp if( isdigit(argv[i][0])) i 447 samples/cpp/select3dobj.cpp sscanf(argv[i], "%d", &cameraId); i 449 samples/cpp/select3dobj.cpp inputName = argv[i]; i 527 samples/cpp/select3dobj.cpp for(int i = 0;;i++) i 532 samples/cpp/select3dobj.cpp if( i < (int)imageList.size() ) i 533 samples/cpp/select3dobj.cpp frame0 = imread(string(imageList[i]), 1); i 48 samples/cpp/shape_example.cpp for (int i=0; i<n; i++) i 50 samples/cpp/shape_example.cpp cont.push_back(contoursQuery[i]); i 60 samples/cpp/smiledetect.cpp for( int i = 1; i < argc; i++ ) i 62 samples/cpp/smiledetect.cpp cout << "Processing " << i << " " << argv[i] << endl; i 63 samples/cpp/smiledetect.cpp if( cascadeOpt.compare( 0, cascadeOptLen, argv[i], cascadeOptLen ) == 0 ) i 65 samples/cpp/smiledetect.cpp cascadeName.assign( argv[i] + cascadeOptLen ); i 68 samples/cpp/smiledetect.cpp else if( nestedCascadeOpt.compare( 0, nestedCascadeOptLen, argv[i], nestedCascadeOptLen ) == 0 ) i 70 samples/cpp/smiledetect.cpp if( argv[i][nestedCascadeOpt.length()] == '=' ) i 71 samples/cpp/smiledetect.cpp nestedCascadeName.assign( argv[i] + nestedCascadeOpt.length() + 1 ); i 73 samples/cpp/smiledetect.cpp else if( scaleOpt.compare( 0, scaleOptLen, argv[i], scaleOptLen ) == 0 ) i 75 samples/cpp/smiledetect.cpp if( !sscanf( argv[i] + scaleOpt.length(), "%lf", &scale ) || scale < 1 ) i 79 samples/cpp/smiledetect.cpp else if( tryFlipOpt.compare( 0, tryFlipOptLen, argv[i], tryFlipOptLen ) == 0 ) i 84 samples/cpp/smiledetect.cpp else if( argv[i][0] == '-' ) i 86 samples/cpp/smiledetect.cpp cerr << "WARNING: Unknown option " << argv[i] << endl; i 89 samples/cpp/smiledetect.cpp inputName.assign( argv[i] ); i 161 samples/cpp/smiledetect.cpp int i = 0; i 200 samples/cpp/smiledetect.cpp for( vector<Rect>::iterator r = faces.begin(); r != faces.end(); r++, i++ ) i 205 samples/cpp/smiledetect.cpp Scalar color = colors[i%8]; i 92 samples/cpp/squares.cpp for( size_t i = 0; i < contours.size(); i++ ) i 96 samples/cpp/squares.cpp approxPolyDP(Mat(contours[i]), approx, arcLength(Mat(contours[i]), true)*0.02, true); i 132 samples/cpp/squares.cpp for( size_t i = 0; i < squares.size(); i++ ) i 134 samples/cpp/squares.cpp const Point* p = &squares[i][0]; i 135 samples/cpp/squares.cpp int n = (int)squares[i].size(); i 151 samples/cpp/squares.cpp for( int i = 0; names[i] != 0; i++ ) i 153 samples/cpp/squares.cpp Mat image = imread(names[i], 1); i 156 samples/cpp/squares.cpp cout << "Couldn't load " << names[i] << endl; i 51 samples/cpp/starter_imagelist.cpp for (size_t i = 0; i < images.size(); i++) i 53 samples/cpp/starter_imagelist.cpp Mat image = imread(images[i], IMREAD_GRAYSCALE); // do grayscale processing? i 76 samples/cpp/stereo_calib.cpp int i, j, k, nimages = (int)imagelist.size()/2; i 82 samples/cpp/stereo_calib.cpp for( i = j = 0; i < nimages; i++ ) i 86 samples/cpp/stereo_calib.cpp const string& filename = imagelist[i*2+k]; i 141 samples/cpp/stereo_calib.cpp goodImageList.push_back(imagelist[i*2]); i 142 samples/cpp/stereo_calib.cpp goodImageList.push_back(imagelist[i*2+1]); i 158 samples/cpp/stereo_calib.cpp for( i = 0; i < nimages; i++ ) i 162 samples/cpp/stereo_calib.cpp objectPoints[i].push_back(Point3f(k*squareSize, j*squareSize, 0)); i 192 samples/cpp/stereo_calib.cpp for( i = 0; i < nimages; i++ ) i 194 samples/cpp/stereo_calib.cpp int npt = (int)imagePoints[0][i].size(); i 198 samples/cpp/stereo_calib.cpp imgpt[k] = Mat(imagePoints[k][i]); i 204 samples/cpp/stereo_calib.cpp double errij = fabs(imagePoints[0][i][j].x*lines[1][j][0] + i 205 samples/cpp/stereo_calib.cpp imagePoints[0][i][j].y*lines[1][j][1] + lines[1][j][2]) + i 206 samples/cpp/stereo_calib.cpp fabs(imagePoints[1][i][j].x*lines[0][j][0] + i 207 samples/cpp/stereo_calib.cpp imagePoints[1][i][j].y*lines[0][j][1] + lines[0][j][2]); i 265 samples/cpp/stereo_calib.cpp for( i = 0; i < nimages; i++ ) i 266 samples/cpp/stereo_calib.cpp std::copy(imagePoints[k][i].begin(), imagePoints[k][i].end(), back_inserter(allimgpt[k])); i 300 samples/cpp/stereo_calib.cpp for( i = 0; i < nimages; i++ ) i 304 samples/cpp/stereo_calib.cpp Mat img = imread(goodImageList[i*2+k], 0), rimg, cimg; i 352 samples/cpp/stereo_calib.cpp for( int i = 1; i < argc; i++ ) i 354 samples/cpp/stereo_calib.cpp if( string(argv[i]) == "-w" ) i 356 samples/cpp/stereo_calib.cpp if( sscanf(argv[++i], "%d", &boardSize.width) != 1 || boardSize.width <= 0 ) i 362 samples/cpp/stereo_calib.cpp else if( string(argv[i]) == "-h" ) i 364 samples/cpp/stereo_calib.cpp if( sscanf(argv[++i], "%d", &boardSize.height) != 1 || boardSize.height <= 0 ) i 370 samples/cpp/stereo_calib.cpp else if( string(argv[i]) == "-nr" ) i 372 samples/cpp/stereo_calib.cpp else if( string(argv[i]) == "--help" ) i 374 samples/cpp/stereo_calib.cpp else if( argv[i][0] == '-' ) i 376 samples/cpp/stereo_calib.cpp cout << "invalid option " << argv[i] << endl; i 380 samples/cpp/stereo_calib.cpp imagelistfn = argv[i]; i 73 samples/cpp/stereo_match.cpp for( int i = 1; i < argc; i++ ) i 75 samples/cpp/stereo_match.cpp if( argv[i][0] != '-' ) i 78 samples/cpp/stereo_match.cpp img1_filename = argv[i]; i 80 samples/cpp/stereo_match.cpp img2_filename = argv[i]; i 82 samples/cpp/stereo_match.cpp else if( strncmp(argv[i], algorithm_opt, strlen(algorithm_opt)) == 0 ) i 84 samples/cpp/stereo_match.cpp char* _alg = argv[i] + strlen(algorithm_opt); i 96 samples/cpp/stereo_match.cpp else if( strncmp(argv[i], maxdisp_opt, strlen(maxdisp_opt)) == 0 ) i 98 samples/cpp/stereo_match.cpp if( sscanf( argv[i] + strlen(maxdisp_opt), "%d", &numberOfDisparities ) != 1 || i 106 samples/cpp/stereo_match.cpp else if( strncmp(argv[i], blocksize_opt, strlen(blocksize_opt)) == 0 ) i 108 samples/cpp/stereo_match.cpp if( sscanf( argv[i] + strlen(blocksize_opt), "%d", &SADWindowSize ) != 1 || i 115 samples/cpp/stereo_match.cpp else if( strncmp(argv[i], scale_opt, strlen(scale_opt)) == 0 ) i 117 samples/cpp/stereo_match.cpp if( sscanf( argv[i] + strlen(scale_opt), "%f", &scale ) != 1 || scale < 0 ) i 123 samples/cpp/stereo_match.cpp else if( strcmp(argv[i], nodisplay_opt) == 0 ) i 125 samples/cpp/stereo_match.cpp else if( strcmp(argv[i], "-i" ) == 0 ) i 126 samples/cpp/stereo_match.cpp intrinsic_filename = argv[++i]; i 127 samples/cpp/stereo_match.cpp else if( strcmp(argv[i], "-e" ) == 0 ) i 128 samples/cpp/stereo_match.cpp extrinsic_filename = argv[++i]; i 129 samples/cpp/stereo_match.cpp else if( strcmp(argv[i], "-o" ) == 0 ) i 130 samples/cpp/stereo_match.cpp disparity_filename = argv[++i]; i 131 samples/cpp/stereo_match.cpp else if( strcmp(argv[i], "-p" ) == 0 ) i 132 samples/cpp/stereo_match.cpp point_cloud_filename = argv[++i]; i 135 samples/cpp/stereo_match.cpp printf("Command-line parameter error: unknown option %s\n", argv[i]); i 100 samples/cpp/stitching.cpp for (int i = 1; i < argc; ++i) i 102 samples/cpp/stitching.cpp if (string(argv[i]) == "--help" || string(argv[i]) == "/?") i 107 samples/cpp/stitching.cpp else if (string(argv[i]) == "--try_use_gpu") i 109 samples/cpp/stitching.cpp if (string(argv[i + 1]) == "no") i 111 samples/cpp/stitching.cpp else if (string(argv[i + 1]) == "yes") i 118 samples/cpp/stitching.cpp i++; i 120 samples/cpp/stitching.cpp else if (string(argv[i]) == "--output") i 122 samples/cpp/stitching.cpp result_name = argv[i + 1]; i 123 samples/cpp/stitching.cpp i++; i 127 samples/cpp/stitching.cpp Mat img = imread(argv[i]); i 130 samples/cpp/stitching.cpp cout << "Can't read image '" << argv[i] << "'\n"; i 161 samples/cpp/stitching_detailed.cpp for (int i = 1; i < argc; ++i) i 163 samples/cpp/stitching_detailed.cpp if (string(argv[i]) == "--help" || string(argv[i]) == "/?") i 168 samples/cpp/stitching_detailed.cpp else if (string(argv[i]) == "--preview") i 172 samples/cpp/stitching_detailed.cpp else if (string(argv[i]) == "--try_cuda") i 174 samples/cpp/stitching_detailed.cpp if (string(argv[i + 1]) == "no") i 176 samples/cpp/stitching_detailed.cpp else if (string(argv[i + 1]) == "yes") i 183 samples/cpp/stitching_detailed.cpp i++; i 185 samples/cpp/stitching_detailed.cpp else if (string(argv[i]) == "--work_megapix") i 187 samples/cpp/stitching_detailed.cpp work_megapix = atof(argv[i + 1]); i 188 samples/cpp/stitching_detailed.cpp i++; i 190 samples/cpp/stitching_detailed.cpp else if (string(argv[i]) == "--seam_megapix") i 192 samples/cpp/stitching_detailed.cpp seam_megapix = atof(argv[i + 1]); i 193 samples/cpp/stitching_detailed.cpp i++; i 195 samples/cpp/stitching_detailed.cpp else if (string(argv[i]) == "--compose_megapix") i 197 samples/cpp/stitching_detailed.cpp compose_megapix = atof(argv[i + 1]); i 198 samples/cpp/stitching_detailed.cpp i++; i 200 samples/cpp/stitching_detailed.cpp else if (string(argv[i]) == "--result") i 202 samples/cpp/stitching_detailed.cpp result_name = argv[i + 1]; i 203 samples/cpp/stitching_detailed.cpp i++; i 205 samples/cpp/stitching_detailed.cpp else if (string(argv[i]) == "--features") i 207 samples/cpp/stitching_detailed.cpp features_type = argv[i + 1]; i 210 samples/cpp/stitching_detailed.cpp i++; i 212 samples/cpp/stitching_detailed.cpp else if (string(argv[i]) == "--match_conf") i 214 samples/cpp/stitching_detailed.cpp match_conf = static_cast<float>(atof(argv[i + 1])); i 215 samples/cpp/stitching_detailed.cpp i++; i 217 samples/cpp/stitching_detailed.cpp else if (string(argv[i]) == "--conf_thresh") i 219 samples/cpp/stitching_detailed.cpp conf_thresh = static_cast<float>(atof(argv[i + 1])); i 220 samples/cpp/stitching_detailed.cpp i++; i 222 samples/cpp/stitching_detailed.cpp else if (string(argv[i]) == "--ba") i 224 samples/cpp/stitching_detailed.cpp ba_cost_func = argv[i + 1]; i 225 samples/cpp/stitching_detailed.cpp i++; i 227 samples/cpp/stitching_detailed.cpp else if (string(argv[i]) == "--ba_refine_mask") i 229 samples/cpp/stitching_detailed.cpp ba_refine_mask = argv[i + 1]; i 235 samples/cpp/stitching_detailed.cpp i++; i 237 samples/cpp/stitching_detailed.cpp else if (string(argv[i]) == "--wave_correct") i 239 samples/cpp/stitching_detailed.cpp if (string(argv[i + 1]) == "no") i 241 samples/cpp/stitching_detailed.cpp else if (string(argv[i + 1]) == "horiz") i 246 samples/cpp/stitching_detailed.cpp else if (string(argv[i + 1]) == "vert") i 256 samples/cpp/stitching_detailed.cpp i++; i 258 samples/cpp/stitching_detailed.cpp else if (string(argv[i]) == "--save_graph") i 261 samples/cpp/stitching_detailed.cpp save_graph_to = argv[i + 1]; i 262 samples/cpp/stitching_detailed.cpp i++; i 264 samples/cpp/stitching_detailed.cpp else if (string(argv[i]) == "--warp") i 266 samples/cpp/stitching_detailed.cpp warp_type = string(argv[i + 1]); i 267 samples/cpp/stitching_detailed.cpp i++; i 269 samples/cpp/stitching_detailed.cpp else if (string(argv[i]) == "--expos_comp") i 271 samples/cpp/stitching_detailed.cpp if (string(argv[i + 1]) == "no") i 273 samples/cpp/stitching_detailed.cpp else if (string(argv[i + 1]) == "gain") i 275 samples/cpp/stitching_detailed.cpp else if (string(argv[i + 1]) == "gain_blocks") i 282 samples/cpp/stitching_detailed.cpp i++; i 284 samples/cpp/stitching_detailed.cpp else if (string(argv[i]) == "--seam") i 286 samples/cpp/stitching_detailed.cpp if (string(argv[i + 1]) == "no" || i 287 samples/cpp/stitching_detailed.cpp string(argv[i + 1]) == "voronoi" || i 288 samples/cpp/stitching_detailed.cpp string(argv[i + 1]) == "gc_color" || i 289 samples/cpp/stitching_detailed.cpp string(argv[i + 1]) == "gc_colorgrad" || i 290 samples/cpp/stitching_detailed.cpp string(argv[i + 1]) == "dp_color" || i 291 samples/cpp/stitching_detailed.cpp string(argv[i + 1]) == "dp_colorgrad") i 292 samples/cpp/stitching_detailed.cpp seam_find_type = argv[i + 1]; i 298 samples/cpp/stitching_detailed.cpp i++; i 300 samples/cpp/stitching_detailed.cpp else if (string(argv[i]) == "--blend") i 302 samples/cpp/stitching_detailed.cpp if (string(argv[i + 1]) == "no") i 304 samples/cpp/stitching_detailed.cpp else if (string(argv[i + 1]) == "feather") i 306 samples/cpp/stitching_detailed.cpp else if (string(argv[i + 1]) == "multiband") i 313 samples/cpp/stitching_detailed.cpp i++; i 315 samples/cpp/stitching_detailed.cpp else if (string(argv[i]) == "--timelapse") i 319 samples/cpp/stitching_detailed.cpp if (string(argv[i + 1]) == "as_is") i 321 samples/cpp/stitching_detailed.cpp else if (string(argv[i + 1]) == "crop") i 328 samples/cpp/stitching_detailed.cpp i++; i 330 samples/cpp/stitching_detailed.cpp timelapse_range = atoi(argv[i + 1]); i 331 samples/cpp/stitching_detailed.cpp i++; i 333 samples/cpp/stitching_detailed.cpp else if (string(argv[i]) == "--blend_strength") i 335 samples/cpp/stitching_detailed.cpp blend_strength = static_cast<float>(atof(argv[i + 1])); i 336 samples/cpp/stitching_detailed.cpp i++; i 338 samples/cpp/stitching_detailed.cpp else if (string(argv[i]) == "--output") i 340 samples/cpp/stitching_detailed.cpp result_name = argv[i + 1]; i 341 samples/cpp/stitching_detailed.cpp i++; i 344 samples/cpp/stitching_detailed.cpp img_names.push_back(argv[i]); i 410 samples/cpp/stitching_detailed.cpp for (int i = 0; i < num_images; ++i) i 412 samples/cpp/stitching_detailed.cpp full_img = imread(img_names[i]); i 413 samples/cpp/stitching_detailed.cpp full_img_sizes[i] = full_img.size(); i 417 samples/cpp/stitching_detailed.cpp LOGLN("Can't open image " << img_names[i]); i 442 samples/cpp/stitching_detailed.cpp (*finder)(img, features[i]); i 443 samples/cpp/stitching_detailed.cpp features[i].img_idx = i; i 444 samples/cpp/stitching_detailed.cpp LOGLN("Features in image #" << i+1 << ": " << features[i].keypoints.size()); i 447 samples/cpp/stitching_detailed.cpp images[i] = img.clone(); i 489 samples/cpp/stitching_detailed.cpp for (size_t i = 0; i < indices.size(); ++i) i 491 samples/cpp/stitching_detailed.cpp img_names_subset.push_back(img_names[indices[i]]); i 492 samples/cpp/stitching_detailed.cpp img_subset.push_back(images[indices[i]]); i 493 samples/cpp/stitching_detailed.cpp full_img_sizes_subset.push_back(full_img_sizes[indices[i]]); i 516 samples/cpp/stitching_detailed.cpp for (size_t i = 0; i < cameras.size(); ++i) i 519 samples/cpp/stitching_detailed.cpp cameras[i].R.convertTo(R, CV_32F); i 520 samples/cpp/stitching_detailed.cpp cameras[i].R = R; i 521 samples/cpp/stitching_detailed.cpp LOGLN("Initial intrinsics #" << indices[i]+1 << ":\n" << cameras[i].K()); i 549 samples/cpp/stitching_detailed.cpp for (size_t i = 0; i < cameras.size(); ++i) i 551 samples/cpp/stitching_detailed.cpp LOGLN("Camera #" << indices[i]+1 << ":\n" << cameras[i].K()); i 552 samples/cpp/stitching_detailed.cpp focals.push_back(cameras[i].focal); i 565 samples/cpp/stitching_detailed.cpp for (size_t i = 0; i < cameras.size(); ++i) i 566 samples/cpp/stitching_detailed.cpp rmats.push_back(cameras[i].R.clone()); i 568 samples/cpp/stitching_detailed.cpp for (size_t i = 0; i < cameras.size(); ++i) i 569 samples/cpp/stitching_detailed.cpp cameras[i].R = rmats[i]; i 584 samples/cpp/stitching_detailed.cpp for (int i = 0; i < num_images; ++i) i 586 samples/cpp/stitching_detailed.cpp masks[i].create(images[i].size(), CV_8U); i 587 samples/cpp/stitching_detailed.cpp masks[i].setTo(Scalar::all(255)); i 646 samples/cpp/stitching_detailed.cpp for (int i = 0; i < num_images; ++i) i 649 samples/cpp/stitching_detailed.cpp cameras[i].K().convertTo(K, CV_32F); i 654 samples/cpp/stitching_detailed.cpp corners[i] = warper->warp(images[i], K, cameras[i].R, INTER_LINEAR, BORDER_REFLECT, images_warped[i]); i 655 samples/cpp/stitching_detailed.cpp sizes[i] = images_warped[i].size(); i 657 samples/cpp/stitching_detailed.cpp warper->warp(masks[i], K, cameras[i].R, INTER_NEAREST, BORDER_CONSTANT, masks_warped[i]); i 661 samples/cpp/stitching_detailed.cpp for (int i = 0; i < num_images; ++i) i 662 samples/cpp/stitching_detailed.cpp images_warped[i].convertTo(images_warped_f[i], CV_32F); i 743 samples/cpp/stitching_detailed.cpp for (int i = 0; i < num_images; ++i) i 746 samples/cpp/stitching_detailed.cpp cameras[i].focal *= compose_work_aspect; i 747 samples/cpp/stitching_detailed.cpp cameras[i].ppx *= compose_work_aspect; i 748 samples/cpp/stitching_detailed.cpp cameras[i].ppy *= compose_work_aspect; i 751 samples/cpp/stitching_detailed.cpp Size sz = full_img_sizes[i]; i 754 samples/cpp/stitching_detailed.cpp sz.width = cvRound(full_img_sizes[i].width * compose_scale); i 755 samples/cpp/stitching_detailed.cpp sz.height = cvRound(full_img_sizes[i].height * compose_scale); i 759 samples/cpp/stitching_detailed.cpp cameras[i].K().convertTo(K, CV_32F); i 760 samples/cpp/stitching_detailed.cpp Rect roi = warper->warpRoi(sz, K, cameras[i].R); i 761 samples/cpp/stitching_detailed.cpp corners[i] = roi.tl(); i 762 samples/cpp/stitching_detailed.cpp sizes[i] = roi.size(); i 59 samples/cpp/train_HOG.cpp for( int i = 0 ; itr != end ; ++itr, ++i ) i 66 samples/cpp/train_HOG.cpp tmp.copyTo( trainData.row( i ) ); i 70 samples/cpp/train_HOG.cpp itr->copyTo( trainData.row( i ) ); i 46 samples/cpp/tree_engine.cpp for(int i = 1; i < argc; i++) i 48 samples/cpp/tree_engine.cpp if(strcmp(argv[i], "-r") == 0) i 49 samples/cpp/tree_engine.cpp sscanf(argv[++i], "%d", &response_idx); i 50 samples/cpp/tree_engine.cpp else if(strcmp(argv[i], "-ts") == 0) i 51 samples/cpp/tree_engine.cpp typespec = argv[++i]; i 52 samples/cpp/tree_engine.cpp else if(argv[i][0] != '-' ) i 53 samples/cpp/tree_engine.cpp filename = argv[i]; i 56 samples/cpp/tree_engine.cpp printf("Error. Invalid option %s\n", argv[i]); i 66 samples/cpp/tutorial_code/HighGUI/GDAL_IO/gdal-image.cpp for( int i=0; i<N; i++ ){ i 67 samples/cpp/tutorial_code/HighGUI/GDAL_IO/gdal-image.cpp output[i] = (uchar)(((1-t)*minColor[i]) + (t * maxColor[i])); i 84 samples/cpp/tutorial_code/HighGUI/video-write/video-write.cpp for (int i =0; i < 3; ++i) i 85 samples/cpp/tutorial_code/HighGUI/video-write/video-write.cpp if (i != channel) i 86 samples/cpp/tutorial_code/HighGUI/video-write/video-write.cpp spl[i] = Mat::zeros(S, spl[0].type()); i 81 samples/cpp/tutorial_code/Histograms_Matching/calcBackProject_Demo1.cpp for( int i = 0; i < bins; i ++ ) i 82 samples/cpp/tutorial_code/Histograms_Matching/calcBackProject_Demo1.cpp { rectangle( histImg, Point( i*bin_w, h ), Point( (i+1)*bin_w, h - cvRound( hist.at<float>(i)*h/255.0 ) ), Scalar( 0, 0, 255 ), -1 ); } i 61 samples/cpp/tutorial_code/Histograms_Matching/calcHist_Demo.cpp for( int i = 1; i < histSize; i++ ) i 63 samples/cpp/tutorial_code/Histograms_Matching/calcHist_Demo.cpp line( histImage, Point( bin_w*(i-1), hist_h - cvRound(b_hist.at<float>(i-1)) ) , i 64 samples/cpp/tutorial_code/Histograms_Matching/calcHist_Demo.cpp Point( bin_w*(i), hist_h - cvRound(b_hist.at<float>(i)) ), i 66 samples/cpp/tutorial_code/Histograms_Matching/calcHist_Demo.cpp line( histImage, Point( bin_w*(i-1), hist_h - cvRound(g_hist.at<float>(i-1)) ) , i 67 samples/cpp/tutorial_code/Histograms_Matching/calcHist_Demo.cpp Point( bin_w*(i), hist_h - cvRound(g_hist.at<float>(i)) ), i 69 samples/cpp/tutorial_code/Histograms_Matching/calcHist_Demo.cpp line( histImage, Point( bin_w*(i-1), hist_h - cvRound(r_hist.at<float>(i-1)) ) , i 70 samples/cpp/tutorial_code/Histograms_Matching/calcHist_Demo.cpp Point( bin_w*(i), hist_h - cvRound(r_hist.at<float>(i)) ), i 78 samples/cpp/tutorial_code/Histograms_Matching/compareHist_Demo.cpp for( int i = 0; i < 4; i++ ) i 80 samples/cpp/tutorial_code/Histograms_Matching/compareHist_Demo.cpp int compare_method = i; i 86 samples/cpp/tutorial_code/Histograms_Matching/compareHist_Demo.cpp printf( " Method [%d] Perfect, Base-Half, Base-Test(1), Base-Test(2) : %f, %f, %f, %f \n", i, base_base, base_half , base_test1, base_test2 ); i 49 samples/cpp/tutorial_code/ImgProc/Smoothing.cpp for ( int i = 1; i < MAX_KERNEL_LENGTH; i = i + 2 ) i 50 samples/cpp/tutorial_code/ImgProc/Smoothing.cpp { blur( src, dst, Size( i, i ), Point(-1,-1) ); i 57 samples/cpp/tutorial_code/ImgProc/Smoothing.cpp for ( int i = 1; i < MAX_KERNEL_LENGTH; i = i + 2 ) i 58 samples/cpp/tutorial_code/ImgProc/Smoothing.cpp { GaussianBlur( src, dst, Size( i, i ), 0, 0 ); i 65 samples/cpp/tutorial_code/ImgProc/Smoothing.cpp for ( int i = 1; i < MAX_KERNEL_LENGTH; i = i + 2 ) i 66 samples/cpp/tutorial_code/ImgProc/Smoothing.cpp { medianBlur ( src, dst, i ); i 73 samples/cpp/tutorial_code/ImgProc/Smoothing.cpp for ( int i = 1; i < MAX_KERNEL_LENGTH; i = i + 2 ) i 74 samples/cpp/tutorial_code/ImgProc/Smoothing.cpp { bilateralFilter ( src, dst, i, i*2, i/2 ); i 38 samples/cpp/tutorial_code/ImgTrans/HoughCircle_Demo.cpp for( size_t i = 0; i < circles.size(); i++ ) i 40 samples/cpp/tutorial_code/ImgTrans/HoughCircle_Demo.cpp Point center(cvRound(circles[i][0]), cvRound(circles[i][1])); i 41 samples/cpp/tutorial_code/ImgTrans/HoughCircle_Demo.cpp int radius = cvRound(circles[i][2]); i 95 samples/cpp/tutorial_code/ImgTrans/HoughLines_Demo.cpp for( size_t i = 0; i < s_lines.size(); i++ ) i 97 samples/cpp/tutorial_code/ImgTrans/HoughLines_Demo.cpp float r = s_lines[i][0], t = s_lines[i][1]; i 122 samples/cpp/tutorial_code/ImgTrans/HoughLines_Demo.cpp for( size_t i = 0; i < p_lines.size(); i++ ) i 124 samples/cpp/tutorial_code/ImgTrans/HoughLines_Demo.cpp Vec4i l = p_lines[i]; i 68 samples/cpp/tutorial_code/ImgTrans/Remap_Demo.cpp { for( int i = 0; i < src.cols; i++ ) i 73 samples/cpp/tutorial_code/ImgTrans/Remap_Demo.cpp if( i > src.cols*0.25 && i < src.cols*0.75 && j > src.rows*0.25 && j < src.rows*0.75 ) i 75 samples/cpp/tutorial_code/ImgTrans/Remap_Demo.cpp map_x.at<float>(j,i) = 2*( i - src.cols*0.25f ) + 0.5f ; i 76 samples/cpp/tutorial_code/ImgTrans/Remap_Demo.cpp map_y.at<float>(j,i) = 2*( j - src.rows*0.25f ) + 0.5f ; i 79 samples/cpp/tutorial_code/ImgTrans/Remap_Demo.cpp { map_x.at<float>(j,i) = 0 ; i 80 samples/cpp/tutorial_code/ImgTrans/Remap_Demo.cpp map_y.at<float>(j,i) = 0 ; i 84 samples/cpp/tutorial_code/ImgTrans/Remap_Demo.cpp map_x.at<float>(j,i) = (float)i ; i 85 samples/cpp/tutorial_code/ImgTrans/Remap_Demo.cpp map_y.at<float>(j,i) = (float)(src.rows - j) ; i 88 samples/cpp/tutorial_code/ImgTrans/Remap_Demo.cpp map_x.at<float>(j,i) = (float)(src.cols - i) ; i 89 samples/cpp/tutorial_code/ImgTrans/Remap_Demo.cpp map_y.at<float>(j,i) = (float)j ; i 92 samples/cpp/tutorial_code/ImgTrans/Remap_Demo.cpp map_x.at<float>(j,i) = (float)(src.cols - i) ; i 93 samples/cpp/tutorial_code/ImgTrans/Remap_Demo.cpp map_y.at<float>(j,i) = (float)(src.rows - j) ; i 117 samples/cpp/tutorial_code/ImgTrans/imageSegmentation.cpp for (size_t i = 0; i < contours.size(); i++) i 118 samples/cpp/tutorial_code/ImgTrans/imageSegmentation.cpp drawContours(markers, contours, static_cast<int>(i), Scalar::all(static_cast<int>(i)+1), -1); i 137 samples/cpp/tutorial_code/ImgTrans/imageSegmentation.cpp for (size_t i = 0; i < contours.size(); i++) i 150 samples/cpp/tutorial_code/ImgTrans/imageSegmentation.cpp for (int i = 0; i < markers.rows; i++) i 154 samples/cpp/tutorial_code/ImgTrans/imageSegmentation.cpp int index = markers.at<int>(i,j); i 156 samples/cpp/tutorial_code/ImgTrans/imageSegmentation.cpp dst.at<Vec3b>(i,j) = colors[index-1]; i 158 samples/cpp/tutorial_code/ImgTrans/imageSegmentation.cpp dst.at<Vec3b>(i,j) = Vec3b(0,0,0); i 70 samples/cpp/tutorial_code/ShapeDescriptors/findContours_demo.cpp for( size_t i = 0; i< contours.size(); i++ ) i 73 samples/cpp/tutorial_code/ShapeDescriptors/findContours_demo.cpp drawContours( drawing, contours, (int)i, color, 2, 8, hierarchy, 0, Point() ); i 69 samples/cpp/tutorial_code/ShapeDescriptors/generalContours_demo1.cpp for( size_t i = 0; i < contours.size(); i++ ) i 70 samples/cpp/tutorial_code/ShapeDescriptors/generalContours_demo1.cpp { approxPolyDP( Mat(contours[i]), contours_poly[i], 3, true ); i 71 samples/cpp/tutorial_code/ShapeDescriptors/generalContours_demo1.cpp boundRect[i] = boundingRect( Mat(contours_poly[i]) ); i 72 samples/cpp/tutorial_code/ShapeDescriptors/generalContours_demo1.cpp minEnclosingCircle( contours_poly[i], center[i], radius[i] ); i 78 samples/cpp/tutorial_code/ShapeDescriptors/generalContours_demo1.cpp for( size_t i = 0; i< contours.size(); i++ ) i 81 samples/cpp/tutorial_code/ShapeDescriptors/generalContours_demo1.cpp drawContours( drawing, contours_poly, (int)i, color, 1, 8, vector<Vec4i>(), 0, Point() ); i 82 samples/cpp/tutorial_code/ShapeDescriptors/generalContours_demo1.cpp rectangle( drawing, boundRect[i].tl(), boundRect[i].br(), color, 2, 8, 0 ); i 83 samples/cpp/tutorial_code/ShapeDescriptors/generalContours_demo1.cpp circle( drawing, center[i], (int)radius[i], color, 2, 8, 0 ); i 67 samples/cpp/tutorial_code/ShapeDescriptors/generalContours_demo2.cpp for( size_t i = 0; i < contours.size(); i++ ) i 68 samples/cpp/tutorial_code/ShapeDescriptors/generalContours_demo2.cpp { minRect[i] = minAreaRect( Mat(contours[i]) ); i 69 samples/cpp/tutorial_code/ShapeDescriptors/generalContours_demo2.cpp if( contours[i].size() > 5 ) i 70 samples/cpp/tutorial_code/ShapeDescriptors/generalContours_demo2.cpp { minEllipse[i] = fitEllipse( Mat(contours[i]) ); } i 75 samples/cpp/tutorial_code/ShapeDescriptors/generalContours_demo2.cpp for( size_t i = 0; i< contours.size(); i++ ) i 79 samples/cpp/tutorial_code/ShapeDescriptors/generalContours_demo2.cpp drawContours( drawing, contours, (int)i, color, 1, 8, vector<Vec4i>(), 0, Point() ); i 81 samples/cpp/tutorial_code/ShapeDescriptors/generalContours_demo2.cpp ellipse( drawing, minEllipse[i], color, 2, 8 ); i 83 samples/cpp/tutorial_code/ShapeDescriptors/generalContours_demo2.cpp Point2f rect_points[4]; minRect[i].points( rect_points ); i 67 samples/cpp/tutorial_code/ShapeDescriptors/hull_demo.cpp for( size_t i = 0; i < contours.size(); i++ ) i 68 samples/cpp/tutorial_code/ShapeDescriptors/hull_demo.cpp { convexHull( Mat(contours[i]), hull[i], false ); } i 72 samples/cpp/tutorial_code/ShapeDescriptors/hull_demo.cpp for( size_t i = 0; i< contours.size(); i++ ) i 75 samples/cpp/tutorial_code/ShapeDescriptors/hull_demo.cpp drawContours( drawing, contours, (int)i, color, 1, 8, vector<Vec4i>(), 0, Point() ); i 76 samples/cpp/tutorial_code/ShapeDescriptors/hull_demo.cpp drawContours( drawing, hull, (int)i, color, 1, 8, vector<Vec4i>(), 0, Point() ); i 65 samples/cpp/tutorial_code/ShapeDescriptors/moments_demo.cpp for( size_t i = 0; i < contours.size(); i++ ) i 66 samples/cpp/tutorial_code/ShapeDescriptors/moments_demo.cpp { mu[i] = moments( contours[i], false ); } i 70 samples/cpp/tutorial_code/ShapeDescriptors/moments_demo.cpp for( size_t i = 0; i < contours.size(); i++ ) i 71 samples/cpp/tutorial_code/ShapeDescriptors/moments_demo.cpp { mc[i] = Point2f( static_cast<float>(mu[i].m10/mu[i].m00) , static_cast<float>(mu[i].m01/mu[i].m00) ); } i 75 samples/cpp/tutorial_code/ShapeDescriptors/moments_demo.cpp for( size_t i = 0; i< contours.size(); i++ ) i 78 samples/cpp/tutorial_code/ShapeDescriptors/moments_demo.cpp drawContours( drawing, contours, (int)i, color, 2, 8, hierarchy, 0, Point() ); i 79 samples/cpp/tutorial_code/ShapeDescriptors/moments_demo.cpp circle( drawing, mc[i], 4, color, -1, 8, 0 ); i 88 samples/cpp/tutorial_code/ShapeDescriptors/moments_demo.cpp for( size_t i = 0; i< contours.size(); i++ ) i 90 samples/cpp/tutorial_code/ShapeDescriptors/moments_demo.cpp printf(" * Contour[%d] - Area (M_00) = %.2f - Area OpenCV: %.2f - Length: %.2f \n", (int)i, mu[i].m00, contourArea(contours[i]), arcLength( contours[i], true ) ); i 92 samples/cpp/tutorial_code/ShapeDescriptors/moments_demo.cpp drawContours( drawing, contours, (int)i, color, 2, 8, hierarchy, 0, Point() ); i 93 samples/cpp/tutorial_code/ShapeDescriptors/moments_demo.cpp circle( drawing, mc[i], 4, color, -1, 8, 0 ); i 49 samples/cpp/tutorial_code/ShapeDescriptors/pointPolygonTest_demo.cpp { for( int i = 0; i < src.cols; i++ ) i 50 samples/cpp/tutorial_code/ShapeDescriptors/pointPolygonTest_demo.cpp { raw_dist.at<float>(j,i) = (float)pointPolygonTest( contours[0], Point2f((float)i,(float)j), true ); } i 61 samples/cpp/tutorial_code/ShapeDescriptors/pointPolygonTest_demo.cpp { for( int i = 0; i < src.cols; i++ ) i 63 samples/cpp/tutorial_code/ShapeDescriptors/pointPolygonTest_demo.cpp if( raw_dist.at<float>(j,i) < 0 ) i 64 samples/cpp/tutorial_code/ShapeDescriptors/pointPolygonTest_demo.cpp { drawing.at<Vec3b>(j,i)[0] = (uchar)(255 - abs(raw_dist.at<float>(j,i))*255/minVal); } i 65 samples/cpp/tutorial_code/ShapeDescriptors/pointPolygonTest_demo.cpp else if( raw_dist.at<float>(j,i) > 0 ) i 66 samples/cpp/tutorial_code/ShapeDescriptors/pointPolygonTest_demo.cpp { drawing.at<Vec3b>(j,i)[2] = (uchar)(255 - raw_dist.at<float>(j,i)*255/maxVal); } i 68 samples/cpp/tutorial_code/ShapeDescriptors/pointPolygonTest_demo.cpp { drawing.at<Vec3b>(j,i)[0] = 255; drawing.at<Vec3b>(j,i)[1] = 255; drawing.at<Vec3b>(j,i)[2] = 255; } i 57 samples/cpp/tutorial_code/TrackingMotion/cornerDetector_Demo.cpp { for( int i = 0; i < src_gray.cols; i++ ) i 59 samples/cpp/tutorial_code/TrackingMotion/cornerDetector_Demo.cpp float lambda_1 = myHarris_dst.at<Vec6f>(j, i)[0]; i 60 samples/cpp/tutorial_code/TrackingMotion/cornerDetector_Demo.cpp float lambda_2 = myHarris_dst.at<Vec6f>(j, i)[1]; i 61 samples/cpp/tutorial_code/TrackingMotion/cornerDetector_Demo.cpp Mc.at<float>(j,i) = lambda_1*lambda_2 - 0.04f*pow( ( lambda_1 + lambda_2 ), 2 ); i 97 samples/cpp/tutorial_code/TrackingMotion/cornerDetector_Demo.cpp { for( int i = 0; i < src_gray.cols; i++ ) i 99 samples/cpp/tutorial_code/TrackingMotion/cornerDetector_Demo.cpp if( myShiTomasi_dst.at<float>(j,i) > myShiTomasi_minVal + ( myShiTomasi_maxVal - myShiTomasi_minVal )*myShiTomasi_qualityLevel/max_qualityLevel ) i 100 samples/cpp/tutorial_code/TrackingMotion/cornerDetector_Demo.cpp { circle( myShiTomasi_copy, Point(i,j), 4, Scalar( rng.uniform(0,255), rng.uniform(0,255), rng.uniform(0,255) ), -1, 8, 0 ); } i 116 samples/cpp/tutorial_code/TrackingMotion/cornerDetector_Demo.cpp { for( int i = 0; i < src_gray.cols; i++ ) i 118 samples/cpp/tutorial_code/TrackingMotion/cornerDetector_Demo.cpp if( Mc.at<float>(j,i) > myHarris_minVal + ( myHarris_maxVal - myHarris_minVal )*myHarris_qualityLevel/max_qualityLevel ) i 119 samples/cpp/tutorial_code/TrackingMotion/cornerDetector_Demo.cpp { circle( myHarris_copy, Point(i,j), 4, Scalar( rng.uniform(0,255), rng.uniform(0,255), rng.uniform(0,255) ), -1, 8, 0 ); } i 72 samples/cpp/tutorial_code/TrackingMotion/cornerHarris_Demo.cpp { for( int i = 0; i < dst_norm.cols; i++ ) i 74 samples/cpp/tutorial_code/TrackingMotion/cornerHarris_Demo.cpp if( (int) dst_norm.at<float>(j,i) > thresh ) i 76 samples/cpp/tutorial_code/TrackingMotion/cornerHarris_Demo.cpp circle( dst_norm_scaled, Point( i, j ), 5, Scalar(0), 2, 8, 0 ); i 87 samples/cpp/tutorial_code/TrackingMotion/cornerSubPix_Demo.cpp for( size_t i = 0; i < corners.size(); i++ ) i 88 samples/cpp/tutorial_code/TrackingMotion/cornerSubPix_Demo.cpp { circle( copy, corners[i], r, Scalar(rng.uniform(0,255), rng.uniform(0,255), rng.uniform(0,255)), -1, 8, 0 ); } i 103 samples/cpp/tutorial_code/TrackingMotion/cornerSubPix_Demo.cpp for( size_t i = 0; i < corners.size(); i++ ) i 104 samples/cpp/tutorial_code/TrackingMotion/cornerSubPix_Demo.cpp { cout<<" -- Refined Corner ["<<i<<"] ("<<corners[i].x<<","<<corners[i].y<<")"<<endl; } i 87 samples/cpp/tutorial_code/TrackingMotion/goodFeaturesToTrack_Demo.cpp for( size_t i = 0; i < corners.size(); i++ ) i 88 samples/cpp/tutorial_code/TrackingMotion/goodFeaturesToTrack_Demo.cpp { circle( copy, corners[i], r, Scalar(rng.uniform(0,255), rng.uniform(0,255), rng.uniform(0,255)), -1, 8, 0 ); } i 388 samples/cpp/tutorial_code/calib3d/camera_calibration/camera_calibration.cpp for(size_t i = 0; i < s.imageList.size(); i++ ) i 390 samples/cpp/tutorial_code/calib3d/camera_calibration/camera_calibration.cpp view = imread(s.imageList[i], 1); i 417 samples/cpp/tutorial_code/calib3d/camera_calibration/camera_calibration.cpp for(size_t i = 0; i < objectPoints.size(); ++i ) i 419 samples/cpp/tutorial_code/calib3d/camera_calibration/camera_calibration.cpp projectPoints(objectPoints[i], rvecs[i], tvecs[i], cameraMatrix, distCoeffs, imagePoints2); i 420 samples/cpp/tutorial_code/calib3d/camera_calibration/camera_calibration.cpp err = norm(imagePoints[i], imagePoints2, NORM_L2); i 422 samples/cpp/tutorial_code/calib3d/camera_calibration/camera_calibration.cpp size_t n = objectPoints[i].size(); i 423 samples/cpp/tutorial_code/calib3d/camera_calibration/camera_calibration.cpp perViewErrors[i] = (float) std::sqrt(err*err/n); i 441 samples/cpp/tutorial_code/calib3d/camera_calibration/camera_calibration.cpp for( int i = 0; i < boardSize.height; ++i ) i 443 samples/cpp/tutorial_code/calib3d/camera_calibration/camera_calibration.cpp corners.push_back(Point3f(j*squareSize, i*squareSize, 0)); i 447 samples/cpp/tutorial_code/calib3d/camera_calibration/camera_calibration.cpp for( int i = 0; i < boardSize.height; i++ ) i 449 samples/cpp/tutorial_code/calib3d/camera_calibration/camera_calibration.cpp corners.push_back(Point3f((2*j + i % 2)*squareSize, i*squareSize, 0)); i 536 samples/cpp/tutorial_code/calib3d/camera_calibration/camera_calibration.cpp for( size_t i = 0; i < rvecs.size(); i++ ) i 538 samples/cpp/tutorial_code/calib3d/camera_calibration/camera_calibration.cpp Mat r = bigmat(Range(int(i), int(i+1)), Range(0,3)); i 539 samples/cpp/tutorial_code/calib3d/camera_calibration/camera_calibration.cpp Mat t = bigmat(Range(int(i), int(i+1)), Range(3,6)); i 541 samples/cpp/tutorial_code/calib3d/camera_calibration/camera_calibration.cpp CV_Assert(rvecs[i].rows == 3 && rvecs[i].cols == 1); i 542 samples/cpp/tutorial_code/calib3d/camera_calibration/camera_calibration.cpp CV_Assert(tvecs[i].rows == 3 && tvecs[i].cols == 1); i 544 samples/cpp/tutorial_code/calib3d/camera_calibration/camera_calibration.cpp r = rvecs[i].t(); i 545 samples/cpp/tutorial_code/calib3d/camera_calibration/camera_calibration.cpp t = tvecs[i].t(); i 554 samples/cpp/tutorial_code/calib3d/camera_calibration/camera_calibration.cpp for( size_t i = 0; i < imagePoints.size(); i++ ) i 556 samples/cpp/tutorial_code/calib3d/camera_calibration/camera_calibration.cpp Mat r = imagePtMat.row(int(i)).reshape(2, imagePtMat.cols); i 557 samples/cpp/tutorial_code/calib3d/camera_calibration/camera_calibration.cpp Mat imgpti(imagePoints[i]); i 17 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/CsvWriter.cpp for(unsigned int i = 0; i < list_points3d.size(); ++i) i 19 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/CsvWriter.cpp x = FloatToString(list_points3d[i].x); i 20 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/CsvWriter.cpp y = FloatToString(list_points3d[i].y); i 21 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/CsvWriter.cpp z = FloatToString(list_points3d[i].z); i 31 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/CsvWriter.cpp for(unsigned int i = 0; i < list_points3d.size(); ++i) i 33 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/CsvWriter.cpp u = FloatToString(list_points2d[i].x); i 34 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/CsvWriter.cpp v = FloatToString(list_points2d[i].y); i 35 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/CsvWriter.cpp x = FloatToString(list_points3d[i].x); i 36 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/CsvWriter.cpp y = FloatToString(list_points3d[i].y); i 37 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/CsvWriter.cpp z = FloatToString(list_points3d[i].z); i 43 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/CsvWriter.cpp descriptor_str = FloatToString(descriptors.at<float>(i,j)); i 162 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/PnPProblem.cpp for( int i = 0; i < mesh->getNumVertices(); i++) i 164 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/PnPProblem.cpp cv::Point3f point3d = mesh->getVertex(i); i 232 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/PnPProblem.cpp for (unsigned int i = 0; i < triangles_list.size(); i++) i 234 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/PnPProblem.cpp cv::Point3f V0 = mesh->getVertex(triangles_list[i][0]); i 235 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/PnPProblem.cpp cv::Point3f V1 = mesh->getVertex(triangles_list[i][1]); i 236 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/PnPProblem.cpp cv::Point3f V2 = mesh->getVertex(triangles_list[i][2]); i 238 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/PnPProblem.cpp Triangle T(i, V0, V1, V2); i 78 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/Utils.cpp for (unsigned int i = 0; i < list_points_2d.size(); ++i) i 80 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/Utils.cpp cv::Point2f point_2d = list_points_2d[i]; i 81 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/Utils.cpp cv::Point3f point_3d = list_points_3d[i]; i 86 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/Utils.cpp std::string idx = IntToString(i+1); i 101 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/Utils.cpp for( size_t i = 0; i < list_points.size(); i++) i 103 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/Utils.cpp cv::Point2f point_2d = list_points[i]; i 154 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/Utils.cpp for( size_t i = 0; i < list_triangles.size(); i++) i 156 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/Utils.cpp std::vector<int> tmp_triangle = list_triangles.at(i); i 202 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/main_registration.cpp for (unsigned int i = 0; i < keypoints_model.size(); ++i) { i 203 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/main_registration.cpp Point2f point2d(keypoints_model[i].pt); i 209 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/main_registration.cpp model.add_descriptor(descriptors.row(i)); i 210 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/main_registration.cpp model.add_keypoint(keypoints_model[i]); i 112 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp for( int i = 0; i < NUMBER; i++ ) i 137 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp for( int i = 0; i < NUMBER; i++ ) i 161 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp for ( int i = 0; i < NUMBER; i++ ) i 192 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp for( int i = 0; i< NUMBER; i++ ) i 227 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp for ( int i = 0; i < NUMBER; i++ ) i 262 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp for (int i = 0; i < NUMBER; i++) i 286 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp for ( int i = 1; i < NUMBER; i++ ) i 314 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp for( int i = 0; i < 255; i += 2 ) i 316 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp image2 = image - Scalar::all(i); i 318 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp Scalar(i, i, 255), 5, lineType ); i 62 samples/cpp/tutorial_code/core/how_to_scan_images/how_to_scan_images.cpp for (int i = 0; i < 256; ++i) i 63 samples/cpp/tutorial_code/core/how_to_scan_images/how_to_scan_images.cpp table[i] = (uchar)(divideWith * (i/divideWith)); i 71 samples/cpp/tutorial_code/core/how_to_scan_images/how_to_scan_images.cpp for (int i = 0; i < times; ++i) i 85 samples/cpp/tutorial_code/core/how_to_scan_images/how_to_scan_images.cpp for (int i = 0; i < times; ++i) i 99 samples/cpp/tutorial_code/core/how_to_scan_images/how_to_scan_images.cpp for (int i = 0; i < times; ++i) i 114 samples/cpp/tutorial_code/core/how_to_scan_images/how_to_scan_images.cpp for( int i = 0; i < 256; ++i) i 115 samples/cpp/tutorial_code/core/how_to_scan_images/how_to_scan_images.cpp p[i] = table[i]; i 120 samples/cpp/tutorial_code/core/how_to_scan_images/how_to_scan_images.cpp for (int i = 0; i < times; ++i) i 150 samples/cpp/tutorial_code/core/how_to_scan_images/how_to_scan_images.cpp int i,j; i 152 samples/cpp/tutorial_code/core/how_to_scan_images/how_to_scan_images.cpp for( i = 0; i < nRows; ++i) i 154 samples/cpp/tutorial_code/core/how_to_scan_images/how_to_scan_images.cpp p = I.ptr<uchar>(i); i 207 samples/cpp/tutorial_code/core/how_to_scan_images/how_to_scan_images.cpp for( int i = 0; i < I.rows; ++i) i 209 samples/cpp/tutorial_code/core/how_to_scan_images/how_to_scan_images.cpp I.at<uchar>(i,j) = table[I.at<uchar>(i,j)]; i 216 samples/cpp/tutorial_code/core/how_to_scan_images/how_to_scan_images.cpp for( int i = 0; i < I.rows; ++i) i 219 samples/cpp/tutorial_code/core/how_to_scan_images/how_to_scan_images.cpp _I(i,j)[0] = table[_I(i,j)[0]]; i 220 samples/cpp/tutorial_code/core/how_to_scan_images/how_to_scan_images.cpp _I(i,j)[1] = table[_I(i,j)[1]]; i 221 samples/cpp/tutorial_code/core/how_to_scan_images/how_to_scan_images.cpp _I(i,j)[2] = table[_I(i,j)[2]]; i 77 samples/cpp/tutorial_code/core/mat_mask_operations/mat_mask_operations.cpp for(int i= nChannels;i < nChannels*(myImage.cols-1); ++i) i 79 samples/cpp/tutorial_code/core/mat_mask_operations/mat_mask_operations.cpp *output++ = saturate_cast<uchar>(5*current[i] i 80 samples/cpp/tutorial_code/core/mat_mask_operations/mat_mask_operations.cpp -current[i-nChannels] - current[i+nChannels] - previous[i] - next[i]); i 108 samples/cpp/tutorial_code/core/mat_the_basic_image_container/mat_the_basic_image_container.cpp for (size_t i = 0; i < vPoints.size(); ++i) i 109 samples/cpp/tutorial_code/core/mat_the_basic_image_container/mat_the_basic_image_container.cpp vPoints[i] = Point2f((float)(i * 5), (float)(i % 7)); i 35 samples/cpp/tutorial_code/features2D/AKAZE_match.cpp for(size_t i = 0; i < nn_matches.size(); i++) { i 36 samples/cpp/tutorial_code/features2D/AKAZE_match.cpp DMatch first = nn_matches[i][0]; i 37 samples/cpp/tutorial_code/features2D/AKAZE_match.cpp float dist1 = nn_matches[i][0].distance; i 38 samples/cpp/tutorial_code/features2D/AKAZE_match.cpp float dist2 = nn_matches[i][1].distance; i 46 samples/cpp/tutorial_code/features2D/AKAZE_match.cpp for(unsigned i = 0; i < matched1.size(); i++) { i 48 samples/cpp/tutorial_code/features2D/AKAZE_match.cpp col.at<double>(0) = matched1[i].pt.x; i 49 samples/cpp/tutorial_code/features2D/AKAZE_match.cpp col.at<double>(1) = matched1[i].pt.y; i 53 samples/cpp/tutorial_code/features2D/AKAZE_match.cpp double dist = sqrt( pow(col.at<double>(0) - matched2[i].pt.x, 2) + i 54 samples/cpp/tutorial_code/features2D/AKAZE_match.cpp pow(col.at<double>(1) - matched2[i].pt.y, 2)); i 58 samples/cpp/tutorial_code/features2D/AKAZE_match.cpp inliers1.push_back(matched1[i]); i 59 samples/cpp/tutorial_code/features2D/AKAZE_match.cpp inliers2.push_back(matched2[i]); i 61 samples/cpp/tutorial_code/features2D/AKAZE_tracking/planar_tracking.cpp for(unsigned i = 0; i < matches.size(); i++) { i 62 samples/cpp/tutorial_code/features2D/AKAZE_tracking/planar_tracking.cpp if(matches[i][0].distance < nn_match_ratio * matches[i][1].distance) { i 63 samples/cpp/tutorial_code/features2D/AKAZE_tracking/planar_tracking.cpp matched1.push_back(first_kp[matches[i][0].queryIdx]); i 64 samples/cpp/tutorial_code/features2D/AKAZE_tracking/planar_tracking.cpp matched2.push_back( kp[matches[i][0].trainIdx]); i 84 samples/cpp/tutorial_code/features2D/AKAZE_tracking/planar_tracking.cpp for(unsigned i = 0; i < matched1.size(); i++) { i 85 samples/cpp/tutorial_code/features2D/AKAZE_tracking/planar_tracking.cpp if(inlier_mask.at<uchar>(i)) { i 87 samples/cpp/tutorial_code/features2D/AKAZE_tracking/planar_tracking.cpp inliers1.push_back(matched1[i]); i 88 samples/cpp/tutorial_code/features2D/AKAZE_tracking/planar_tracking.cpp inliers2.push_back(matched2[i]); i 156 samples/cpp/tutorial_code/features2D/AKAZE_tracking/planar_tracking.cpp for(int i = 1; i < frame_count; i++) { i 157 samples/cpp/tutorial_code/features2D/AKAZE_tracking/planar_tracking.cpp bool update_stats = (i % stats_update_period == 0); i 177 samples/cpp/tutorial_code/features2D/AKAZE_tracking/planar_tracking.cpp cout << i << "/" << frame_count - 1 << endl; i 18 samples/cpp/tutorial_code/features2D/AKAZE_tracking/utils.h for(unsigned i = 0; i < bb.size() - 1; i++) { i 19 samples/cpp/tutorial_code/features2D/AKAZE_tracking/utils.h line(image, bb[i], bb[i + 1], Scalar(0, 0, 255), 2); i 53 samples/cpp/tutorial_code/features2D/AKAZE_tracking/utils.h for(unsigned i = 0; i < keypoints.size(); i++) { i 54 samples/cpp/tutorial_code/features2D/AKAZE_tracking/utils.h res.push_back(keypoints[i].pt); i 88 samples/cpp/tutorial_code/gpu/gpu-basics-similarity/gpu-basics-similarity.cpp for (int i = 0; i < TIMES; ++i) i 100 samples/cpp/tutorial_code/gpu/gpu-basics-similarity/gpu-basics-similarity.cpp for (int i = 0; i < TIMES; ++i) i 117 samples/cpp/tutorial_code/gpu/gpu-basics-similarity/gpu-basics-similarity.cpp for (int i = 0; i < TIMES; ++i) i 131 samples/cpp/tutorial_code/gpu/gpu-basics-similarity/gpu-basics-similarity.cpp for (int i = 0; i < TIMES; ++i) i 143 samples/cpp/tutorial_code/gpu/gpu-basics-similarity/gpu-basics-similarity.cpp for (int i = 0; i < TIMES; ++i) i 161 samples/cpp/tutorial_code/gpu/gpu-basics-similarity/gpu-basics-similarity.cpp for (int i = 0; i < TIMES; ++i) i 323 samples/cpp/tutorial_code/gpu/gpu-basics-similarity/gpu-basics-similarity.cpp for( int i = 0; i < gI1.channels(); ++i ) i 327 samples/cpp/tutorial_code/gpu/gpu-basics-similarity/gpu-basics-similarity.cpp cuda::multiply(vI2[i], vI2[i], I2_2); // I2^2 i 328 samples/cpp/tutorial_code/gpu/gpu-basics-similarity/gpu-basics-similarity.cpp cuda::multiply(vI1[i], vI1[i], I1_2); // I1^2 i 329 samples/cpp/tutorial_code/gpu/gpu-basics-similarity/gpu-basics-similarity.cpp cuda::multiply(vI1[i], vI2[i], I1_I2); // I1 * I2 i 333 samples/cpp/tutorial_code/gpu/gpu-basics-similarity/gpu-basics-similarity.cpp gauss->apply(vI1[i], mu1); i 334 samples/cpp/tutorial_code/gpu/gpu-basics-similarity/gpu-basics-similarity.cpp gauss->apply(vI2[i], mu2); i 367 samples/cpp/tutorial_code/gpu/gpu-basics-similarity/gpu-basics-similarity.cpp mssim.val[i] = s.val[0] / (ssim_map.rows * ssim_map.cols); i 394 samples/cpp/tutorial_code/gpu/gpu-basics-similarity/gpu-basics-similarity.cpp for( int i = 0; i < b.gI1.channels(); ++i ) i 396 samples/cpp/tutorial_code/gpu/gpu-basics-similarity/gpu-basics-similarity.cpp cuda::multiply(b.vI2[i], b.vI2[i], b.I2_2, 1, -1, stream); // I2^2 i 397 samples/cpp/tutorial_code/gpu/gpu-basics-similarity/gpu-basics-similarity.cpp cuda::multiply(b.vI1[i], b.vI1[i], b.I1_2, 1, -1, stream); // I1^2 i 398 samples/cpp/tutorial_code/gpu/gpu-basics-similarity/gpu-basics-similarity.cpp cuda::multiply(b.vI1[i], b.vI2[i], b.I1_I2, 1, -1, stream); // I1 * I2 i 400 samples/cpp/tutorial_code/gpu/gpu-basics-similarity/gpu-basics-similarity.cpp gauss->apply(b.vI1[i], b.mu1, stream); i 401 samples/cpp/tutorial_code/gpu/gpu-basics-similarity/gpu-basics-similarity.cpp gauss->apply(b.vI2[i], b.mu2, stream); i 440 samples/cpp/tutorial_code/gpu/gpu-basics-similarity/gpu-basics-similarity.cpp mssim.val[i] = s.val[0] / (b.ssim_map.rows * b.ssim_map.cols); i 55 samples/cpp/tutorial_code/ml/introduction_to_pca/introduction_to_pca.cpp for (int i = 0; i < data_pts.rows; ++i) i 57 samples/cpp/tutorial_code/ml/introduction_to_pca/introduction_to_pca.cpp data_pts.at<double>(i, 0) = pts[i].x; i 58 samples/cpp/tutorial_code/ml/introduction_to_pca/introduction_to_pca.cpp data_pts.at<double>(i, 1) = pts[i].y; i 71 samples/cpp/tutorial_code/ml/introduction_to_pca/introduction_to_pca.cpp for (int i = 0; i < 2; ++i) i 73 samples/cpp/tutorial_code/ml/introduction_to_pca/introduction_to_pca.cpp eigen_vecs[i] = Point2d(pca_analysis.eigenvectors.at<double>(i, 0), i 74 samples/cpp/tutorial_code/ml/introduction_to_pca/introduction_to_pca.cpp pca_analysis.eigenvectors.at<double>(i, 1)); i 76 samples/cpp/tutorial_code/ml/introduction_to_pca/introduction_to_pca.cpp eigen_val[i] = pca_analysis.eigenvalues.at<double>(0, i); i 128 samples/cpp/tutorial_code/ml/introduction_to_pca/introduction_to_pca.cpp for (size_t i = 0; i < contours.size(); ++i) i 131 samples/cpp/tutorial_code/ml/introduction_to_pca/introduction_to_pca.cpp double area = contourArea(contours[i]); i 136 samples/cpp/tutorial_code/ml/introduction_to_pca/introduction_to_pca.cpp drawContours(src, contours, static_cast<int>(i), Scalar(0, 0, 255), 2, 8, hierarchy, 0); i 138 samples/cpp/tutorial_code/ml/introduction_to_pca/introduction_to_pca.cpp getOrientation(contours[i], src); i 41 samples/cpp/tutorial_code/ml/introduction_to_svm/introduction_to_svm.cpp for (int i = 0; i < image.rows; ++i) i 44 samples/cpp/tutorial_code/ml/introduction_to_svm/introduction_to_svm.cpp Mat sampleMat = (Mat_<float>(1,2) << j,i); i 48 samples/cpp/tutorial_code/ml/introduction_to_svm/introduction_to_svm.cpp image.at<Vec3b>(i,j) = green; i 50 samples/cpp/tutorial_code/ml/introduction_to_svm/introduction_to_svm.cpp image.at<Vec3b>(i,j) = blue; i 70 samples/cpp/tutorial_code/ml/introduction_to_svm/introduction_to_svm.cpp for (int i = 0; i < sv.rows; ++i) i 72 samples/cpp/tutorial_code/ml/introduction_to_svm/introduction_to_svm.cpp const float* v = sv.ptr<float>(i); i 95 samples/cpp/tutorial_code/ml/non_linear_svms/non_linear_svms.cpp for (int i = 0; i < I.rows; ++i) i 98 samples/cpp/tutorial_code/ml/non_linear_svms/non_linear_svms.cpp Mat sampleMat = (Mat_<float>(1,2) << i, j); i 101 samples/cpp/tutorial_code/ml/non_linear_svms/non_linear_svms.cpp if (response == 1) I.at<Vec3b>(j, i) = green; i 102 samples/cpp/tutorial_code/ml/non_linear_svms/non_linear_svms.cpp else if (response == 2) I.at<Vec3b>(j, i) = blue; i 112 samples/cpp/tutorial_code/ml/non_linear_svms/non_linear_svms.cpp for (int i = 0; i < NTRAINING_SAMPLES; ++i) i 114 samples/cpp/tutorial_code/ml/non_linear_svms/non_linear_svms.cpp px = trainData.at<float>(i,0); i 115 samples/cpp/tutorial_code/ml/non_linear_svms/non_linear_svms.cpp py = trainData.at<float>(i,1); i 119 samples/cpp/tutorial_code/ml/non_linear_svms/non_linear_svms.cpp for (int i = NTRAINING_SAMPLES; i <2*NTRAINING_SAMPLES; ++i) i 121 samples/cpp/tutorial_code/ml/non_linear_svms/non_linear_svms.cpp px = trainData.at<float>(i,0); i 122 samples/cpp/tutorial_code/ml/non_linear_svms/non_linear_svms.cpp py = trainData.at<float>(i,1); i 133 samples/cpp/tutorial_code/ml/non_linear_svms/non_linear_svms.cpp for (int i = 0; i < sv.rows; ++i) i 135 samples/cpp/tutorial_code/ml/non_linear_svms/non_linear_svms.cpp const float* v = sv.ptr<float>(i); i 65 samples/cpp/tutorial_code/objectDetection/objectDetection.cpp for ( size_t i = 0; i < faces.size(); i++ ) i 67 samples/cpp/tutorial_code/objectDetection/objectDetection.cpp Point center( faces[i].x + faces[i].width/2, faces[i].y + faces[i].height/2 ); i 68 samples/cpp/tutorial_code/objectDetection/objectDetection.cpp ellipse( frame, center, Size( faces[i].width/2, faces[i].height/2 ), 0, 0, 360, Scalar( 255, 0, 255 ), 4, 8, 0 ); i 70 samples/cpp/tutorial_code/objectDetection/objectDetection.cpp Mat faceROI = frame_gray( faces[i] ); i 78 samples/cpp/tutorial_code/objectDetection/objectDetection.cpp Point eye_center( faces[i].x + eyes[j].x + eyes[j].width/2, faces[i].y + eyes[j].y + eyes[j].height/2 ); i 74 samples/cpp/tutorial_code/objectDetection/objectDetection2.cpp for( size_t i = 0; i < faces.size(); i++ ) i 76 samples/cpp/tutorial_code/objectDetection/objectDetection2.cpp Mat faceROI = frame_gray( faces[i] ); i 84 samples/cpp/tutorial_code/objectDetection/objectDetection2.cpp Point center( faces[i].x + faces[i].width/2, faces[i].y + faces[i].height/2 ); i 85 samples/cpp/tutorial_code/objectDetection/objectDetection2.cpp ellipse( frame, center, Size( faces[i].width/2, faces[i].height/2 ), 0, 0, 360, Scalar( 255, 0, 0 ), 2, 8, 0 ); i 89 samples/cpp/tutorial_code/objectDetection/objectDetection2.cpp Point eye_center( faces[i].x + eyes[j].x + eyes[j].width/2, faces[i].y + eyes[j].y + eyes[j].height/2 ); i 104 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp for(int i = var; i < numpts ; i++) i 105 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp pts[i] = point; i 113 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp for(int i=0;i<var;i++) i 115 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp minx = min(minx,pts[i].x); i 116 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp maxx = max(maxx,pts[i].x); i 117 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp miny = min(miny,pts[i].y); i 118 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp maxy = max(maxy,pts[i].y); i 126 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp for(int i=0;i<var;i++) i 128 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp pts_diff[i].x = pts[i].x - mid_pointx; i 129 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp pts_diff[i].y = pts[i].y - mid_pointy; i 171 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp for(int i = 0; i < numpts ; i++) i 173 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp pts[i].x=0; i 174 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp pts[i].y=0; i 199 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp for(int i=0;i<var;i++) i 201 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp pts2[i].x = point.x + pts_diff[i].x; i 202 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp pts2[i].y = point.y + pts_diff[i].y; i 205 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp for(int i=var;i<numpts;i++) i 207 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp pts2[i].x = point.x + pts_diff[0].x; i 208 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp pts2[i].y = point.y + pts_diff[0].y; i 222 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp for(int i=0;i<flag;i++) i 224 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp minxd = min(minxd,pts2[i].x); i 225 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp maxxd = max(maxxd,pts2[i].x); i 226 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp minyd = min(minyd,pts2[i].y); i 227 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp maxyd = max(maxyd,pts2[i].y); i 238 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp for(int i=miny, k=minyd;i<(miny+leny);i++,k++) i 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); i 259 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp for(int i = 0; i < flag ; i++) i 261 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp pts2[i].x=0; i 262 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp pts2[i].y=0; i 462 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp for(int i = var; i < numpts ; i++) i 463 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp pts[i] = point; i 471 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp for(int i=0;i<var;i++) i 473 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp minx = min(minx,pts[i].x); i 474 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp maxx = max(maxx,pts[i].x); i 475 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp miny = min(miny,pts[i].y); i 476 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp maxy = max(maxy,pts[i].y); i 484 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp for(int i=0;i<var;i++) i 486 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp pts_diff[i].x = pts[i].x - mid_pointx; i 487 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp pts_diff[i].y = pts[i].y - mid_pointy; i 503 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp for(int i = 0; i < numpts ; i++) i 505 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp pts[i].x=0; i 506 samples/cpp/tutorial_code/photo/seamless_cloning/cloning_gui.cpp pts[i].y=0; i 40 samples/cpp/tutorial_code/viz/transformations.cpp for(size_t i = 0; i < 12; ++i) i 45 samples/cpp/tutorial_code/viz/transformations.cpp for(size_t i = 0; i < 1889; ++i) i 46 samples/cpp/tutorial_code/viz/transformations.cpp ifs >> data[i].x >> data[i].y >> data[i].z >> dummy1 >> dummy2; i 53 samples/cpp/tutorial_code/xfeatures2D/LATCH_match.cpp for (size_t i = 0; i < nn_matches.size(); i++) { i 54 samples/cpp/tutorial_code/xfeatures2D/LATCH_match.cpp DMatch first = nn_matches[i][0]; i 55 samples/cpp/tutorial_code/xfeatures2D/LATCH_match.cpp float dist1 = nn_matches[i][0].distance; i 56 samples/cpp/tutorial_code/xfeatures2D/LATCH_match.cpp float dist2 = nn_matches[i][1].distance; i 64 samples/cpp/tutorial_code/xfeatures2D/LATCH_match.cpp for (unsigned i = 0; i < matched1.size(); i++) { i 66 samples/cpp/tutorial_code/xfeatures2D/LATCH_match.cpp col.at<double>(0) = matched1[i].pt.x; i 67 samples/cpp/tutorial_code/xfeatures2D/LATCH_match.cpp col.at<double>(1) = matched1[i].pt.y; i 71 samples/cpp/tutorial_code/xfeatures2D/LATCH_match.cpp double dist = sqrt(pow(col.at<double>(0) - matched2[i].pt.x, 2) + i 72 samples/cpp/tutorial_code/xfeatures2D/LATCH_match.cpp pow(col.at<double>(1) - matched2[i].pt.y, 2)); i 76 samples/cpp/tutorial_code/xfeatures2D/LATCH_match.cpp inliers1.push_back(matched1[i]); i 77 samples/cpp/tutorial_code/xfeatures2D/LATCH_match.cpp inliers2.push_back(matched2[i]); i 38 samples/cpp/tvl1_optical_flow.cpp for (int i = 0; i < RY; ++i, ++k) i 39 samples/cpp/tvl1_optical_flow.cpp colorWheel[k] = Vec3i(255, 255 * i / RY, 0); i 41 samples/cpp/tvl1_optical_flow.cpp for (int i = 0; i < YG; ++i, ++k) i 42 samples/cpp/tvl1_optical_flow.cpp colorWheel[k] = Vec3i(255 - 255 * i / YG, 255, 0); i 44 samples/cpp/tvl1_optical_flow.cpp for (int i = 0; i < GC; ++i, ++k) i 45 samples/cpp/tvl1_optical_flow.cpp colorWheel[k] = Vec3i(0, 255, 255 * i / GC); i 47 samples/cpp/tvl1_optical_flow.cpp for (int i = 0; i < CB; ++i, ++k) i 48 samples/cpp/tvl1_optical_flow.cpp colorWheel[k] = Vec3i(0, 255 - 255 * i / CB, 255); i 50 samples/cpp/tvl1_optical_flow.cpp for (int i = 0; i < BM; ++i, ++k) i 51 samples/cpp/tvl1_optical_flow.cpp colorWheel[k] = Vec3i(255 * i / BM, 0, 255); i 53 samples/cpp/tvl1_optical_flow.cpp for (int i = 0; i < MR; ++i, ++k) i 54 samples/cpp/tvl1_optical_flow.cpp colorWheel[k] = Vec3i(255, 0, 255 - 255 * i / MR); i 137 samples/cpp/tvl1_optical_flow.cpp for (int i = 0; i < flow.rows; ++i) i 141 samples/cpp/tvl1_optical_flow.cpp const Point2f u = flow(i, j); i 62 samples/cpp/ufacedetect.cpp for( int i = 1; i < argc; i++ ) i 64 samples/cpp/ufacedetect.cpp cout << "Processing " << i << " " << argv[i] << endl; i 65 samples/cpp/ufacedetect.cpp if( cascadeOpt.compare( 0, cascadeOptLen, argv[i], cascadeOptLen ) == 0 ) i 67 samples/cpp/ufacedetect.cpp cascadeName.assign( argv[i] + cascadeOptLen ); i 70 samples/cpp/ufacedetect.cpp else if( nestedCascadeOpt.compare( 0, nestedCascadeOptLen, argv[i], nestedCascadeOptLen ) == 0 ) i 72 samples/cpp/ufacedetect.cpp if( argv[i][nestedCascadeOpt.length()] == '=' ) i 73 samples/cpp/ufacedetect.cpp nestedCascadeName.assign( argv[i] + nestedCascadeOpt.length() + 1 ); i 77 samples/cpp/ufacedetect.cpp else if( scaleOpt.compare( 0, scaleOptLen, argv[i], scaleOptLen ) == 0 ) i 79 samples/cpp/ufacedetect.cpp if( !sscanf( argv[i] + scaleOpt.length(), "%lf", &scale ) || scale > 1 ) i 83 samples/cpp/ufacedetect.cpp else if( tryFlipOpt.compare( 0, tryFlipOptLen, argv[i], tryFlipOptLen ) == 0 ) i 88 samples/cpp/ufacedetect.cpp else if( argv[i][0] == '-' ) i 90 samples/cpp/ufacedetect.cpp cerr << "WARNING: Unknown option %s" << argv[i] << endl; i 93 samples/cpp/ufacedetect.cpp inputName = argv[i]; i 188 samples/cpp/ufacedetect.cpp int i = 0; i 245 samples/cpp/ufacedetect.cpp for( vector<Rect>::const_iterator r = faces.begin(); r != faces.end(); r++, i++ ) i 249 samples/cpp/ufacedetect.cpp Scalar color = colors[i%8]; i 85 samples/cpp/watershed.cpp int i, j, compCount = 0; i 103 samples/cpp/watershed.cpp for( i = 0; i < compCount; i++ ) i 120 samples/cpp/watershed.cpp for( i = 0; i < markers.rows; i++ ) i 123 samples/cpp/watershed.cpp int index = markers.at<int>(i,j); i 125 samples/cpp/watershed.cpp wshed.at<Vec3b>(i,j) = Vec3b(255,255,255); i 127 samples/cpp/watershed.cpp wshed.at<Vec3b>(i,j) = Vec3b(0,0,0); i 129 samples/cpp/watershed.cpp wshed.at<Vec3b>(i,j) = colorTab[index - 1]; i 145 samples/gpu/cascadeclassifier.cpp for (int i = 1; i < argc; ++i) i 147 samples/gpu/cascadeclassifier.cpp if (string(argv[i]) == "--cascade") i 148 samples/gpu/cascadeclassifier.cpp cascadeName = argv[++i]; i 149 samples/gpu/cascadeclassifier.cpp else if (string(argv[i]) == "--video") i 151 samples/gpu/cascadeclassifier.cpp inputName = argv[++i]; i 154 samples/gpu/cascadeclassifier.cpp else if (string(argv[i]) == "--camera") i 156 samples/gpu/cascadeclassifier.cpp inputName = argv[++i]; i 159 samples/gpu/cascadeclassifier.cpp else if (string(argv[i]) == "--help") i 166 samples/gpu/cascadeclassifier.cpp inputName = argv[i]; i 171 samples/gpu/cascadeclassifier.cpp cout << "Unknown key: " << argv[i] << endl; i 256 samples/gpu/cascadeclassifier.cpp for (size_t i = 0; i < faces.size(); ++i) i 258 samples/gpu/cascadeclassifier.cpp rectangle(resized_cpu, faces[i], Scalar(255)); i 270 samples/gpu/cascadeclassifier.cpp for (size_t i = 0; i < faces.size(); ++i) i 272 samples/gpu/cascadeclassifier.cpp cout << ", [" << setw(4) << faces[i].x i 273 samples/gpu/cascadeclassifier.cpp << ", " << setw(4) << faces[i].y i 274 samples/gpu/cascadeclassifier.cpp << ", " << setw(4) << faces[i].width i 275 samples/gpu/cascadeclassifier.cpp << ", " << setw(4) << faces[i].height << "]"; i 111 samples/gpu/cascadeclassifier_nvidia_api.cpp for (Ncv32u i=0; i<(Ncv32u)srcdst->rows; i++) i 113 samples/gpu/cascadeclassifier_nvidia_api.cpp memcpy(h_src.ptr() + i * h_src.stride(), srcdst->ptr(i), srcdst->cols); i 145 samples/gpu/cascadeclassifier_nvidia_api.cpp for (Ncv32u i=0; i<(Ncv32u)srcdst->rows; i++) i 147 samples/gpu/cascadeclassifier_nvidia_api.cpp memcpy(srcdst->ptr(i), h_src.ptr() + i * h_src.stride(), srcdst->cols); i 81 samples/gpu/driver_api_multi.cpp for (int i = 0; i < num_devices; ++i) i 83 samples/gpu/driver_api_multi.cpp cv::cuda::printShortCudaDeviceInfo(i); i 85 samples/gpu/driver_api_multi.cpp DeviceInfo dev_info(i); i 88 samples/gpu/driver_api_multi.cpp std::cout << "CUDA module isn't built for GPU #" << i << " (" i 111 samples/gpu/driver_api_stereo_multi.cpp for (int i = 0; i < num_devices; ++i) i 113 samples/gpu/driver_api_stereo_multi.cpp cv::cuda::printShortCudaDeviceInfo(i); i 115 samples/gpu/driver_api_stereo_multi.cpp DeviceInfo dev_info(i); i 118 samples/gpu/driver_api_stereo_multi.cpp std::cout << "GPU module isn't built for GPU #" << i << " (" i 127 samples/gpu/driver_api_stereo_multi.cpp for (int i = 1; i < argc; ++i) i 129 samples/gpu/driver_api_stereo_multi.cpp if (string(argv[i]) == "--left") i 131 samples/gpu/driver_api_stereo_multi.cpp left = imread(argv[++i], cv::IMREAD_GRAYSCALE); i 134 samples/gpu/driver_api_stereo_multi.cpp else if (string(argv[i]) == "--right") i 136 samples/gpu/driver_api_stereo_multi.cpp right = imread(argv[++i], cv::IMREAD_GRAYSCALE); i 139 samples/gpu/driver_api_stereo_multi.cpp else if (string(argv[i]) == "--help") i 160 samples/gpu/generalized_hough.cpp for (size_t i = 0; i < position.size(); ++i) i 162 samples/gpu/generalized_hough.cpp Point2f pos(position[i][0], position[i][1]); i 163 samples/gpu/generalized_hough.cpp float scale = position[i][2]; i 164 samples/gpu/generalized_hough.cpp float angle = position[i][3]; i 173 samples/gpu/hog.cpp for (int i = 1; i < argc; i++) i 175 samples/gpu/hog.cpp if (string(argv[i]) == "--make_gray") args.make_gray = (string(argv[++i]) == "true"); i 176 samples/gpu/hog.cpp else if (string(argv[i]) == "--resize_src") args.resize_src = (string(argv[++i]) == "true"); i 177 samples/gpu/hog.cpp else if (string(argv[i]) == "--width") args.width = atoi(argv[++i]); i 178 samples/gpu/hog.cpp else if (string(argv[i]) == "--height") args.height = atoi(argv[++i]); i 179 samples/gpu/hog.cpp else if (string(argv[i]) == "--hit_threshold") i 181 samples/gpu/hog.cpp args.hit_threshold = atof(argv[++i]); i 184 samples/gpu/hog.cpp else if (string(argv[i]) == "--scale") args.scale = atof(argv[++i]); i 185 samples/gpu/hog.cpp else if (string(argv[i]) == "--nlevels") args.nlevels = atoi(argv[++i]); i 186 samples/gpu/hog.cpp else if (string(argv[i]) == "--win_width") args.win_width = atoi(argv[++i]); i 187 samples/gpu/hog.cpp else if (string(argv[i]) == "--win_stride_width") args.win_stride_width = atoi(argv[++i]); i 188 samples/gpu/hog.cpp else if (string(argv[i]) == "--win_stride_height") args.win_stride_height = atoi(argv[++i]); i 189 samples/gpu/hog.cpp else if (string(argv[i]) == "--gr_threshold") args.gr_threshold = atoi(argv[++i]); i 190 samples/gpu/hog.cpp else if (string(argv[i]) == "--gamma_correct") args.gamma_corr = (string(argv[++i]) == "true"); i 191 samples/gpu/hog.cpp else if (string(argv[i]) == "--write_video") args.write_video = (string(argv[++i]) == "true"); i 192 samples/gpu/hog.cpp else if (string(argv[i]) == "--dst_video") args.dst_video = argv[++i]; i 193 samples/gpu/hog.cpp else if (string(argv[i]) == "--dst_video_fps") args.dst_video_fps = atof(argv[++i]); i 194 samples/gpu/hog.cpp else if (string(argv[i]) == "--help") printHelp(); i 195 samples/gpu/hog.cpp else if (string(argv[i]) == "--video") { args.src = argv[++i]; args.src_is_video = true; } i 196 samples/gpu/hog.cpp else if (string(argv[i]) == "--camera") { args.camera_id = atoi(argv[++i]); args.src_is_camera = true; } i 197 samples/gpu/hog.cpp else if (args.src.empty()) args.src = argv[i]; i 198 samples/gpu/hog.cpp else throw runtime_error((string("unknown key: ") + argv[i])); i 335 samples/gpu/hog.cpp for (size_t i = 0; i < found.size(); i++) i 337 samples/gpu/hog.cpp Rect r = found[i]; i 51 samples/gpu/houghlines.cpp for (size_t i = 0; i < lines_cpu.size(); ++i) i 53 samples/gpu/houghlines.cpp Vec4i l = lines_cpu[i]; i 78 samples/gpu/houghlines.cpp for (size_t i = 0; i < lines_gpu.size(); ++i) i 80 samples/gpu/houghlines.cpp Vec4i l = lines_gpu[i]; i 57 samples/gpu/multi.cpp for (int i = 0; i < num_devices; ++i) i 59 samples/gpu/multi.cpp cv::cuda::printShortCudaDeviceInfo(i); i 61 samples/gpu/multi.cpp DeviceInfo dev_info(i); i 64 samples/gpu/multi.cpp std::cout << "CUDA module isn't built for GPU #" << i << " (" i 40 samples/gpu/optical_flow.cpp for (int i = 0; i < RY; ++i, ++k) i 41 samples/gpu/optical_flow.cpp colorWheel[k] = Vec3i(255, 255 * i / RY, 0); i 43 samples/gpu/optical_flow.cpp for (int i = 0; i < YG; ++i, ++k) i 44 samples/gpu/optical_flow.cpp colorWheel[k] = Vec3i(255 - 255 * i / YG, 255, 0); i 46 samples/gpu/optical_flow.cpp for (int i = 0; i < GC; ++i, ++k) i 47 samples/gpu/optical_flow.cpp colorWheel[k] = Vec3i(0, 255, 255 * i / GC); i 49 samples/gpu/optical_flow.cpp for (int i = 0; i < CB; ++i, ++k) i 50 samples/gpu/optical_flow.cpp colorWheel[k] = Vec3i(0, 255 - 255 * i / CB, 255); i 52 samples/gpu/optical_flow.cpp for (int i = 0; i < BM; ++i, ++k) i 53 samples/gpu/optical_flow.cpp colorWheel[k] = Vec3i(255 * i / BM, 0, 255); i 55 samples/gpu/optical_flow.cpp for (int i = 0; i < MR; ++i, ++k) i 56 samples/gpu/optical_flow.cpp colorWheel[k] = Vec3i(255, 0, 255 - 255 * i / MR); i 93 samples/gpu/opticalflow_nvidia_api.cpp for (int i = 0; i < image->height; ++i) i 99 samples/gpu/opticalflow_nvidia_api.cpp dst->ptr ()[j + i*dst->stride ()] = static_cast<float> (*(row + j*image->nChannels))/255.0f; i 104 samples/gpu/opticalflow_nvidia_api.cpp dst->ptr ()[j +i*dst->stride ()] = convert (color[0], color[1], color[2]); i 117 samples/gpu/opticalflow_nvidia_api.cpp for (int i = 0; i < image->height; ++i) i 123 samples/gpu/opticalflow_nvidia_api.cpp dst.ptr ()[j + i*dst.stride ()] = static_cast<float>(*(row + j*image->nChannels))/255.0f; i 128 samples/gpu/opticalflow_nvidia_api.cpp dst.ptr ()[j +i*dst.stride()] = convert (color[0], color[1], color[2]); i 205 samples/gpu/opticalflow_nvidia_api.cpp for (Ncv32u i = 0; i < u.height (); ++i) i 226 samples/gpu/opticalflow_nvidia_api.cpp for (int i = 0; i < flowField->height; ++i) i 255 samples/gpu/opticalflow_nvidia_api.cpp for (int i = 0; i < image->height; ++i) i 260 samples/gpu/opticalflow_nvidia_api.cpp int pos = i * h_r.stride () + j; i 105 samples/gpu/performance/tests.cpp for (int i = 0; i < size; ++i) i 107 samples/gpu/performance/tests.cpp float* xmap_row = xmap.ptr<float>(i); i 108 samples/gpu/performance/tests.cpp float* ymap_row = ymap.ptr<float>(i); i 112 samples/gpu/performance/tests.cpp ymap_row[j] = (i - size * 0.5f) * 0.75f + size * 0.5f; i 32 samples/gpu/pyrlk_optical_flow.cpp for (size_t i = 0; i < prevPts.size(); ++i) i 34 samples/gpu/pyrlk_optical_flow.cpp if (status[i]) i 38 samples/gpu/pyrlk_optical_flow.cpp Point p = prevPts[i]; i 39 samples/gpu/pyrlk_optical_flow.cpp Point q = nextPts[i]; i 120 samples/gpu/stereo_match.cpp for (int i = 1; i < argc; i++) i 122 samples/gpu/stereo_match.cpp if (string(argv[i]) == "--left") p.left = argv[++i]; i 123 samples/gpu/stereo_match.cpp else if (string(argv[i]) == "--right") p.right = argv[++i]; i 124 samples/gpu/stereo_match.cpp else if (string(argv[i]) == "--method") i 126 samples/gpu/stereo_match.cpp if (string(argv[i + 1]) == "BM") p.method = BM; i 127 samples/gpu/stereo_match.cpp else if (string(argv[i + 1]) == "BP") p.method = BP; i 128 samples/gpu/stereo_match.cpp else if (string(argv[i + 1]) == "CSBP") p.method = CSBP; i 129 samples/gpu/stereo_match.cpp else throw runtime_error("unknown stereo match method: " + string(argv[i + 1])); i 130 samples/gpu/stereo_match.cpp i++; i 132 samples/gpu/stereo_match.cpp else if (string(argv[i]) == "--ndisp") p.ndisp = atoi(argv[++i]); i 133 samples/gpu/stereo_match.cpp else if (string(argv[i]) == "--help") printHelp(); i 134 samples/gpu/stereo_match.cpp else throw runtime_error("unknown key: " + string(argv[i])); i 371 samples/gpu/stereo_multi.cpp for (int i = 0; i < numDevices; ++i) i 373 samples/gpu/stereo_multi.cpp DeviceInfo devInfo(i); i 376 samples/gpu/stereo_multi.cpp cerr << "CUDA module was't built for GPU #" << i << " (" i 382 samples/gpu/stereo_multi.cpp printShortCudaDeviceInfo(i); i 429 samples/gpu/stereo_multi.cpp for (int i = 0;; ++i) i 476 samples/gpu/stereo_multi.cpp cout << "| " << setw(5) << i << " | " i 139 samples/gpu/super_resolution.cpp for (int i = 0;; ++i) i 141 samples/gpu/super_resolution.cpp cout << '[' << setw(3) << i << "] : "; i 32 samples/gpu/surf_keypoint_matcher.cpp for (int i = 1; i < argc; ++i) i 34 samples/gpu/surf_keypoint_matcher.cpp if (string(argv[i]) == "--left") i 36 samples/gpu/surf_keypoint_matcher.cpp img1.upload(imread(argv[++i], IMREAD_GRAYSCALE)); i 39 samples/gpu/surf_keypoint_matcher.cpp else if (string(argv[i]) == "--right") i 41 samples/gpu/surf_keypoint_matcher.cpp img2.upload(imread(argv[++i], IMREAD_GRAYSCALE)); i 44 samples/gpu/surf_keypoint_matcher.cpp else if (string(argv[i]) == "--help") i 46 samples/gpu/video_writer.cpp for (int i = 1;; ++i) i 48 samples/gpu/video_writer.cpp std::cout << "Read " << i << " frame" << std::endl; i 78 samples/gpu/video_writer.cpp std::cout << "Write " << i << " frame" << std::endl; i 144 samples/tapi/camshift.cpp for (int i = 0; i < hsize; i++) i 145 samples/tapi/camshift.cpp buf.at<cv::Vec3b>(i) = cv::Vec3b(cv::saturate_cast<uchar>(i*180./hsize), 255, 255); i 150 samples/tapi/camshift.cpp for (int i = 0; i < hsize; i++) i 152 samples/tapi/camshift.cpp int val = cv::saturate_cast<int>(_hist.at<float>(i)*histimg.rows/255); i 153 samples/tapi/camshift.cpp cv::rectangle(histimg, cv::Point(i*binW, histimg.rows), i 154 samples/tapi/camshift.cpp cv::Point((i+1)*binW, histimg.rows - val), i 155 samples/tapi/camshift.cpp cv::Scalar(buf.at<cv::Vec3b>(i)), -1, 8); i 222 samples/tapi/hog.cpp for (size_t i = 0; i < found.size(); i++) i 224 samples/tapi/hog.cpp Rect r = found[i]; i 37 samples/tapi/pyrlk_optical_flow.cpp for (size_t i = 0; i < prevPts.size(); ++i) i 39 samples/tapi/pyrlk_optical_flow.cpp if (status[i]) i 43 samples/tapi/pyrlk_optical_flow.cpp Point p = prevPts[i]; i 44 samples/tapi/pyrlk_optical_flow.cpp Point q = nextPts[i]; i 144 samples/tapi/pyrlk_optical_flow.cpp for(int i = 0;; i++) i 149 samples/tapi/pyrlk_optical_flow.cpp if (i == 0) i 156 samples/tapi/pyrlk_optical_flow.cpp if (i%2 == 1) i 178 samples/tapi/pyrlk_optical_flow.cpp if (i%2 == 1) i 205 samples/tapi/pyrlk_optical_flow.cpp for(int i = 0; i <= LOOP_NUM; i ++) i 207 samples/tapi/pyrlk_optical_flow.cpp cout << "loop" << i << endl; i 208 samples/tapi/pyrlk_optical_flow.cpp if (i > 0) workBegin(); i 213 samples/tapi/pyrlk_optical_flow.cpp if (i > 0 && i <= LOOP_NUM) i 216 samples/tapi/pyrlk_optical_flow.cpp if (i == LOOP_NUM) i 78 samples/tapi/squares.cpp for( size_t i = 0; i < contours.size(); i++ ) i 83 samples/tapi/squares.cpp approxPolyDP(Mat(contours[i]), approx, arcLength(Mat(contours[i]), true)*0.02, true); i 119 samples/tapi/squares.cpp for( size_t i = 0; i < squares.size(); i++ ) i 121 samples/tapi/squares.cpp const Point* p = &squares[i][0]; i 122 samples/tapi/squares.cpp int n = (int)squares[i].size(); i 48 samples/tapi/tvl1_optical_flow.cpp for (int i = 0; i < u.rows; ++i) i 50 samples/tapi/tvl1_optical_flow.cpp const float* ptr_u = u.ptr<float>(i); i 51 samples/tapi/tvl1_optical_flow.cpp const float* ptr_v = v.ptr<float>(i); i 64 samples/tapi/tvl1_optical_flow.cpp for (int i = 0; i < flowField.rows; ++i) i 66 samples/tapi/tvl1_optical_flow.cpp const float* ptr_u = u.ptr<float>(i); i 67 samples/tapi/tvl1_optical_flow.cpp const float* ptr_v = v.ptr<float>(i); i 70 samples/tapi/tvl1_optical_flow.cpp Vec4b* row = flowField.ptr<Vec4b>(i); i 145 samples/tapi/tvl1_optical_flow.cpp for(int i = 0;; i++) i 150 samples/tapi/tvl1_optical_flow.cpp if (i == 0) i 157 samples/tapi/tvl1_optical_flow.cpp if (i%2 == 1) i 175 samples/tapi/tvl1_optical_flow.cpp if (i%2 == 1) i 203 samples/tapi/tvl1_optical_flow.cpp for(int i = 0; i <= LOOP_NUM; i ++) i 205 samples/tapi/tvl1_optical_flow.cpp cout << "loop" << i << endl; i 207 samples/tapi/tvl1_optical_flow.cpp if (i > 0) workBegin(); i 212 samples/tapi/tvl1_optical_flow.cpp if (i > 0 && i <= LOOP_NUM) i 215 samples/tapi/tvl1_optical_flow.cpp if (i == LOOP_NUM) i 67 samples/winrt/FaceDetection/FaceDetection/MainPage.xaml.cpp for (unsigned int i = 0; i < facesColl.size(); i++) i 69 samples/winrt/FaceDetection/FaceDetection/MainPage.xaml.cpp auto face = facesColl[i]; i 264 samples/winrt/ImageManipulations/AdvancedCapture.xaml.cpp for(unsigned int i = 0; i < m_devInfoCollection->Size; i++) i 266 samples/winrt/ImageManipulations/AdvancedCapture.xaml.cpp auto devInfo = m_devInfoCollection->GetAt(i); i 301 samples/winrt/ImageManipulations/AdvancedCapture.xaml.cpp unsigned int i = 0; i 302 samples/winrt/ImageManipulations/AdvancedCapture.xaml.cpp while (i < supportedPropsList->Size) i 304 samples/winrt/ImageManipulations/AdvancedCapture.xaml.cpp Windows::Media::MediaProperties::IMediaEncodingProperties^ props = supportedPropsList->GetAt(i); i 344 samples/winrt/ImageManipulations/AdvancedCapture.xaml.cpp i++; i 149 samples/winrt/ImageManipulations/MainPage.xaml.cpp for (unsigned int i = 0; i < scenarios->Length; ++i) i 151 samples/winrt/ImageManipulations/MainPage.xaml.cpp Scenario s = scenarios[i]; i 154 samples/winrt/ImageManipulations/MainPage.xaml.cpp item->Content = (i + 1).ToString() + ") " + s.Title; i 1179 samples/winrt/ImageManipulations/MediaExtensions/OcvTransform/OcvTransform.cpp for (DWORD i = 0; i < ARRAYSIZE(g_MediaSubtypes); i++) i 1181 samples/winrt/ImageManipulations/MediaExtensions/OcvTransform/OcvTransform.cpp if (subtype == g_MediaSubtypes[i]) i 219 samples/winrt/OcvImageProcessing/OcvImageProcessing/MainPage.xaml.cpp for( unsigned int i = 0; i < std::min(features.size(), (size_t)50); i++ ) i 221 samples/winrt/OcvImageProcessing/OcvImageProcessing/MainPage.xaml.cpp const cv::KeyPoint& kp = features[i]; i 107 samples/winrt_universal/VideoCaptureXAML/video_capture_xaml/video_capture_xaml.Shared/main.cpp for (int i = 0; i < 640 * 100 * bytesPerPixel;) i 109 samples/winrt_universal/VideoCaptureXAML/video_capture_xaml/video_capture_xaml.Shared/main.cpp ar[i++] = adjust; // R i 110 samples/winrt_universal/VideoCaptureXAML/video_capture_xaml/video_capture_xaml.Shared/main.cpp i++; // G i 111 samples/winrt_universal/VideoCaptureXAML/video_capture_xaml/video_capture_xaml.Shared/main.cpp ar[i++] = 255 - adjust; // B i 135 samples/winrt_universal/VideoCaptureXAML/video_capture_xaml/video_capture_xaml.Shared/main.cpp for (unsigned int i = 0; i < facesColl.size(); i++) i 137 samples/winrt_universal/VideoCaptureXAML/video_capture_xaml/video_capture_xaml.Shared/main.cpp auto face = facesColl[i]; i 166 samples/wp8/OcvImageManipulation/PhoneXamlDirect3DApp1/PhoneXamlDirect3DApp1Comp/Direct3DInterop.cpp for( unsigned int i = 0; i < std::min(features.size(), (size_t)50); i++ ) i 168 samples/wp8/OcvImageManipulation/PhoneXamlDirect3DApp1/PhoneXamlDirect3DApp1Comp/Direct3DInterop.cpp const cv::KeyPoint& kp = features[i]; i 67 samples/wp8/OcvImageManipulation/PhoneXamlDirect3DApp1/PhoneXamlDirect3DApp1Comp/QuadRenderer.cpp for (int i = 0; i < height; ++i) i 69 samples/wp8/OcvImageManipulation/PhoneXamlDirect3DApp1/PhoneXamlDirect3DApp1Comp/QuadRenderer.cpp memcpy(mappedData + (i*mappedResource.RowPitch), buffer + (i*nRowSpan), nRowSpan); i 68 samples/wp8/OcvRotatingCube/PhoneXamlDirect3DApp1/PhoneXamlDirect3DApp1Comp/CubeRenderer.cpp for (int i = 0; i < height; ++i) i 70 samples/wp8/OcvRotatingCube/PhoneXamlDirect3DApp1/PhoneXamlDirect3DApp1Comp/CubeRenderer.cpp memcpy(mappedData + (i*mappedResource.RowPitch), buffer + (i*nRowSpan), nRowSpan); i 51 samples/wp8/OpenCVXaml/OpenCVComponent/OpenCVComponent.cpp for (int i = 0; i < size; i++) i 53 samples/wp8/OpenCVXaml/OpenCVComponent/OpenCVComponent.cpp int value = input->GetAt(i); i 62 samples/wp8/OpenCVXaml/OpenCVComponent/OpenCVComponent.cpp for (int i = 0; i < size; i++) i 64 samples/wp8/OpenCVXaml/OpenCVComponent/OpenCVComponent.cpp vector.push_back(data[i]);