img 42 3rdparty/libtiff/tif_getimage.c static int BuildMapUaToAa(TIFFRGBAImage* img); img 43 3rdparty/libtiff/tif_getimage.c static int BuildMapBitdepth16To8(TIFFRGBAImage* img); img 197 3rdparty/libtiff/tif_getimage.c TIFFRGBAImageEnd(TIFFRGBAImage* img) img 199 3rdparty/libtiff/tif_getimage.c if (img->Map) img 200 3rdparty/libtiff/tif_getimage.c _TIFFfree(img->Map), img->Map = NULL; img 201 3rdparty/libtiff/tif_getimage.c if (img->BWmap) img 202 3rdparty/libtiff/tif_getimage.c _TIFFfree(img->BWmap), img->BWmap = NULL; img 203 3rdparty/libtiff/tif_getimage.c if (img->PALmap) img 204 3rdparty/libtiff/tif_getimage.c _TIFFfree(img->PALmap), img->PALmap = NULL; img 205 3rdparty/libtiff/tif_getimage.c if (img->ycbcr) img 206 3rdparty/libtiff/tif_getimage.c _TIFFfree(img->ycbcr), img->ycbcr = NULL; img 207 3rdparty/libtiff/tif_getimage.c if (img->cielab) img 208 3rdparty/libtiff/tif_getimage.c _TIFFfree(img->cielab), img->cielab = NULL; img 209 3rdparty/libtiff/tif_getimage.c if (img->UaToAa) img 210 3rdparty/libtiff/tif_getimage.c _TIFFfree(img->UaToAa), img->UaToAa = NULL; img 211 3rdparty/libtiff/tif_getimage.c if (img->Bitdepth16To8) img 212 3rdparty/libtiff/tif_getimage.c _TIFFfree(img->Bitdepth16To8), img->Bitdepth16To8 = NULL; img 214 3rdparty/libtiff/tif_getimage.c if( img->redcmap ) { img 215 3rdparty/libtiff/tif_getimage.c _TIFFfree( img->redcmap ); img 216 3rdparty/libtiff/tif_getimage.c _TIFFfree( img->greencmap ); img 217 3rdparty/libtiff/tif_getimage.c _TIFFfree( img->bluecmap ); img 218 3rdparty/libtiff/tif_getimage.c img->redcmap = img->greencmap = img->bluecmap = NULL; img 234 3rdparty/libtiff/tif_getimage.c TIFFRGBAImageBegin(TIFFRGBAImage* img, TIFF* tif, int stop, char emsg[1024]) img 245 3rdparty/libtiff/tif_getimage.c img->row_offset = 0; img 246 3rdparty/libtiff/tif_getimage.c img->col_offset = 0; img 247 3rdparty/libtiff/tif_getimage.c img->redcmap = NULL; img 248 3rdparty/libtiff/tif_getimage.c img->greencmap = NULL; img 249 3rdparty/libtiff/tif_getimage.c img->bluecmap = NULL; img 250 3rdparty/libtiff/tif_getimage.c img->req_orientation = ORIENTATION_BOTLEFT; /* It is the default */ img 252 3rdparty/libtiff/tif_getimage.c img->tif = tif; img 253 3rdparty/libtiff/tif_getimage.c img->stoponerr = stop; img 254 3rdparty/libtiff/tif_getimage.c TIFFGetFieldDefaulted(tif, TIFFTAG_BITSPERSAMPLE, &img->bitspersample); img 255 3rdparty/libtiff/tif_getimage.c switch (img->bitspersample) { img 264 3rdparty/libtiff/tif_getimage.c img->bitspersample); img 267 3rdparty/libtiff/tif_getimage.c img->alpha = 0; img 268 3rdparty/libtiff/tif_getimage.c TIFFGetFieldDefaulted(tif, TIFFTAG_SAMPLESPERPIXEL, &img->samplesperpixel); img 275 3rdparty/libtiff/tif_getimage.c if (img->samplesperpixel > 3) /* correct info about alpha channel */ img 276 3rdparty/libtiff/tif_getimage.c img->alpha = EXTRASAMPLE_ASSOCALPHA; img 280 3rdparty/libtiff/tif_getimage.c img->alpha = sampleinfo[0]; img 286 3rdparty/libtiff/tif_getimage.c if( !TIFFGetField(tif, TIFFTAG_PHOTOMETRIC, &img->photometric)) img 287 3rdparty/libtiff/tif_getimage.c img->photometric = PHOTOMETRIC_MINISWHITE; img 290 3rdparty/libtiff/tif_getimage.c && img->samplesperpixel == 4 img 291 3rdparty/libtiff/tif_getimage.c && img->photometric == PHOTOMETRIC_RGB ) img 293 3rdparty/libtiff/tif_getimage.c img->alpha = EXTRASAMPLE_ASSOCALPHA; img 298 3rdparty/libtiff/tif_getimage.c colorchannels = img->samplesperpixel - extrasamples; img 301 3rdparty/libtiff/tif_getimage.c if (!TIFFGetField(tif, TIFFTAG_PHOTOMETRIC, &img->photometric)) { img 305 3rdparty/libtiff/tif_getimage.c img->photometric = PHOTOMETRIC_MINISWHITE; img 307 3rdparty/libtiff/tif_getimage.c img->photometric = PHOTOMETRIC_MINISBLACK; img 310 3rdparty/libtiff/tif_getimage.c img->photometric = PHOTOMETRIC_RGB; img 317 3rdparty/libtiff/tif_getimage.c switch (img->photometric) { img 326 3rdparty/libtiff/tif_getimage.c n_color = (1L << img->bitspersample); img 327 3rdparty/libtiff/tif_getimage.c img->redcmap = (uint16 *) _TIFFmalloc(sizeof(uint16)*n_color); img 328 3rdparty/libtiff/tif_getimage.c img->greencmap = (uint16 *) _TIFFmalloc(sizeof(uint16)*n_color); img 329 3rdparty/libtiff/tif_getimage.c img->bluecmap = (uint16 *) _TIFFmalloc(sizeof(uint16)*n_color); img 330 3rdparty/libtiff/tif_getimage.c if( !img->redcmap || !img->greencmap || !img->bluecmap ) { img 335 3rdparty/libtiff/tif_getimage.c _TIFFmemcpy( img->redcmap, red_orig, n_color * 2 ); img 336 3rdparty/libtiff/tif_getimage.c _TIFFmemcpy( img->greencmap, green_orig, n_color * 2 ); img 337 3rdparty/libtiff/tif_getimage.c _TIFFmemcpy( img->bluecmap, blue_orig, n_color * 2 ); img 343 3rdparty/libtiff/tif_getimage.c && img->samplesperpixel != 1 img 344 3rdparty/libtiff/tif_getimage.c && img->bitspersample < 8 ) { img 348 3rdparty/libtiff/tif_getimage.c photoTag, img->photometric, img 349 3rdparty/libtiff/tif_getimage.c "Samples/pixel", img->samplesperpixel, img 350 3rdparty/libtiff/tif_getimage.c img->bitspersample); img 367 3rdparty/libtiff/tif_getimage.c img->photometric = PHOTOMETRIC_RGB; img 396 3rdparty/libtiff/tif_getimage.c if (img->samplesperpixel < 4) { img 398 3rdparty/libtiff/tif_getimage.c "Samples/pixel", img->samplesperpixel); img 410 3rdparty/libtiff/tif_getimage.c img->photometric = PHOTOMETRIC_MINISBLACK; /* little white lie */ img 411 3rdparty/libtiff/tif_getimage.c img->bitspersample = 8; img 425 3rdparty/libtiff/tif_getimage.c img->photometric = PHOTOMETRIC_RGB; /* little white lie */ img 426 3rdparty/libtiff/tif_getimage.c img->bitspersample = 8; img 432 3rdparty/libtiff/tif_getimage.c photoTag, img->photometric); img 435 3rdparty/libtiff/tif_getimage.c img->Map = NULL; img 436 3rdparty/libtiff/tif_getimage.c img->BWmap = NULL; img 437 3rdparty/libtiff/tif_getimage.c img->PALmap = NULL; img 438 3rdparty/libtiff/tif_getimage.c img->ycbcr = NULL; img 439 3rdparty/libtiff/tif_getimage.c img->cielab = NULL; img 440 3rdparty/libtiff/tif_getimage.c img->UaToAa = NULL; img 441 3rdparty/libtiff/tif_getimage.c img->Bitdepth16To8 = NULL; img 442 3rdparty/libtiff/tif_getimage.c TIFFGetField(tif, TIFFTAG_IMAGEWIDTH, &img->width); img 443 3rdparty/libtiff/tif_getimage.c TIFFGetField(tif, TIFFTAG_IMAGELENGTH, &img->height); img 444 3rdparty/libtiff/tif_getimage.c TIFFGetFieldDefaulted(tif, TIFFTAG_ORIENTATION, &img->orientation); img 445 3rdparty/libtiff/tif_getimage.c img->isContig = img 446 3rdparty/libtiff/tif_getimage.c !(planarconfig == PLANARCONFIG_SEPARATE && img->samplesperpixel > 1); img 447 3rdparty/libtiff/tif_getimage.c if (img->isContig) { img 448 3rdparty/libtiff/tif_getimage.c if (!PickContigCase(img)) { img 453 3rdparty/libtiff/tif_getimage.c if (!PickSeparateCase(img)) { img 461 3rdparty/libtiff/tif_getimage.c _TIFFfree( img->redcmap ); img 462 3rdparty/libtiff/tif_getimage.c _TIFFfree( img->greencmap ); img 463 3rdparty/libtiff/tif_getimage.c _TIFFfree( img->bluecmap ); img 464 3rdparty/libtiff/tif_getimage.c img->redcmap = img->greencmap = img->bluecmap = NULL; img 469 3rdparty/libtiff/tif_getimage.c TIFFRGBAImageGet(TIFFRGBAImage* img, uint32* raster, uint32 w, uint32 h) img 471 3rdparty/libtiff/tif_getimage.c if (img->get == NULL) { img 472 3rdparty/libtiff/tif_getimage.c TIFFErrorExt(img->tif->tif_clientdata, TIFFFileName(img->tif), "No \"get\" routine setup"); img 475 3rdparty/libtiff/tif_getimage.c if (img->put.any == NULL) { img 476 3rdparty/libtiff/tif_getimage.c TIFFErrorExt(img->tif->tif_clientdata, TIFFFileName(img->tif), img 480 3rdparty/libtiff/tif_getimage.c return (*img->get)(img, raster, w, h); img 493 3rdparty/libtiff/tif_getimage.c TIFFRGBAImage img; img 496 3rdparty/libtiff/tif_getimage.c if (TIFFRGBAImageOK(tif, emsg) && TIFFRGBAImageBegin(&img, tif, stop, emsg)) { img 497 3rdparty/libtiff/tif_getimage.c img.req_orientation = orientation; img 499 3rdparty/libtiff/tif_getimage.c ok = TIFFRGBAImageGet(&img, raster+(rheight-img.height)*rwidth, img 500 3rdparty/libtiff/tif_getimage.c rwidth, img.height); img 501 3rdparty/libtiff/tif_getimage.c TIFFRGBAImageEnd(&img); img 522 3rdparty/libtiff/tif_getimage.c setorientation(TIFFRGBAImage* img) img 524 3rdparty/libtiff/tif_getimage.c switch (img->orientation) { img 527 3rdparty/libtiff/tif_getimage.c if (img->req_orientation == ORIENTATION_TOPRIGHT || img 528 3rdparty/libtiff/tif_getimage.c img->req_orientation == ORIENTATION_RIGHTTOP) img 530 3rdparty/libtiff/tif_getimage.c else if (img->req_orientation == ORIENTATION_BOTRIGHT || img 531 3rdparty/libtiff/tif_getimage.c img->req_orientation == ORIENTATION_RIGHTBOT) img 533 3rdparty/libtiff/tif_getimage.c else if (img->req_orientation == ORIENTATION_BOTLEFT || img 534 3rdparty/libtiff/tif_getimage.c img->req_orientation == ORIENTATION_LEFTBOT) img 540 3rdparty/libtiff/tif_getimage.c if (img->req_orientation == ORIENTATION_TOPLEFT || img 541 3rdparty/libtiff/tif_getimage.c img->req_orientation == ORIENTATION_LEFTTOP) img 543 3rdparty/libtiff/tif_getimage.c else if (img->req_orientation == ORIENTATION_BOTRIGHT || img 544 3rdparty/libtiff/tif_getimage.c img->req_orientation == ORIENTATION_RIGHTBOT) img 546 3rdparty/libtiff/tif_getimage.c else if (img->req_orientation == ORIENTATION_BOTLEFT || img 547 3rdparty/libtiff/tif_getimage.c img->req_orientation == ORIENTATION_LEFTBOT) img 553 3rdparty/libtiff/tif_getimage.c if (img->req_orientation == ORIENTATION_TOPLEFT || img 554 3rdparty/libtiff/tif_getimage.c img->req_orientation == ORIENTATION_LEFTTOP) img 556 3rdparty/libtiff/tif_getimage.c else if (img->req_orientation == ORIENTATION_TOPRIGHT || img 557 3rdparty/libtiff/tif_getimage.c img->req_orientation == ORIENTATION_RIGHTTOP) img 559 3rdparty/libtiff/tif_getimage.c else if (img->req_orientation == ORIENTATION_BOTLEFT || img 560 3rdparty/libtiff/tif_getimage.c img->req_orientation == ORIENTATION_LEFTBOT) img 566 3rdparty/libtiff/tif_getimage.c if (img->req_orientation == ORIENTATION_TOPLEFT || img 567 3rdparty/libtiff/tif_getimage.c img->req_orientation == ORIENTATION_LEFTTOP) img 569 3rdparty/libtiff/tif_getimage.c else if (img->req_orientation == ORIENTATION_TOPRIGHT || img 570 3rdparty/libtiff/tif_getimage.c img->req_orientation == ORIENTATION_RIGHTTOP) img 572 3rdparty/libtiff/tif_getimage.c else if (img->req_orientation == ORIENTATION_BOTRIGHT || img 573 3rdparty/libtiff/tif_getimage.c img->req_orientation == ORIENTATION_RIGHTBOT) img 589 3rdparty/libtiff/tif_getimage.c gtTileContig(TIFFRGBAImage* img, uint32* raster, uint32 w, uint32 h) img 591 3rdparty/libtiff/tif_getimage.c TIFF* tif = img->tif; img 592 3rdparty/libtiff/tif_getimage.c tileContigRoutine put = img->put.contig; img 610 3rdparty/libtiff/tif_getimage.c flip = setorientation(img); img 622 3rdparty/libtiff/tif_getimage.c rowstoread = th - (row + img->row_offset) % th; img 626 3rdparty/libtiff/tif_getimage.c if (TIFFReadTile(tif, buf, col+img->col_offset, img 627 3rdparty/libtiff/tif_getimage.c row+img->row_offset, 0, 0)==(tmsize_t)(-1) && img->stoponerr) img 633 3rdparty/libtiff/tif_getimage.c pos = ((row+img->row_offset) % th) * TIFFTileRowSize(tif); img 643 3rdparty/libtiff/tif_getimage.c (*put)(img, raster+y*w+col, col, y, img 648 3rdparty/libtiff/tif_getimage.c (*put)(img, raster+y*w+col, col, y, tw, nrow, 0, toskew, buf + pos); img 682 3rdparty/libtiff/tif_getimage.c gtTileSeparate(TIFFRGBAImage* img, uint32* raster, uint32 w, uint32 h) img 684 3rdparty/libtiff/tif_getimage.c TIFF* tif = img->tif; img 685 3rdparty/libtiff/tif_getimage.c tileSeparateRoutine put = img->put.separate; img 697 3rdparty/libtiff/tif_getimage.c int alpha = img->alpha; img 721 3rdparty/libtiff/tif_getimage.c flip = setorientation(img); img 731 3rdparty/libtiff/tif_getimage.c switch( img->photometric ) img 747 3rdparty/libtiff/tif_getimage.c rowstoread = th - (row + img->row_offset) % th; img 751 3rdparty/libtiff/tif_getimage.c if (TIFFReadTile(tif, p0, col+img->col_offset, img 752 3rdparty/libtiff/tif_getimage.c row+img->row_offset,0,0)==(tmsize_t)(-1) && img->stoponerr) img 758 3rdparty/libtiff/tif_getimage.c && TIFFReadTile(tif, p1, col+img->col_offset, img 759 3rdparty/libtiff/tif_getimage.c row+img->row_offset,0,1) == (tmsize_t)(-1) img 760 3rdparty/libtiff/tif_getimage.c && img->stoponerr) img 766 3rdparty/libtiff/tif_getimage.c && TIFFReadTile(tif, p2, col+img->col_offset, img 767 3rdparty/libtiff/tif_getimage.c row+img->row_offset,0,2) == (tmsize_t)(-1) img 768 3rdparty/libtiff/tif_getimage.c && img->stoponerr) img 774 3rdparty/libtiff/tif_getimage.c && TIFFReadTile(tif,pa,col+img->col_offset, img 775 3rdparty/libtiff/tif_getimage.c row+img->row_offset,0,colorchannels) == (tmsize_t)(-1) img 776 3rdparty/libtiff/tif_getimage.c && img->stoponerr) img 782 3rdparty/libtiff/tif_getimage.c pos = ((row+img->row_offset) % th) * TIFFTileRowSize(tif); img 792 3rdparty/libtiff/tif_getimage.c (*put)(img, raster+y*w+col, col, y, img 796 3rdparty/libtiff/tif_getimage.c (*put)(img, raster+y*w+col, col, y, img 831 3rdparty/libtiff/tif_getimage.c gtStripContig(TIFFRGBAImage* img, uint32* raster, uint32 w, uint32 h) img 833 3rdparty/libtiff/tif_getimage.c TIFF* tif = img->tif; img 834 3rdparty/libtiff/tif_getimage.c tileContigRoutine put = img->put.contig; img 840 3rdparty/libtiff/tif_getimage.c uint32 imagewidth = img->width; img 852 3rdparty/libtiff/tif_getimage.c flip = setorientation(img); img 867 3rdparty/libtiff/tif_getimage.c rowstoread = rowsperstrip - (row + img->row_offset) % rowsperstrip; img 873 3rdparty/libtiff/tif_getimage.c TIFFComputeStrip(tif,row+img->row_offset, 0), img 875 3rdparty/libtiff/tif_getimage.c ((row + img->row_offset)%rowsperstrip + nrowsub) * scanline)==(tmsize_t)(-1) img 876 3rdparty/libtiff/tif_getimage.c && img->stoponerr) img 882 3rdparty/libtiff/tif_getimage.c pos = ((row + img->row_offset) % rowsperstrip) * scanline; img 883 3rdparty/libtiff/tif_getimage.c (*put)(img, raster+y*w, 0, y, w, nrow, fromskew, toskew, buf + pos); img 914 3rdparty/libtiff/tif_getimage.c gtStripSeparate(TIFFRGBAImage* img, uint32* raster, uint32 w, uint32 h) img 916 3rdparty/libtiff/tif_getimage.c TIFF* tif = img->tif; img 917 3rdparty/libtiff/tif_getimage.c tileSeparateRoutine put = img->put.separate; img 924 3rdparty/libtiff/tif_getimage.c uint32 imagewidth = img->width; img 928 3rdparty/libtiff/tif_getimage.c int alpha = img->alpha; img 947 3rdparty/libtiff/tif_getimage.c flip = setorientation(img); img 957 3rdparty/libtiff/tif_getimage.c switch( img->photometric ) img 976 3rdparty/libtiff/tif_getimage.c rowstoread = rowsperstrip - (row + img->row_offset) % rowsperstrip; img 978 3rdparty/libtiff/tif_getimage.c offset_row = row + img->row_offset; img 980 3rdparty/libtiff/tif_getimage.c p0, ((row + img->row_offset)%rowsperstrip + nrow) * scanline)==(tmsize_t)(-1) img 981 3rdparty/libtiff/tif_getimage.c && img->stoponerr) img 988 3rdparty/libtiff/tif_getimage.c p1, ((row + img->row_offset)%rowsperstrip + nrow) * scanline) == (tmsize_t)(-1) img 989 3rdparty/libtiff/tif_getimage.c && img->stoponerr) img 996 3rdparty/libtiff/tif_getimage.c p2, ((row + img->row_offset)%rowsperstrip + nrow) * scanline) == (tmsize_t)(-1) img 997 3rdparty/libtiff/tif_getimage.c && img->stoponerr) img 1005 3rdparty/libtiff/tif_getimage.c pa, ((row + img->row_offset)%rowsperstrip + nrow) * scanline)==(tmsize_t)(-1) img 1006 3rdparty/libtiff/tif_getimage.c && img->stoponerr) img 1013 3rdparty/libtiff/tif_getimage.c pos = ((row + img->row_offset) % rowsperstrip) * scanline; img 1014 3rdparty/libtiff/tif_getimage.c (*put)(img, raster+y*w, 0, y, w, nrow, fromskew, toskew, p0 + pos, p1 + pos, img 1112 3rdparty/libtiff/tif_getimage.c TIFFRGBAImage* img, \ img 1125 3rdparty/libtiff/tif_getimage.c uint32** PALmap = img->PALmap; img 1126 3rdparty/libtiff/tif_getimage.c int samplesperpixel = img->samplesperpixel; img 1145 3rdparty/libtiff/tif_getimage.c uint32** PALmap = img->PALmap; img 1162 3rdparty/libtiff/tif_getimage.c uint32** PALmap = img->PALmap; img 1179 3rdparty/libtiff/tif_getimage.c uint32** PALmap = img->PALmap; img 1196 3rdparty/libtiff/tif_getimage.c int samplesperpixel = img->samplesperpixel; img 1197 3rdparty/libtiff/tif_getimage.c uint32** BWmap = img->BWmap; img 1216 3rdparty/libtiff/tif_getimage.c int samplesperpixel = img->samplesperpixel; img 1217 3rdparty/libtiff/tif_getimage.c uint32** BWmap = img->BWmap; img 1236 3rdparty/libtiff/tif_getimage.c int samplesperpixel = img->samplesperpixel; img 1237 3rdparty/libtiff/tif_getimage.c uint32** BWmap = img->BWmap; img 1261 3rdparty/libtiff/tif_getimage.c uint32** BWmap = img->BWmap; img 1278 3rdparty/libtiff/tif_getimage.c uint32** BWmap = img->BWmap; img 1295 3rdparty/libtiff/tif_getimage.c uint32** BWmap = img->BWmap; img 1312 3rdparty/libtiff/tif_getimage.c int samplesperpixel = img->samplesperpixel; img 1331 3rdparty/libtiff/tif_getimage.c int samplesperpixel = img->samplesperpixel; img 1350 3rdparty/libtiff/tif_getimage.c int samplesperpixel = img->samplesperpixel; img 1358 3rdparty/libtiff/tif_getimage.c m = img->UaToAa+(a<<8); img 1375 3rdparty/libtiff/tif_getimage.c int samplesperpixel = img->samplesperpixel; img 1381 3rdparty/libtiff/tif_getimage.c *cp++ = PACK(img->Bitdepth16To8[wp[0]], img 1382 3rdparty/libtiff/tif_getimage.c img->Bitdepth16To8[wp[1]], img 1383 3rdparty/libtiff/tif_getimage.c img->Bitdepth16To8[wp[2]]); img 1397 3rdparty/libtiff/tif_getimage.c int samplesperpixel = img->samplesperpixel; img 1403 3rdparty/libtiff/tif_getimage.c *cp++ = PACK4(img->Bitdepth16To8[wp[0]], img 1404 3rdparty/libtiff/tif_getimage.c img->Bitdepth16To8[wp[1]], img 1405 3rdparty/libtiff/tif_getimage.c img->Bitdepth16To8[wp[2]], img 1406 3rdparty/libtiff/tif_getimage.c img->Bitdepth16To8[wp[3]]); img 1420 3rdparty/libtiff/tif_getimage.c int samplesperpixel = img->samplesperpixel; img 1428 3rdparty/libtiff/tif_getimage.c a = img->Bitdepth16To8[wp[3]]; img 1429 3rdparty/libtiff/tif_getimage.c m = img->UaToAa+(a<<8); img 1430 3rdparty/libtiff/tif_getimage.c r = m[img->Bitdepth16To8[wp[0]]]; img 1431 3rdparty/libtiff/tif_getimage.c g = m[img->Bitdepth16To8[wp[1]]]; img 1432 3rdparty/libtiff/tif_getimage.c b = m[img->Bitdepth16To8[wp[2]]]; img 1448 3rdparty/libtiff/tif_getimage.c int samplesperpixel = img->samplesperpixel; img 1473 3rdparty/libtiff/tif_getimage.c int samplesperpixel = img->samplesperpixel; img 1474 3rdparty/libtiff/tif_getimage.c TIFFRGBValue* Map = img->Map; img 1495 3rdparty/libtiff/tif_getimage.c TIFFRGBAImage* img,\ img 1508 3rdparty/libtiff/tif_getimage.c (void) img; (void) x; (void) y; (void) a; img 1521 3rdparty/libtiff/tif_getimage.c (void) img; (void) x; (void) y; img 1534 3rdparty/libtiff/tif_getimage.c (void) img; (void) y; img 1554 3rdparty/libtiff/tif_getimage.c (void) img; (void) y; img 1560 3rdparty/libtiff/tif_getimage.c m = img->UaToAa+(av<<8); img 1579 3rdparty/libtiff/tif_getimage.c (void) img; (void) y; (void) a; img 1582 3rdparty/libtiff/tif_getimage.c *cp++ = PACK(img->Bitdepth16To8[*wr++], img 1583 3rdparty/libtiff/tif_getimage.c img->Bitdepth16To8[*wg++], img 1584 3rdparty/libtiff/tif_getimage.c img->Bitdepth16To8[*wb++]); img 1599 3rdparty/libtiff/tif_getimage.c (void) img; (void) y; img 1602 3rdparty/libtiff/tif_getimage.c *cp++ = PACK4(img->Bitdepth16To8[*wr++], img 1603 3rdparty/libtiff/tif_getimage.c img->Bitdepth16To8[*wg++], img 1604 3rdparty/libtiff/tif_getimage.c img->Bitdepth16To8[*wb++], img 1605 3rdparty/libtiff/tif_getimage.c img->Bitdepth16To8[*wa++]); img 1620 3rdparty/libtiff/tif_getimage.c (void) img; (void) y; img 1625 3rdparty/libtiff/tif_getimage.c a = img->Bitdepth16To8[*wa++]; img 1626 3rdparty/libtiff/tif_getimage.c m = img->UaToAa+(a<<8); img 1627 3rdparty/libtiff/tif_getimage.c r = m[img->Bitdepth16To8[*wr++]]; img 1628 3rdparty/libtiff/tif_getimage.c g = m[img->Bitdepth16To8[*wg++]]; img 1629 3rdparty/libtiff/tif_getimage.c b = m[img->Bitdepth16To8[*wb++]]; img 1648 3rdparty/libtiff/tif_getimage.c TIFFCIELabToXYZ(img->cielab, img 1653 3rdparty/libtiff/tif_getimage.c TIFFXYZToRGB(img->cielab, X, Y, Z, &r, &g, &b); img 1668 3rdparty/libtiff/tif_getimage.c TIFFYCbCrtoRGB(img->ycbcr, (Y), Cb, Cr, &r, &g, &b); \ img 1682 3rdparty/libtiff/tif_getimage.c TIFFRGBAImage* img, img 2133 3rdparty/libtiff/tif_getimage.c TIFFYCbCrtoRGB(img->ycbcr,*r++,*g++,*b++,&dr,&dg,&db); img 2143 3rdparty/libtiff/tif_getimage.c initYCbCrConversion(TIFFRGBAImage* img) img 2149 3rdparty/libtiff/tif_getimage.c if (img->ycbcr == NULL) { img 2150 3rdparty/libtiff/tif_getimage.c img->ycbcr = (TIFFYCbCrToRGB*) _TIFFmalloc( img 2156 3rdparty/libtiff/tif_getimage.c if (img->ycbcr == NULL) { img 2157 3rdparty/libtiff/tif_getimage.c TIFFErrorExt(img->tif->tif_clientdata, module, img 2163 3rdparty/libtiff/tif_getimage.c TIFFGetFieldDefaulted(img->tif, TIFFTAG_YCBCRCOEFFICIENTS, &luma); img 2164 3rdparty/libtiff/tif_getimage.c TIFFGetFieldDefaulted(img->tif, TIFFTAG_REFERENCEBLACKWHITE, img 2166 3rdparty/libtiff/tif_getimage.c if (TIFFYCbCrToRGBInit(img->ycbcr, luma, refBlackWhite) < 0) img 2172 3rdparty/libtiff/tif_getimage.c initCIELabConversion(TIFFRGBAImage* img) img 2179 3rdparty/libtiff/tif_getimage.c if (!img->cielab) { img 2180 3rdparty/libtiff/tif_getimage.c img->cielab = (TIFFCIELabToRGB *) img 2182 3rdparty/libtiff/tif_getimage.c if (!img->cielab) { img 2183 3rdparty/libtiff/tif_getimage.c TIFFErrorExt(img->tif->tif_clientdata, module, img 2189 3rdparty/libtiff/tif_getimage.c TIFFGetFieldDefaulted(img->tif, TIFFTAG_WHITEPOINT, &whitePoint); img 2194 3rdparty/libtiff/tif_getimage.c if (TIFFCIELabToRGBInit(img->cielab, &display_sRGB, refWhite) < 0) { img 2195 3rdparty/libtiff/tif_getimage.c TIFFErrorExt(img->tif->tif_clientdata, module, img 2197 3rdparty/libtiff/tif_getimage.c _TIFFfree(img->cielab); img 2212 3rdparty/libtiff/tif_getimage.c makebwmap(TIFFRGBAImage* img) img 2214 3rdparty/libtiff/tif_getimage.c TIFFRGBValue* Map = img->Map; img 2215 3rdparty/libtiff/tif_getimage.c int bitspersample = img->bitspersample; img 2223 3rdparty/libtiff/tif_getimage.c img->BWmap = (uint32**) _TIFFmalloc( img 2225 3rdparty/libtiff/tif_getimage.c if (img->BWmap == NULL) { img 2226 3rdparty/libtiff/tif_getimage.c TIFFErrorExt(img->tif->tif_clientdata, TIFFFileName(img->tif), "No space for B&W mapping table"); img 2229 3rdparty/libtiff/tif_getimage.c p = (uint32*)(img->BWmap + 256); img 2232 3rdparty/libtiff/tif_getimage.c img->BWmap[i] = p; img 2271 3rdparty/libtiff/tif_getimage.c setupMap(TIFFRGBAImage* img) img 2275 3rdparty/libtiff/tif_getimage.c range = (int32)((1L<<img->bitspersample)-1); img 2278 3rdparty/libtiff/tif_getimage.c if( img->bitspersample == 16 ) img 2281 3rdparty/libtiff/tif_getimage.c img->Map = (TIFFRGBValue*) _TIFFmalloc((range+1) * sizeof (TIFFRGBValue)); img 2282 3rdparty/libtiff/tif_getimage.c if (img->Map == NULL) { img 2283 3rdparty/libtiff/tif_getimage.c TIFFErrorExt(img->tif->tif_clientdata, TIFFFileName(img->tif), img 2287 3rdparty/libtiff/tif_getimage.c if (img->photometric == PHOTOMETRIC_MINISWHITE) { img 2289 3rdparty/libtiff/tif_getimage.c img->Map[x] = (TIFFRGBValue) (((range - x) * 255) / range); img 2292 3rdparty/libtiff/tif_getimage.c img->Map[x] = (TIFFRGBValue) ((x * 255) / range); img 2294 3rdparty/libtiff/tif_getimage.c if (img->bitspersample <= 16 && img 2295 3rdparty/libtiff/tif_getimage.c (img->photometric == PHOTOMETRIC_MINISBLACK || img 2296 3rdparty/libtiff/tif_getimage.c img->photometric == PHOTOMETRIC_MINISWHITE)) { img 2301 3rdparty/libtiff/tif_getimage.c if (!makebwmap(img)) img 2304 3rdparty/libtiff/tif_getimage.c _TIFFfree(img->Map), img->Map = NULL; img 2310 3rdparty/libtiff/tif_getimage.c checkcmap(TIFFRGBAImage* img) img 2312 3rdparty/libtiff/tif_getimage.c uint16* r = img->redcmap; img 2313 3rdparty/libtiff/tif_getimage.c uint16* g = img->greencmap; img 2314 3rdparty/libtiff/tif_getimage.c uint16* b = img->bluecmap; img 2315 3rdparty/libtiff/tif_getimage.c long n = 1L<<img->bitspersample; img 2324 3rdparty/libtiff/tif_getimage.c cvtcmap(TIFFRGBAImage* img) img 2326 3rdparty/libtiff/tif_getimage.c uint16* r = img->redcmap; img 2327 3rdparty/libtiff/tif_getimage.c uint16* g = img->greencmap; img 2328 3rdparty/libtiff/tif_getimage.c uint16* b = img->bluecmap; img 2331 3rdparty/libtiff/tif_getimage.c for (i = (1L<<img->bitspersample)-1; i >= 0; i--) { img 2348 3rdparty/libtiff/tif_getimage.c makecmap(TIFFRGBAImage* img) img 2350 3rdparty/libtiff/tif_getimage.c int bitspersample = img->bitspersample; img 2352 3rdparty/libtiff/tif_getimage.c uint16* r = img->redcmap; img 2353 3rdparty/libtiff/tif_getimage.c uint16* g = img->greencmap; img 2354 3rdparty/libtiff/tif_getimage.c uint16* b = img->bluecmap; img 2358 3rdparty/libtiff/tif_getimage.c img->PALmap = (uint32**) _TIFFmalloc( img 2360 3rdparty/libtiff/tif_getimage.c if (img->PALmap == NULL) { img 2361 3rdparty/libtiff/tif_getimage.c TIFFErrorExt(img->tif->tif_clientdata, TIFFFileName(img->tif), "No space for Palette mapping table"); img 2364 3rdparty/libtiff/tif_getimage.c p = (uint32*)(img->PALmap + 256); img 2367 3rdparty/libtiff/tif_getimage.c img->PALmap[i] = p; img 2404 3rdparty/libtiff/tif_getimage.c buildMap(TIFFRGBAImage* img) img 2406 3rdparty/libtiff/tif_getimage.c switch (img->photometric) { img 2410 3rdparty/libtiff/tif_getimage.c if (img->bitspersample == 8) img 2415 3rdparty/libtiff/tif_getimage.c if (!setupMap(img)) img 2423 3rdparty/libtiff/tif_getimage.c if (checkcmap(img) == 16) img 2424 3rdparty/libtiff/tif_getimage.c cvtcmap(img); img 2426 3rdparty/libtiff/tif_getimage.c TIFFWarningExt(img->tif->tif_clientdata, TIFFFileName(img->tif), "Assuming 8-bit colormap"); img 2431 3rdparty/libtiff/tif_getimage.c if (img->bitspersample <= 8 && !makecmap(img)) img 2442 3rdparty/libtiff/tif_getimage.c PickContigCase(TIFFRGBAImage* img) img 2444 3rdparty/libtiff/tif_getimage.c img->get = TIFFIsTiled(img->tif) ? gtTileContig : gtStripContig; img 2445 3rdparty/libtiff/tif_getimage.c img->put.contig = NULL; img 2446 3rdparty/libtiff/tif_getimage.c switch (img->photometric) { img 2448 3rdparty/libtiff/tif_getimage.c switch (img->bitspersample) { img 2450 3rdparty/libtiff/tif_getimage.c if (img->alpha == EXTRASAMPLE_ASSOCALPHA) img 2451 3rdparty/libtiff/tif_getimage.c img->put.contig = putRGBAAcontig8bittile; img 2452 3rdparty/libtiff/tif_getimage.c else if (img->alpha == EXTRASAMPLE_UNASSALPHA) img 2454 3rdparty/libtiff/tif_getimage.c if (BuildMapUaToAa(img)) img 2455 3rdparty/libtiff/tif_getimage.c img->put.contig = putRGBUAcontig8bittile; img 2458 3rdparty/libtiff/tif_getimage.c img->put.contig = putRGBcontig8bittile; img 2461 3rdparty/libtiff/tif_getimage.c if (img->alpha == EXTRASAMPLE_ASSOCALPHA) img 2463 3rdparty/libtiff/tif_getimage.c if (BuildMapBitdepth16To8(img)) img 2464 3rdparty/libtiff/tif_getimage.c img->put.contig = putRGBAAcontig16bittile; img 2466 3rdparty/libtiff/tif_getimage.c else if (img->alpha == EXTRASAMPLE_UNASSALPHA) img 2468 3rdparty/libtiff/tif_getimage.c if (BuildMapBitdepth16To8(img) && img 2469 3rdparty/libtiff/tif_getimage.c BuildMapUaToAa(img)) img 2470 3rdparty/libtiff/tif_getimage.c img->put.contig = putRGBUAcontig16bittile; img 2474 3rdparty/libtiff/tif_getimage.c if (BuildMapBitdepth16To8(img)) img 2475 3rdparty/libtiff/tif_getimage.c img->put.contig = putRGBcontig16bittile; img 2481 3rdparty/libtiff/tif_getimage.c if (buildMap(img)) { img 2482 3rdparty/libtiff/tif_getimage.c if (img->bitspersample == 8) { img 2483 3rdparty/libtiff/tif_getimage.c if (!img->Map) img 2484 3rdparty/libtiff/tif_getimage.c img->put.contig = putRGBcontig8bitCMYKtile; img 2486 3rdparty/libtiff/tif_getimage.c img->put.contig = putRGBcontig8bitCMYKMaptile; img 2491 3rdparty/libtiff/tif_getimage.c if (buildMap(img)) { img 2492 3rdparty/libtiff/tif_getimage.c switch (img->bitspersample) { img 2494 3rdparty/libtiff/tif_getimage.c img->put.contig = put8bitcmaptile; img 2497 3rdparty/libtiff/tif_getimage.c img->put.contig = put4bitcmaptile; img 2500 3rdparty/libtiff/tif_getimage.c img->put.contig = put2bitcmaptile; img 2503 3rdparty/libtiff/tif_getimage.c img->put.contig = put1bitcmaptile; img 2510 3rdparty/libtiff/tif_getimage.c if (buildMap(img)) { img 2511 3rdparty/libtiff/tif_getimage.c switch (img->bitspersample) { img 2513 3rdparty/libtiff/tif_getimage.c img->put.contig = put16bitbwtile; img 2516 3rdparty/libtiff/tif_getimage.c if (img->alpha && img->samplesperpixel == 2) img 2517 3rdparty/libtiff/tif_getimage.c img->put.contig = putagreytile; img 2519 3rdparty/libtiff/tif_getimage.c img->put.contig = putgreytile; img 2522 3rdparty/libtiff/tif_getimage.c img->put.contig = put4bitbwtile; img 2525 3rdparty/libtiff/tif_getimage.c img->put.contig = put2bitbwtile; img 2528 3rdparty/libtiff/tif_getimage.c img->put.contig = put1bitbwtile; img 2534 3rdparty/libtiff/tif_getimage.c if ((img->bitspersample==8) && (img->samplesperpixel==3)) img 2536 3rdparty/libtiff/tif_getimage.c if (initYCbCrConversion(img)!=0) img 2549 3rdparty/libtiff/tif_getimage.c TIFFGetFieldDefaulted(img->tif, TIFFTAG_YCBCRSUBSAMPLING, &SubsamplingHor, &SubsamplingVer); img 2552 3rdparty/libtiff/tif_getimage.c img->put.contig = putcontig8bitYCbCr44tile; img 2555 3rdparty/libtiff/tif_getimage.c img->put.contig = putcontig8bitYCbCr42tile; img 2558 3rdparty/libtiff/tif_getimage.c img->put.contig = putcontig8bitYCbCr41tile; img 2561 3rdparty/libtiff/tif_getimage.c img->put.contig = putcontig8bitYCbCr22tile; img 2564 3rdparty/libtiff/tif_getimage.c img->put.contig = putcontig8bitYCbCr21tile; img 2567 3rdparty/libtiff/tif_getimage.c img->put.contig = putcontig8bitYCbCr12tile; img 2570 3rdparty/libtiff/tif_getimage.c img->put.contig = putcontig8bitYCbCr11tile; img 2577 3rdparty/libtiff/tif_getimage.c if (buildMap(img)) { img 2578 3rdparty/libtiff/tif_getimage.c if (img->bitspersample == 8) img 2579 3rdparty/libtiff/tif_getimage.c img->put.contig = initCIELabConversion(img); img 2583 3rdparty/libtiff/tif_getimage.c return ((img->get!=NULL) && (img->put.contig!=NULL)); img 2593 3rdparty/libtiff/tif_getimage.c PickSeparateCase(TIFFRGBAImage* img) img 2595 3rdparty/libtiff/tif_getimage.c img->get = TIFFIsTiled(img->tif) ? gtTileSeparate : gtStripSeparate; img 2596 3rdparty/libtiff/tif_getimage.c img->put.separate = NULL; img 2597 3rdparty/libtiff/tif_getimage.c switch (img->photometric) { img 2602 3rdparty/libtiff/tif_getimage.c switch (img->bitspersample) { img 2604 3rdparty/libtiff/tif_getimage.c if (img->alpha == EXTRASAMPLE_ASSOCALPHA) img 2605 3rdparty/libtiff/tif_getimage.c img->put.separate = putRGBAAseparate8bittile; img 2606 3rdparty/libtiff/tif_getimage.c else if (img->alpha == EXTRASAMPLE_UNASSALPHA) img 2608 3rdparty/libtiff/tif_getimage.c if (BuildMapUaToAa(img)) img 2609 3rdparty/libtiff/tif_getimage.c img->put.separate = putRGBUAseparate8bittile; img 2612 3rdparty/libtiff/tif_getimage.c img->put.separate = putRGBseparate8bittile; img 2615 3rdparty/libtiff/tif_getimage.c if (img->alpha == EXTRASAMPLE_ASSOCALPHA) img 2617 3rdparty/libtiff/tif_getimage.c if (BuildMapBitdepth16To8(img)) img 2618 3rdparty/libtiff/tif_getimage.c img->put.separate = putRGBAAseparate16bittile; img 2620 3rdparty/libtiff/tif_getimage.c else if (img->alpha == EXTRASAMPLE_UNASSALPHA) img 2622 3rdparty/libtiff/tif_getimage.c if (BuildMapBitdepth16To8(img) && img 2623 3rdparty/libtiff/tif_getimage.c BuildMapUaToAa(img)) img 2624 3rdparty/libtiff/tif_getimage.c img->put.separate = putRGBUAseparate16bittile; img 2628 3rdparty/libtiff/tif_getimage.c if (BuildMapBitdepth16To8(img)) img 2629 3rdparty/libtiff/tif_getimage.c img->put.separate = putRGBseparate16bittile; img 2635 3rdparty/libtiff/tif_getimage.c if (img->bitspersample == 8 && img->samplesperpixel == 4) img 2637 3rdparty/libtiff/tif_getimage.c img->alpha = 1; // Not alpha, but seems like the only way to get 4th band img 2638 3rdparty/libtiff/tif_getimage.c img->put.separate = putCMYKseparate8bittile; img 2642 3rdparty/libtiff/tif_getimage.c if ((img->bitspersample==8) && (img->samplesperpixel==3)) img 2644 3rdparty/libtiff/tif_getimage.c if (initYCbCrConversion(img)!=0) img 2647 3rdparty/libtiff/tif_getimage.c TIFFGetFieldDefaulted(img->tif, TIFFTAG_YCBCRSUBSAMPLING, &hs, &vs); img 2650 3rdparty/libtiff/tif_getimage.c img->put.separate = putseparate8bitYCbCr11tile; img 2658 3rdparty/libtiff/tif_getimage.c return ((img->get!=NULL) && (img->put.separate!=NULL)); img 2662 3rdparty/libtiff/tif_getimage.c BuildMapUaToAa(TIFFRGBAImage* img) img 2667 3rdparty/libtiff/tif_getimage.c assert(img->UaToAa==NULL); img 2668 3rdparty/libtiff/tif_getimage.c img->UaToAa=_TIFFmalloc(65536); img 2669 3rdparty/libtiff/tif_getimage.c if (img->UaToAa==NULL) img 2671 3rdparty/libtiff/tif_getimage.c TIFFErrorExt(img->tif->tif_clientdata,module,"Out of memory"); img 2674 3rdparty/libtiff/tif_getimage.c m=img->UaToAa; img 2684 3rdparty/libtiff/tif_getimage.c BuildMapBitdepth16To8(TIFFRGBAImage* img) img 2689 3rdparty/libtiff/tif_getimage.c assert(img->Bitdepth16To8==NULL); img 2690 3rdparty/libtiff/tif_getimage.c img->Bitdepth16To8=_TIFFmalloc(65536); img 2691 3rdparty/libtiff/tif_getimage.c if (img->Bitdepth16To8==NULL) img 2693 3rdparty/libtiff/tif_getimage.c TIFFErrorExt(img->tif->tif_clientdata,module,"Out of memory"); img 2696 3rdparty/libtiff/tif_getimage.c m=img->Bitdepth16To8; img 2716 3rdparty/libtiff/tif_getimage.c TIFFRGBAImage img; img 2735 3rdparty/libtiff/tif_getimage.c if (TIFFRGBAImageOK(tif, emsg) && TIFFRGBAImageBegin(&img, tif, 0, emsg)) { img 2737 3rdparty/libtiff/tif_getimage.c img.row_offset = row; img 2738 3rdparty/libtiff/tif_getimage.c img.col_offset = 0; img 2740 3rdparty/libtiff/tif_getimage.c if( row + rowsperstrip > img.height ) img 2741 3rdparty/libtiff/tif_getimage.c rows_to_read = img.height - row; img 2745 3rdparty/libtiff/tif_getimage.c ok = TIFFRGBAImageGet(&img, raster, img.width, rows_to_read ); img 2747 3rdparty/libtiff/tif_getimage.c TIFFRGBAImageEnd(&img); img 2767 3rdparty/libtiff/tif_getimage.c TIFFRGBAImage img; img 2800 3rdparty/libtiff/tif_getimage.c || !TIFFRGBAImageBegin(&img, tif, 0, emsg)) { img 2812 3rdparty/libtiff/tif_getimage.c if( row + tile_ysize > img.height ) img 2813 3rdparty/libtiff/tif_getimage.c read_ysize = img.height - row; img 2817 3rdparty/libtiff/tif_getimage.c if( col + tile_xsize > img.width ) img 2818 3rdparty/libtiff/tif_getimage.c read_xsize = img.width - col; img 2826 3rdparty/libtiff/tif_getimage.c img.row_offset = row; img 2827 3rdparty/libtiff/tif_getimage.c img.col_offset = col; img 2829 3rdparty/libtiff/tif_getimage.c ok = TIFFRGBAImageGet(&img, raster, read_xsize, read_ysize ); img 2831 3rdparty/libtiff/tif_getimage.c TIFFRGBAImageEnd(&img); img 562 apps/createsamples/utility.cpp IplImage* img; img 587 apps/createsamples/utility.cpp CvMat img; img 682 apps/createsamples/utility.cpp data->img = cvCreateImage( cvSize( data->src->width + 2 * data->dx, img 685 apps/createsamples/utility.cpp data->maskimg = cvCloneImage( data->img ); img 708 apps/createsamples/utility.cpp IplImage* img; img 729 apps/createsamples/utility.cpp cvSet( data->img, cvScalar( data->bgcolor ) ); img 732 apps/createsamples/utility.cpp cvWarpPerspective( data->src, data->img, quad ); img 774 apps/createsamples/utility.cpp img = cvCreateImage( cvSize( bgimg->cols, bgimg->rows ), IPL_DEPTH_8U, 1 ); img 777 apps/createsamples/utility.cpp cvSetImageROI( data->img, roi ); img 778 apps/createsamples/utility.cpp cvResize( data->img, img ); img 779 apps/createsamples/utility.cpp cvResetImageROI( data->img ); img 786 apps/createsamples/utility.cpp for( r = 0; r < img->height; r++ ) img 788 apps/createsamples/utility.cpp for( c = 0; c < img->width; c++ ) img 790 apps/createsamples/utility.cpp pimg = (uchar*) img->imageData + r * img->widthStep + c; img 802 apps/createsamples/utility.cpp cvReleaseImage( &img ); img 825 apps/createsamples/utility.cpp if( data->img ) img 827 apps/createsamples/utility.cpp cvReleaseImage( &data->img ); img 941 apps/createsamples/utility.cpp reader->img = cvMat( 0, 0, CV_8UC1, NULL ); img 960 apps/createsamples/utility.cpp if( (*reader)->img.data.ptr != NULL ) img 962 apps/createsamples/utility.cpp cvFree( &((*reader)->img.data.ptr) ); img 972 apps/createsamples/utility.cpp IplImage* img = NULL; img 985 apps/createsamples/utility.cpp if( reader->img.data.ptr != NULL ) img 987 apps/createsamples/utility.cpp cvFree( &(reader->img.data.ptr) ); img 988 apps/createsamples/utility.cpp reader->img.data.ptr = NULL; img 1005 apps/createsamples/utility.cpp img = cvLoadImage( data->filename[data->last], 0 ); img 1006 apps/createsamples/utility.cpp if( !img ) img 1014 apps/createsamples/utility.cpp offset.x = MIN( offset.x, img->width - data->winsize.width ); img 1015 apps/createsamples/utility.cpp offset.y = MIN( offset.y, img->height - data->winsize.height ); img 1017 apps/createsamples/utility.cpp if( img != NULL && img->depth == IPL_DEPTH_8U && img->nChannels == 1 && img 1022 apps/createsamples/utility.cpp if( img != NULL ) img 1023 apps/createsamples/utility.cpp cvReleaseImage( &img ); img 1024 apps/createsamples/utility.cpp img = NULL; img 1027 apps/createsamples/utility.cpp if( img == NULL ) img 1038 apps/createsamples/utility.cpp datasize = sizeof( uchar ) * img->width * img->height; img 1039 apps/createsamples/utility.cpp reader->src = cvMat( img->height, img->width, CV_8UC1, (void*) cvAlloc( datasize ) ); img 1040 apps/createsamples/utility.cpp cvCopy( img, &reader->src, NULL ); img 1041 apps/createsamples/utility.cpp cvReleaseImage( &img ); img 1042 apps/createsamples/utility.cpp img = NULL; img 1052 apps/createsamples/utility.cpp reader->img = cvMat( (int) (reader->scale * reader->src.rows + 0.5F), img 1055 apps/createsamples/utility.cpp cvResize( &(reader->src), &(reader->img) ); img 1079 apps/createsamples/utility.cpp CvMat* img ) img 1083 apps/createsamples/utility.cpp assert( data != NULL && reader != NULL && img != NULL ); img 1084 apps/createsamples/utility.cpp assert( CV_MAT_TYPE( img->type ) == CV_8UC1 ); img 1085 apps/createsamples/utility.cpp assert( img->cols == data->winsize.width ); img 1086 apps/createsamples/utility.cpp assert( img->rows == data->winsize.height ); img 1088 apps/createsamples/utility.cpp if( reader->img.data.ptr == NULL ) img 1094 apps/createsamples/utility.cpp cvSetData( &mat, (void*) (reader->img.data.ptr + reader->point.y * reader->img.step img 1095 apps/createsamples/utility.cpp + reader->point.x * sizeof( uchar )), reader->img.step ); img 1097 apps/createsamples/utility.cpp cvCopy( &mat, img, 0 ); img 1099 apps/createsamples/utility.cpp < reader->img.cols ) img 1107 apps/createsamples/utility.cpp < reader->img.rows ) img 1117 apps/createsamples/utility.cpp reader->img = cvMat( (int) (reader->scale * reader->src.rows), img 1119 apps/createsamples/utility.cpp CV_8UC1, (void*) (reader->img.data.ptr) ); img 1120 apps/createsamples/utility.cpp cvResize( &(reader->src), &(reader->img) ); img 1571 apps/createsamples/utility.cpp int icvGetTraininDataFromVec( CvMat* img, void* userdata ) img 1577 apps/createsamples/utility.cpp assert( img->rows * img->cols == ((CvVecFile*) userdata)->vecsize ); img 1591 apps/createsamples/utility.cpp for( r = 0; r < img->rows; r++ ) img 1593 apps/createsamples/utility.cpp for( c = 0; c < img->cols; c++ ) img 1595 apps/createsamples/utility.cpp CV_MAT_ELEM( *img, uchar, r, c ) = img 1596 apps/createsamples/utility.cpp (uchar) ( ((CvVecFile*) userdata)->vector[r * img->cols + c] ); img 29 apps/traincascade/HOGfeatures.cpp void CvHOGEvaluator::setImage(const Mat &img, uchar clsLabel, int idx) img 32 apps/traincascade/HOGfeatures.cpp CvFeatureEvaluator::setImage( img, clsLabel, idx ); img 39 apps/traincascade/HOGfeatures.cpp integralHistogram(img, integralHist, integralNorm, (int)N_BINS); img 157 apps/traincascade/HOGfeatures.cpp void CvHOGEvaluator::integralHistogram(const Mat &img, vector<Mat> &histogram, Mat &norm, int nbins) const img 159 apps/traincascade/HOGfeatures.cpp CV_Assert( img.type() == CV_8U || img.type() == CV_8UC3 ); img 162 apps/traincascade/HOGfeatures.cpp Size gradSize(img.size()); img 190 apps/traincascade/HOGfeatures.cpp const uchar* currPtr = img.ptr(ymap[y]); img 191 apps/traincascade/HOGfeatures.cpp const uchar* prevPtr = img.ptr(ymap[y-1]); img 192 apps/traincascade/HOGfeatures.cpp const uchar* nextPtr = img.ptr(ymap[y+1]); img 24 apps/traincascade/HOGfeatures.h virtual void setImage(const cv::Mat& img, uchar clsLabel, int idx); img 29 apps/traincascade/HOGfeatures.h virtual void integralHistogram(const cv::Mat &img, std::vector<cv::Mat> &histogram, cv::Mat &norm, int nbins) const; img 323 apps/traincascade/cascadeclassifier.cpp Mat img(cascadeParams.winSize, CV_8UC1); img 328 apps/traincascade/cascadeclassifier.cpp bool isGetImg = isPositive ? imgReader.getPos( img ) : img 329 apps/traincascade/cascadeclassifier.cpp imgReader.getNeg( img ); img 334 apps/traincascade/cascadeclassifier.cpp featureEvaluator->setImage( img, isPositive ? 1 : 0, i ); img 79 apps/traincascade/features.cpp void CvFeatureEvaluator::setImage(const Mat &img, uchar clsLabel, int idx) img 81 apps/traincascade/features.cpp CV_Assert(img.cols == winSize.width); img 82 apps/traincascade/features.cpp CV_Assert(img.rows == winSize.height); img 98 apps/traincascade/haarfeatures.cpp void CvHaarEvaluator::setImage(const Mat& img, uchar clsLabel, int idx) img 101 apps/traincascade/haarfeatures.cpp CvFeatureEvaluator::setImage( img, clsLabel, idx); img 105 apps/traincascade/haarfeatures.cpp integral(img, innSum, innSqSum, innTilted); img 36 apps/traincascade/haarfeatures.h virtual void setImage(const cv::Mat& img, uchar clsLabel, int idx); img 81 apps/traincascade/haarfeatures.h const int* img = tilted ? _tilted.ptr<int>((int)y) : _sum.ptr<int>((int)y); img 82 apps/traincascade/haarfeatures.h float ret = rect[0].weight * (img[fastRect[0].p0] - img[fastRect[0].p1] - img[fastRect[0].p2] + img[fastRect[0].p3] ) + img 83 apps/traincascade/haarfeatures.h rect[1].weight * (img[fastRect[1].p0] - img[fastRect[1].p1] - img[fastRect[1].p2] + img[fastRect[1].p3] ); img 85 apps/traincascade/haarfeatures.h ret += rect[2].weight * (img[fastRect[2].p0] - img[fastRect[2].p1] - img[fastRect[2].p2] + img[fastRect[2].p3] ); img 22 apps/traincascade/imagestorage.cpp img.create( 0, 0, CV_8UC1 ); img 79 apps/traincascade/imagestorage.cpp resize( src, img, sz ); img 90 apps/traincascade/imagestorage.cpp if( img.empty() ) img 95 apps/traincascade/imagestorage.cpp (void*)(img.ptr(point.y) + point.x * img.elemSize()), img.step ); img 98 apps/traincascade/imagestorage.cpp if( (int)( point.x + (1.0F + stepFactor ) * winSize.width ) < img.cols ) img 103 apps/traincascade/imagestorage.cpp if( (int)( point.y + (1.0F + stepFactor ) * winSize.height ) < img.rows ) img 110 apps/traincascade/imagestorage.cpp resize( src, img, Size( (int)(scale*src.cols), (int)(scale*src.rows) ) ); img 39 apps/traincascade/imagestorage.h cv::Mat src, img; img 22 apps/traincascade/lbpfeatures.cpp void CvLBPEvaluator::setImage(const Mat &img, uchar clsLabel, int idx) img 25 apps/traincascade/lbpfeatures.cpp CvFeatureEvaluator::setImage( img, clsLabel, idx ); img 27 apps/traincascade/lbpfeatures.cpp integral( img, innSum ); img 19 apps/traincascade/lbpfeatures.h virtual void setImage(const cv::Mat& img, uchar clsLabel, int idx); img 81 apps/traincascade/traincascade_features.h virtual void setImage(const cv::Mat& img, uchar clsLabel, int idx); img 646 modules/calib3d/include/opencv2/calib3d.hpp CV_EXPORTS bool find4QuadCornerSubpix( InputArray img, InputOutputArray corners, Size region_size ); img 1361 modules/calib3d/include/opencv2/calib3d.hpp CV_EXPORTS_W void filterSpeckles( InputOutputArray img, double newVal, img 194 modules/calib3d/misc/java/test/Calib3dTest.java Mat img = new Mat(size, size, CvType.CV_8U); img 195 modules/calib3d/misc/java/test/Calib3dTest.java img.setTo(new Scalar(255)); img 198 modules/calib3d/misc/java/test/Calib3dTest.java assertFalse(Calib3d.findCirclesGrid(img, new Size(5, 5), centers)); img 203 modules/calib3d/misc/java/test/Calib3dTest.java Imgproc.circle(img, pt, 10, new Scalar(0), -1); img 206 modules/calib3d/misc/java/test/Calib3dTest.java assertTrue(Calib3d.findCirclesGrid(img, new Size(5, 5), centers)); img 215 modules/calib3d/misc/java/test/Calib3dTest.java Mat img = new Mat(size, size, CvType.CV_8U); img 216 modules/calib3d/misc/java/test/Calib3dTest.java img.setTo(new Scalar(255)); img 219 modules/calib3d/misc/java/test/Calib3dTest.java assertFalse(Calib3d.findCirclesGrid(img, new Size(3, 5), centers, Calib3d.CALIB_CB_CLUSTERING img 228 modules/calib3d/misc/java/test/Calib3dTest.java Imgproc.circle(img, pt, 10, new Scalar(0), -1); img 231 modules/calib3d/misc/java/test/Calib3dTest.java assertTrue(Calib3d.findCirclesGrid(img, new Size(3, 5), centers, Calib3d.CALIB_CB_CLUSTERING img 249 modules/calib3d/src/calibinit.cpp CvMat stub, *img = (CvMat*)arr; img 261 modules/calib3d/src/calibinit.cpp img = cvGetMat( img, &stub ); img 264 modules/calib3d/src/calibinit.cpp if( CV_MAT_DEPTH( img->type ) != CV_8U || CV_MAT_CN( img->type ) == 2 ) img 274 modules/calib3d/src/calibinit.cpp thresh_img.reset(cvCreateMat( img->rows, img->cols, CV_8UC1 )); img 277 modules/calib3d/src/calibinit.cpp dbg_img = cvCreateImage(cvGetSize(img), IPL_DEPTH_8U, 3 ); img 278 modules/calib3d/src/calibinit.cpp dbg1_img = cvCreateImage(cvGetSize(img), IPL_DEPTH_8U, 3 ); img 279 modules/calib3d/src/calibinit.cpp dbg2_img = cvCreateImage(cvGetSize(img), IPL_DEPTH_8U, 3 ); img 282 modules/calib3d/src/calibinit.cpp if( CV_MAT_CN(img->type) != 1 || (flags & CV_CALIB_CB_NORMALIZE_IMAGE) ) img 286 modules/calib3d/src/calibinit.cpp norm_img.reset(cvCreateMat( img->rows, img->cols, CV_8UC1 )); img 288 modules/calib3d/src/calibinit.cpp if( CV_MAT_CN(img->type) != 1 ) img 290 modules/calib3d/src/calibinit.cpp cvCvtColor( img, norm_img, CV_BGR2GRAY ); img 291 modules/calib3d/src/calibinit.cpp img = norm_img; img 296 modules/calib3d/src/calibinit.cpp cvEqualizeHist( img, norm_img ); img 297 modules/calib3d/src/calibinit.cpp img = norm_img; img 303 modules/calib3d/src/calibinit.cpp cvGetImage(img, &_img); img 339 modules/calib3d/src/calibinit.cpp MIN(img->cols,img->rows)*(k%2 == 0 ? 0.2 : 0.1): prev_sqr_size*2)|1; img 342 modules/calib3d/src/calibinit.cpp cvAdaptiveThreshold( img, thresh_img, 255, img 354 modules/calib3d/src/calibinit.cpp double mean = cvAvg( img ).val[0]; img 358 modules/calib3d/src/calibinit.cpp cvThreshold( img, thresh_img, thresh_level, 255, CV_THRESH_BINARY ); img 515 modules/calib3d/src/calibinit.cpp if( out_corners[k].x <= BORDER || out_corners[k].x > img->cols - BORDER || img 516 modules/calib3d/src/calibinit.cpp out_corners[k].y <= BORDER || out_corners[k].y > img->rows - BORDER ) img 541 modules/calib3d/src/calibinit.cpp if( CV_MAT_CN(img->type) != 1 ) img 543 modules/calib3d/src/calibinit.cpp gray.reset(cvCreateMat(img->rows, img->cols, CV_8UC1)); img 544 modules/calib3d/src/calibinit.cpp cvCvtColor(img, gray, CV_BGR2GRAY); img 548 modules/calib3d/src/calibinit.cpp gray.reset(cvCloneMat(img)); img 166 modules/calib3d/src/quadsubpix.cpp Mat img = _img.getMat(), cornersM = _corners.getMat(); img 181 modules/calib3d/src/quadsubpix.cpp Mat img_roi = img(roi); img 187 modules/calib3d/src/quadsubpix.cpp threshold(img, black_comp, black_thresh, 255.0, THRESH_BINARY_INV); img 188 modules/calib3d/src/quadsubpix.cpp threshold(img, white_comp, white_thresh, 255.0, THRESH_BINARY); img 977 modules/calib3d/src/stereosgbm.cpp void filterSpecklesImpl(cv::Mat& img, int newVal, int maxSpeckleSize, int maxDiff, cv::Mat& _buf) img 981 modules/calib3d/src/stereosgbm.cpp int width = img.cols, height = img.rows, npixels = width*height; img 987 modules/calib3d/src/stereosgbm.cpp int i, j, dstep = (int)(img.step/sizeof(T)); img 1000 modules/calib3d/src/stereosgbm.cpp T* ds = img.ptr<T>(i); img 1026 modules/calib3d/src/stereosgbm.cpp T* dpp = &img.at<T>(p.y, p.x); img 1078 modules/calib3d/src/stereosgbm.cpp Mat img = _img.getMat(); img 1079 modules/calib3d/src/stereosgbm.cpp int type = img.type(); img 1089 modules/calib3d/src/stereosgbm.cpp IppiSize roisize = { img.cols, img.rows }; img 1100 modules/calib3d/src/stereosgbm.cpp status = ippiMarkSpeckles_8u_C1IR(img.ptr<Ipp8u>(), (int)img.step, roisize, img 1103 modules/calib3d/src/stereosgbm.cpp status = ippiMarkSpeckles_16s_C1IR(img.ptr<Ipp16s>(), (int)img.step, roisize, img 1118 modules/calib3d/src/stereosgbm.cpp filterSpecklesImpl<uchar>(img, newVal, maxSpeckleSize, maxDiff, _buf); img 1120 modules/calib3d/src/stereosgbm.cpp filterSpecklesImpl<short>(img, newVal, maxSpeckleSize, maxDiff, _buf); img 62 modules/calib3d/test/test_chesscorners_badarg.cpp Mat img; img 81 modules/calib3d/test/test_chesscorners_badarg.cpp findChessboardCorners(img, pattern_size, corners, flags); img 119 modules/calib3d/test/test_chesscorners_badarg.cpp img = cb.clone(); img 124 modules/calib3d/test/test_chesscorners_badarg.cpp cb.convertTo(img, CV_32F); img 127 modules/calib3d/test/test_chesscorners_badarg.cpp cv::merge(vector<Mat>(2, cb), img); img 133 modules/calib3d/test/test_chesscorners_badarg.cpp img = cb.clone(); img 134 modules/calib3d/test/test_chesscorners_badarg.cpp arr = img; img 140 modules/calib3d/test/test_chesscorners_badarg.cpp Mat cvdrawCornImg(img.size(), CV_8UC2); img 71 modules/calib3d/test/test_chesscorners_timing.cpp IplImage img; img 111 modules/calib3d/test/test_chesscorners_timing.cpp img = img2; img 126 modules/calib3d/test/test_chesscorners_timing.cpp gray = cvCreateImage( cvSize( img.width, img.height ), IPL_DEPTH_8U, 1 ); img 127 modules/calib3d/test/test_chesscorners_timing.cpp thresh = cvCreateImage( cvSize( img.width, img.height ), IPL_DEPTH_8U, 1 ); img 128 modules/calib3d/test/test_chesscorners_timing.cpp cvCvtColor( &img, gray, CV_BGR2GRAY ); img 80 modules/calib3d/test/test_stereomatching.cpp Mat img = _img; img 83 modules/calib3d/test/test_stereomatching.cpp Mat tmp; cvtColor( _img, tmp, COLOR_BGR2GRAY ); img = tmp; img 85 modules/calib3d/test/test_stereomatching.cpp Mat dxI; Sobel( img, dxI, CV_32FC1, 1, 0, 3 ); img 99 modules/core/include/opencv2/core/cuda/common.hpp template<class T> inline void bindTexture(const textureReference* tex, const PtrStepSz<T>& img) img 102 modules/core/include/opencv2/core/cuda/common.hpp cudaSafeCall( cudaBindTexture2D(0, tex, img.ptr(), &desc, img.cols, img.rows, img.step) ); img 386 modules/core/include/opencv2/core/types_c.h #define CV_IS_IMAGE_HDR(img) \ img 387 modules/core/include/opencv2/core/types_c.h ((img) != NULL && ((const IplImage*)(img))->nSize == sizeof(IplImage)) img 389 modules/core/include/opencv2/core/types_c.h #define CV_IS_IMAGE(img) \ img 390 modules/core/include/opencv2/core/types_c.h (CV_IS_IMAGE_HDR(img) && ((IplImage*)img)->imageData != NULL) img 238 modules/core/include/opencv2/core/wimage.hpp explicit WImage(IplImage* img) : image_(img) { img 239 modules/core/include/opencv2/core/wimage.hpp assert(!img || img->depth == Depth()); img 262 modules/core/include/opencv2/core/wimage.hpp explicit WImageC(IplImage* img) : WImage<T>(img) { img 263 modules/core/include/opencv2/core/wimage.hpp assert(!img || img->nChannels == Channels()); img 309 modules/core/include/opencv2/core/wimage.hpp explicit WImageBuffer(IplImage* img) : WImage<T>(img) {} img 316 modules/core/include/opencv2/core/wimage.hpp void SetIpl(IplImage* img) { img 318 modules/core/include/opencv2/core/wimage.hpp WImage<T>::SetIpl(img); img 366 modules/core/include/opencv2/core/wimage.hpp explicit WImageBufferC(IplImage* img) : WImageC<T, C>(img) {} img 373 modules/core/include/opencv2/core/wimage.hpp void SetIpl(IplImage* img) { img 375 modules/core/include/opencv2/core/wimage.hpp WImageC<T, C>::SetIpl(img); img 415 modules/core/include/opencv2/core/wimage.hpp WImageView(WImage<T>* img, int c, int r, int width, int height); img 423 modules/core/include/opencv2/core/wimage.hpp WImageView(IplImage* img) : WImage<T>(img) {} img 426 modules/core/include/opencv2/core/wimage.hpp WImageView(const WImage<T>& img) : WImage<T>(0) { img 427 modules/core/include/opencv2/core/wimage.hpp header_ = *(img.Ipl()); img 431 modules/core/include/opencv2/core/wimage.hpp WImageView& operator=(const WImage<T>& img) { img 432 modules/core/include/opencv2/core/wimage.hpp header_ = *(img.Ipl()); img 456 modules/core/include/opencv2/core/wimage.hpp WImageViewC(WImageC<T, C>* img, img 464 modules/core/include/opencv2/core/wimage.hpp WImageViewC(IplImage* img) : WImageC<T, C>(img) {} img 469 modules/core/include/opencv2/core/wimage.hpp WImageViewC(const WImageC<T, C>& img) : WImageC<T, C>(0) { img 470 modules/core/include/opencv2/core/wimage.hpp header_ = *(img.Ipl()); img 473 modules/core/include/opencv2/core/wimage.hpp WImageViewC(const WImageViewC<T, C>& img) : WImageC<T, C>(0) { img 474 modules/core/include/opencv2/core/wimage.hpp header_ = *(img.Ipl()); img 478 modules/core/include/opencv2/core/wimage.hpp WImageViewC& operator=(const WImageC<T, C>& img) { img 479 modules/core/include/opencv2/core/wimage.hpp header_ = *(img.Ipl()); img 483 modules/core/include/opencv2/core/wimage.hpp WImageViewC& operator=(const WImageViewC<T, C>& img) { img 484 modules/core/include/opencv2/core/wimage.hpp header_ = *(img.Ipl()); img 534 modules/core/include/opencv2/core/wimage.hpp WImageView<T>::WImageView(WImage<T>* img, int c, int r, int width, int height) img 537 modules/core/include/opencv2/core/wimage.hpp header_ = *(img->Ipl()); img 538 modules/core/include/opencv2/core/wimage.hpp header_.imageData = reinterpret_cast<char*>((*img)(c, r)); img 557 modules/core/include/opencv2/core/wimage.hpp WImageViewC<T, C>::WImageViewC(WImageC<T, C>* img, int c, int r, int width, int height) img 560 modules/core/include/opencv2/core/wimage.hpp header_ = *(img->Ipl()); img 561 modules/core/include/opencv2/core/wimage.hpp header_.imageData = reinterpret_cast<char*>((*img)(c, r)); img 829 modules/core/src/array.cpp IplImage* img = (IplImage*)arr; img 831 modules/core/src/array.cpp if( img->imageData != 0 ) img 836 modules/core/src/array.cpp img->imageData = img->imageDataOrigin = img 837 modules/core/src/array.cpp (char*)cvAlloc( (size_t)img->imageSize ); img 841 modules/core/src/array.cpp int depth = img->depth; img 842 modules/core/src/array.cpp int width = img->width; img 844 modules/core/src/array.cpp if( img->depth == IPL_DEPTH_32F || img->depth == IPL_DEPTH_64F ) img 846 modules/core/src/array.cpp img->width *= img->depth == IPL_DEPTH_32F ? sizeof(float) : sizeof(double); img 847 modules/core/src/array.cpp img->depth = IPL_DEPTH_8U; img 850 modules/core/src/array.cpp CvIPL.allocateData( img, 0, 0 ); img 852 modules/core/src/array.cpp img->width = width; img 853 modules/core/src/array.cpp img->depth = depth; img 927 modules/core/src/array.cpp IplImage* img = (IplImage*)arr; img 929 modules/core/src/array.cpp pix_size = ((img->depth & 255) >> 3)*img->nChannels; img 930 modules/core/src/array.cpp min_step = img->width*pix_size; img 932 modules/core/src/array.cpp if( step != CV_AUTOSTEP && img->height > 1 ) img 936 modules/core/src/array.cpp img->widthStep = step; img 940 modules/core/src/array.cpp img->widthStep = min_step; img 943 modules/core/src/array.cpp img->imageSize = img->widthStep * img->height; img 944 modules/core/src/array.cpp img->imageData = img->imageDataOrigin = (char*)data; img 947 modules/core/src/array.cpp cvAlign(img->width * pix_size, 8) == step ) img 948 modules/core/src/array.cpp img->align = 8; img 950 modules/core/src/array.cpp img->align = 4; img 989 modules/core/src/array.cpp IplImage* img = (IplImage*)arr; img 993 modules/core/src/array.cpp char* ptr = img->imageDataOrigin; img 994 modules/core/src/array.cpp img->imageData = img->imageDataOrigin = 0; img 999 modules/core/src/array.cpp CvIPL.deallocate( img, IPL_IMAGE_DATA ); img 1026 modules/core/src/array.cpp IplImage* img = (IplImage*)arr; img 1029 modules/core/src/array.cpp *step = img->widthStep; img 1032 modules/core/src/array.cpp *data = cvPtr2D( img, 0, 0 ); img 1036 modules/core/src/array.cpp if( img->roi ) img 1038 modules/core/src/array.cpp *roi_size = cvSize( img->roi->width, img->roi->height ); img 1042 modules/core/src/array.cpp *roi_size = cvSize( img->width, img->height ); img 1092 modules/core/src/array.cpp IplImage* img = (IplImage*)arr; img 1093 modules/core/src/array.cpp type = CV_MAKETYPE( IPL2CV_DEPTH(img->depth), img->nChannels ); img 1120 modules/core/src/array.cpp IplImage* img = (IplImage*)arr; img 1125 modules/core/src/array.cpp sizes[0] = img->height; img 1126 modules/core/src/array.cpp sizes[1] = img->width; img 1180 modules/core/src/array.cpp IplImage* img = (IplImage*)arr; img 1185 modules/core/src/array.cpp size = !img->roi ? img->height : img->roi->height; img 1188 modules/core/src/array.cpp size = !img->roi ? img->width : img->roi->width; img 1234 modules/core/src/array.cpp IplImage* img = (IplImage*)arr; img 1236 modules/core/src/array.cpp if( img->roi ) img 1238 modules/core/src/array.cpp size.width = img->roi->width; img 1239 modules/core/src/array.cpp size.height = img->roi->height; img 1243 modules/core/src/array.cpp size.width = img->width; img 1244 modules/core/src/array.cpp size.height = img->height; img 1682 modules/core/src/array.cpp IplImage* img = (IplImage*)arr; img 1683 modules/core/src/array.cpp int width = !img->roi ? img->width : img->roi->width; img 1774 modules/core/src/array.cpp IplImage* img = (IplImage*)arr; img 1775 modules/core/src/array.cpp int pix_size = (img->depth & 255) >> 3; img 1777 modules/core/src/array.cpp ptr = (uchar*)img->imageData; img 1779 modules/core/src/array.cpp if( img->dataOrder == 0 ) img 1780 modules/core/src/array.cpp pix_size *= img->nChannels; img 1782 modules/core/src/array.cpp if( img->roi ) img 1784 modules/core/src/array.cpp width = img->roi->width; img 1785 modules/core/src/array.cpp height = img->roi->height; img 1787 modules/core/src/array.cpp ptr += img->roi->yOffset*img->widthStep + img 1788 modules/core/src/array.cpp img->roi->xOffset*pix_size; img 1790 modules/core/src/array.cpp if( img->dataOrder ) img 1792 modules/core/src/array.cpp int coi = img->roi->coi; img 1796 modules/core/src/array.cpp ptr += (coi - 1)*img->imageSize; img 1801 modules/core/src/array.cpp width = img->width; img 1802 modules/core/src/array.cpp height = img->height; img 1809 modules/core/src/array.cpp ptr += y*img->widthStep + x*pix_size; img 1813 modules/core/src/array.cpp int type = IPL2CV_DEPTH(img->depth); img 1814 modules/core/src/array.cpp if( type < 0 || (unsigned)(img->nChannels - 1) > 3 ) img 1817 modules/core/src/array.cpp *_type = CV_MAKETYPE( type, img->nChannels ); img 2403 modules/core/src/array.cpp const IplImage* img = (const IplImage*)src; img 2406 modules/core/src/array.cpp if( img->imageData == 0 ) img 2409 modules/core/src/array.cpp depth = IPL2CV_DEPTH( img->depth ); img 2413 modules/core/src/array.cpp order = img->dataOrder & (img->nChannels > 1 ? -1 : 0); img 2415 modules/core/src/array.cpp if( img->roi ) img 2421 modules/core/src/array.cpp if( img->roi->coi == 0 ) img 2425 modules/core/src/array.cpp cvInitMatHeader( mat, img->roi->height, img 2426 modules/core/src/array.cpp img->roi->width, type, img 2427 modules/core/src/array.cpp img->imageData + (img->roi->coi-1)*img->imageSize + img 2428 modules/core/src/array.cpp img->roi->yOffset*img->widthStep + img 2429 modules/core/src/array.cpp img->roi->xOffset*CV_ELEM_SIZE(type), img 2430 modules/core/src/array.cpp img->widthStep ); img 2434 modules/core/src/array.cpp int type = CV_MAKETYPE( depth, img->nChannels ); img 2435 modules/core/src/array.cpp coi = img->roi->coi; img 2437 modules/core/src/array.cpp if( img->nChannels > CV_CN_MAX ) img 2441 modules/core/src/array.cpp cvInitMatHeader( mat, img->roi->height, img->roi->width, img 2442 modules/core/src/array.cpp type, img->imageData + img 2443 modules/core/src/array.cpp img->roi->yOffset*img->widthStep + img 2444 modules/core/src/array.cpp img->roi->xOffset*CV_ELEM_SIZE(type), img 2445 modules/core/src/array.cpp img->widthStep ); img 2450 modules/core/src/array.cpp int type = CV_MAKETYPE( depth, img->nChannels ); img 2455 modules/core/src/array.cpp cvInitMatHeader( mat, img->height, img->width, type, img 2456 modules/core/src/array.cpp img->imageData, img->widthStep ); img 2789 modules/core/src/array.cpp cvGetImage( const CvArr* array, IplImage* img ) img 2794 modules/core/src/array.cpp if( !img ) img 2809 modules/core/src/array.cpp cvInitImageHeader( img, cvSize(mat->cols, mat->rows), img 2811 modules/core/src/array.cpp cvSetData( img, mat->data.ptr, mat->step ); img 2813 modules/core/src/array.cpp result = img; img 2875 modules/core/src/array.cpp IplImage *img = 0; img 2879 modules/core/src/array.cpp img = (IplImage *)cvAlloc( sizeof( *img )); img 2880 modules/core/src/array.cpp cvInitImageHeader( img, size, depth, channels, IPL_ORIGIN_TL, img 2889 modules/core/src/array.cpp img = CvIPL.createHeader( channels, 0, depth, (char*)colorModel, (char*)channelSeq, img 2895 modules/core/src/array.cpp return img; img 2903 modules/core/src/array.cpp IplImage *img = cvCreateImageHeader( size, depth, channels ); img 2904 modules/core/src/array.cpp assert( img ); img 2905 modules/core/src/array.cpp cvCreateData( img ); img 2907 modules/core/src/array.cpp return img; img 2974 modules/core/src/array.cpp IplImage* img = *image; img 2979 modules/core/src/array.cpp cvFree( &img->roi ); img 2980 modules/core/src/array.cpp cvFree( &img ); img 2984 modules/core/src/array.cpp CvIPL.deallocate( img, IPL_IMAGE_HEADER | IPL_IMAGE_ROI ); img 2998 modules/core/src/array.cpp IplImage* img = *image; img 3001 modules/core/src/array.cpp cvReleaseData( img ); img 3002 modules/core/src/array.cpp cvReleaseImageHeader( &img ); img 3064 modules/core/src/array.cpp cvGetImageROI( const IplImage* img ) img 3067 modules/core/src/array.cpp if( !img ) img 3070 modules/core/src/array.cpp if( img->roi ) img 3071 modules/core/src/array.cpp rect = cvRect( img->roi->xOffset, img->roi->yOffset, img 3072 modules/core/src/array.cpp img->roi->width, img->roi->height ); img 3074 modules/core/src/array.cpp rect = cvRect( 0, 0, img->width, img->height ); img 1243 modules/core/src/gl_core_3_1.cpp static void CODEGEN_FUNCPTR Switch_GetCompressedTexImage(GLenum target, GLint level, GLvoid *img) img 1246 modules/core/src/gl_core_3_1.cpp GetCompressedTexImage(target, level, img); img 1150 modules/core/src/gl_core_3_1.hpp extern void (CODEGEN_FUNCPTR *GetCompressedTexImage)(GLenum target, GLint level, GLvoid *img); img 611 modules/core/src/matrix.cpp static Mat iplImageToMat(const IplImage* img, bool copyData) img 615 modules/core/src/matrix.cpp if( !img ) img 619 modules/core/src/matrix.cpp CV_DbgAssert(CV_IS_IMAGE(img) && img->imageData != 0); img 621 modules/core/src/matrix.cpp int imgdepth = IPL2CV_DEPTH(img->depth); img 623 modules/core/src/matrix.cpp m.step[0] = img->widthStep; img 625 modules/core/src/matrix.cpp if(!img->roi) img 627 modules/core/src/matrix.cpp CV_Assert(img->dataOrder == IPL_DATA_ORDER_PIXEL); img 628 modules/core/src/matrix.cpp m.flags = Mat::MAGIC_VAL + CV_MAKETYPE(imgdepth, img->nChannels); img 629 modules/core/src/matrix.cpp m.rows = img->height; img 630 modules/core/src/matrix.cpp m.cols = img->width; img 631 modules/core/src/matrix.cpp m.datastart = m.data = (uchar*)img->imageData; img 636 modules/core/src/matrix.cpp CV_Assert(img->dataOrder == IPL_DATA_ORDER_PIXEL || img->roi->coi != 0); img 637 modules/core/src/matrix.cpp bool selectedPlane = img->roi->coi && img->dataOrder == IPL_DATA_ORDER_PLANE; img 638 modules/core/src/matrix.cpp m.flags = Mat::MAGIC_VAL + CV_MAKETYPE(imgdepth, selectedPlane ? 1 : img->nChannels); img 639 modules/core/src/matrix.cpp m.rows = img->roi->height; img 640 modules/core/src/matrix.cpp m.cols = img->roi->width; img 642 modules/core/src/matrix.cpp m.datastart = m.data = (uchar*)img->imageData + img 643 modules/core/src/matrix.cpp (selectedPlane ? (img->roi->coi - 1)*m.step*img->height : 0) + img 644 modules/core/src/matrix.cpp img->roi->yOffset*m.step[0] + img->roi->xOffset*esz; img 655 modules/core/src/matrix.cpp if( !img->roi || !img->roi->coi || img 656 modules/core/src/matrix.cpp img->dataOrder == IPL_DATA_ORDER_PLANE) img 660 modules/core/src/matrix.cpp int ch[] = {img->roi->coi - 1, 0}; img 3810 modules/core/src/stat.cpp cv::Mat img = cv::cvarrToMat(imgarr, false, true, 1); img 3811 modules/core/src/stat.cpp if( img.channels() > 1 ) img 3812 modules/core/src/stat.cpp cv::extractImageCOI(imgarr, img); img 3813 modules/core/src/stat.cpp return countNonZero(img); img 3820 modules/core/src/stat.cpp cv::Mat img = cv::cvarrToMat(imgarr, false, true, 1); img 3821 modules/core/src/stat.cpp cv::Scalar mean = !maskarr ? cv::mean(img) : cv::mean(img, cv::cvarrToMat(maskarr)); img 3868 modules/core/src/stat.cpp cv::Mat mask, img = cv::cvarrToMat(imgarr, false, true, 1); img 3871 modules/core/src/stat.cpp if( img.channels() > 1 ) img 3872 modules/core/src/stat.cpp cv::extractImageCOI(imgarr, img); img 3874 modules/core/src/stat.cpp cv::minMaxLoc( img, _minVal, _maxVal, img 1798 modules/core/test/test_arithm.cpp Mat img(10, 10, CV_8U, Scalar::all(0)); img 1800 modules/core/test/test_arithm.cpp findNonZero(img, pts); img 1801 modules/core/test/test_arithm.cpp findNonZero(img, pts2); img 59 modules/cudafeatures2d/perf/perf_features2d.cpp const cv::Mat img = readImage(GET_PARAM(0), cv::IMREAD_GRAYSCALE); img 60 modules/cudafeatures2d/perf/perf_features2d.cpp ASSERT_FALSE(img.empty()); img 70 modules/cudafeatures2d/perf/perf_features2d.cpp 0.5 * img.size().area()); img 72 modules/cudafeatures2d/perf/perf_features2d.cpp const cv::cuda::GpuMat d_img(img); img 88 modules/cudafeatures2d/perf/perf_features2d.cpp TEST_CYCLE() cv::FAST(img, cpu_keypoints, threshold, nonMaxSuppersion); img 105 modules/cudafeatures2d/perf/perf_features2d.cpp const cv::Mat img = readImage(GET_PARAM(0), cv::IMREAD_GRAYSCALE); img 106 modules/cudafeatures2d/perf/perf_features2d.cpp ASSERT_FALSE(img.empty()); img 114 modules/cudafeatures2d/perf/perf_features2d.cpp const cv::cuda::GpuMat d_img(img); img 139 modules/cudafeatures2d/perf/perf_features2d.cpp TEST_CYCLE() orb->detectAndCompute(img, cv::noArray(), cpu_keypoints, cpu_descriptors); img 58 modules/cudafeatures2d/src/fast.cpp int calcKeypoints_gpu(PtrStepSzb img, PtrStepSzb mask, short2* kpLoc, int maxKeypoints, PtrStepSzi score, int threshold, cudaStream_t stream); img 117 modules/cudafeatures2d/src/fast.cpp const GpuMat img = _image.getGpuMat(); img 120 modules/cudafeatures2d/src/fast.cpp CV_Assert( img.type() == CV_8UC1 ); img 121 modules/cudafeatures2d/src/fast.cpp CV_Assert( mask.empty() || (mask.type() == CV_8UC1 && mask.size() == img.size()) ); img 130 modules/cudafeatures2d/src/fast.cpp score = pool.getBuffer(img.size(), CV_32SC1); img 134 modules/cudafeatures2d/src/fast.cpp int count = calcKeypoints_gpu(img, mask, kpLoc.ptr<short2>(), max_npoints_, score, threshold_, StreamAccessor::getStream(stream)); img 60 modules/cudafeatures2d/src/orb.cpp void HarrisResponses_gpu(PtrStepSzb img, const short2* loc, float* response, const int npoints, int blockSize, float harris_k, cudaStream_t stream); img 66 modules/cudafeatures2d/src/orb.cpp void computeOrbDescriptor_gpu(PtrStepb img, const short2* loc, const float* angle, const int npoints, img 67 modules/cudaimgproc/perf/perf_corners.cpp cv::Mat img = readImage(fileName, cv::IMREAD_GRAYSCALE); img 68 modules/cudaimgproc/perf/perf_corners.cpp ASSERT_FALSE(img.empty()); img 70 modules/cudaimgproc/perf/perf_corners.cpp img.convertTo(img, type, type == CV_32F ? 1.0 / 255.0 : 1.0); img 76 modules/cudaimgproc/perf/perf_corners.cpp const cv::cuda::GpuMat d_img(img); img 79 modules/cudaimgproc/perf/perf_corners.cpp cv::Ptr<cv::cuda::CornernessCriteria> harris = cv::cuda::createHarrisCorner(img.type(), blockSize, apertureSize, k, borderMode); img 89 modules/cudaimgproc/perf/perf_corners.cpp TEST_CYCLE() cv::cornerHarris(img, dst, blockSize, apertureSize, k, borderMode); img 111 modules/cudaimgproc/perf/perf_corners.cpp cv::Mat img = readImage(fileName, cv::IMREAD_GRAYSCALE); img 112 modules/cudaimgproc/perf/perf_corners.cpp ASSERT_FALSE(img.empty()); img 114 modules/cudaimgproc/perf/perf_corners.cpp img.convertTo(img, type, type == CV_32F ? 1.0 / 255.0 : 1.0); img 118 modules/cudaimgproc/perf/perf_corners.cpp const cv::cuda::GpuMat d_img(img); img 121 modules/cudaimgproc/perf/perf_corners.cpp cv::Ptr<cv::cuda::CornernessCriteria> minEigenVal = cv::cuda::createMinEigenValCorner(img.type(), blockSize, apertureSize, borderMode); img 131 modules/cudaimgproc/perf/perf_corners.cpp TEST_CYCLE() cv::cornerMinEigenVal(img, dst, blockSize, apertureSize, borderMode); img 59 modules/cudaimgproc/perf/perf_mean_shift.cpp const cv::Mat img = readImage(GetParam()); img 60 modules/cudaimgproc/perf/perf_mean_shift.cpp ASSERT_FALSE(img.empty()); img 63 modules/cudaimgproc/perf/perf_mean_shift.cpp cv::cvtColor(img, rgba, cv::COLOR_BGR2BGRA); img 81 modules/cudaimgproc/perf/perf_mean_shift.cpp TEST_CYCLE() cv::pyrMeanShiftFiltering(img, dst, sp, sr); img 95 modules/cudaimgproc/perf/perf_mean_shift.cpp const cv::Mat img = readImage(GetParam()); img 96 modules/cudaimgproc/perf/perf_mean_shift.cpp ASSERT_FALSE(img.empty()); img 99 modules/cudaimgproc/perf/perf_mean_shift.cpp cv::cvtColor(img, rgba, cv::COLOR_BGR2BGRA); img 129 modules/cudaimgproc/perf/perf_mean_shift.cpp const cv::Mat img = readImage(GetParam()); img 130 modules/cudaimgproc/perf/perf_mean_shift.cpp ASSERT_FALSE(img.empty()); img 133 modules/cudaimgproc/perf/perf_mean_shift.cpp cv::cvtColor(img, rgba, cv::COLOR_BGR2BGRA); img 78 modules/cudaimgproc/test/test_canny.cpp cv::Mat img = readImage("stereobm/aloe-L.png", cv::IMREAD_GRAYSCALE); img 79 modules/cudaimgproc/test/test_canny.cpp ASSERT_FALSE(img.empty()); img 87 modules/cudaimgproc/test/test_canny.cpp canny->detect(loadMat(img, useRoi), edges); img 90 modules/cudaimgproc/test/test_canny.cpp cv::Canny(img, edges_gold, low_thresh, high_thresh, apperture_size, useL2gradient); img 59 modules/cudaimgproc/test/test_color.cpp cv::Mat img; img 70 modules/cudaimgproc/test/test_color.cpp img = randomMat(size, CV_MAKE_TYPE(depth, 3), 0.0, depth == CV_32F ? 1.0 : 255.0); img 76 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 89 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 102 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 116 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2BGRA); img 130 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2BGRA); img 144 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2BGRA); img 157 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 170 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 184 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2GRAY); img 198 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2GRAY); img 212 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2BGRA); img 226 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2RGBA); img 242 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 258 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 275 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2BGR565); img 292 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2BGR565); img 309 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2BGRA); img 326 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2RGBA); img 343 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2BGR565); img 360 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2BGR565); img 377 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2GRAY); img 394 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2BGR565); img 410 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 426 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 443 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2BGR555); img 460 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2BGR555); img 477 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2BGRA); img 494 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2RGBA); img 511 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2BGR555); img 528 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2BGR555); img 545 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2GRAY); img 562 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2BGR555); img 575 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 588 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 601 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 623 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2BGRA); img 645 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2XYZ); img 659 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2XYZ); img 673 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2XYZ); img 692 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2XYZ); img 710 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 723 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 736 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 758 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2RGBA); img 780 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2YCrCb); img 794 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2YCrCb); img 808 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2YCrCb); img 827 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2YCrCb); img 848 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 864 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 880 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 905 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2RGBA); img 929 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 945 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 961 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 986 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2RGBA); img 1011 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2HSV); img 1028 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2HSV); img 1045 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2HSV); img 1067 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2HSV); img 1089 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2HLS); img 1106 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2HLS); img 1123 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2HLS); img 1145 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2HLS); img 1167 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 1183 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 1199 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 1224 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2RGBA); img 1248 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 1264 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 1280 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 1305 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2RGBA); img 1330 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2HSV_FULL); img 1347 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2HSV_FULL); img 1364 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2HSV_FULL); img 1386 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2HSV_FULL); img 1408 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2HLS_FULL); img 1425 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2HLS_FULL); img 1442 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2HLS_FULL); img 1464 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2HLS_FULL); img 1482 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 1495 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 1509 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2YUV); img 1523 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2YUV); img 1542 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2YUV); img 1561 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_RGB2YUV); img 1574 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 1596 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2RGBA); img 1620 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 1636 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 1653 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2RGBA); img 1677 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 1693 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 1710 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2RGBA); img 1735 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2Lab); img 1752 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2Lab); img 1769 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2Lab); img 1788 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2Lab); img 1805 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2Lab); img 1822 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2Lab); img 1838 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 1854 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 1871 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2RGBA); img 1895 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 1911 modules/cudaimgproc/test/test_color.cpp cv::Mat src = img; img 1928 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2RGBA); img 1953 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2Luv); img 1970 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2Luv); img 1987 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2Luv); img 2006 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2Luv); img 2023 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2Luv); img 2040 modules/cudaimgproc/test/test_color.cpp cv::cvtColor(img, src, cv::COLOR_BGR2Luv); img 2359 modules/cudaimgproc/test/test_color.cpp cv::Mat img = readImage("stereobm/aloe-L.png"); img 2360 modules/cudaimgproc/test/test_color.cpp ASSERT_FALSE(img.empty()) << "Can't load input image"; img 2363 modules/cudaimgproc/test/test_color.cpp mosaic(img, src, cv::Point(1, 1)); img 2368 modules/cudaimgproc/test/test_color.cpp EXPECT_MAT_SIMILAR(img, dst, 2e-2); img 2373 modules/cudaimgproc/test/test_color.cpp cv::Mat img = readImage("stereobm/aloe-L.png"); img 2374 modules/cudaimgproc/test/test_color.cpp ASSERT_FALSE(img.empty()) << "Can't load input image"; img 2377 modules/cudaimgproc/test/test_color.cpp mosaic(img, src, cv::Point(0, 1)); img 2382 modules/cudaimgproc/test/test_color.cpp EXPECT_MAT_SIMILAR(img, dst, 2e-2); img 2387 modules/cudaimgproc/test/test_color.cpp cv::Mat img = readImage("stereobm/aloe-L.png"); img 2388 modules/cudaimgproc/test/test_color.cpp ASSERT_FALSE(img.empty()) << "Can't load input image"; img 2391 modules/cudaimgproc/test/test_color.cpp mosaic(img, src, cv::Point(0, 0)); img 2396 modules/cudaimgproc/test/test_color.cpp EXPECT_MAT_SIMILAR(img, dst, 2e-2); img 2401 modules/cudaimgproc/test/test_color.cpp cv::Mat img = readImage("stereobm/aloe-L.png"); img 2402 modules/cudaimgproc/test/test_color.cpp ASSERT_FALSE(img.empty()) << "Can't load input image"; img 2405 modules/cudaimgproc/test/test_color.cpp mosaic(img, src, cv::Point(1, 0)); img 2410 modules/cudaimgproc/test/test_color.cpp EXPECT_MAT_SIMILAR(img, dst, 2e-2); img 2415 modules/cudaimgproc/test/test_color.cpp cv::Mat img = readImage("stereobm/aloe-L.png"); img 2416 modules/cudaimgproc/test/test_color.cpp ASSERT_FALSE(img.empty()) << "Can't load input image"; img 2419 modules/cudaimgproc/test/test_color.cpp mosaic(img, src, cv::Point(1, 1)); img 2424 modules/cudaimgproc/test/test_color.cpp EXPECT_MAT_SIMILAR(img, dst, 5e-3); img 2429 modules/cudaimgproc/test/test_color.cpp cv::Mat img = readImage("stereobm/aloe-L.png"); img 2430 modules/cudaimgproc/test/test_color.cpp ASSERT_FALSE(img.empty()) << "Can't load input image"; img 2433 modules/cudaimgproc/test/test_color.cpp mosaic(img, src, cv::Point(0, 1)); img 2438 modules/cudaimgproc/test/test_color.cpp EXPECT_MAT_SIMILAR(img, dst, 5e-3); img 2443 modules/cudaimgproc/test/test_color.cpp cv::Mat img = readImage("stereobm/aloe-L.png"); img 2444 modules/cudaimgproc/test/test_color.cpp ASSERT_FALSE(img.empty()) << "Can't load input image"; img 2447 modules/cudaimgproc/test/test_color.cpp mosaic(img, src, cv::Point(0, 0)); img 2452 modules/cudaimgproc/test/test_color.cpp EXPECT_MAT_SIMILAR(img, dst, 5e-3); img 2457 modules/cudaimgproc/test/test_color.cpp cv::Mat img = readImage("stereobm/aloe-L.png"); img 2458 modules/cudaimgproc/test/test_color.cpp ASSERT_FALSE(img.empty()) << "Can't load input image"; img 2461 modules/cudaimgproc/test/test_color.cpp mosaic(img, src, cv::Point(1, 0)); img 2466 modules/cudaimgproc/test/test_color.cpp EXPECT_MAT_SIMILAR(img, dst, 5e-3); img 54 modules/cudaimgproc/test/test_hough.cpp static void generateLines(cv::Mat& img) img 56 modules/cudaimgproc/test/test_hough.cpp img.setTo(cv::Scalar::all(0)); img 58 modules/cudaimgproc/test/test_hough.cpp cv::line(img, cv::Point(20, 0), cv::Point(20, img.rows), cv::Scalar::all(255)); img 59 modules/cudaimgproc/test/test_hough.cpp cv::line(img, cv::Point(0, 50), cv::Point(img.cols, 50), cv::Scalar::all(255)); img 60 modules/cudaimgproc/test/test_hough.cpp cv::line(img, cv::Point(0, 0), cv::Point(img.cols, img.rows), cv::Scalar::all(255)); img 61 modules/cudaimgproc/test/test_hough.cpp cv::line(img, cv::Point(img.cols, 0), cv::Point(0, img.rows), cv::Scalar::all(255)); img 56 modules/cudaimgproc/test/test_mean_shift.cpp cv::Mat img; img 67 modules/cudaimgproc/test/test_mean_shift.cpp img = readImageType("meanshift/cones.png", CV_8UC4); img 68 modules/cudaimgproc/test/test_mean_shift.cpp ASSERT_FALSE(img.empty()); img 85 modules/cudaimgproc/test/test_mean_shift.cpp cv::cuda::meanShiftFiltering(loadMat(img), d_dst, spatialRad, colorRad); img 111 modules/cudaimgproc/test/test_mean_shift.cpp cv::cuda::meanShiftFiltering(loadMat(img), rmap_filtered, spatialRad, colorRad); img 115 modules/cudaimgproc/test/test_mean_shift.cpp cv::cuda::meanShiftProc(loadMat(img), rmap, spmap, spatialRad, colorRad); img 149 modules/cudaimgproc/test/test_mean_shift.cpp cv::Mat img = readImageType("meanshift/cones.png", CV_8UC4); img 150 modules/cudaimgproc/test/test_mean_shift.cpp ASSERT_FALSE(img.empty()); img 162 modules/cudaimgproc/test/test_mean_shift.cpp cv::cuda::meanShiftSegmentation(loadMat(img), dst, 10, 10, minsize); img 76 modules/cudalegacy/include/opencv2/cudalegacy.hpp CV_EXPORTS Ptr<ImagePyramid> createImagePyramid(InputArray img, int nLayers = -1, Stream& stream = Stream::Null()); img 90 modules/cudalegacy/include/opencv2/cudalegacy/NCVPyramid.hpp NCVImagePyramid(const NCVMatrix<T> &img, img 82 modules/cudalegacy/perf/perf_labeling.cpp GreedyLabeling(cv::Mat img) img 83 modules/cudalegacy/perf/perf_labeling.cpp : image(img), _labels(image.size(), CV_32SC1, cv::Scalar::all(-1)) {stack = new dot[image.cols * image.rows];} img 59 modules/cudalegacy/src/image_pyramid.cpp ImagePyramidImpl(InputArray img, int nLayers, Stream& stream); img 71 modules/cudalegacy/src/image_pyramid.cpp GpuMat img = _img.getGpuMat(); img 73 modules/cudalegacy/src/image_pyramid.cpp CV_Assert( img.depth() <= CV_32F && img.channels() <= 4 ); img 75 modules/cudalegacy/src/image_pyramid.cpp img.copyTo(layer0_, stream); img 77 modules/cudalegacy/src/image_pyramid.cpp Size szLastLayer = img.size(); img 92 modules/cudalegacy/src/image_pyramid.cpp ensureSizeIsEnough(szCurLayer, img.type(), pyramid_[i]); img 97 modules/cudalegacy/src/image_pyramid.cpp cv::cuda::device::pyramid::downsampleX2(prevLayer, pyramid_[i], img.depth(), img.channels(), StreamAccessor::getStream(stream)); img 142 modules/cudalegacy/src/image_pyramid.cpp Ptr<ImagePyramid> cv::cuda::createImagePyramid(InputArray img, int nLayers, Stream& stream) img 144 modules/cudalegacy/src/image_pyramid.cpp return Ptr<ImagePyramid>(new ImagePyramidImpl(img, nLayers, stream)); img 75 modules/cudalegacy/test/test_labeling.cpp GreedyLabeling(cv::Mat img) img 76 modules/cudalegacy/test/test_labeling.cpp : image(img), _labels(image.size(), CV_32SC1, cv::Scalar::all(-1)) {} img 166 modules/cudaobjdetect/include/opencv2/cudaobjdetect.hpp virtual void detect(InputArray img, img 176 modules/cudaobjdetect/include/opencv2/cudaobjdetect.hpp virtual void detectMultiScale(InputArray img, img 186 modules/cudaobjdetect/include/opencv2/cudaobjdetect.hpp virtual void compute(InputArray img, img 66 modules/cudaobjdetect/perf/perf_objdetect.cpp const cv::Mat img = readImage(GetParam(), cv::IMREAD_GRAYSCALE); img 67 modules/cudaobjdetect/perf/perf_objdetect.cpp ASSERT_FALSE(img.empty()); img 71 modules/cudaobjdetect/perf/perf_objdetect.cpp const cv::cuda::GpuMat d_img(img); img 90 modules/cudaobjdetect/perf/perf_objdetect.cpp TEST_CYCLE() hog.detectMultiScale(img, cpu_found_locations); img 105 modules/cudaobjdetect/perf/perf_objdetect.cpp const cv::Mat img = readImage(GetParam().first, cv::IMREAD_GRAYSCALE); img 106 modules/cudaobjdetect/perf/perf_objdetect.cpp ASSERT_FALSE(img.empty()); img 113 modules/cudaobjdetect/perf/perf_objdetect.cpp const cv::cuda::GpuMat d_img(img); img 131 modules/cudaobjdetect/perf/perf_objdetect.cpp TEST_CYCLE() cascade.detectMultiScale(img, cpu_rects); img 143 modules/cudaobjdetect/perf/perf_objdetect.cpp const cv::Mat img = readImage(GetParam().first, cv::IMREAD_GRAYSCALE); img 144 modules/cudaobjdetect/perf/perf_objdetect.cpp ASSERT_FALSE(img.empty()); img 151 modules/cudaobjdetect/perf/perf_objdetect.cpp const cv::cuda::GpuMat d_img(img); img 169 modules/cudaobjdetect/perf/perf_objdetect.cpp TEST_CYCLE() cascade.detectMultiScale(img, cpu_rects); img 84 modules/cudaobjdetect/src/hog.cpp void compute_gradients_8UC1(int nbins, int height, int width, const cv::cuda::PtrStepSzb& img, img 86 modules/cudaobjdetect/src/hog.cpp void compute_gradients_8UC4(int nbins, int height, int width, const cv::cuda::PtrStepSzb& img, img 142 modules/cudaobjdetect/src/hog.cpp virtual void detect(InputArray img, img 146 modules/cudaobjdetect/src/hog.cpp virtual void detectMultiScale(InputArray img, img 150 modules/cudaobjdetect/src/hog.cpp virtual void compute(InputArray img, img 173 modules/cudaobjdetect/src/hog.cpp void computeBlockHistograms(const GpuMat& img, GpuMat& block_hists); img 174 modules/cudaobjdetect/src/hog.cpp void computeGradient(const GpuMat& img, GpuMat& grad, GpuMat& qangle); img 288 modules/cudaobjdetect/src/hog.cpp const GpuMat img = _img.getGpuMat(); img 290 modules/cudaobjdetect/src/hog.cpp CV_Assert( img.type() == CV_8UC1 || img.type() == CV_8UC4 ); img 299 modules/cudaobjdetect/src/hog.cpp GpuMat block_hists = pool.getBuffer(1, getTotalHistSize(img.size()), CV_32FC1); img 300 modules/cudaobjdetect/src/hog.cpp computeBlockHistograms(img, block_hists); img 302 modules/cudaobjdetect/src/hog.cpp Size wins_per_img = numPartsWithin(img.size(), win_size_, win_stride_); img 311 modules/cudaobjdetect/src/hog.cpp img.rows, img.cols, img 337 modules/cudaobjdetect/src/hog.cpp img.rows, img.cols, img 367 modules/cudaobjdetect/src/hog.cpp const GpuMat img = _img.getGpuMat(); img 369 modules/cudaobjdetect/src/hog.cpp CV_Assert( img.type() == CV_8UC1 || img.type() == CV_8UC4 ); img 379 modules/cudaobjdetect/src/hog.cpp if (cvRound(img.cols / scale) < win_size_.width || img 380 modules/cudaobjdetect/src/hog.cpp cvRound(img.rows / scale) < win_size_.height || img 401 modules/cudaobjdetect/src/hog.cpp Size sz(cvRound(img.cols / scale), cvRound(img.rows / scale)); img 404 modules/cudaobjdetect/src/hog.cpp if (sz == img.size()) img 406 modules/cudaobjdetect/src/hog.cpp smaller_img = img; img 410 modules/cudaobjdetect/src/hog.cpp smaller_img = pool.getBuffer(sz, img.type()); img 411 modules/cudaobjdetect/src/hog.cpp switch (img.type()) img 413 modules/cudaobjdetect/src/hog.cpp case CV_8UC1: hog::resize_8UC1(img, smaller_img); break; img 414 modules/cudaobjdetect/src/hog.cpp case CV_8UC4: hog::resize_8UC4(img, smaller_img); break; img 442 modules/cudaobjdetect/src/hog.cpp const GpuMat img = _img.getGpuMat(); img 444 modules/cudaobjdetect/src/hog.cpp CV_Assert( img.type() == CV_8UC1 || img.type() == CV_8UC4 ); img 450 modules/cudaobjdetect/src/hog.cpp GpuMat block_hists = pool.getBuffer(1, getTotalHistSize(img.size()), CV_32FC1); img 451 modules/cudaobjdetect/src/hog.cpp computeBlockHistograms(img, block_hists); img 455 modules/cudaobjdetect/src/hog.cpp Size wins_per_img = numPartsWithin(img.size(), win_size_, win_stride_); img 466 modules/cudaobjdetect/src/hog.cpp img.rows, img.cols, img 474 modules/cudaobjdetect/src/hog.cpp img.rows, img.cols, img 490 modules/cudaobjdetect/src/hog.cpp void HOG_Impl::computeBlockHistograms(const GpuMat& img, GpuMat& block_hists) img 497 modules/cudaobjdetect/src/hog.cpp GpuMat grad = pool.getBuffer(img.size(), CV_32FC2); img 498 modules/cudaobjdetect/src/hog.cpp GpuMat qangle = pool.getBuffer(img.size(), CV_8UC2); img 499 modules/cudaobjdetect/src/hog.cpp computeGradient(img, grad, qangle); img 501 modules/cudaobjdetect/src/hog.cpp block_hists.create(1, getTotalHistSize(img.size()), CV_32FC1); img 505 modules/cudaobjdetect/src/hog.cpp img.rows, img.cols, img 512 modules/cudaobjdetect/src/hog.cpp img.rows, img.cols, img 517 modules/cudaobjdetect/src/hog.cpp void HOG_Impl::computeGradient(const GpuMat& img, GpuMat& grad, GpuMat& qangle) img 519 modules/cudaobjdetect/src/hog.cpp grad.create(img.size(), CV_32FC2); img 520 modules/cudaobjdetect/src/hog.cpp qangle.create(img.size(), CV_8UC2); img 523 modules/cudaobjdetect/src/hog.cpp switch (img.type()) img 526 modules/cudaobjdetect/src/hog.cpp hog::compute_gradients_8UC1(nbins_, img.rows, img.cols, img, angleScale, grad, qangle, gamma_correction_); img 529 modules/cudaobjdetect/src/hog.cpp hog::compute_gradients_8UC4(nbins_, img.rows, img.cols, img, angleScale, grad, qangle, gamma_correction_); img 115 modules/cudaobjdetect/test/test_objdetect.cpp void testDetect(const cv::Mat& img) img 123 modules/cudaobjdetect/test/test_objdetect.cpp hog->detect(loadMat(img), locations); img 133 modules/cudaobjdetect/test/test_objdetect.cpp cv::resize(img, img2, cv::Size(img.cols / 2, img.rows / 2)); img 143 modules/cudaobjdetect/test/test_objdetect.cpp cv::resize(img, img2, cv::Size(img.cols * 2, img.rows * 2)); img 164 modules/cudaobjdetect/test/test_objdetect.cpp cv::Mat img; img 165 modules/cudaobjdetect/test/test_objdetect.cpp cv::cvtColor(img_rgb, img, cv::COLOR_BGR2BGRA); img 166 modules/cudaobjdetect/test/test_objdetect.cpp testDetect(img); img 169 modules/cudaobjdetect/test/test_objdetect.cpp cv::cvtColor(img_rgb, img, cv::COLOR_BGR2GRAY); img 170 modules/cudaobjdetect/test/test_objdetect.cpp testDetect(img); img 180 modules/cudaobjdetect/test/test_objdetect.cpp cv::Mat img; img 181 modules/cudaobjdetect/test/test_objdetect.cpp cv::cvtColor(img_rgb, img, cv::COLOR_BGR2BGRA); img 183 modules/cudaobjdetect/test/test_objdetect.cpp cv::cuda::GpuMat d_img(img); img 228 modules/cudaobjdetect/test/test_objdetect.cpp cv::Mat img; img 235 modules/cudaobjdetect/test/test_objdetect.cpp img = readImage(GET_PARAM(1), cv::IMREAD_GRAYSCALE); img 236 modules/cudaobjdetect/test/test_objdetect.cpp ASSERT_FALSE(img.empty()); img 242 modules/cudaobjdetect/test/test_objdetect.cpp cv::cuda::GpuMat d_img(img); img 243 modules/cudaobjdetect/test/test_objdetect.cpp cv::Mat markedImage(img.clone()); img 166 modules/cudastereo/perf/perf_stereo.cpp const cv::Mat img = readImage(GET_PARAM(0), cv::IMREAD_GRAYSCALE); img 167 modules/cudastereo/perf/perf_stereo.cpp ASSERT_FALSE(img.empty()); img 178 modules/cudastereo/perf/perf_stereo.cpp const cv::cuda::GpuMat d_img(img); img 6 modules/cudastereo/src/cuda/disparity_bilateral_filter.hpp void disp_bilateral_filter(PtrStepSz<T> disp, PtrStepSzb img, int channels, int iters, const float *, const float *, size_t, int radius, short edge_disc, short max_disc, cudaStream_t stream); img 151 modules/cudastereo/src/disparity_bilateral_filter.cpp const GpuMat& disp, const GpuMat& img, img 167 modules/cudastereo/src/disparity_bilateral_filter.cpp disp_bilateral_filter<T>(dst, img, img.channels(), iters, table_color.ptr<float>(), (float *)table_space.data, table_space_step, radius, edge_disc, max_disc, StreamAccessor::getStream(stream)); img 174 modules/cudastereo/src/disparity_bilateral_filter.cpp const GpuMat& disp, const GpuMat& img, OutputArray dst, Stream& stream); img 181 modules/cudastereo/src/disparity_bilateral_filter.cpp GpuMat img = _image.getGpuMat(); img 184 modules/cudastereo/src/disparity_bilateral_filter.cpp CV_Assert( img.type() == CV_8UC1 || img.type() == CV_8UC3 ); img 185 modules/cudastereo/src/disparity_bilateral_filter.cpp CV_Assert( disp.size() == img.size() ); img 188 modules/cudastereo/src/disparity_bilateral_filter.cpp table_color_, table_space_, disp, img, dst, stream); img 169 modules/cudev/include/opencv2/cudev/grid/detail/integral.hpp __global__ static void horisontal_pass_8u_shfl_kernel(const GlobPtr<uint4> img, GlobPtr<uint4> integral) img 178 modules/cudev/include/opencv2/cudev/grid/detail/integral.hpp const uint4 data = img(blockIdx.x, id); img 42 modules/features2d/misc/java/test/BRIEFDescriptorExtractorTest.java Mat img = getTestImg(); img 45 modules/features2d/misc/java/test/BRIEFDescriptorExtractorTest.java extractor.compute(img, keypoints, descriptors); img 38 modules/features2d/misc/java/test/BruteForceDescriptorMatcherTest.java Mat img = getQueryImg(); img 49 modules/features2d/misc/java/test/BruteForceDescriptorMatcherTest.java detector.detect(img, keypoints); img 50 modules/features2d/misc/java/test/BruteForceDescriptorMatcherTest.java extractor.compute(img, keypoints, descriptors); img 64 modules/features2d/misc/java/test/BruteForceDescriptorMatcherTest.java Mat img = getTrainImg(); img 70 modules/features2d/misc/java/test/BruteForceDescriptorMatcherTest.java extractor.compute(img, keypoints, descriptors); img 41 modules/features2d/misc/java/test/BruteForceHammingDescriptorMatcherTest.java Mat img = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(255)); img 42 modules/features2d/misc/java/test/BruteForceHammingDescriptorMatcherTest.java Imgproc.line(img, new Point(40, matSize - 40), new Point(matSize - 50, 50), new Scalar(0), 8); img 43 modules/features2d/misc/java/test/BruteForceHammingDescriptorMatcherTest.java return img; img 46 modules/features2d/misc/java/test/BruteForceHammingDescriptorMatcherTest.java private Mat getTestDescriptors(Mat img) { img 53 modules/features2d/misc/java/test/BruteForceHammingDescriptorMatcherTest.java detector.detect(img, keypoints); img 54 modules/features2d/misc/java/test/BruteForceHammingDescriptorMatcherTest.java extractor.compute(img, keypoints, descriptors); img 64 modules/features2d/misc/java/test/BruteForceHammingDescriptorMatcherTest.java Mat img = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(255)); img 65 modules/features2d/misc/java/test/BruteForceHammingDescriptorMatcherTest.java Imgproc.line(img, new Point(40, 40), new Point(matSize - 40, matSize - 40), new Scalar(0), 8); img 66 modules/features2d/misc/java/test/BruteForceHammingDescriptorMatcherTest.java return img; img 40 modules/features2d/misc/java/test/BruteForceHammingLUTDescriptorMatcherTest.java Mat img = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(255)); img 41 modules/features2d/misc/java/test/BruteForceHammingLUTDescriptorMatcherTest.java Imgproc.line(img, new Point(40, matSize - 40), new Point(matSize - 50, 50), new Scalar(0), 8); img 42 modules/features2d/misc/java/test/BruteForceHammingLUTDescriptorMatcherTest.java return img; img 45 modules/features2d/misc/java/test/BruteForceHammingLUTDescriptorMatcherTest.java private Mat getTestDescriptors(Mat img) { img 52 modules/features2d/misc/java/test/BruteForceHammingLUTDescriptorMatcherTest.java detector.detect(img, keypoints); img 53 modules/features2d/misc/java/test/BruteForceHammingLUTDescriptorMatcherTest.java extractor.compute(img, keypoints, descriptors); img 63 modules/features2d/misc/java/test/BruteForceHammingLUTDescriptorMatcherTest.java Mat img = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(255)); img 64 modules/features2d/misc/java/test/BruteForceHammingLUTDescriptorMatcherTest.java Imgproc.line(img, new Point(40, 40), new Point(matSize - 40, matSize - 40), new Scalar(0), 8); img 65 modules/features2d/misc/java/test/BruteForceHammingLUTDescriptorMatcherTest.java return img; img 37 modules/features2d/misc/java/test/BruteForceL1DescriptorMatcherTest.java Mat img = getQueryImg(); img 49 modules/features2d/misc/java/test/BruteForceL1DescriptorMatcherTest.java detector.detect(img, keypoints); img 50 modules/features2d/misc/java/test/BruteForceL1DescriptorMatcherTest.java extractor.compute(img, keypoints, descriptors); img 64 modules/features2d/misc/java/test/BruteForceL1DescriptorMatcherTest.java Mat img = getTrainImg(); img 70 modules/features2d/misc/java/test/BruteForceL1DescriptorMatcherTest.java extractor.compute(img, keypoints, descriptors); img 43 modules/features2d/misc/java/test/BruteForceSL2DescriptorMatcherTest.java Mat img = getQueryImg(); img 54 modules/features2d/misc/java/test/BruteForceSL2DescriptorMatcherTest.java detector.detect(img, keypoints); img 55 modules/features2d/misc/java/test/BruteForceSL2DescriptorMatcherTest.java extractor.compute(img, keypoints, descriptors); img 69 modules/features2d/misc/java/test/BruteForceSL2DescriptorMatcherTest.java Mat img = getTrainImg(); img 75 modules/features2d/misc/java/test/BruteForceSL2DescriptorMatcherTest.java extractor.compute(img, keypoints, descriptors); img 30 modules/features2d/misc/java/test/FASTFeatureDetectorTest.java Mat img = new Mat(100, 100, CvType.CV_8U, new Scalar(255)); img 31 modules/features2d/misc/java/test/FASTFeatureDetectorTest.java Imgproc.line(img, new Point(30, 30), new Point(70, 70), new Scalar(0), 8); img 32 modules/features2d/misc/java/test/FASTFeatureDetectorTest.java return img; img 56 modules/features2d/misc/java/test/FASTFeatureDetectorTest.java Mat img = getTestImg(); img 59 modules/features2d/misc/java/test/FASTFeatureDetectorTest.java detector.detect(img, keypoints); img 69 modules/features2d/misc/java/test/FASTFeatureDetectorTest.java Mat img = getTestImg(); img 73 modules/features2d/misc/java/test/FASTFeatureDetectorTest.java detector.detect(img, keypoints, mask); img 112 modules/features2d/misc/java/test/FlannBasedDescriptorMatcherTest.java Mat img = getQueryImg(); img 123 modules/features2d/misc/java/test/FlannBasedDescriptorMatcherTest.java detector.detect(img, keypoints); img 124 modules/features2d/misc/java/test/FlannBasedDescriptorMatcherTest.java extractor.compute(img, keypoints, descriptors); img 138 modules/features2d/misc/java/test/FlannBasedDescriptorMatcherTest.java Mat img = getTrainImg(); img 144 modules/features2d/misc/java/test/FlannBasedDescriptorMatcherTest.java extractor.compute(img, keypoints, descriptors); img 47 modules/features2d/misc/java/test/ORBDescriptorExtractorTest.java Mat img = getTestImg(); img 50 modules/features2d/misc/java/test/ORBDescriptorExtractorTest.java extractor.compute(img, keypoints, descriptors); img 80 modules/features2d/misc/java/test/ORBDescriptorExtractorTest.java Mat img = getTestImg(); img 87 modules/features2d/misc/java/test/ORBDescriptorExtractorTest.java extractor.compute(img, keypoints, descriptors); img 57 modules/features2d/misc/java/test/SIFTDescriptorExtractorTest.java Mat img = getTestImg(); img 60 modules/features2d/misc/java/test/SIFTDescriptorExtractorTest.java extractor.compute(img, keypoints, descriptors); img 36 modules/features2d/misc/java/test/STARFeatureDetectorTest.java Mat img = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(255)); img 37 modules/features2d/misc/java/test/STARFeatureDetectorTest.java Imgproc.circle(img, new Point(center - offset, center), radius, color, -1); img 38 modules/features2d/misc/java/test/STARFeatureDetectorTest.java Imgproc.circle(img, new Point(center + offset, center), radius, color, -1); img 39 modules/features2d/misc/java/test/STARFeatureDetectorTest.java Imgproc.circle(img, new Point(center, center - offset), radius, color, -1); img 40 modules/features2d/misc/java/test/STARFeatureDetectorTest.java Imgproc.circle(img, new Point(center, center + offset), radius, color, -1); img 41 modules/features2d/misc/java/test/STARFeatureDetectorTest.java Imgproc.circle(img, new Point(center, center), radius, color, -1); img 42 modules/features2d/misc/java/test/STARFeatureDetectorTest.java return img; img 75 modules/features2d/misc/java/test/STARFeatureDetectorTest.java Mat img = getTestImg(); img 78 modules/features2d/misc/java/test/STARFeatureDetectorTest.java detector.detect(img, keypoints); img 84 modules/features2d/misc/java/test/STARFeatureDetectorTest.java Mat img = getTestImg(); img 88 modules/features2d/misc/java/test/STARFeatureDetectorTest.java detector.detect(img, keypoints, mask); img 98 modules/features2d/misc/java/test/STARFeatureDetectorTest.java Mat img = getTestImg(); img 101 modules/features2d/misc/java/test/STARFeatureDetectorTest.java detector.detect(img, keypoints1); img 108 modules/features2d/misc/java/test/STARFeatureDetectorTest.java detector.detect(img, keypoints2); img 47 modules/features2d/misc/java/test/SURFDescriptorExtractorTest.java Mat img = getTestImg(); img 50 modules/features2d/misc/java/test/SURFDescriptorExtractorTest.java extractor.compute(img, keypoints, descriptors); img 118 modules/features2d/misc/java/test/SURFFeatureDetectorTest.java Mat img = getTestImg(); img 122 modules/features2d/misc/java/test/SURFFeatureDetectorTest.java detector.detect(img, keypoints, mask); img 58 modules/features2d/src/agast.cpp cv::Mat img; img 60 modules/features2d/src/agast.cpp img = _img.getMat().clone(); img 62 modules/features2d/src/agast.cpp img = _img.getMat(); img 65 modules/features2d/src/agast.cpp int xsize = img.cols; img 66 modules/features2d/src/agast.cpp int ysize = img.rows; img 76 modules/features2d/src/agast.cpp makeAgastOffsets(pixel_5_8_, (int)img.step, AgastFeatureDetector::AGAST_5_8); img 101 modules/features2d/src/agast.cpp register const unsigned char* const ptr = img.ptr() + y*width + x; img 437 modules/features2d/src/agast.cpp register const unsigned char* const ptr = img.ptr() + y*width + x; img 818 modules/features2d/src/agast.cpp cv::Mat img; img 820 modules/features2d/src/agast.cpp img = _img.getMat().clone(); img 822 modules/features2d/src/agast.cpp img = _img.getMat(); img 825 modules/features2d/src/agast.cpp int xsize = img.cols; img 826 modules/features2d/src/agast.cpp int ysize = img.rows; img 836 modules/features2d/src/agast.cpp makeAgastOffsets(pixel_7_12d_, (int)img.step, AgastFeatureDetector::AGAST_7_12d); img 865 modules/features2d/src/agast.cpp register const unsigned char* const ptr = img.ptr() + y*width + x; img 2047 modules/features2d/src/agast.cpp register const unsigned char* const ptr = img.ptr() + y*width + x; img 3262 modules/features2d/src/agast.cpp cv::Mat img; img 3264 modules/features2d/src/agast.cpp img = _img.getMat().clone(); img 3266 modules/features2d/src/agast.cpp img = _img.getMat(); img 3269 modules/features2d/src/agast.cpp int xsize = img.cols; img 3270 modules/features2d/src/agast.cpp int ysize = img.rows; img 3280 modules/features2d/src/agast.cpp makeAgastOffsets(pixel_7_12s_, (int)img.step, AgastFeatureDetector::AGAST_7_12s); img 3309 modules/features2d/src/agast.cpp register const unsigned char* const ptr = img.ptr() + y*width + x; img 4347 modules/features2d/src/agast.cpp register const unsigned char* const ptr = img.ptr() + y*width + x; img 5343 modules/features2d/src/agast.cpp cv::Mat img; img 5345 modules/features2d/src/agast.cpp img = _img.getMat().clone(); img 5347 modules/features2d/src/agast.cpp img = _img.getMat(); img 5350 modules/features2d/src/agast.cpp int xsize = img.cols; img 5351 modules/features2d/src/agast.cpp int ysize = img.rows; img 5361 modules/features2d/src/agast.cpp makeAgastOffsets(pixel_9_16_, (int)img.step, AgastFeatureDetector::OAST_9_16); img 5392 modules/features2d/src/agast.cpp register const unsigned char* const ptr = img.ptr() + y*width + x; img 7530 modules/features2d/src/agast.cpp cv::Mat img = _img.getMat(); img 7534 modules/features2d/src/agast.cpp makeAgastOffsets(pixel_, (int)img.step, type); img 7542 modules/features2d/src/agast.cpp (&img.at<uchar>((int)kpt->pt.y, (int)kpt->pt.x), pixel_, threshold); img 7546 modules/features2d/src/agast.cpp (&img.at<uchar>((int)kpt->pt.y, (int)kpt->pt.x), pixel_, threshold); img 7550 modules/features2d/src/agast.cpp (&img.at<uchar>((int)kpt->pt.y, (int)kpt->pt.x), pixel_, threshold); img 7554 modules/features2d/src/agast.cpp (&img.at<uchar>((int)kpt->pt.y, (int)kpt->pt.x), pixel_, threshold); img 170 modules/features2d/src/akaze.cpp Mat img = image.getMat(); img 171 modules/features2d/src/akaze.cpp if (img.type() != CV_8UC1) img 172 modules/features2d/src/akaze.cpp cvtColor(image, img, COLOR_BGR2GRAY); img 175 modules/features2d/src/akaze.cpp if ( img.depth() == CV_32F ) img 176 modules/features2d/src/akaze.cpp img1_32 = img; img 177 modules/features2d/src/akaze.cpp else if ( img.depth() == CV_8U ) img 178 modules/features2d/src/akaze.cpp img.convertTo(img1_32, CV_32F, 1.0 / 255.0, 0); img 179 modules/features2d/src/akaze.cpp else if ( img.depth() == CV_16U ) img 180 modules/features2d/src/akaze.cpp img.convertTo(img1_32, CV_32F, 1.0 / 65535.0, 0); img 188 modules/features2d/src/akaze.cpp options.img_width = img.cols; img 189 modules/features2d/src/akaze.cpp options.img_height = img.rows; img 156 modules/features2d/src/brisk.cpp BriskLayer(const cv::Mat& img, float scale = 1.0f, float offset = 0.0f); img 2084 modules/features2d/src/brisk.cpp img_.create(layer.img().rows / 2, layer.img().cols / 2, CV_8U); img 2085 modules/features2d/src/brisk.cpp halfsample(layer.img(), img_); img 2091 modules/features2d/src/brisk.cpp img_.create(2 * (layer.img().rows / 3), 2 * (layer.img().cols / 3), CV_8U); img 2092 modules/features2d/src/brisk.cpp twothirdsample(layer.img(), img_); img 53 modules/features2d/src/draw.cpp static inline void _drawKeypoint( InputOutputArray img, const KeyPoint& p, const Scalar& color, int flags ) img 55 modules/features2d/src/draw.cpp CV_Assert( !img.empty() ); img 63 modules/features2d/src/draw.cpp circle( img, center, radius, color, 1, LINE_AA, draw_shift_bits ); img 72 modules/features2d/src/draw.cpp line( img, center, center+orient, color, 1, LINE_AA, draw_shift_bits ); img 79 modules/features2d/src/draw.cpp circle( img, center, radius, color, 1, LINE_AA, draw_shift_bits ); img 87 modules/features2d/src/draw.cpp circle( img, center, radius, color, 1, LINE_AA, draw_shift_bits ); img 58 modules/features2d/src/fast.cpp Mat img = _img.getMat(); img 65 modules/features2d/src/fast.cpp makeOffsets(pixel, (int)img.step, patternSize); img 81 modules/features2d/src/fast.cpp AutoBuffer<uchar> _buf((img.cols+16)*3*(sizeof(int) + sizeof(uchar)) + 128); img 83 modules/features2d/src/fast.cpp buf[0] = _buf; buf[1] = buf[0] + img.cols; buf[2] = buf[1] + img.cols; img 85 modules/features2d/src/fast.cpp cpbuf[0] = (int*)alignPtr(buf[2] + img.cols, sizeof(int)) + 1; img 86 modules/features2d/src/fast.cpp cpbuf[1] = cpbuf[0] + img.cols + 1; img 87 modules/features2d/src/fast.cpp cpbuf[2] = cpbuf[1] + img.cols + 1; img 88 modules/features2d/src/fast.cpp memset(buf[0], 0, img.cols*3); img 90 modules/features2d/src/fast.cpp for(i = 3; i < img.rows-2; i++) img 92 modules/features2d/src/fast.cpp const uchar* ptr = img.ptr<uchar>(i) + 3; img 95 modules/features2d/src/fast.cpp memset(curr, 0, img.cols); img 98 modules/features2d/src/fast.cpp if( i < img.rows - 3 ) img 104 modules/features2d/src/fast.cpp for(; j < img.cols - 16 - 3; j += 16, ptr += 16) img 161 modules/features2d/src/fast.cpp for( ; j < img.cols - 3; j++, ptr++ ) img 262 modules/features2d/src/fast.cpp UMat img = _img.getUMat(); img 263 modules/features2d/src/fast.cpp if( img.cols < 7 || img.rows < 7 ) img 265 modules/features2d/src/fast.cpp size_t globalsize[] = { img.cols-6, img.rows-6 }; img 276 modules/features2d/src/fast.cpp if( !fastKptKernel.args(ocl::KernelArg::ReadOnly(img), img 312 modules/features2d/src/fast.cpp ocl::KernelArg::ReadOnly(img), img 113 modules/features2d/src/kaze.cpp cv::Mat img = image.getMat(); img 114 modules/features2d/src/kaze.cpp if (img.type() != CV_8UC1) img 115 modules/features2d/src/kaze.cpp cvtColor(image, img, COLOR_BGR2GRAY); img 118 modules/features2d/src/kaze.cpp img.convertTo(img1_32, CV_32F, 1.0 / 255.0, 0); img 121 modules/features2d/src/kaze.cpp options.img_width = img.cols; img 122 modules/features2d/src/kaze.cpp options.img_height = img.rows; img 100 modules/features2d/src/kaze/AKAZEFeatures.cpp int AKAZEFeatures::Create_Nonlinear_Scale_Space(const Mat& img) img 105 modules/features2d/src/kaze/AKAZEFeatures.cpp img.copyTo(evolution_[0].Lt); img 114 modules/features2d/src/kaze/AKAZEFeatures.cpp options_.kcontrast = compute_k_percentile(img, options_.kcontrast_percentile, 1.0f, options_.kcontrast_nbins, 0, 0); img 47 modules/features2d/src/kaze/AKAZEFeatures.h int Create_Nonlinear_Scale_Space(const cv::Mat& img); img 98 modules/features2d/src/kaze/KAZEFeatures.cpp int KAZEFeatures::Create_Nonlinear_Scale_Space(const Mat &img) img 103 modules/features2d/src/kaze/KAZEFeatures.cpp img.copyTo(evolution_[0].Lt); img 146 modules/features2d/src/kaze/KAZEFeatures.cpp void KAZEFeatures::Compute_KContrast(const Mat &img, const float &kpercentile) img 148 modules/features2d/src/kaze/KAZEFeatures.cpp options_.kcontrast = compute_k_percentile(img, kpercentile, options_.sderivatives, options_.kcontrast_bins, 0, 0); img 49 modules/features2d/src/kaze/KAZEFeatures.h int Create_Nonlinear_Scale_Space(const cv::Mat& img); img 55 modules/features2d/src/kaze/KAZEFeatures.h void Compute_KContrast(const cv::Mat& img, const float& kper); img 211 modules/features2d/src/kaze/nldiffusion_functions.cpp float compute_k_percentile(const cv::Mat& img, float perc, float gscale, int nbins, int ksize_x, int ksize_y) { img 222 modules/features2d/src/kaze/nldiffusion_functions.cpp Mat gaussian = Mat::zeros(img.rows, img.cols, CV_32F); img 223 modules/features2d/src/kaze/nldiffusion_functions.cpp Mat Lx = Mat::zeros(img.rows, img.cols, CV_32F); img 224 modules/features2d/src/kaze/nldiffusion_functions.cpp Mat Ly = Mat::zeros(img.rows, img.cols, CV_32F); img 227 modules/features2d/src/kaze/nldiffusion_functions.cpp gaussian_2D_convolution(img, gaussian, ksize_x, ksize_y, gscale); img 493 modules/features2d/src/kaze/nldiffusion_functions.cpp bool check_maximum_neighbourhood(const cv::Mat& img, int dsize, float value, int row, int col, bool same_img) { img 499 modules/features2d/src/kaze/nldiffusion_functions.cpp if (i >= 0 && i < img.rows && j >= 0 && j < img.cols) { img 502 modules/features2d/src/kaze/nldiffusion_functions.cpp if ((*(img.ptr<float>(i)+j)) > value) { img 509 modules/features2d/src/kaze/nldiffusion_functions.cpp if ((*(img.ptr<float>(i)+j)) > value) { img 29 modules/features2d/src/kaze/nldiffusion_functions.h float compute_k_percentile(const cv::Mat& img, float perc, float gscale, int nbins, int ksize_x, int ksize_y); img 40 modules/features2d/src/kaze/nldiffusion_functions.h bool check_maximum_neighbourhood(const cv::Mat& img, int dsize, float value, int row, int col, bool same_img); img 349 modules/features2d/src/mser.cpp void preprocess1( const Mat& img, int* level_size ) img 353 modules/features2d/src/mser.cpp int i, j, cols = img.cols, rows = img.rows; img 368 modules/features2d/src/mser.cpp const uchar* imgptr = img.ptr(i); img 380 modules/features2d/src/mser.cpp void preprocess2( const Mat& img, int* level_size ) img 389 modules/features2d/src/mser.cpp int j, cols = img.cols, rows = img.rows; img 402 modules/features2d/src/mser.cpp void pass( const Mat& img, vector<vector<Point> >& msers, vector<Rect>& bboxvec, img 408 modules/features2d/src/mser.cpp const uchar* imgptr0 = img.ptr(); img 4 modules/features2d/src/opencl/fast.cl inline int cornerScore(__global const uchar* img, int step) img 6 modules/features2d/src/opencl/fast.cl int k, tofs, v = img[0], a0 = 0, b0; img 9 modules/features2d/src/opencl/fast.cl tofs = ofs; d[idx] = (short)(v - img[tofs]); d[idx+8] = (short)(v - img[-tofs]) img 64 modules/features2d/src/opencl/fast.cl __global const uchar* img = _img + mad24(i, step, j + img_offset); img 65 modules/features2d/src/opencl/fast.cl int v = img[0], t0 = v - threshold, t1 = v + threshold; img 70 modules/features2d/src/opencl/fast.cl tofs = ofs; v0 = img[tofs]; v1 = img[-tofs]; \ img 139 modules/features2d/src/opencl/fast.cl __global const uchar* img = _img + mad24(y, step, x + img_offset); img 141 modules/features2d/src/opencl/fast.cl int s = cornerScore(img, step); img 143 modules/features2d/src/opencl/fast.cl if( (x < 4 || s > cornerScore(img-1, step)) + img 144 modules/features2d/src/opencl/fast.cl (y < 4 || s > cornerScore(img-step, step)) != 2 ) img 146 modules/features2d/src/opencl/fast.cl if( (x >= cols - 4 || s > cornerScore(img+1, step)) + img 147 modules/features2d/src/opencl/fast.cl (y >= rows - 4 || s > cornerScore(img+step, step)) + img 148 modules/features2d/src/opencl/fast.cl (x < 4 || y < 4 || s > cornerScore(img-step-1, step)) + img 149 modules/features2d/src/opencl/fast.cl (x >= cols - 4 || y < 4 || s > cornerScore(img-step+1, step)) + img 150 modules/features2d/src/opencl/fast.cl (x < 4 || y >= rows - 4 || s > cornerScore(img+step-1, step)) + img 151 modules/features2d/src/opencl/fast.cl (x >= cols - 4 || y >= rows - 4 || s > cornerScore(img+step+1, step)) == 6) img 29 modules/features2d/src/opencl/orb.cl __global const uchar* img = imgbuf + imgoffset0 + layer[LAYERINFO_OFS] + img 34 modules/features2d/src/opencl/orb.cl for( i = 0; i < blockSize; i++, img += imgstep-blockSize ) img 36 modules/features2d/src/opencl/orb.cl for( j = 0; j < blockSize; j++, img++ ) img 38 modules/features2d/src/opencl/orb.cl int Ix = (img[1] - img[-1])*2 + img[-imgstep+1] - img[-imgstep-1] + img[imgstep+1] - img[imgstep-1]; img 39 modules/features2d/src/opencl/orb.cl int Iy = (img[imgstep] - img[-imgstep])*2 + img[imgstep-1] - img[-imgstep-1] + img[imgstep+1] - img[-imgstep+1]; img 130 modules/features2d/src/orb.cpp HarrisResponses(const Mat& img, const std::vector<Rect>& layerinfo, img 133 modules/features2d/src/orb.cpp CV_Assert( img.type() == CV_8UC1 && blockSize*blockSize <= 2048 ); img 137 modules/features2d/src/orb.cpp const uchar* ptr00 = img.ptr<uchar>(); img 138 modules/features2d/src/orb.cpp int step = (int)(img.step/img.elemSize1()); img 175 modules/features2d/src/orb.cpp static void ICAngles(const Mat& img, const std::vector<Rect>& layerinfo, img 178 modules/features2d/src/orb.cpp int step = (int)img.step1(); img 184 modules/features2d/src/orb.cpp const uchar* center = &img.at<uchar>(cvRound(pts[ptidx].pt.y) + layer.y, cvRound(pts[ptidx].pt.x) + layer.x); img 824 modules/features2d/src/orb.cpp Mat img = imagePyramid(layerInfo[level]); img 830 modules/features2d/src/orb.cpp fd->detect(img, keypoints, mask); img 834 modules/features2d/src/orb.cpp KeyPointsFilter::runByImageBorder(keypoints, img.size(), edgeThreshold); img 196 modules/features2d/test/test_descriptors_regression.cpp Mat img = imread( imgFilename ); img 197 modules/features2d/test/test_descriptors_regression.cpp if( img.empty() ) img 206 modules/features2d/test/test_descriptors_regression.cpp detector->detect(img, keypoints); img 214 modules/features2d/test/test_descriptors_regression.cpp dextractor->compute( img, keypoints, calcDescriptors ); img 259 modules/features2d/test/test_descriptors_regression.cpp fd->detect(img, keypoints); img 362 modules/features2d/test/test_descriptors_regression.cpp Mat img = imread(imgname, 0); img 363 modules/features2d/test/test_descriptors_regression.cpp imgs.push_back(img); img 402 modules/features2d/test/test_descriptors_regression.cpp Mat img = imread(fnames[i], -1); img 404 modules/features2d/test/test_descriptors_regression.cpp akaze->detectAndCompute(img, noArray(), keypoints, descriptors); img 414 modules/features2d/test/test_descriptors_regression.cpp kaze->detectAndCompute(img, noArray(), keypoints, descriptors); img 424 modules/features2d/test/test_descriptors_regression.cpp orb->detectAndCompute(img, noArray(), keypoints, descriptors); img 434 modules/features2d/test/test_descriptors_regression.cpp brisk->detectAndCompute(img, noArray(), keypoints, descriptors); img 55 modules/features2d/test/test_mser.cpp static void renderMSERs(const Mat& gray, Mat& img, const vector<vector<Point> >& msers) img 57 modules/features2d/test/test_mser.cpp cvtColor(gray, img, COLOR_GRAY2BGR); img 69 modules/features2d/test/test_mser.cpp img.at<Vec3b>(pt[j]) = color; img 609 modules/highgui/include/opencv2/highgui.hpp CV_EXPORTS void addText( const Mat& img, const String& text, Point org, const QtFont& font); img 81 modules/highgui/include/opencv2/highgui/highgui_c.h CVAPI(void) cvAddText(const CvArr* img, const char* text, CvPoint org, CvFont *arg2); img 273 modules/highgui/src/window.cpp Mat img = _img.getMat(); img 274 modules/highgui/src/window.cpp CvMat c_img = img; img 283 modules/highgui/src/window.cpp Mat img = _img.getMat(); img 284 modules/highgui/src/window.cpp CvMat c_img = img; img 391 modules/highgui/src/window.cpp void cv::addText( const Mat& img, const String& text, Point org, const QtFont& font) img 393 modules/highgui/src/window.cpp CvMat _img = img; img 111 modules/highgui/src/window_QT.cpp CV_IMPL void cvAddText(const CvArr* img, const char* text, CvPoint org, CvFont* font) img 119 modules/highgui/src/window_QT.cpp Q_ARG(void*, (void*) img), img 207 modules/imgcodecs/include/opencv2/imgcodecs.hpp CV_EXPORTS_W bool imwrite( const String& filename, InputArray img, img 242 modules/imgcodecs/include/opencv2/imgcodecs.hpp CV_EXPORTS_W bool imencode( const String& ext, InputArray img, img 71 modules/imgcodecs/src/grfmt_base.hpp virtual bool readData( Mat& img ) = 0; img 101 modules/imgcodecs/src/grfmt_base.hpp virtual bool write( const Mat& img, const std::vector<int>& params ) = 0; img 184 modules/imgcodecs/src/grfmt_bmp.cpp bool BmpDecoder::readData( Mat& img ) img 186 modules/imgcodecs/src/grfmt_bmp.cpp uchar* data = img.ptr(); img 187 modules/imgcodecs/src/grfmt_bmp.cpp int step = (int)img.step; img 188 modules/imgcodecs/src/grfmt_bmp.cpp bool color = img.channels() > 1; img 502 modules/imgcodecs/src/grfmt_bmp.cpp bool BmpEncoder::write( const Mat& img, const std::vector<int>& ) img 504 modules/imgcodecs/src/grfmt_bmp.cpp int width = img.cols, height = img.rows, channels = img.channels(); img 556 modules/imgcodecs/src/grfmt_bmp.cpp strm.putBytes( img.ptr(y), width ); img 68 modules/imgcodecs/src/grfmt_bmp.hpp bool readData( Mat& img ); img 92 modules/imgcodecs/src/grfmt_bmp.hpp bool write( const Mat& img, const std::vector<int>& params ); img 185 modules/imgcodecs/src/grfmt_exr.cpp bool ExrDecoder::readData( Mat& img ) img 187 modules/imgcodecs/src/grfmt_exr.cpp m_native_depth = CV_MAT_DEPTH(type()) == img.depth(); img 188 modules/imgcodecs/src/grfmt_exr.cpp bool color = img.channels() > 1; img 190 modules/imgcodecs/src/grfmt_exr.cpp uchar* data = img.ptr(); img 191 modules/imgcodecs/src/grfmt_exr.cpp int step = img.step; img 578 modules/imgcodecs/src/grfmt_exr.cpp bool ExrEncoder::write( const Mat& img, const std::vector<int>& ) img 580 modules/imgcodecs/src/grfmt_exr.cpp int width = img.cols, height = img.rows; img 581 modules/imgcodecs/src/grfmt_exr.cpp int depth = img.depth(), channels = img.channels(); img 586 modules/imgcodecs/src/grfmt_exr.cpp const int step = img.step; img 620 modules/imgcodecs/src/grfmt_exr.cpp buffer = (char *)const_cast<uchar *>(img.ptr()); img 676 modules/imgcodecs/src/grfmt_exr.cpp const uchar* sd = img.ptr(line); img 682 modules/imgcodecs/src/grfmt_exr.cpp const unsigned short *sd = img.ptr<unsigned short>(line); img 688 modules/imgcodecs/src/grfmt_exr.cpp const int *sd = img.ptr<int>(line); // FIXME 64-bit problems img 699 modules/imgcodecs/src/grfmt_exr.cpp const uchar* sd = img.ptr(line); img 705 modules/imgcodecs/src/grfmt_exr.cpp const unsigned short *sd = img.ptr<unsigned short>(line); img 74 modules/imgcodecs/src/grfmt_exr.hpp bool readData( Mat& img ); img 109 modules/imgcodecs/src/grfmt_exr.hpp bool write( const Mat& img, const std::vector<int>& params ); img 342 modules/imgcodecs/src/grfmt_gdal.cpp bool GdalDecoder::readData( Mat& img ){ img 346 modules/imgcodecs/src/grfmt_gdal.cpp if( img.size().height != m_height ){ img 349 modules/imgcodecs/src/grfmt_gdal.cpp if( img.size().width != m_width ){ img 359 modules/imgcodecs/src/grfmt_gdal.cpp img = 0; img 373 modules/imgcodecs/src/grfmt_gdal.cpp if( nChannels > img.channels() ){ img 374 modules/imgcodecs/src/grfmt_gdal.cpp nChannels = img.channels(); img 404 modules/imgcodecs/src/grfmt_gdal.cpp write_pixel( scanline[x], gdalType, nChannels, img, y, x, c ); img 407 modules/imgcodecs/src/grfmt_gdal.cpp write_ctable_pixel( scanline[x], gdalType, gdalColorTable, img, y, x, c ); img 123 modules/imgcodecs/src/grfmt_gdal.hpp bool readData( Mat& img ); img 85 modules/imgcodecs/src/grfmt_hdr.cpp Mat img(m_height, m_width, CV_32FC3); img 91 modules/imgcodecs/src/grfmt_hdr.cpp RGBE_ReadPixels_RLE(file, const_cast<float*>(img.ptr<float>()), img.cols, img.rows); img 94 modules/imgcodecs/src/grfmt_hdr.cpp if(_img.depth() == img.depth()) { img 95 modules/imgcodecs/src/grfmt_hdr.cpp img.convertTo(_img, _img.type()); img 97 modules/imgcodecs/src/grfmt_hdr.cpp img.convertTo(_img, _img.type(), 255); img 127 modules/imgcodecs/src/grfmt_hdr.cpp Mat img; img 131 modules/imgcodecs/src/grfmt_hdr.cpp merge(splitted, img); img 133 modules/imgcodecs/src/grfmt_hdr.cpp input_img.copyTo(img); img 135 modules/imgcodecs/src/grfmt_hdr.cpp if(img.depth() != CV_32F) { img 136 modules/imgcodecs/src/grfmt_hdr.cpp img.convertTo(img, CV_32FC3, 1/255.0f); img 144 modules/imgcodecs/src/grfmt_hdr.cpp RGBE_WriteHeader(fout, img.cols, img.rows, NULL); img 146 modules/imgcodecs/src/grfmt_hdr.cpp RGBE_WritePixels_RLE(fout, const_cast<float*>(img.ptr<float>()), img.cols, img.rows); img 148 modules/imgcodecs/src/grfmt_hdr.cpp RGBE_WritePixels(fout, const_cast<float*>(img.ptr<float>()), img.cols * img.rows); img 64 modules/imgcodecs/src/grfmt_hdr.hpp bool readData( Mat& img ); img 79 modules/imgcodecs/src/grfmt_hdr.hpp bool write( const Mat& img, const std::vector<int>& params ); img 392 modules/imgcodecs/src/grfmt_jpeg.cpp bool JpegDecoder::readData( Mat& img ) img 395 modules/imgcodecs/src/grfmt_jpeg.cpp int step = (int)img.step; img 396 modules/imgcodecs/src/grfmt_jpeg.cpp bool color = img.channels() > 1; img 452 modules/imgcodecs/src/grfmt_jpeg.cpp uchar* data = img.ptr(); img 545 modules/imgcodecs/src/grfmt_jpeg.cpp bool JpegEncoder::write( const Mat& img, const std::vector<int>& params ) img 558 modules/imgcodecs/src/grfmt_jpeg.cpp int width = img.cols, height = img.rows; img 595 modules/imgcodecs/src/grfmt_jpeg.cpp int _channels = img.channels(); img 690 modules/imgcodecs/src/grfmt_jpeg.cpp uchar *data = img.data + img.step*y, *ptr = data; img 63 modules/imgcodecs/src/grfmt_jpeg.hpp bool readData( Mat& img ); img 82 modules/imgcodecs/src/grfmt_jpeg.hpp bool write( const Mat& img, const std::vector<int>& params ); img 154 modules/imgcodecs/src/grfmt_jpeg2000.cpp bool Jpeg2KDecoder::readData( Mat& img ) img 157 modules/imgcodecs/src/grfmt_jpeg2000.cpp int color = img.channels() > 1; img 158 modules/imgcodecs/src/grfmt_jpeg2000.cpp uchar* data = img.ptr(); img 159 modules/imgcodecs/src/grfmt_jpeg2000.cpp int step = (int)img.step; img 169 modules/imgcodecs/src/grfmt_jpeg2000.cpp if (CV_MAT_CN(img.type()) < CV_MAT_CN(this->type())) img 171 modules/imgcodecs/src/grfmt_jpeg2000.cpp clr.create(img.size().height, img.size().width, this->type()); img 254 modules/imgcodecs/src/grfmt_jpeg2000.cpp if( img.depth() == CV_8U ) img 278 modules/imgcodecs/src/grfmt_jpeg2000.cpp cv::cvtColor(clr, img, COLOR_BGR2GRAY); img 459 modules/imgcodecs/src/grfmt_jpeg2000.cpp jas_image_t *img = jas_image_create( channels, component_info, (channels == 1) ? JAS_CLRSPC_SGRAY : JAS_CLRSPC_SRGB ); img 460 modules/imgcodecs/src/grfmt_jpeg2000.cpp if( !img ) img 464 modules/imgcodecs/src/grfmt_jpeg2000.cpp jas_image_setcmpttype( img, 0, JAS_IMAGE_CT_GRAY_Y ); img 467 modules/imgcodecs/src/grfmt_jpeg2000.cpp jas_image_setcmpttype( img, 0, JAS_IMAGE_CT_RGB_B ); img 468 modules/imgcodecs/src/grfmt_jpeg2000.cpp jas_image_setcmpttype( img, 1, JAS_IMAGE_CT_RGB_G ); img 469 modules/imgcodecs/src/grfmt_jpeg2000.cpp jas_image_setcmpttype( img, 2, JAS_IMAGE_CT_RGB_R ); img 474 modules/imgcodecs/src/grfmt_jpeg2000.cpp result = writeComponent8u( img, _img ); img 476 modules/imgcodecs/src/grfmt_jpeg2000.cpp result = writeComponent16u( img, _img ); img 482 modules/imgcodecs/src/grfmt_jpeg2000.cpp result = !jas_image_encode( img, stream, jas_image_strtofmt( (char*)"jp2" ), (char*)"" ); img 488 modules/imgcodecs/src/grfmt_jpeg2000.cpp jas_image_destroy( img ); img 496 modules/imgcodecs/src/grfmt_jpeg2000.cpp jas_image_t* img = (jas_image_t*)__img; img 509 modules/imgcodecs/src/grfmt_jpeg2000.cpp jas_image_writecmpt( img, i, 0, y, w, 1, row ); img 520 modules/imgcodecs/src/grfmt_jpeg2000.cpp jas_image_t* img = (jas_image_t*)__img; img 533 modules/imgcodecs/src/grfmt_jpeg2000.cpp jas_image_writecmpt( img, i, 0, y, w, 1, row ); img 60 modules/imgcodecs/src/grfmt_jpeg2000.hpp bool readData( Mat& img ); img 83 modules/imgcodecs/src/grfmt_jpeg2000.hpp bool write( const Mat& img, const std::vector<int>& params ); img 87 modules/imgcodecs/src/grfmt_jpeg2000.hpp bool writeComponent8u( void *img, const Mat& _img ); img 88 modules/imgcodecs/src/grfmt_jpeg2000.hpp bool writeComponent16u( void *img, const Mat& _img ); img 225 modules/imgcodecs/src/grfmt_png.cpp bool PngDecoder::readData( Mat& img ) img 230 modules/imgcodecs/src/grfmt_png.cpp int color = img.channels() > 1; img 231 modules/imgcodecs/src/grfmt_png.cpp uchar* data = img.ptr(); img 232 modules/imgcodecs/src/grfmt_png.cpp int step = (int)img.step; img 244 modules/imgcodecs/src/grfmt_png.cpp if( img.depth() == CV_8U && m_bit_depth == 16 ) img 249 modules/imgcodecs/src/grfmt_png.cpp if(img.channels() < 4) img 341 modules/imgcodecs/src/grfmt_png.cpp bool PngEncoder::write( const Mat& img, const std::vector<int>& params ) img 346 modules/imgcodecs/src/grfmt_png.cpp int y, width = img.cols, height = img.rows; img 347 modules/imgcodecs/src/grfmt_png.cpp int depth = img.depth(), channels = img.channels(); img 428 modules/imgcodecs/src/grfmt_png.cpp buffer[y] = img.data + y*img.step; img 61 modules/imgcodecs/src/grfmt_png.hpp bool readData( Mat& img ); img 88 modules/imgcodecs/src/grfmt_png.hpp bool write( const Mat& img, const std::vector<int>& params ); img 189 modules/imgcodecs/src/grfmt_pxm.cpp bool PxMDecoder::readData( Mat& img ) img 191 modules/imgcodecs/src/grfmt_pxm.cpp int color = img.channels() > 1; img 192 modules/imgcodecs/src/grfmt_pxm.cpp uchar* data = img.ptr(); img 193 modules/imgcodecs/src/grfmt_pxm.cpp int step = (int)img.step; img 289 modules/imgcodecs/src/grfmt_pxm.cpp if( img.depth() == CV_8U && bit_depth == 16 ) img 302 modules/imgcodecs/src/grfmt_pxm.cpp if( img.depth() == CV_8U ) { img 319 modules/imgcodecs/src/grfmt_pxm.cpp if( img.depth() == CV_8U ) img 324 modules/imgcodecs/src/grfmt_pxm.cpp else if( img.depth() == CV_8U ) img 370 modules/imgcodecs/src/grfmt_pxm.cpp bool PxMEncoder::write( const Mat& img, const std::vector<int>& params ) img 374 modules/imgcodecs/src/grfmt_pxm.cpp int width = img.cols, height = img.rows; img 375 modules/imgcodecs/src/grfmt_pxm.cpp int _channels = img.channels(), depth = (int)img.elemSize1()*8; img 377 modules/imgcodecs/src/grfmt_pxm.cpp int fileStep = width*(int)img.elemSize(); img 390 modules/imgcodecs/src/grfmt_pxm.cpp int t = CV_MAKETYPE(img.depth(), channels); img 402 modules/imgcodecs/src/grfmt_pxm.cpp lineLength = width * (int)img.elemSize(); img 421 modules/imgcodecs/src/grfmt_pxm.cpp const uchar* const data = img.ptr(y); img 59 modules/imgcodecs/src/grfmt_pxm.hpp bool readData( Mat& img ); img 85 modules/imgcodecs/src/grfmt_pxm.hpp bool write( const Mat& img, const std::vector<int>& params ); img 155 modules/imgcodecs/src/grfmt_sunras.cpp bool SunRasterDecoder::readData( Mat& img ) img 157 modules/imgcodecs/src/grfmt_sunras.cpp int color = img.channels() > 1; img 158 modules/imgcodecs/src/grfmt_sunras.cpp uchar* data = img.ptr(); img 159 modules/imgcodecs/src/grfmt_sunras.cpp int step = (int)img.step; img 398 modules/imgcodecs/src/grfmt_sunras.cpp bool SunRasterEncoder::write( const Mat& img, const std::vector<int>& ) img 401 modules/imgcodecs/src/grfmt_sunras.cpp int y, width = img.cols, height = img.rows, channels = img.channels(); img 417 modules/imgcodecs/src/grfmt_sunras.cpp strm.putBytes( img.ptr(y), fileStep ); img 74 modules/imgcodecs/src/grfmt_sunras.hpp bool readData( Mat& img ); img 98 modules/imgcodecs/src/grfmt_sunras.hpp bool write( const Mat& img, const std::vector<int>& params ); img 197 modules/imgcodecs/src/grfmt_tiff.cpp bool TiffDecoder::readData( Mat& img ) img 199 modules/imgcodecs/src/grfmt_tiff.cpp if(m_hdr && img.type() == CV_32FC3) img 201 modules/imgcodecs/src/grfmt_tiff.cpp return readHdrData(img); img 204 modules/imgcodecs/src/grfmt_tiff.cpp bool color = img.channels() > 1; img 205 modules/imgcodecs/src/grfmt_tiff.cpp uchar* data = img.ptr(); img 207 modules/imgcodecs/src/grfmt_tiff.cpp if( img.depth() != CV_8U && img.depth() != CV_16U && img.depth() != CV_32F && img.depth() != CV_64F ) img 222 modules/imgcodecs/src/grfmt_tiff.cpp int dst_bpp = (int)(img.elemSize1() * bitsPerByte); img 223 modules/imgcodecs/src/grfmt_tiff.cpp int wanted_channels = normalizeChannelsNumber(img.channels()); img 258 modules/imgcodecs/src/grfmt_tiff.cpp for( y = 0; y < m_height; y += tile_height0, data += img.step*tile_height0 ) img 297 modules/imgcodecs/src/grfmt_tiff.cpp data + x*4 + img.step*(tile_height - i - 1), 0, img 303 modules/imgcodecs/src/grfmt_tiff.cpp data + x*3 + img.step*(tile_height - i - 1), 0, img 309 modules/imgcodecs/src/grfmt_tiff.cpp data + x + img.step*(tile_height - i - 1), 0, img 334 modules/imgcodecs/src/grfmt_tiff.cpp (ushort*)(data + img.step*i) + x*3, 0, img 340 modules/imgcodecs/src/grfmt_tiff.cpp (ushort*)(data + img.step*i) + x*3, 0, img 348 modules/imgcodecs/src/grfmt_tiff.cpp (ushort*)(data + img.step*i) + x * 4, 0, img 354 modules/imgcodecs/src/grfmt_tiff.cpp (ushort*)(data + img.step*i) + x * 3, 0, img 361 modules/imgcodecs/src/grfmt_tiff.cpp (ushort*)(data + img.step*i) + x*3, 0, img 369 modules/imgcodecs/src/grfmt_tiff.cpp memcpy((ushort*)(data + img.step*i)+x, img 376 modules/imgcodecs/src/grfmt_tiff.cpp (ushort*)(data + img.step*i) + x, 0, img 402 modules/imgcodecs/src/grfmt_tiff.cpp memcpy((float*)(data + img.step*i)+x, img 408 modules/imgcodecs/src/grfmt_tiff.cpp memcpy((double*)(data + img.step*i)+x, img 432 modules/imgcodecs/src/grfmt_tiff.cpp bool TiffDecoder::readHdrData(Mat& img) img 445 modules/imgcodecs/src/grfmt_tiff.cpp float *ptr = img.ptr<float>(); img 454 modules/imgcodecs/src/grfmt_tiff.cpp cvtColor(img, img, COLOR_XYZ2BGR); img 458 modules/imgcodecs/src/grfmt_tiff.cpp cvtColor(img, img, COLOR_RGB2BGR); img 517 modules/imgcodecs/src/grfmt_tiff.cpp bool TiffEncoder::writeLibTiff( const Mat& img, const std::vector<int>& params) img 519 modules/imgcodecs/src/grfmt_tiff.cpp int channels = img.channels(); img 520 modules/imgcodecs/src/grfmt_tiff.cpp int width = img.cols, height = img.rows; img 521 modules/imgcodecs/src/grfmt_tiff.cpp int depth = img.depth(); img 608 modules/imgcodecs/src/grfmt_tiff.cpp memcpy(buffer, img.ptr(y), scanlineSize); img 615 modules/imgcodecs/src/grfmt_tiff.cpp icvCvt_BGR2RGB_8u_C3R( img.ptr(y), 0, buffer, 0, cvSize(width,1) ); img 617 modules/imgcodecs/src/grfmt_tiff.cpp icvCvt_BGR2RGB_16u_C3R( img.ptr<ushort>(y), 0, (ushort*)buffer, 0, cvSize(width,1) ); img 624 modules/imgcodecs/src/grfmt_tiff.cpp icvCvt_BGRA2RGBA_8u_C4R( img.ptr(y), 0, buffer, 0, cvSize(width,1) ); img 626 modules/imgcodecs/src/grfmt_tiff.cpp icvCvt_BGRA2RGBA_16u_C4R( img.ptr<ushort>(y), 0, (ushort*)buffer, 0, cvSize(width,1) ); img 651 modules/imgcodecs/src/grfmt_tiff.cpp Mat img; img 652 modules/imgcodecs/src/grfmt_tiff.cpp cvtColor(_img, img, COLOR_BGR2XYZ); img 658 modules/imgcodecs/src/grfmt_tiff.cpp TIFFSetField(tif, TIFFTAG_IMAGEWIDTH, img.cols); img 659 modules/imgcodecs/src/grfmt_tiff.cpp TIFFSetField(tif, TIFFTAG_IMAGELENGTH, img.rows); img 666 modules/imgcodecs/src/grfmt_tiff.cpp int strip_size = 3 * img.cols; img 667 modules/imgcodecs/src/grfmt_tiff.cpp float *ptr = const_cast<float*>(img.ptr<float>()); img 668 modules/imgcodecs/src/grfmt_tiff.cpp for (int i = 0; i < img.rows; i++, ptr += strip_size) img 679 modules/imgcodecs/src/grfmt_tiff.cpp bool TiffEncoder::write( const Mat& img, const std::vector<int>& params) img 681 modules/imgcodecs/src/grfmt_tiff.cpp bool TiffEncoder::write( const Mat& img, const std::vector<int>& /*params*/) img 684 modules/imgcodecs/src/grfmt_tiff.cpp int channels = img.channels(); img 685 modules/imgcodecs/src/grfmt_tiff.cpp int width = img.cols, height = img.rows; img 686 modules/imgcodecs/src/grfmt_tiff.cpp int depth = img.depth(); img 688 modules/imgcodecs/src/grfmt_tiff.cpp if(img.type() == CV_32FC3) img 690 modules/imgcodecs/src/grfmt_tiff.cpp return writeHdr(img); img 710 modules/imgcodecs/src/grfmt_tiff.cpp return writeLibTiff(img, params); img 763 modules/imgcodecs/src/grfmt_tiff.cpp icvCvt_BGR2RGB_8u_C3R( img.ptr(y), 0, buffer, 0, cvSize(width,1) ); img 765 modules/imgcodecs/src/grfmt_tiff.cpp icvCvt_BGR2RGB_16u_C3R( img.ptr<ushort>(y), 0, (ushort*)buffer, 0, cvSize(width,1) ); img 772 modules/imgcodecs/src/grfmt_tiff.cpp icvCvt_BGRA2RGBA_8u_C4R( img.ptr(y), 0, buffer, 0, cvSize(width,1) ); img 774 modules/imgcodecs/src/grfmt_tiff.cpp icvCvt_BGRA2RGBA_16u_C4R( img.ptr<ushort>(y), 0, (ushort*)buffer, 0, cvSize(width,1) ); img 778 modules/imgcodecs/src/grfmt_tiff.cpp strm.putBytes( channels > 1 ? buffer : img.ptr(y), fileStep ); img 101 modules/imgcodecs/src/grfmt_tiff.hpp bool readData( Mat& img ); img 112 modules/imgcodecs/src/grfmt_tiff.hpp bool readHdrData(Mat& img); img 127 modules/imgcodecs/src/grfmt_tiff.hpp bool write( const Mat& img, const std::vector<int>& params ); img 135 modules/imgcodecs/src/grfmt_tiff.hpp bool writeLibTiff( const Mat& img, const std::vector<int>& params ); img 136 modules/imgcodecs/src/grfmt_tiff.hpp bool writeHdr( const Mat& img ); img 161 modules/imgcodecs/src/grfmt_webp.cpp bool WebPDecoder::readData(Mat &img) img 165 modules/imgcodecs/src/grfmt_webp.cpp if (img.cols != m_width || img.rows != m_height || img.type() != m_type) img 167 modules/imgcodecs/src/grfmt_webp.cpp img.create(m_height, m_width, m_type); img 170 modules/imgcodecs/src/grfmt_webp.cpp uchar* out_data = img.ptr(); img 171 modules/imgcodecs/src/grfmt_webp.cpp size_t out_data_size = img.cols * img.rows * img.elemSize(); img 177 modules/imgcodecs/src/grfmt_webp.cpp (int)out_data_size, (int)img.step); img 182 modules/imgcodecs/src/grfmt_webp.cpp (int)out_data_size, (int)img.step); img 207 modules/imgcodecs/src/grfmt_webp.cpp bool WebPEncoder::write(const Mat& img, const std::vector<int>& params) img 209 modules/imgcodecs/src/grfmt_webp.cpp int channels = img.channels(), depth = img.depth(); img 210 modules/imgcodecs/src/grfmt_webp.cpp int width = img.cols, height = img.rows; img 212 modules/imgcodecs/src/grfmt_webp.cpp const Mat *image = &img; img 62 modules/imgcodecs/src/grfmt_webp.hpp bool readData( Mat& img ); img 82 modules/imgcodecs/src/grfmt_webp.hpp bool write(const Mat& img, const std::vector<int>& params); img 405 modules/imgcodecs/src/loadsave.cpp Mat img; img 408 modules/imgcodecs/src/loadsave.cpp imread_( filename, flags, LOAD_MAT, &img ); img 411 modules/imgcodecs/src/loadsave.cpp return img; img 463 modules/imgcodecs/src/loadsave.cpp Mat img = _img.getMat(); img 464 modules/imgcodecs/src/loadsave.cpp return imwrite_(filename, img, params, false); img 555 modules/imgcodecs/src/loadsave.cpp Mat buf = _buf.getMat(), img; img 556 modules/imgcodecs/src/loadsave.cpp imdecode_( buf, flags, LOAD_MAT, &img ); img 557 modules/imgcodecs/src/loadsave.cpp return img; img 562 modules/imgcodecs/src/loadsave.cpp Mat buf = _buf.getMat(), img; img 563 modules/imgcodecs/src/loadsave.cpp dst = dst ? dst : &img; img 689 modules/imgcodecs/src/loadsave.cpp cv::Mat img = cv::cvarrToMat(arr); img 693 modules/imgcodecs/src/loadsave.cpp cv::flip(img, temp, 0); img 694 modules/imgcodecs/src/loadsave.cpp img = temp; img 698 modules/imgcodecs/src/loadsave.cpp bool code = cv::imencode(ext, img, buf, img 56 modules/imgcodecs/test/test_drawing.cpp virtual void draw( Mat& img ) = 0; img 57 modules/imgcodecs/test/test_drawing.cpp virtual int checkLineIterator( Mat& img) = 0; img 99 modules/imgcodecs/test/test_drawing.cpp virtual void draw( Mat& img ); img 100 modules/imgcodecs/test/test_drawing.cpp virtual int checkLineIterator( Mat& img); img 103 modules/imgcodecs/test/test_drawing.cpp void CV_DrawingTest_CPP::draw( Mat& img ) img 106 modules/imgcodecs/test/test_drawing.cpp img.create( imgSize, CV_8UC3 ); img 115 modules/imgcodecs/test/test_drawing.cpp fillPoly( img, &pts, &n, 1, Scalar::all(255) ); img 119 modules/imgcodecs/test/test_drawing.cpp circle( img, Point(300,100), 40, Scalar(0,0,255), 3 ); // draw img 123 modules/imgcodecs/test/test_drawing.cpp circle( img, Point(500,300), 50, cvColorToScalar(255,CV_8UC3), 5, 8, 1 ); // draw img 127 modules/imgcodecs/test/test_drawing.cpp circle( img, Point(390,100), 10, Scalar(0,0,255), 3 ); // not draw img 131 modules/imgcodecs/test/test_drawing.cpp ellipse( img, Point(390,100), Size(20,30), 60, 0, 220.0, Scalar(0,200,0), 4 ); //draw img 133 modules/imgcodecs/test/test_drawing.cpp ellipse( img, RotatedRect(Point(100,200),Size(200,100),160), Scalar(200,200,255), 5 ); img 139 modules/imgcodecs/test/test_drawing.cpp polylines( img, &pts, &n, 1, false, Scalar(0,0,150), 4, CV_AA ); img 143 modules/imgcodecs/test/test_drawing.cpp line( img, *it, *(it+1), Scalar(50,250,100)); img 150 modules/imgcodecs/test/test_drawing.cpp polylines( img, &pts, &n, 1, true, Scalar(100,200,100), 20 ); img 151 modules/imgcodecs/test/test_drawing.cpp fillConvexPoly( img, pts, n, Scalar(0, 80, 0) ); img 166 modules/imgcodecs/test/test_drawing.cpp fillPoly( img, ppts, pn, 2, Scalar(100, 100, 0), 8, 0, Point(500, 20) ); img 168 modules/imgcodecs/test/test_drawing.cpp rectangle( img, Point(0, 300), Point(50, 398), Scalar(0,0,255) ); img 175 modules/imgcodecs/test/test_drawing.cpp Point textOrg((img.cols - textSize.width)/2, (img.rows + textSize.height)/2); img 176 modules/imgcodecs/test/test_drawing.cpp rectangle(img, textOrg + Point(0, baseline), textOrg + Point(textSize.width, -textSize.height), Scalar(0,0,255)); img 177 modules/imgcodecs/test/test_drawing.cpp line(img, textOrg + Point(0, thickness), textOrg + Point(textSize.width, thickness), Scalar(0, 0, 255)); img 178 modules/imgcodecs/test/test_drawing.cpp putText(img, text1, textOrg, fontFace, fontScale, Scalar(150,0,150), thickness, 8); img 187 modules/imgcodecs/test/test_drawing.cpp putText(img, text2, textOrg, FONT_HERSHEY_SIMPLEX, fontScale, color, thickness, CV_AA); img 192 modules/imgcodecs/test/test_drawing.cpp putText(img, text2, textOrg, FONT_HERSHEY_PLAIN, fontScale, color, thickness, CV_AA); img 197 modules/imgcodecs/test/test_drawing.cpp putText(img, text2, textOrg, FONT_HERSHEY_DUPLEX, fontScale, color, thickness, CV_AA); img 201 modules/imgcodecs/test/test_drawing.cpp putText(img, text2, textOrg, FONT_HERSHEY_COMPLEX, fontScale, color, thickness, CV_AA); img 205 modules/imgcodecs/test/test_drawing.cpp putText(img, text2, textOrg, FONT_HERSHEY_TRIPLEX, fontScale, color, thickness, CV_AA); img 210 modules/imgcodecs/test/test_drawing.cpp putText(img, text2, textOrg, FONT_HERSHEY_COMPLEX_SMALL, fontScale, color, thickness, CV_AA); img 214 modules/imgcodecs/test/test_drawing.cpp putText(img, text2, textOrg, FONT_HERSHEY_SCRIPT_SIMPLEX, fontScale, color, thickness, CV_AA); img 218 modules/imgcodecs/test/test_drawing.cpp putText(img, text2, textOrg, FONT_HERSHEY_SCRIPT_COMPLEX, fontScale, color, thickness, CV_AA); img 223 modules/imgcodecs/test/test_drawing.cpp putText(img, text2, textOrg, FONT_ITALIC, fontScale, color, thickness, CV_AA); img 226 modules/imgcodecs/test/test_drawing.cpp int CV_DrawingTest_CPP::checkLineIterator( Mat& img ) img 228 modules/imgcodecs/test/test_drawing.cpp LineIterator it( img, Point(0,300), Point(1000, 300) ); img 231 modules/imgcodecs/test/test_drawing.cpp Vec3b v = (Vec3b)(*(*it)) - img.at<Vec3b>(300,i); img 248 modules/imgcodecs/test/test_drawing.cpp virtual void draw( Mat& img ); img 249 modules/imgcodecs/test/test_drawing.cpp virtual int checkLineIterator( Mat& img); img 256 modules/imgcodecs/test/test_drawing.cpp CvMat img = _img; img 266 modules/imgcodecs/test/test_drawing.cpp cvFillPoly( &img, &pts, &n, 1, cvScalar(255,255,255) ); img 270 modules/imgcodecs/test/test_drawing.cpp cvCircle( &img, cvPoint(300,100), 40, cvScalar(0,0,255), 3 ); // draw img 274 modules/imgcodecs/test/test_drawing.cpp cvCircle( &img, cvPoint(500,300), 50, cvScalar(255,0,0), 5, 8, 1 ); // draw img 278 modules/imgcodecs/test/test_drawing.cpp cvCircle( &img, cvPoint(390,100), 10, cvScalar(0,0,255), 3 ); // not draw img 282 modules/imgcodecs/test/test_drawing.cpp cvEllipse( &img, cvPoint(390,100), cvSize(20,30), 60, 0, 220.0, cvScalar(0,200,0), 4 ); //draw img 290 modules/imgcodecs/test/test_drawing.cpp cvEllipseBox( &img, box, Scalar(200,200,255), 5 ); img 297 modules/imgcodecs/test/test_drawing.cpp cvPolyLine( &img, &pts, &n, 1, false, cvScalar(0,0,150), 4, CV_AA ); img 301 modules/imgcodecs/test/test_drawing.cpp cvLine( &img, *it, *(it+1), cvScalar(50,250,100) ); img 309 modules/imgcodecs/test/test_drawing.cpp cvPolyLine( &img, &pts, &n, 1, true, Scalar(100,200,100), 20 ); img 310 modules/imgcodecs/test/test_drawing.cpp cvFillConvexPoly( &img, pts, n, cvScalar(0, 80, 0) ); img 325 modules/imgcodecs/test/test_drawing.cpp cvFillPoly( &img, ppts, pn, 2, cvScalar(100, 100, 0), 8, 0 ); img 327 modules/imgcodecs/test/test_drawing.cpp cvRectangle( &img, cvPoint(0, 300), cvPoint(50, 398), cvScalar(0,0,255) ); img 337 modules/imgcodecs/test/test_drawing.cpp cvRectangle( &img, cvPoint( textOrg.x, textOrg.y + baseline), img 339 modules/imgcodecs/test/test_drawing.cpp cvLine( &img, cvPoint(textOrg.x, textOrg.y + font.thickness), img 341 modules/imgcodecs/test/test_drawing.cpp cvPutText( &img, text1.c_str(), textOrg, &font, cvScalar(150,0,150) ); img 349 modules/imgcodecs/test/test_drawing.cpp cvPutText(&img, text2.c_str(), textOrg, &font, color ); img 354 modules/imgcodecs/test/test_drawing.cpp cvPutText(&img, text2.c_str(), textOrg, &font, color ); img 359 modules/imgcodecs/test/test_drawing.cpp cvPutText(&img, text2.c_str(), textOrg, &font, color ); img 364 modules/imgcodecs/test/test_drawing.cpp cvPutText(&img, text2.c_str(), textOrg, &font, color ); img 369 modules/imgcodecs/test/test_drawing.cpp cvPutText(&img, text2.c_str(), textOrg, &font, color ); img 374 modules/imgcodecs/test/test_drawing.cpp cvPutText(&img, text2.c_str(), textOrg, &font, color ); img 379 modules/imgcodecs/test/test_drawing.cpp cvPutText(&img, text2.c_str(), textOrg, &font, color ); img 384 modules/imgcodecs/test/test_drawing.cpp cvPutText(&img, text2.c_str(), textOrg, &font, color ); img 390 modules/imgcodecs/test/test_drawing.cpp cvPutText(&img, text2.c_str(), textOrg, &font, color ); img 396 modules/imgcodecs/test/test_drawing.cpp CvMat img = _img; img 397 modules/imgcodecs/test/test_drawing.cpp int count = cvInitLineIterator( &img, cvPoint(0,300), cvPoint(1000, 300), &it ); img 505 modules/imgcodecs/test/test_drawing.cpp Mat img(textSize + Size(0, baseline), CV_8UC3, Scalar(255, 255, 255)); img 506 modules/imgcodecs/test/test_drawing.cpp putText(img, *line, textOrg, *font | italic, fontScale, color, thickness, CV_AA); img 508 modules/imgcodecs/test/test_drawing.cpp results.push_back(img); img 509 modules/imgcodecs/test/test_drawing.cpp bigSize.width = max(bigSize.width, img.size().width); img 510 modules/imgcodecs/test/test_drawing.cpp bigSize.height += img.size().height + 1; img 517 modules/imgcodecs/test/test_drawing.cpp for (vector<Mat>::const_iterator img = results.begin(); img != results.end(); ++img) img 519 modules/imgcodecs/test/test_drawing.cpp Rect roi(Point(0, shift), img->size()); img 521 modules/imgcodecs/test/test_drawing.cpp img->copyTo(sub); img 522 modules/imgcodecs/test/test_drawing.cpp shift += img->size().height + 1; img 141 modules/imgcodecs/test/test_grfmt.cpp Mat img = imread(string(ts->get_data_path()) + "readwrite/read.png"); img 143 modules/imgcodecs/test/test_grfmt.cpp if (img.empty()) ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); img 145 modules/imgcodecs/test/test_grfmt.cpp imwrite(cv::tempfile(".png"), img); img 191 modules/imgcodecs/test/test_grfmt.cpp Mat img(img_r * k, img_c * k, CV_MAKETYPE(CV_8U, num_channels), Scalar::all(0)); img 192 modules/imgcodecs/test/test_grfmt.cpp circle(img, Point2i((img_c * k) / 2, (img_r * k) / 2), std::min((img_r * k), (img_c * k)) / 4 , Scalar::all(255)); img 196 modules/imgcodecs/test/test_grfmt.cpp imwrite(img_path, img); img 203 modules/imgcodecs/test/test_grfmt.cpp CV_Assert(img.size() == img_test.size()); img 204 modules/imgcodecs/test/test_grfmt.cpp CV_Assert(img.type() == img_test.type()); img 207 modules/imgcodecs/test/test_grfmt.cpp double n = cvtest::norm(img, img_test, NORM_L2); img 221 modules/imgcodecs/test/test_grfmt.cpp Mat img(img_r * k, img_c * k, CV_MAKETYPE(CV_8U, num_channels), Scalar::all(0)); img 222 modules/imgcodecs/test/test_grfmt.cpp circle(img, Point2i((img_c * k) / 2, (img_r * k) / 2), std::min((img_r * k), (img_c * k)) / 4 , Scalar::all(255)); img 225 modules/imgcodecs/test/test_grfmt.cpp imwrite(filename, img); img 231 modules/imgcodecs/test/test_grfmt.cpp CV_Assert(img.size() == img_test.size()); img 232 modules/imgcodecs/test/test_grfmt.cpp CV_Assert(img.type() == img_test.type()); img 236 modules/imgcodecs/test/test_grfmt.cpp double n = cvtest::norm(img, img_test, NORM_L1); img 237 modules/imgcodecs/test/test_grfmt.cpp double expected = 0.05 * img.size().area(); img 252 modules/imgcodecs/test/test_grfmt.cpp Mat img(img_r * k, img_c * k, CV_MAKETYPE(CV_16U, num_channels), Scalar::all(0)); img 253 modules/imgcodecs/test/test_grfmt.cpp circle(img, Point2i((img_c * k) / 2, (img_r * k) / 2), std::min((img_r * k), (img_c * k)) / 4 , Scalar::all(255)); img 256 modules/imgcodecs/test/test_grfmt.cpp imwrite(filename, img); img 262 modules/imgcodecs/test/test_grfmt.cpp CV_Assert(img.size() == img_test.size()); img 264 modules/imgcodecs/test/test_grfmt.cpp ts->printf(ts->LOG, "img : %d ; %d \n", img.channels(), img.depth()); img 267 modules/imgcodecs/test/test_grfmt.cpp CV_Assert(img.type() == img_test.type()); img 270 modules/imgcodecs/test/test_grfmt.cpp double n = cvtest::norm(img, img_test, NORM_L2); img 381 modules/imgcodecs/test/test_grfmt.cpp Mat img = imread(string(ts->get_data_path()) + "readwrite/color_palette_alpha.png",-1); img 382 modules/imgcodecs/test/test_grfmt.cpp if (img.empty()) ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); img 384 modules/imgcodecs/test/test_grfmt.cpp ASSERT_TRUE(img.channels() == 4); img 386 modules/imgcodecs/test/test_grfmt.cpp unsigned char* img_data = img.ptr(); img 401 modules/imgcodecs/test/test_grfmt.cpp img = imread(string(ts->get_data_path()) + "readwrite/color_palette_no_alpha.png",-1); img 402 modules/imgcodecs/test/test_grfmt.cpp if (img.empty()) ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); img 404 modules/imgcodecs/test/test_grfmt.cpp ASSERT_TRUE(img.channels() == 3); img 406 modules/imgcodecs/test/test_grfmt.cpp img_data = img.ptr(); img 419 modules/imgcodecs/test/test_grfmt.cpp img = imread(string(ts->get_data_path()) + "readwrite/color_palette_alpha.png",1); img 420 modules/imgcodecs/test/test_grfmt.cpp if (img.empty()) ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); img 422 modules/imgcodecs/test/test_grfmt.cpp ASSERT_TRUE(img.channels() == 3); img 424 modules/imgcodecs/test/test_grfmt.cpp img_data = img.ptr(); img 437 modules/imgcodecs/test/test_grfmt.cpp img = imread(string(ts->get_data_path()) + "readwrite/color_palette_no_alpha.png",1); img 438 modules/imgcodecs/test/test_grfmt.cpp if (img.empty()) ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); img 440 modules/imgcodecs/test/test_grfmt.cpp ASSERT_TRUE(img.channels() == 3); img 442 modules/imgcodecs/test/test_grfmt.cpp img_data = img.ptr(); img 468 modules/imgcodecs/test/test_grfmt.cpp cv::Mat img; img 471 modules/imgcodecs/test/test_grfmt.cpp ASSERT_THROW(cv::imencode(".jpg", img, jpegImg), cv::Exception); img 478 modules/imgcodecs/test/test_grfmt.cpp cv::Mat img = cv::imread(input); img 479 modules/imgcodecs/test/test_grfmt.cpp ASSERT_FALSE(img.empty()); img 486 modules/imgcodecs/test/test_grfmt.cpp EXPECT_NO_THROW(cv::imwrite(output_progressive, img, params)); img 490 modules/imgcodecs/test/test_grfmt.cpp EXPECT_NO_THROW(cv::imwrite(output_normal, img)); img 502 modules/imgcodecs/test/test_grfmt.cpp cv::Mat img = cv::imread(input); img 503 modules/imgcodecs/test/test_grfmt.cpp ASSERT_FALSE(img.empty()); img 510 modules/imgcodecs/test/test_grfmt.cpp EXPECT_NO_THROW(cv::imwrite(output_optimized, img, params)); img 514 modules/imgcodecs/test/test_grfmt.cpp EXPECT_NO_THROW(cv::imwrite(output_normal, img)); img 526 modules/imgcodecs/test/test_grfmt.cpp cv::Mat img = cv::imread(input); img 527 modules/imgcodecs/test/test_grfmt.cpp ASSERT_FALSE(img.empty()); img 534 modules/imgcodecs/test/test_grfmt.cpp EXPECT_NO_THROW(cv::imwrite(output_rst, img, params)); img 538 modules/imgcodecs/test/test_grfmt.cpp EXPECT_NO_THROW(cv::imwrite(output_normal, img)); img 623 modules/imgcodecs/test/test_grfmt.cpp Mat img = imread(filename, IMREAD_UNCHANGED); img 625 modules/imgcodecs/test/test_grfmt.cpp EXPECT_EQ(1, img.rows); img 626 modules/imgcodecs/test/test_grfmt.cpp EXPECT_EQ(2, img.cols); img 627 modules/imgcodecs/test/test_grfmt.cpp EXPECT_EQ(CV_16U, img.type()); img 628 modules/imgcodecs/test/test_grfmt.cpp EXPECT_EQ(sizeof(ushort), img.elemSize()); img 629 modules/imgcodecs/test/test_grfmt.cpp EXPECT_EQ(1, img.channels()); img 630 modules/imgcodecs/test/test_grfmt.cpp EXPECT_EQ(0xDEAD, img.at<ushort>(0,0)); img 631 modules/imgcodecs/test/test_grfmt.cpp EXPECT_EQ(0xBEEF, img.at<ushort>(0,1)); img 651 modules/imgcodecs/test/test_grfmt.cpp cv::Mat img = imread(string(ts->get_data_path()) + "readwrite/non_tiled.tif",-1); img 652 modules/imgcodecs/test/test_grfmt.cpp if (img.empty()) ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); img 653 modules/imgcodecs/test/test_grfmt.cpp ASSERT_TRUE(img.channels() == 3); img 656 modules/imgcodecs/test/test_grfmt.cpp ASSERT_PRED_FORMAT2(cvtest::MatComparator(0, 0), img, tiled8); img 662 modules/imgcodecs/test/test_grfmt.cpp ASSERT_PRED_FORMAT2(cvtest::MatComparator(2, 0), img, tiled8); img 756 modules/imgcodecs/test/test_grfmt.cpp cv::Mat img = cv::imread(input); img 757 modules/imgcodecs/test/test_grfmt.cpp ASSERT_FALSE(img.empty()); img 760 modules/imgcodecs/test/test_grfmt.cpp EXPECT_NO_THROW(cv::imwrite(output, img)); // lossless img 798 modules/imgcodecs/test/test_grfmt.cpp EXPECT_TRUE(cvtest::norm(img, img_webp, NORM_INF) == 0); img 805 modules/imgcodecs/test/test_grfmt.cpp cv::Mat img = cv::imread(input); img 806 modules/imgcodecs/test/test_grfmt.cpp ASSERT_FALSE(img.empty()); img 815 modules/imgcodecs/test/test_grfmt.cpp EXPECT_NO_THROW(cv::imwrite(output, img, params)); img 829 modules/imgcodecs/test/test_grfmt.cpp cv::Mat img = cv::imread(input); img 830 modules/imgcodecs/test/test_grfmt.cpp ASSERT_FALSE(img.empty()); img 833 modules/imgcodecs/test/test_grfmt.cpp cv::split(img, imgs); img 836 modules/imgcodecs/test/test_grfmt.cpp cv::merge(imgs, img); img 840 modules/imgcodecs/test/test_grfmt.cpp EXPECT_NO_THROW(cv::imwrite(output, img)); img 3055 modules/imgproc/include/opencv2/imgproc.hpp CV_EXPORTS_W void grabCut( InputArray img, InputOutputArray mask, Rect rect, img 3776 modules/imgproc/include/opencv2/imgproc.hpp CV_EXPORTS_W void line(InputOutputArray img, Point pt1, Point pt2, const Scalar& color, img 3792 modules/imgproc/include/opencv2/imgproc.hpp CV_EXPORTS_W void arrowedLine(InputOutputArray img, Point pt1, Point pt2, const Scalar& color, img 3809 modules/imgproc/include/opencv2/imgproc.hpp CV_EXPORTS_W void rectangle(InputOutputArray img, Point pt1, Point pt2, img 3818 modules/imgproc/include/opencv2/imgproc.hpp CV_EXPORTS void rectangle(CV_IN_OUT Mat& img, Rect rec, img 3834 modules/imgproc/include/opencv2/imgproc.hpp CV_EXPORTS_W void circle(InputOutputArray img, Point center, int radius, img 3861 modules/imgproc/include/opencv2/imgproc.hpp CV_EXPORTS_W void ellipse(InputOutputArray img, Point center, Size axes, img 3875 modules/imgproc/include/opencv2/imgproc.hpp CV_EXPORTS_W void ellipse(InputOutputArray img, const RotatedRect& box, const Scalar& color, img 3879 modules/imgproc/include/opencv2/imgproc.hpp CV_EXPORTS void fillConvexPoly(Mat& img, const Point* pts, int npts, img 3896 modules/imgproc/include/opencv2/imgproc.hpp CV_EXPORTS_W void fillConvexPoly(InputOutputArray img, InputArray points, img 3901 modules/imgproc/include/opencv2/imgproc.hpp CV_EXPORTS void fillPoly(Mat& img, const Point** pts, img 3919 modules/imgproc/include/opencv2/imgproc.hpp CV_EXPORTS_W void fillPoly(InputOutputArray img, InputArrayOfArrays pts, img 3924 modules/imgproc/include/opencv2/imgproc.hpp CV_EXPORTS void polylines(Mat& img, const Point* const* pts, const int* npts, img 3941 modules/imgproc/include/opencv2/imgproc.hpp CV_EXPORTS_W void polylines(InputOutputArray img, InputArrayOfArrays pts, img 4075 modules/imgproc/include/opencv2/imgproc.hpp CV_EXPORTS_W void putText( InputOutputArray img, const String& text, Point org, img 4173 modules/imgproc/include/opencv2/imgproc.hpp LineIterator( const Mat& img, Point pt1, Point pt2, img 162 modules/imgproc/include/opencv2/imgproc/imgproc_c.h CVAPI(CvMat**) cvCreatePyramid( const CvArr* img, int extra_layers, double rate, img 993 modules/imgproc/include/opencv2/imgproc/imgproc_c.h CVAPI(void) cvLine( CvArr* img, CvPoint pt1, CvPoint pt2, img 1002 modules/imgproc/include/opencv2/imgproc/imgproc_c.h CVAPI(void) cvRectangle( CvArr* img, CvPoint pt1, CvPoint pt2, img 1010 modules/imgproc/include/opencv2/imgproc/imgproc_c.h CVAPI(void) cvRectangleR( CvArr* img, CvRect r, img 1021 modules/imgproc/include/opencv2/imgproc/imgproc_c.h CVAPI(void) cvCircle( CvArr* img, CvPoint center, int radius, img 1031 modules/imgproc/include/opencv2/imgproc/imgproc_c.h CVAPI(void) cvEllipse( CvArr* img, CvPoint center, CvSize axes, img 1036 modules/imgproc/include/opencv2/imgproc/imgproc_c.h CV_INLINE void cvEllipseBox( CvArr* img, CvBox2D box, CvScalar color, img 1044 modules/imgproc/include/opencv2/imgproc/imgproc_c.h cvEllipse( img, cvPointFrom32f( box.center ), axes, box.angle, img 1051 modules/imgproc/include/opencv2/imgproc/imgproc_c.h CVAPI(void) cvFillConvexPoly( CvArr* img, const CvPoint* pts, int npts, CvScalar color, img 1057 modules/imgproc/include/opencv2/imgproc/imgproc_c.h CVAPI(void) cvFillPoly( CvArr* img, CvPoint** pts, const int* npts, img 1064 modules/imgproc/include/opencv2/imgproc/imgproc_c.h CVAPI(void) cvPolyLine( CvArr* img, CvPoint** pts, const int* npts, int contours, img 1168 modules/imgproc/include/opencv2/imgproc/imgproc_c.h CVAPI(void) cvPutText( CvArr* img, const char* text, CvPoint org, img 1198 modules/imgproc/include/opencv2/imgproc/imgproc_c.h CVAPI(void) cvDrawContours( CvArr *img, CvSeq* contour, img 583 modules/imgproc/misc/java/test/ImgprocTest.java Mat img = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(128)); img 584 modules/imgproc/misc/java/test/ImgprocTest.java Point truthPosition = new Point(img.cols() / 2, img.rows() / 2); img 587 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.rectangle(img, r.tl(), r.br(), new Scalar(0), Core.FILLED); img 593 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.cornerSubPix(img, corners, winSize, zeroZone, criteria); img 751 modules/imgproc/misc/java/test/ImgprocTest.java Mat img = new Mat(50, 50, CvType.CV_8UC1, new Scalar(0)); img 755 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.findContours(img, contours, hierarchy, Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE); img 761 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.rectangle(img, new Point(10, 20), new Point(20, 30), new Scalar(100), 3, Imgproc.LINE_AA, 0); img 762 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.rectangle(img, new Point(30, 35), new Point(40, 45), new Scalar(200)); img 764 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.findContours(img, contours, hierarchy, Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE); img 772 modules/imgproc/misc/java/test/ImgprocTest.java Mat img = new Mat(50, 50, CvType.CV_8UC1, new Scalar(0)); img 773 modules/imgproc/misc/java/test/ImgprocTest.java Mat img2 = img.submat(5, 50, 3, 50); img 778 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.rectangle(img, new Point(10, 20), new Point(20, 30), new Scalar(100), 3, Imgproc.LINE_AA, 0); img 779 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.rectangle(img, new Point(30, 35), new Point(40, 45), new Scalar(200)); img 781 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.findContours(img, contours, hierarchy, Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE); img 819 modules/imgproc/misc/java/test/ImgprocTest.java Mat img = gray0; img 822 modules/imgproc/misc/java/test/ImgprocTest.java int retval = Imgproc.floodFill(img, mask, new Point(matSize / 2, matSize / 2), new Scalar(1)); img 824 modules/imgproc/misc/java/test/ImgprocTest.java assertEquals(Core.countNonZero(img), retval); img 827 modules/imgproc/misc/java/test/ImgprocTest.java assertMatEqual(mask.submat(1, matSize + 1, 1, matSize + 1), img); img 831 modules/imgproc/misc/java/test/ImgprocTest.java Mat img = gray0; img 832 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.circle(img, new Point(matSize / 2, matSize / 2), 3, new Scalar(2)); img 835 modules/imgproc/misc/java/test/ImgprocTest.java int retval = Imgproc.floodFill(img, new Mat(), new Point(matSize / 2, matSize / 2), new Scalar(1)); img 837 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.circle(img, new Point(matSize / 2, matSize / 2), 3, new Scalar(0)); img 838 modules/imgproc/misc/java/test/ImgprocTest.java assertEquals(Core.countNonZero(img), retval); img 1051 modules/imgproc/misc/java/test/ImgprocTest.java Mat img = new Mat(sz, sz, CvType.CV_8U, new Scalar(128)); img 1054 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.HoughCircles(img, circles, Imgproc.CV_HOUGH_GRADIENT, 2, img.rows() / 4); img 1061 modules/imgproc/misc/java/test/ImgprocTest.java Mat img = new Mat(sz, sz, CvType.CV_8U, new Scalar(128)); img 1064 modules/imgproc/misc/java/test/ImgprocTest.java Point center = new Point(img.cols() / 2, img.rows() / 2); img 1065 modules/imgproc/misc/java/test/ImgprocTest.java int radius = Math.min(img.cols() / 4, img.rows() / 4); img 1066 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.circle(img, center, radius, colorBlack, 3); img 1068 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.HoughCircles(img, circles, Imgproc.CV_HOUGH_GRADIENT, 2, img.rows() / 4); img 1079 modules/imgproc/misc/java/test/ImgprocTest.java Mat img = new Mat(sz, sz, CvType.CV_8U, new Scalar(0)); img 1081 modules/imgproc/misc/java/test/ImgprocTest.java Point point2 = new Point(img.cols() / 2, img.rows() / 2); img 1082 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.line(img, point1, point2, colorWhite, 1); img 1085 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.HoughLines(img, lines, 1, 3.1415926/180, 100); img 1108 modules/imgproc/misc/java/test/ImgprocTest.java Mat img = new Mat(sz, sz, CvType.CV_8U, new Scalar(0)); img 1113 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.line(img, point1, point2, Scalar.all(255), 1); img 1114 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.line(img, point3, point4, Scalar.all(255), 1); img 1117 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.HoughLinesP(img, lines, 1, 3.1415926/180, 100); img 2117 modules/imgproc/misc/java/test/ImgprocTest.java Mat img = gray0; img 2121 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.polylines(img, polyline, true, new Scalar(100)); img 2123 modules/imgproc/misc/java/test/ImgprocTest.java assertEquals(22, Core.countNonZero(img)); img 2125 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.polylines(img, polyline, false, new Scalar(0)); img 2127 modules/imgproc/misc/java/test/ImgprocTest.java assertEquals(4, Core.countNonZero(img)); img 2131 modules/imgproc/misc/java/test/ImgprocTest.java Mat img = gray0; img 2135 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.polylines(img, polyline, true, new Scalar(100), 2); img 2137 modules/imgproc/misc/java/test/ImgprocTest.java assertEquals(62, Core.countNonZero(img)); img 2141 modules/imgproc/misc/java/test/ImgprocTest.java Mat img = gray0; img 2147 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.polylines(img, polyline1, true, new Scalar(100), 2, Imgproc.LINE_8, 0); img 2149 modules/imgproc/misc/java/test/ImgprocTest.java assertTrue(Core.countNonZero(img) > 0); img 2151 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.polylines(img, polyline2, true, new Scalar(0), 2, Imgproc.LINE_8, 1); img 2153 modules/imgproc/misc/java/test/ImgprocTest.java assertEquals(0, Core.countNonZero(img)); img 2159 modules/imgproc/misc/java/test/ImgprocTest.java Mat img = new Mat(20 + (int) labelSize.height, 20 + (int) labelSize.width, CvType.CV_8U, colorBlack); img 2162 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.putText(img, text, origin, Core.FONT_HERSHEY_SIMPLEX, 1.0, colorWhite); img 2164 modules/imgproc/misc/java/test/ImgprocTest.java assertTrue(Core.countNonZero(img) > 0); img 2166 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.rectangle(img, new Point(11, 11), new Point(labelSize.width + 10, labelSize.height + 10), colorBlack, Core.FILLED); img 2167 modules/imgproc/misc/java/test/ImgprocTest.java assertEquals(0, Core.countNonZero(img)); img 2173 modules/imgproc/misc/java/test/ImgprocTest.java Mat img = new Mat(20 + (int) labelSize.height, 20 + (int) labelSize.width, CvType.CV_8U, colorBlack); img 2176 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.putText(img, text, origin, Core.FONT_HERSHEY_SIMPLEX, 1.0, colorWhite, 2); img 2178 modules/imgproc/misc/java/test/ImgprocTest.java assertTrue(Core.countNonZero(img) > 0); img 2180 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.rectangle(img, new Point(10, 10), new Point(labelSize.width + 10 + 1, labelSize.height + 10 + 1), colorBlack, Core.FILLED); img 2181 modules/imgproc/misc/java/test/ImgprocTest.java assertEquals(0, Core.countNonZero(img)); img 2188 modules/imgproc/misc/java/test/ImgprocTest.java Mat img = new Mat(20 + (int) labelSize.height, 20 + (int) labelSize.width, CvType.CV_8U, colorBlack); img 2191 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.putText(img, text, origin, Core.FONT_HERSHEY_SIMPLEX, 1.0, colorWhite, 1, Imgproc.LINE_8, true); img 2193 modules/imgproc/misc/java/test/ImgprocTest.java assertTrue(Core.countNonZero(img) > 0); img 2195 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.rectangle(img, new Point(10, 10), new Point(labelSize.width + 9, labelSize.height + 9), colorBlack, Core.FILLED); img 2196 modules/imgproc/misc/java/test/ImgprocTest.java assertEquals(0, Core.countNonZero(img)); img 69 modules/imgproc/perf/opencl/perf_gftt.cpp Mat img = imread(getDataPath(fileName), cv::IMREAD_GRAYSCALE); img 70 modules/imgproc/perf/opencl/perf_gftt.cpp ASSERT_FALSE(img.empty()) << "could not load " << fileName; img 72 modules/imgproc/perf/opencl/perf_gftt.cpp checkDeviceMaxMemoryAllocSize(img.size(), img.type()); img 74 modules/imgproc/perf/opencl/perf_gftt.cpp UMat src(img.size(), img.type()), dst(1, maxCorners, CV_32FC2); img 75 modules/imgproc/perf/opencl/perf_gftt.cpp img.copyTo(src); img 314 modules/imgproc/perf/opencl/perf_imgproc.cpp UMat img; img 315 modules/imgproc/perf/opencl/perf_imgproc.cpp _img.copyTo(img); img 316 modules/imgproc/perf/opencl/perf_imgproc.cpp UMat edges(img.size(), CV_8UC1); img 318 modules/imgproc/perf/opencl/perf_imgproc.cpp declare.in(img, WARMUP_RNG).out(edges); img 320 modules/imgproc/perf/opencl/perf_imgproc.cpp OCL_TEST_CYCLE() cv::Canny(img, edges, 50.0, 100.0, apertureSize, L2Grad); img 29 modules/imgproc/perf/opencl/perf_matchTemplate.cpp UMat img(imgSz, type), tmpl(tmplSz, type); img 32 modules/imgproc/perf/opencl/perf_matchTemplate.cpp declare.in(img, tmpl, WARMUP_RNG).out(result); img 34 modules/imgproc/perf/opencl/perf_matchTemplate.cpp OCL_TEST_CYCLE() matchTemplate(img, tmpl, result, method); img 27 modules/imgproc/perf/perf_canny.cpp Mat img = imread(filename, IMREAD_GRAYSCALE); img 28 modules/imgproc/perf/perf_canny.cpp if (img.empty()) img 30 modules/imgproc/perf/perf_canny.cpp Mat edges(img.size(), img.type()); img 32 modules/imgproc/perf/perf_canny.cpp declare.in(img).out(edges); img 34 modules/imgproc/perf/perf_canny.cpp TEST_CYCLE() Canny(img, edges, thresh_low, thresh_high, aperture, useL2); img 29 modules/imgproc/perf/perf_matchTemplate.cpp Mat img(imgSz, CV_8UC1); img 34 modules/imgproc/perf/perf_matchTemplate.cpp .in(img, WARMUP_RNG) img 39 modules/imgproc/perf/perf_matchTemplate.cpp TEST_CYCLE() matchTemplate(img, tmpl, result, method); img 63 modules/imgproc/perf/perf_matchTemplate.cpp Mat img(imgSz, CV_8UC1); img 68 modules/imgproc/perf/perf_matchTemplate.cpp .in(img, WARMUP_RNG) img 73 modules/imgproc/perf/perf_matchTemplate.cpp TEST_CYCLE() matchTemplate(img, tmpl, result, method); img 368 modules/imgproc/src/connectedcomponents.cpp const cv::Mat img = _img.getMat(); img 369 modules/imgproc/src/connectedcomponents.cpp _labels.create(img.size(), CV_MAT_DEPTH(ltype)); img 373 modules/imgproc/src/connectedcomponents.cpp return connectedComponents_sub1(img, labels, connectivity, sop); img 375 modules/imgproc/src/connectedcomponents.cpp return connectedComponents_sub1(img, labels, connectivity, sop); img 385 modules/imgproc/src/connectedcomponents.cpp const cv::Mat img = _img.getMat(); img 386 modules/imgproc/src/connectedcomponents.cpp _labels.create(img.size(), CV_MAT_DEPTH(ltype)); img 390 modules/imgproc/src/connectedcomponents.cpp return connectedComponents_sub1(img, labels, connectivity, sop); img 392 modules/imgproc/src/connectedcomponents.cpp return connectedComponents_sub1(img, labels, connectivity, sop); img 142 modules/imgproc/src/contours.cpp schar *img; /* current image row */ img 202 modules/imgproc/src/contours.cpp uchar* img = (uchar*)(mat->data.ptr); img 214 modules/imgproc/src/contours.cpp scanner->img0 = (schar *) img; img 215 modules/imgproc/src/contours.cpp scanner->img = (schar *) (img + step); img 291 modules/imgproc/src/contours.cpp memset( img, 0, size.width*esz ); img 292 modules/imgproc/src/contours.cpp memset( img + step * (size.height - 1), 0, size.width*esz ); img 294 modules/imgproc/src/contours.cpp img += step; img 295 modules/imgproc/src/contours.cpp for( int y = 1; y < size.height - 1; y++, img += step ) img 298 modules/imgproc/src/contours.cpp img[k] = img[(size.width - 1)*esz + k] = (schar)0; img 998 modules/imgproc/src/contours.cpp schar* img = scanner->img; img 1008 modules/imgproc/src/contours.cpp int prev = img[x - 1]; img 1013 modules/imgproc/src/contours.cpp prev = ((int*)img)[x - 1]; img 1017 modules/imgproc/src/contours.cpp for( ; y < height; y++, img += step ) img 1026 modules/imgproc/src/contours.cpp img_i = (int*)img; img 1038 modules/imgproc/src/contours.cpp for( ; x < width && (p = img[x]) == prev; x++ ) img 1100 modules/imgproc/src/contours.cpp par_info->origin.x, step, img + lnbd.x, img 1142 modules/imgproc/src/contours.cpp icvFetchContour( img + x - is_hole, step, img 1170 modules/imgproc/src/contours.cpp icvFetchContourEx( img + x - is_hole, step, img 1210 modules/imgproc/src/contours.cpp p = img[x]; img 1219 modules/imgproc/src/contours.cpp scanner->img = (schar *) img; img 1657 modules/imgproc/src/contours.cpp cvFindContours( void* img, CvMemStorage* storage, img 1677 modules/imgproc/src/contours.cpp count = icvFindContoursInInterval( img, storage, firstContour, cntHeaderSize ); img 1683 modules/imgproc/src/contours.cpp scanner = cvStartFindContours( img, storage, cntHeaderSize, mode, method, offset ); img 61 modules/imgproc/src/drawing.cpp CollectPolyEdges( Mat& img, const Point* v, int npts, img 66 modules/imgproc/src/drawing.cpp FillEdgeCollection( Mat& img, std::vector<PolyEdge>& edges, const void* color ); img 69 modules/imgproc/src/drawing.cpp PolyLine( Mat& img, const Point* v, int npts, bool closed, img 73 modules/imgproc/src/drawing.cpp FillConvexPoly( Mat& img, const Point* v, int npts, img 153 modules/imgproc/src/drawing.cpp LineIterator::LineIterator(const Mat& img, Point pt1, Point pt2, img 160 modules/imgproc/src/drawing.cpp if( (unsigned)pt1.x >= (unsigned)(img.cols) || img 161 modules/imgproc/src/drawing.cpp (unsigned)pt2.x >= (unsigned)(img.cols) || img 162 modules/imgproc/src/drawing.cpp (unsigned)pt1.y >= (unsigned)(img.rows) || img 163 modules/imgproc/src/drawing.cpp (unsigned)pt2.y >= (unsigned)(img.rows) ) img 165 modules/imgproc/src/drawing.cpp if( !clipLine( img.size(), pt1, pt2 ) ) img 167 modules/imgproc/src/drawing.cpp ptr = img.data; img 173 modules/imgproc/src/drawing.cpp int bt_pix0 = (int)img.elemSize(), bt_pix = bt_pix0; img 174 modules/imgproc/src/drawing.cpp size_t istep = img.step; img 193 modules/imgproc/src/drawing.cpp ptr = (uchar*)(img.data + pt1.y * istep + pt1.x * bt_pix0); img 233 modules/imgproc/src/drawing.cpp this->ptr0 = img.ptr(); img 234 modules/imgproc/src/drawing.cpp this->step = (int)img.step; img 239 modules/imgproc/src/drawing.cpp Line( Mat& img, Point pt1, Point pt2, img 247 modules/imgproc/src/drawing.cpp LineIterator iterator(img, pt1, pt2, connectivity, true); img 249 modules/imgproc/src/drawing.cpp int pix_size = (int)img.elemSize(); img 284 modules/imgproc/src/drawing.cpp LineAA( Mat& img, Point pt1, Point pt2, const void* color ) img 295 modules/imgproc/src/drawing.cpp int nch = img.channels(); img 296 modules/imgproc/src/drawing.cpp uchar* ptr = img.ptr(); img 297 modules/imgproc/src/drawing.cpp size_t step = img.step; img 298 modules/imgproc/src/drawing.cpp Size size = img.size(); img 300 modules/imgproc/src/drawing.cpp if( !((nch == 1 || nch == 3 || nch == 4) && img.depth() == CV_8U) ) img 302 modules/imgproc/src/drawing.cpp Line(img, pt1, pt2, color); img 310 modules/imgproc/src/drawing.cpp ptr += img.step*2 + 2*nch; img 635 modules/imgproc/src/drawing.cpp Line2( Mat& img, Point pt1, Point pt2, const void* color ) img 645 modules/imgproc/src/drawing.cpp int pix_size = (int)img.elemSize(); img 646 modules/imgproc/src/drawing.cpp uchar *ptr = img.ptr(), *tptr; img 647 modules/imgproc/src/drawing.cpp size_t step = img.step; img 648 modules/imgproc/src/drawing.cpp Size size = img.size(), sizeScaled(size.width*XY_ONE, size.height*XY_ONE); img 988 modules/imgproc/src/drawing.cpp EllipseEx( Mat& img, Point center, Size axes, img 1000 modules/imgproc/src/drawing.cpp PolyLine( img, &v[0], (int)v.size(), false, color, thickness, line_type, XY_SHIFT ); img 1002 modules/imgproc/src/drawing.cpp FillConvexPoly( img, &v[0], (int)v.size(), color, line_type, XY_SHIFT ); img 1007 modules/imgproc/src/drawing.cpp CollectPolyEdges( img, &v[0], (int)v.size(), edges, color, line_type, XY_SHIFT ); img 1008 modules/imgproc/src/drawing.cpp FillEdgeCollection( img, edges, color ); img 1036 modules/imgproc/src/drawing.cpp FillConvexPoly( Mat& img, const Point* v, int npts, const void* color, int line_type, int shift ) img 1049 modules/imgproc/src/drawing.cpp uchar* ptr = img.ptr(); img 1050 modules/imgproc/src/drawing.cpp Size size = img.size(); img 1051 modules/imgproc/src/drawing.cpp int pix_size = (int)img.elemSize(); img 1093 modules/imgproc/src/drawing.cpp Line( img, pt0, pt1, color, line_type ); img 1096 modules/imgproc/src/drawing.cpp Line2( img, p0, p, color ); img 1099 modules/imgproc/src/drawing.cpp LineAA( img, p0, p, color ); img 1118 modules/imgproc/src/drawing.cpp ptr += img.step*y; img 1187 modules/imgproc/src/drawing.cpp ptr += img.step; img 1196 modules/imgproc/src/drawing.cpp CollectPolyEdges( Mat& img, const Point* v, int count, std::vector<PolyEdge>& edges, img 1220 modules/imgproc/src/drawing.cpp Line( img, t0, t1, color, line_type ); img 1227 modules/imgproc/src/drawing.cpp LineAA( img, t0, t1, color ); img 1262 modules/imgproc/src/drawing.cpp FillEdgeCollection( Mat& img, std::vector<PolyEdge>& edges, const void* color ) img 1266 modules/imgproc/src/drawing.cpp Size size = img.size(); img 1269 modules/imgproc/src/drawing.cpp int pix_size = (int)img.elemSize(); img 1344 modules/imgproc/src/drawing.cpp uchar *timg = img.ptr(y); img 1411 modules/imgproc/src/drawing.cpp Circle( Mat& img, Point center, int radius, const void* color, int fill ) img 1413 modules/imgproc/src/drawing.cpp Size size = img.size(); img 1414 modules/imgproc/src/drawing.cpp size_t step = img.step; img 1415 modules/imgproc/src/drawing.cpp int pix_size = (int)img.elemSize(); img 1416 modules/imgproc/src/drawing.cpp uchar* ptr = img.ptr(); img 1557 modules/imgproc/src/drawing.cpp ThickLine( Mat& img, Point p0, Point p1, const void* color, img 1577 modules/imgproc/src/drawing.cpp Line( img, p0, p1, color, line_type ); img 1580 modules/imgproc/src/drawing.cpp Line2( img, p0, p1, color ); img 1583 modules/imgproc/src/drawing.cpp LineAA( img, p0, p1, color ); img 1608 modules/imgproc/src/drawing.cpp FillConvexPoly( img, pt, 4, color, line_type, XY_SHIFT ); img 1620 modules/imgproc/src/drawing.cpp Circle( img, center, (thickness + (XY_ONE>>1)) >> XY_SHIFT, color, 1 ); img 1624 modules/imgproc/src/drawing.cpp EllipseEx( img, p0, cvSize(thickness, thickness), img 1635 modules/imgproc/src/drawing.cpp PolyLine( Mat& img, const Point* v, int count, bool is_closed, img 1651 modules/imgproc/src/drawing.cpp ThickLine( img, p0, p, color, thickness, line_type, flags, shift ); img 1664 modules/imgproc/src/drawing.cpp Mat img = _img.getMat(); img 1666 modules/imgproc/src/drawing.cpp if( line_type == CV_AA && img.depth() != CV_8U ) img 1673 modules/imgproc/src/drawing.cpp scalarToRawData( color, buf, img.type(), 0 ); img 1674 modules/imgproc/src/drawing.cpp ThickLine( img, pt1, pt2, buf, thickness, line_type, 3, shift ); img 1677 modules/imgproc/src/drawing.cpp void arrowedLine(InputOutputArray img, Point pt1, Point pt2, const Scalar& color, img 1682 modules/imgproc/src/drawing.cpp line(img, pt1, pt2, color, thickness, line_type, shift); img 1688 modules/imgproc/src/drawing.cpp line(img, p, pt2, color, thickness, line_type, shift); img 1692 modules/imgproc/src/drawing.cpp line(img, p, pt2, color, thickness, line_type, shift); img 1699 modules/imgproc/src/drawing.cpp Mat img = _img.getMat(); img 1701 modules/imgproc/src/drawing.cpp if( lineType == CV_AA && img.depth() != CV_8U ) img 1708 modules/imgproc/src/drawing.cpp scalarToRawData(color, buf, img.type(), 0); img 1720 modules/imgproc/src/drawing.cpp PolyLine( img, pt, 4, true, buf, thickness, lineType, shift ); img 1722 modules/imgproc/src/drawing.cpp FillConvexPoly( img, pt, 4, buf, lineType, shift ); img 1726 modules/imgproc/src/drawing.cpp void rectangle( Mat& img, Rect rec, img 1732 modules/imgproc/src/drawing.cpp rectangle( img, rec.tl(), rec.br() - Point(1<<shift,1<<shift), img 1740 modules/imgproc/src/drawing.cpp Mat img = _img.getMat(); img 1742 modules/imgproc/src/drawing.cpp if( line_type == CV_AA && img.depth() != CV_8U ) img 1749 modules/imgproc/src/drawing.cpp scalarToRawData(color, buf, img.type(), 0); img 1756 modules/imgproc/src/drawing.cpp EllipseEx( img, center, Size(radius, radius), img 1760 modules/imgproc/src/drawing.cpp Circle( img, center, radius, buf, thickness < 0 ); img 1768 modules/imgproc/src/drawing.cpp Mat img = _img.getMat(); img 1770 modules/imgproc/src/drawing.cpp if( line_type == CV_AA && img.depth() != CV_8U ) img 1777 modules/imgproc/src/drawing.cpp scalarToRawData(color, buf, img.type(), 0); img 1787 modules/imgproc/src/drawing.cpp EllipseEx( img, center, axes, _angle, _start_angle, img 1794 modules/imgproc/src/drawing.cpp Mat img = _img.getMat(); img 1796 modules/imgproc/src/drawing.cpp if( lineType == CV_AA && img.depth() != CV_8U ) img 1803 modules/imgproc/src/drawing.cpp scalarToRawData(color, buf, img.type(), 0); img 1810 modules/imgproc/src/drawing.cpp EllipseEx( img, center, axes, _angle, 0, 360, buf, thickness, lineType ); img 1813 modules/imgproc/src/drawing.cpp void fillConvexPoly( Mat& img, const Point* pts, int npts, img 1819 modules/imgproc/src/drawing.cpp if( line_type == CV_AA && img.depth() != CV_8U ) img 1824 modules/imgproc/src/drawing.cpp scalarToRawData(color, buf, img.type(), 0); img 1825 modules/imgproc/src/drawing.cpp FillConvexPoly( img, pts, npts, buf, line_type, shift ); img 1829 modules/imgproc/src/drawing.cpp void fillPoly( Mat& img, const Point** pts, const int* npts, int ncontours, img 1833 modules/imgproc/src/drawing.cpp if( line_type == CV_AA && img.depth() != CV_8U ) img 1839 modules/imgproc/src/drawing.cpp scalarToRawData(color, buf, img.type(), 0); img 1849 modules/imgproc/src/drawing.cpp CollectPolyEdges( img, pts[i], npts[i], edges, buf, line_type, shift, offset ); img 1851 modules/imgproc/src/drawing.cpp FillEdgeCollection(img, edges, buf); img 1855 modules/imgproc/src/drawing.cpp void polylines( Mat& img, const Point* const* pts, const int* npts, int ncontours, bool isClosed, img 1858 modules/imgproc/src/drawing.cpp if( line_type == CV_AA && img.depth() != CV_8U ) img 1866 modules/imgproc/src/drawing.cpp scalarToRawData( color, buf, img.type(), 0 ); img 1869 modules/imgproc/src/drawing.cpp PolyLine( img, pts[i], npts[i], isClosed, buf, thickness, line_type, shift ); img 2093 modules/imgproc/src/drawing.cpp Mat img = _img.getMat(); img 2097 modules/imgproc/src/drawing.cpp scalarToRawData(color, buf, img.type(), 0); img 2102 modules/imgproc/src/drawing.cpp if( line_type == CV_AA && img.depth() != CV_8U ) img 2133 modules/imgproc/src/drawing.cpp PolyLine( img, &pts[0], (int)pts.size(), false, buf, thickness, line_type, XY_SHIFT ); img 2186 modules/imgproc/src/drawing.cpp Mat img = _img.getMat(), points = _points.getMat(); img 2188 modules/imgproc/src/drawing.cpp fillConvexPoly(img, points.ptr<Point>(), points.rows*points.cols*points.channels()/2, color, lineType, shift); img 2195 modules/imgproc/src/drawing.cpp Mat img = _img.getMat(); img 2211 modules/imgproc/src/drawing.cpp fillPoly(img, (const Point**)ptsptr, npts, (int)ncontours, color, lineType, shift, offset); img 2219 modules/imgproc/src/drawing.cpp Mat img = _img.getMat(); img 2242 modules/imgproc/src/drawing.cpp polylines(img, (const Point**)ptsptr, npts, (int)ncontours, isClosed, color, thickness, lineType, shift); img 2373 modules/imgproc/src/drawing.cpp cv::Mat img = cv::cvarrToMat(_img); img 2377 modules/imgproc/src/drawing.cpp if( line_type == CV_AA && img.depth() != CV_8U ) img 2385 modules/imgproc/src/drawing.cpp scalarToRawData( externalColor, ext_buf, img.type(), 0 ); img 2386 modules/imgproc/src/drawing.cpp scalarToRawData( holeColor, hole_buf, img.type(), 0 ); img 2429 modules/imgproc/src/drawing.cpp cv::ThickLine( img, prev_pt, pt, clr, thickness, line_type, 2, 0 ); img 2440 modules/imgproc/src/drawing.cpp cv::ThickLine( img, prev_pt, img 2444 modules/imgproc/src/drawing.cpp cv::CollectPolyEdges(img, &pts[0], (int)pts.size(), img 2464 modules/imgproc/src/drawing.cpp cv::ThickLine( img, pt1, pt2, clr, thickness, line_type, 2, shift ); img 2470 modules/imgproc/src/drawing.cpp cv::CollectPolyEdges( img, &pts[0], (int)pts.size(), img 2476 modules/imgproc/src/drawing.cpp cv::FillEdgeCollection( img, edges, ext_buf ); img 2565 modules/imgproc/src/drawing.cpp cvInitLineIterator( const CvArr* img, CvPoint pt1, CvPoint pt2, img 2570 modules/imgproc/src/drawing.cpp cv::LineIterator li(cv::cvarrToMat(img), pt1, pt2, connectivity, left_to_right!=0); img 2586 modules/imgproc/src/drawing.cpp cv::Mat img = cv::cvarrToMat(_img); img 2587 modules/imgproc/src/drawing.cpp cv::line( img, pt1, pt2, color, thickness, line_type, shift ); img 2595 modules/imgproc/src/drawing.cpp cv::Mat img = cv::cvarrToMat(_img); img 2596 modules/imgproc/src/drawing.cpp cv::rectangle( img, pt1, pt2, color, thickness, line_type, shift ); img 2604 modules/imgproc/src/drawing.cpp cv::Mat img = cv::cvarrToMat(_img); img 2605 modules/imgproc/src/drawing.cpp cv::rectangle( img, rec, color, thickness, line_type, shift ); img 2612 modules/imgproc/src/drawing.cpp cv::Mat img = cv::cvarrToMat(_img); img 2613 modules/imgproc/src/drawing.cpp cv::circle( img, center, radius, color, thickness, line_type, shift ); img 2621 modules/imgproc/src/drawing.cpp cv::Mat img = cv::cvarrToMat(_img); img 2622 modules/imgproc/src/drawing.cpp cv::ellipse( img, center, axes, angle, start_angle, end_angle, img 2630 modules/imgproc/src/drawing.cpp cv::Mat img = cv::cvarrToMat(_img); img 2631 modules/imgproc/src/drawing.cpp cv::fillConvexPoly( img, (const cv::Point*)pts, npts, img 2639 modules/imgproc/src/drawing.cpp cv::Mat img = cv::cvarrToMat(_img); img 2641 modules/imgproc/src/drawing.cpp cv::fillPoly( img, (const cv::Point**)pts, npts, ncontours, color, line_type, shift ); img 2649 modules/imgproc/src/drawing.cpp cv::Mat img = cv::cvarrToMat(_img); img 2651 modules/imgproc/src/drawing.cpp cv::polylines( img, (const cv::Point**)pts, npts, ncontours, img 2658 modules/imgproc/src/drawing.cpp cv::Mat img = cv::cvarrToMat(_img); img 2660 modules/imgproc/src/drawing.cpp cv::putText( img, text, org, _font->font_face, (_font->hscale+_font->vscale)*0.5, img 134 modules/imgproc/src/floodfill.cpp _Tp* img = image.ptr<_Tp>(seed.y); img 144 modules/imgproc/src/floodfill.cpp _Tp val0 = img[L]; img 145 modules/imgproc/src/floodfill.cpp img[L] = newVal; img 147 modules/imgproc/src/floodfill.cpp while( ++R < roi.width && img[R] == val0 ) img 148 modules/imgproc/src/floodfill.cpp img[R] = newVal; img 150 modules/imgproc/src/floodfill.cpp while( --L >= 0 && img[L] == val0 ) img 151 modules/imgproc/src/floodfill.cpp img[L] = newVal; img 187 modules/imgproc/src/floodfill.cpp img = image.ptr<_Tp>(YC + dir); img 193 modules/imgproc/src/floodfill.cpp if( (unsigned)i < (unsigned)roi.width && img[i] == val0 ) img 196 modules/imgproc/src/floodfill.cpp img[i] = newVal; img 197 modules/imgproc/src/floodfill.cpp while( --j >= 0 && img[j] == val0 ) img 198 modules/imgproc/src/floodfill.cpp img[j] = newVal; img 200 modules/imgproc/src/floodfill.cpp while( ++i < roi.width && img[i] == val0 ) img 201 modules/imgproc/src/floodfill.cpp img[i] = newVal; img 288 modules/imgproc/src/floodfill.cpp _Tp* img = (_Tp*)(pImage + step*seed.y); img 304 modules/imgproc/src/floodfill.cpp _Tp val0 = img[L]; img 308 modules/imgproc/src/floodfill.cpp while( !mask[R + 1] && diff( img + (R+1), &val0 )) img 311 modules/imgproc/src/floodfill.cpp while( !mask[L - 1] && diff( img + (L-1), &val0 )) img 316 modules/imgproc/src/floodfill.cpp while( !mask[R + 1] && diff( img + (R+1), img + R )) img 319 modules/imgproc/src/floodfill.cpp while( !mask[L - 1] && diff( img + (L-1), img + L )) img 355 modules/imgproc/src/floodfill.cpp img = (_Tp*)(pImage + (YC + dir) * step); img 364 modules/imgproc/src/floodfill.cpp if( !mask[i] && diff( img + i, &val0 )) img 368 modules/imgproc/src/floodfill.cpp while( !mask[--j] && diff( img + j, &val0 )) img 371 modules/imgproc/src/floodfill.cpp while( !mask[++i] && diff( img + i, &val0 )) img 380 modules/imgproc/src/floodfill.cpp if( !mask[i] && diff( img + i, img1 + i )) img 384 modules/imgproc/src/floodfill.cpp while( !mask[--j] && diff( img + j, img + (j+1) )) img 388 modules/imgproc/src/floodfill.cpp (diff( img + i, img + (i-1) ) || img 389 modules/imgproc/src/floodfill.cpp (diff( img + i, img1 + i) && i <= R))) img 402 modules/imgproc/src/floodfill.cpp (((val = img[i], img 412 modules/imgproc/src/floodfill.cpp while( !mask[--j] && diff( img + j, img + (j+1) )) img 416 modules/imgproc/src/floodfill.cpp ((val = img[i], img 417 modules/imgproc/src/floodfill.cpp diff( &val, img + (i-1) )) || img 431 modules/imgproc/src/floodfill.cpp img = (_Tp*)(pImage + YC * step); img 434 modules/imgproc/src/floodfill.cpp img[i] = newVal; img 478 modules/imgproc/src/floodfill.cpp Mat img = _image.getMat(), mask; img 481 modules/imgproc/src/floodfill.cpp Size size = img.size(); img 483 modules/imgproc/src/floodfill.cpp int type = img.type(); img 484 modules/imgproc/src/floodfill.cpp int depth = img.depth(); img 485 modules/imgproc/src/floodfill.cpp int cn = img.channels(); img 516 modules/imgproc/src/floodfill.cpp size_t elem_size = img.elemSize(); img 517 modules/imgproc/src/floodfill.cpp const uchar* seed_ptr = img.ptr(seedPoint.y) + elem_size*seedPoint.x; img 527 modules/imgproc/src/floodfill.cpp floodFill_CnIR(img, seedPoint, nv_buf.b[0], &comp, flags, &buffer); img 529 modules/imgproc/src/floodfill.cpp floodFill_CnIR(img, seedPoint, Vec3b(nv_buf.b), &comp, flags, &buffer); img 531 modules/imgproc/src/floodfill.cpp floodFill_CnIR(img, seedPoint, nv_buf.i[0], &comp, flags, &buffer); img 533 modules/imgproc/src/floodfill.cpp floodFill_CnIR(img, seedPoint, nv_buf.f[0], &comp, flags, &buffer); img 535 modules/imgproc/src/floodfill.cpp floodFill_CnIR(img, seedPoint, Vec3i(nv_buf.i), &comp, flags, &buffer); img 537 modules/imgproc/src/floodfill.cpp floodFill_CnIR(img, seedPoint, Vec3f(nv_buf.f), &comp, flags, &buffer); img 591 modules/imgproc/src/floodfill.cpp img, mask, seedPoint, nv_buf.b[0], newMaskVal, img 596 modules/imgproc/src/floodfill.cpp img, mask, seedPoint, Vec3b(nv_buf.b), newMaskVal, img 601 modules/imgproc/src/floodfill.cpp img, mask, seedPoint, nv_buf.i[0], newMaskVal, img 606 modules/imgproc/src/floodfill.cpp img, mask, seedPoint, Vec3i(nv_buf.i), newMaskVal, img 611 modules/imgproc/src/floodfill.cpp img, mask, seedPoint, nv_buf.f[0], newMaskVal, img 616 modules/imgproc/src/floodfill.cpp img, mask, seedPoint, Vec3f(nv_buf.f), newMaskVal, img 644 modules/imgproc/src/floodfill.cpp cv::Mat img = cv::cvarrToMat(arr), mask = cv::cvarrToMat(maskarr); img 645 modules/imgproc/src/floodfill.cpp int area = cv::floodFill(img, mask, seed_point, newVal, img 233 modules/imgproc/src/grabcut.cpp static double calcBeta( const Mat& img ) img 236 modules/imgproc/src/grabcut.cpp for( int y = 0; y < img.rows; y++ ) img 238 modules/imgproc/src/grabcut.cpp for( int x = 0; x < img.cols; x++ ) img 240 modules/imgproc/src/grabcut.cpp Vec3d color = img.at<Vec3b>(y,x); img 243 modules/imgproc/src/grabcut.cpp Vec3d diff = color - (Vec3d)img.at<Vec3b>(y,x-1); img 248 modules/imgproc/src/grabcut.cpp Vec3d diff = color - (Vec3d)img.at<Vec3b>(y-1,x-1); img 253 modules/imgproc/src/grabcut.cpp Vec3d diff = color - (Vec3d)img.at<Vec3b>(y-1,x); img 256 modules/imgproc/src/grabcut.cpp if( y>0 && x<img.cols-1) // upright img 258 modules/imgproc/src/grabcut.cpp Vec3d diff = color - (Vec3d)img.at<Vec3b>(y-1,x+1); img 266 modules/imgproc/src/grabcut.cpp beta = 1.f / (2 * beta/(4*img.cols*img.rows - 3*img.cols - 3*img.rows + 2) ); img 275 modules/imgproc/src/grabcut.cpp static void calcNWeights( const Mat& img, Mat& leftW, Mat& upleftW, Mat& upW, Mat& uprightW, double beta, double gamma ) img 278 modules/imgproc/src/grabcut.cpp leftW.create( img.rows, img.cols, CV_64FC1 ); img 279 modules/imgproc/src/grabcut.cpp upleftW.create( img.rows, img.cols, CV_64FC1 ); img 280 modules/imgproc/src/grabcut.cpp upW.create( img.rows, img.cols, CV_64FC1 ); img 281 modules/imgproc/src/grabcut.cpp uprightW.create( img.rows, img.cols, CV_64FC1 ); img 282 modules/imgproc/src/grabcut.cpp for( int y = 0; y < img.rows; y++ ) img 284 modules/imgproc/src/grabcut.cpp for( int x = 0; x < img.cols; x++ ) img 286 modules/imgproc/src/grabcut.cpp Vec3d color = img.at<Vec3b>(y,x); img 289 modules/imgproc/src/grabcut.cpp Vec3d diff = color - (Vec3d)img.at<Vec3b>(y,x-1); img 296 modules/imgproc/src/grabcut.cpp Vec3d diff = color - (Vec3d)img.at<Vec3b>(y-1,x-1); img 303 modules/imgproc/src/grabcut.cpp Vec3d diff = color - (Vec3d)img.at<Vec3b>(y-1,x); img 308 modules/imgproc/src/grabcut.cpp if( x+1<img.cols && y-1>=0 ) // upright img 310 modules/imgproc/src/grabcut.cpp Vec3d diff = color - (Vec3d)img.at<Vec3b>(y-1,x+1); img 322 modules/imgproc/src/grabcut.cpp static void checkMask( const Mat& img, const Mat& mask ) img 328 modules/imgproc/src/grabcut.cpp if( mask.cols != img.cols || mask.rows != img.rows ) img 361 modules/imgproc/src/grabcut.cpp static void initGMMs( const Mat& img, const Mat& mask, GMM& bgdGMM, GMM& fgdGMM ) img 369 modules/imgproc/src/grabcut.cpp for( p.y = 0; p.y < img.rows; p.y++ ) img 371 modules/imgproc/src/grabcut.cpp for( p.x = 0; p.x < img.cols; p.x++ ) img 374 modules/imgproc/src/grabcut.cpp bgdSamples.push_back( (Vec3f)img.at<Vec3b>(p) ); img 376 modules/imgproc/src/grabcut.cpp fgdSamples.push_back( (Vec3f)img.at<Vec3b>(p) ); img 401 modules/imgproc/src/grabcut.cpp static void assignGMMsComponents( const Mat& img, const Mat& mask, const GMM& bgdGMM, const GMM& fgdGMM, Mat& compIdxs ) img 404 modules/imgproc/src/grabcut.cpp for( p.y = 0; p.y < img.rows; p.y++ ) img 406 modules/imgproc/src/grabcut.cpp for( p.x = 0; p.x < img.cols; p.x++ ) img 408 modules/imgproc/src/grabcut.cpp Vec3d color = img.at<Vec3b>(p); img 418 modules/imgproc/src/grabcut.cpp static void learnGMMs( const Mat& img, const Mat& mask, const Mat& compIdxs, GMM& bgdGMM, GMM& fgdGMM ) img 425 modules/imgproc/src/grabcut.cpp for( p.y = 0; p.y < img.rows; p.y++ ) img 427 modules/imgproc/src/grabcut.cpp for( p.x = 0; p.x < img.cols; p.x++ ) img 432 modules/imgproc/src/grabcut.cpp bgdGMM.addSample( ci, img.at<Vec3b>(p) ); img 434 modules/imgproc/src/grabcut.cpp fgdGMM.addSample( ci, img.at<Vec3b>(p) ); img 446 modules/imgproc/src/grabcut.cpp static void constructGCGraph( const Mat& img, const Mat& mask, const GMM& bgdGMM, const GMM& fgdGMM, double lambda, img 450 modules/imgproc/src/grabcut.cpp int vtxCount = img.cols*img.rows, img 451 modules/imgproc/src/grabcut.cpp edgeCount = 2*(4*img.cols*img.rows - 3*(img.cols + img.rows) + 2); img 454 modules/imgproc/src/grabcut.cpp for( p.y = 0; p.y < img.rows; p.y++ ) img 456 modules/imgproc/src/grabcut.cpp for( p.x = 0; p.x < img.cols; p.x++) img 460 modules/imgproc/src/grabcut.cpp Vec3b color = img.at<Vec3b>(p); img 490 modules/imgproc/src/grabcut.cpp graph.addEdges( vtxIdx, vtxIdx-img.cols-1, w, w ); img 495 modules/imgproc/src/grabcut.cpp graph.addEdges( vtxIdx, vtxIdx-img.cols, w, w ); img 497 modules/imgproc/src/grabcut.cpp if( p.x<img.cols-1 && p.y>0 ) img 500 modules/imgproc/src/grabcut.cpp graph.addEdges( vtxIdx, vtxIdx-img.cols+1, w, w ); img 532 modules/imgproc/src/grabcut.cpp Mat img = _img.getMat(); img 537 modules/imgproc/src/grabcut.cpp if( img.empty() ) img 539 modules/imgproc/src/grabcut.cpp if( img.type() != CV_8UC3 ) img 543 modules/imgproc/src/grabcut.cpp Mat compIdxs( img.size(), CV_32SC1 ); img 548 modules/imgproc/src/grabcut.cpp initMaskWithRect( mask, img.size(), rect ); img 550 modules/imgproc/src/grabcut.cpp checkMask( img, mask ); img 551 modules/imgproc/src/grabcut.cpp initGMMs( img, mask, bgdGMM, fgdGMM ); img 558 modules/imgproc/src/grabcut.cpp checkMask( img, mask ); img 562 modules/imgproc/src/grabcut.cpp const double beta = calcBeta( img ); img 565 modules/imgproc/src/grabcut.cpp calcNWeights( img, leftW, upleftW, upW, uprightW, beta, gamma ); img 570 modules/imgproc/src/grabcut.cpp assignGMMsComponents( img, mask, bgdGMM, fgdGMM, compIdxs ); img 571 modules/imgproc/src/grabcut.cpp learnGMMs( img, mask, compIdxs, bgdGMM, fgdGMM ); img 572 modules/imgproc/src/grabcut.cpp constructGCGraph(img, mask, bgdGMM, fgdGMM, lambda, leftW, upleftW, upW, uprightW, graph ); img 3177 modules/imgproc/src/histogram.cpp cvCalcArrHist( CvArr** img, CvHistogram* hist, int accumulate, const CvArr* mask ) img 3182 modules/imgproc/src/histogram.cpp if( !img ) img 3191 modules/imgproc/src/histogram.cpp images[i] = cv::cvarrToMat(img[i]); img 3240 modules/imgproc/src/histogram.cpp cvCalcArrBackProject( CvArr** img, CvArr* dst, const CvHistogram* hist ) img 3245 modules/imgproc/src/histogram.cpp if( !img ) img 3268 modules/imgproc/src/histogram.cpp images[i] = cv::cvarrToMat(img[i]); img 3298 modules/imgproc/src/histogram.cpp IplImage imgstub[CV_MAX_DIM], *img[CV_MAX_DIM]; img 3325 modules/imgproc/src/histogram.cpp img[i] = cvGetImage( mat, &imgstub[i] ); img 3326 modules/imgproc/src/histogram.cpp img[i]->roi = &roi; img 3333 modules/imgproc/src/histogram.cpp if( dstmat->cols != img[0]->width - patch_size.width + 1 || img 3334 modules/imgproc/src/histogram.cpp dstmat->rows != img[0]->height - patch_size.height + 1 ) img 3354 modules/imgproc/src/histogram.cpp cvCalcHist( img, model ); img 79 modules/imgproc/src/hough.cpp HoughLinesStandard( const Mat& img, float rho, float theta, img 86 modules/imgproc/src/hough.cpp CV_Assert( img.type() == CV_8UC1 ); img 88 modules/imgproc/src/hough.cpp const uchar* image = img.ptr(); img 89 modules/imgproc/src/hough.cpp int step = (int)img.step; img 90 modules/imgproc/src/hough.cpp int width = img.cols; img 91 modules/imgproc/src/hough.cpp int height = img.rows; img 106 modules/imgproc/src/hough.cpp int nz = countNonZero(img); img 198 modules/imgproc/src/hough.cpp HoughLinesSDiv( const Mat& img, img 224 modules/imgproc/src/hough.cpp CV_Assert( img.type() == CV_8UC1 ); img 229 modules/imgproc/src/hough.cpp const uchar* image_src = img.ptr(); img 230 modules/imgproc/src/hough.cpp int step = (int)img.step; img 231 modules/imgproc/src/hough.cpp int w = img.cols; img 232 modules/imgproc/src/hough.cpp int h = img.rows; img 329 modules/imgproc/src/hough.cpp HoughLinesStandard( img, rho, theta, threshold, lines, linesMax, min_theta, max_theta ); img 1002 modules/imgproc/src/hough.cpp icvHoughCirclesGradient( CvMat* img, float dp, float min_dist, img 1023 modules/imgproc/src/hough.cpp edges.reset(cvCreateMat( img->rows, img->cols, CV_8UC1 )); img 1026 modules/imgproc/src/hough.cpp cvCanny( img, edges, MAX(canny_threshold/2,1), canny_threshold, 3 ); img 1028 modules/imgproc/src/hough.cpp dx.reset(cvCreateMat( img->rows, img->cols, CV_16SC1 )); img 1029 modules/imgproc/src/hough.cpp dy.reset(cvCreateMat( img->rows, img->cols, CV_16SC1 )); img 1032 modules/imgproc/src/hough.cpp cvSobel( img, dx, 1, 0, 3 ); img 1033 modules/imgproc/src/hough.cpp cvSobel( img, dy, 0, 1, 3 ); img 1038 modules/imgproc/src/hough.cpp accum.reset(cvCreateMat( cvCeil(img->rows*idp)+2, cvCeil(img->cols*idp)+2, CV_32SC1 )); img 1047 modules/imgproc/src/hough.cpp rows = img->rows; img 1048 modules/imgproc/src/hough.cpp cols = img->cols; img 1228 modules/imgproc/src/hough.cpp CvMat stub, *img = (CvMat*)src_image; img 1237 modules/imgproc/src/hough.cpp img = cvGetMat( img, &stub ); img 1239 modules/imgproc/src/hough.cpp if( !CV_IS_MASK_ARR(img)) img 1250 modules/imgproc/src/hough.cpp max_radius = MAX( img->rows, img->cols ); img 1279 modules/imgproc/src/hough.cpp icvHoughCirclesGradient( img, (float)dp, (float)min_dist, img 415 modules/imgproc/src/lsd.cpp Mat_<double> img = _image.getMat(); img 416 modules/imgproc/src/lsd.cpp CV_Assert(!img.empty() && img.channels() == 1); img 419 modules/imgproc/src/lsd.cpp img.convertTo(image, CV_64FC1); img 1230 modules/imgproc/src/lsd.cpp Mat img = _image.getMatRef(); img 1231 modules/imgproc/src/lsd.cpp CV_Assert(img.isContinuous() && I1.isContinuous() && I2.isContinuous()); img 1240 modules/imgproc/src/lsd.cpp if (i1) img.ptr()[base_idx] = 255; img 1241 modules/imgproc/src/lsd.cpp else img.ptr()[base_idx] = 0; img 1242 modules/imgproc/src/lsd.cpp img.ptr()[base_idx + 1] = 0; img 1243 modules/imgproc/src/lsd.cpp if (i2) img.ptr()[base_idx + 2] = 255; img 1244 modules/imgproc/src/lsd.cpp else img.ptr()[base_idx + 2] = 0; img 397 modules/imgproc/src/moments.cpp static void momentsInTile( const Mat& img, double* moments ) img 399 modules/imgproc/src/moments.cpp Size size = img.size(); img 406 modules/imgproc/src/moments.cpp const T* ptr = img.ptr<T>(y); img 441 modules/imgproc/src/moments.cpp typedef void (*MomentsInTileFunc)(const Mat& img, double* moments); img 768 modules/imgproc/src/moments.cpp const IplImage* img = (const IplImage*)arr; img 770 modules/imgproc/src/moments.cpp if( CV_IS_IMAGE(arr) && img->roi && img->roi->coi > 0 ) img 771 modules/imgproc/src/moments.cpp cv::extractImageCOI(arr, src, img->roi->coi-1); img 121 modules/imgproc/src/opencl/match_template.cl __kernel void extractFirstChannel( const __global uchar* img, int img_step, int img_offset, img 132 modules/imgproc/src/opencl/match_template.cl T1 image = *(__global const T1*)(img + mad24(y, img_step, mad24(x, (int)sizeof(T1)*cn, img_offset)));; img 468 modules/imgproc/src/samplers.cpp cv::Mat img = cv::cvarrToMat(_img); img 469 modules/imgproc/src/samplers.cpp cv::LineIterator li(img, pt1, pt2, connectivity, false); img 471 modules/imgproc/src/samplers.cpp size_t pixsize = img.elemSize(); img 163 modules/imgproc/src/segmentation.cpp const uchar* img = src.ptr(); img 165 modules/imgproc/src/segmentation.cpp int istep = int(src.step/sizeof(img[0])); img 185 modules/imgproc/src/segmentation.cpp img += istep; mask += mstep; img 195 modules/imgproc/src/segmentation.cpp const uchar* ptr = img + j*3; img 233 modules/imgproc/src/segmentation.cpp img = src.ptr(); img 261 modules/imgproc/src/segmentation.cpp ptr = img + iofs; img 603 modules/imgproc/src/shapedescr.cpp static Rect maskBoundingRect( const Mat& img ) img 605 modules/imgproc/src/shapedescr.cpp CV_Assert( img.depth() <= CV_8S && img.channels() == 1 ); img 607 modules/imgproc/src/shapedescr.cpp Size size = img.size(); img 612 modules/imgproc/src/shapedescr.cpp const uchar* _ptr = img.ptr(i); img 635 modules/imgproc/src/templmatch.cpp void crossCorr( const Mat& img, const Mat& _templ, Mat& corr, img 644 modules/imgproc/src/templmatch.cpp int depth = img.depth(), cn = img.channels(); img 648 modules/imgproc/src/templmatch.cpp CV_Assert( img.dims <= 2 && templ.dims <= 2 && corr.dims <= 2 ); img 657 modules/imgproc/src/templmatch.cpp CV_Assert( corrsize.height <= img.rows + templ.rows - 1 && img 658 modules/imgproc/src/templmatch.cpp corrsize.width <= img.cols + templ.cols - 1 ); img 731 modules/imgproc/src/templmatch.cpp Size wholeSize = img.size(); img 733 modules/imgproc/src/templmatch.cpp Mat img0 = img; img 737 modules/imgproc/src/templmatch.cpp img.locateROI(wholeSize, roiofs); img 738 modules/imgproc/src/templmatch.cpp img0.adjustROI(roiofs.y, wholeSize.height-img.rows-roiofs.y, img 739 modules/imgproc/src/templmatch.cpp roiofs.x, wholeSize.width-img.cols-roiofs.x); img 824 modules/imgproc/src/templmatch.cpp Mat img = _img.getMat(), templ = _templ.getMat(), mask = _mask.getMat(); img 826 modules/imgproc/src/templmatch.cpp int mtype = img.type(), mdepth = CV_MAT_DEPTH(type), mcn = CV_MAT_CN(mtype); img 832 modules/imgproc/src/templmatch.cpp img.convertTo(img, type, 1.0 / 255); img 850 modules/imgproc/src/templmatch.cpp Size corrSize(img.cols - templ.cols + 1, img.rows - templ.rows + 1); img 854 modules/imgproc/src/templmatch.cpp Mat img2 = img.mul(img); img 871 modules/imgproc/src/templmatch.cpp crossCorr( img, mask2_templ, corr, corr.size(), corr.type(), Point(0,0), 0, 0 ); img 887 modules/imgproc/src/templmatch.cpp crossCorr( img, mask_templ, result, result.size(), result.type(), Point(0,0), 0, 0 ); img 927 modules/imgproc/src/templmatch.cpp Mat img = _img.getMat(), templ = _templ.getMat(); img 929 modules/imgproc/src/templmatch.cpp std::swap(img, templ); img 931 modules/imgproc/src/templmatch.cpp Size corrSize(img.cols - templ.cols + 1, img.rows - templ.rows + 1); img 936 modules/imgproc/src/templmatch.cpp if (tegra::useTegra() && tegra::matchTemplate(img, templ, result, method)) img 944 modules/imgproc/src/templmatch.cpp useIppMT = (templ.rows < img.rows/2 && templ.cols < img.cols/2); img 948 modules/imgproc/src/templmatch.cpp if (ipp_sqrDistance(img, templ, result)) img 961 modules/imgproc/src/templmatch.cpp if (!ipp_crossCorr(img, templ, result)) img 964 modules/imgproc/src/templmatch.cpp crossCorr( img, templ, result, result.size(), result.type(), Point(0,0), 0, 0); img 973 modules/imgproc/src/templmatch.cpp crossCorr( img, templ, result, result.size(), result.type(), Point(0,0), 0, 0); img 987 modules/imgproc/src/templmatch.cpp integral(img, sum, CV_64F); img 992 modules/imgproc/src/templmatch.cpp integral(img, sum, sqsum, CV_64F); img 1089 modules/imgproc/src/templmatch.cpp cv::Mat img = cv::cvarrToMat(_img), templ = cv::cvarrToMat(_templ), img 1091 modules/imgproc/src/templmatch.cpp CV_Assert( result.size() == cv::Size(std::abs(img.cols - templ.cols) + 1, img 1092 modules/imgproc/src/templmatch.cpp std::abs(img.rows - templ.rows) + 1) && img 1094 modules/imgproc/src/templmatch.cpp matchTemplate(img, templ, result, method); img 79 modules/imgproc/test/ocl/test_canny.cpp Mat img = readImageType("shared/fruits.png", CV_8UC(cn)); img 80 modules/imgproc/test/ocl/test_canny.cpp ASSERT_FALSE(img.empty()) << "cann't load shared/fruits.png"; img 82 modules/imgproc/test/ocl/test_canny.cpp Size roiSize = img.size(); img 83 modules/imgproc/test/ocl/test_canny.cpp int type = img.type(); img 87 modules/imgproc/test/ocl/test_canny.cpp img.copyTo(src_roi); img 60 modules/imgproc/test/ocl/test_houghlines.cpp Mat img = readImage("shared/pic5.png", IMREAD_GRAYSCALE); img 61 modules/imgproc/test/ocl/test_houghlines.cpp Canny(img, src, 100, 150, 3); img 129 modules/imgproc/test/ocl/test_houghlines.cpp Mat img = readImage("shared/pic5.png", IMREAD_GRAYSCALE); img 130 modules/imgproc/test/ocl/test_houghlines.cpp Canny(img, src, 50, 200, 3); img 71 modules/imgproc/test/test_contours.cpp IplImage* img[NUM_IMG]; img 90 modules/imgproc/test/test_contours.cpp img[i] = 0; img 109 modules/imgproc/test/test_contours.cpp cvReleaseImage( &img[i] ); img 148 modules/imgproc/test/test_contours.cpp cvTsGenerateBlobImage( IplImage* img, int min_blob_size, int max_blob_size, img 155 modules/imgproc/test/test_contours.cpp assert( img->depth == IPL_DEPTH_8U && img->nChannels == 1 ); img 157 modules/imgproc/test/test_contours.cpp cvZero( img ); img 160 modules/imgproc/test/test_contours.cpp cvSetImageROI( img, cvRect(1,1,img->width-2,img->height-2) ); img 161 modules/imgproc/test/test_contours.cpp size = cvGetSize( img ); img 178 modules/imgproc/test/test_contours.cpp cvEllipse( img, center, axes, angle, 0, 360, cvScalar(brightness), CV_FILLED ); img 181 modules/imgproc/test/test_contours.cpp cvResetImageROI( img ); img 186 modules/imgproc/test/test_contours.cpp cvTsMarkContours( IplImage* img, int val ) img 189 modules/imgproc/test/test_contours.cpp int step = img->widthStep; img 191 modules/imgproc/test/test_contours.cpp assert( img->depth == IPL_DEPTH_8U && img->nChannels == 1 && (val&1) != 0); img 193 modules/imgproc/test/test_contours.cpp for( i = 1; i < img->height - 1; i++ ) img 194 modules/imgproc/test/test_contours.cpp for( j = 1; j < img->width - 1; j++ ) img 196 modules/imgproc/test/test_contours.cpp uchar* t = (uchar*)(img->imageData + img->widthStep*i + j); img 201 modules/imgproc/test/test_contours.cpp cvThreshold( img, img, val - 2, val, CV_THRESH_BINARY ); img 229 modules/imgproc/test/test_contours.cpp img[i] = cvCreateImage( img_size, 8, 1 ); img 231 modules/imgproc/test/test_contours.cpp cvTsGenerateBlobImage( img[0], min_blob_size, max_blob_size, img 234 modules/imgproc/test/test_contours.cpp cvCopy( img[0], img[1] ); img 235 modules/imgproc/test/test_contours.cpp cvCopy( img[0], img[2] ); img 237 modules/imgproc/test/test_contours.cpp cvTsMarkContours( img[1], 255 ); img 246 modules/imgproc/test/test_contours.cpp count = cvFindContours( img[2], storage, &contours, sizeof(CvContour), retr_mode, approx_method ); img 248 modules/imgproc/test/test_contours.cpp cvZero( img[3] ); img 251 modules/imgproc/test/test_contours.cpp cvDrawContours( img[3], contours, cvScalar(255), cvScalar(255), INT_MAX, -1 ); img 253 modules/imgproc/test/test_contours.cpp cvCopy( img[0], img[2] ); img 255 modules/imgproc/test/test_contours.cpp count2 = cvFindContours( img[2], storage, &chain, sizeof(CvChain), retr_mode, CV_CHAIN_CODE ); img 260 modules/imgproc/test/test_contours.cpp cvZero( img[2] ); img 263 modules/imgproc/test/test_contours.cpp cvDrawContours( img[2], contours2, cvScalar(255), cvScalar(255), INT_MAX ); img 272 modules/imgproc/test/test_contours.cpp cvCmpS( img[0], 0, img[0], CV_CMP_GT ); img 287 modules/imgproc/test/test_contours.cpp _img[i] = cvarrToMat(img[i]); img 382 modules/imgproc/test/test_contours.cpp cvShowImage( "test", img[0] ); img 398 modules/imgproc/test/test_contours.cpp Mat img(rows, cols, CV_8UC1, Scalar(255)); img 400 modules/imgproc/test/test_contours.cpp line(img, Point(0, 10), Point(255, 10), Scalar(0), 2, 4); img 401 modules/imgproc/test/test_contours.cpp line(img, Point(-5, 20), Point(260, 20), Scalar(0), 2, 4); img 402 modules/imgproc/test/test_contours.cpp line(img, Point(10, 0), Point(10, 255), Scalar(0), 2, 4); img 408 modules/imgproc/test/test_contours.cpp line(img, Point(int(x0), int(y)), Point(int(x1), int(y)), Scalar(0), 2, 4, 2); img 410 modules/imgproc/test/test_contours.cpp int pixelsDrawn = rows*cols - countNonZero(img); img 416 modules/imgproc/test/test_contours.cpp Mat img(100, 100, CV_8UC1, Scalar(0)); img 418 modules/imgproc/test/test_contours.cpp polylines(img, pts, false, Scalar(255)); img 419 modules/imgproc/test/test_contours.cpp int cnt = countNonZero(img); img 425 modules/imgproc/test/test_contours.cpp Mat img(100, 100, CV_8UC1, Scalar(0)); img 429 modules/imgproc/test/test_contours.cpp polylines(img, pts, false, Scalar(255)); img 430 modules/imgproc/test/test_contours.cpp int cnt = countNonZero(img); img 469 modules/imgproc/test/test_contours.cpp Mat img(w, w, CV_8U); img 470 modules/imgproc/test/test_contours.cpp img.setTo(Scalar::all(0)); img 477 modules/imgproc/test/test_contours.cpp line(img, p*scale + ofs, q*scale + ofs, Scalar::all(255)); img 480 modules/imgproc/test/test_contours.cpp dilate(img, img, Mat()); img 482 modules/imgproc/test/test_contours.cpp findContours(img, contours, noArray(), RETR_LIST, CHAIN_APPROX_SIMPLE); img 484 modules/imgproc/test/test_contours.cpp img.setTo(Scalar::all(0)); img 486 modules/imgproc/test/test_contours.cpp drawContours(img, contours, 0, Scalar::all(255), 1); img 738 modules/imgproc/test/test_convhull.cpp IplImage* img = cvCreateImage( cvSize(500,500), 8, 3 ); img 739 modules/imgproc/test/test_convhull.cpp cvZero(img); img 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 ); img 744 modules/imgproc/test/test_convhull.cpp cvPolyLine( img, &bpp, &n, 1, 1, CV_RGB(255,255,0), 1, CV_AA, 0 ); img 745 modules/imgproc/test/test_convhull.cpp cvShowImage( "test", img ); img 747 modules/imgproc/test/test_convhull.cpp cvReleaseImage(&img); img 848 modules/imgproc/test/test_convhull.cpp IplImage* img = cvCreateImage( cvSize(500,500), 8, 3 ); img 849 modules/imgproc/test/test_convhull.cpp cvZero(img); img 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 ); img 854 modules/imgproc/test/test_convhull.cpp cvPolyLine( img, &bpp, &n, 1, 1, CV_RGB(255,255,0), 1, CV_AA, 0 ); img 855 modules/imgproc/test/test_convhull.cpp cvShowImage( "test", img ); img 857 modules/imgproc/test/test_convhull.cpp cvReleaseImage(&img); img 977 modules/imgproc/test/test_convhull.cpp IplImage* img = cvCreateImage( cvSize(500,500), 8, 3 ); img 978 modules/imgproc/test/test_convhull.cpp cvZero(img); img 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 ); img 981 modules/imgproc/test/test_convhull.cpp cvCircle( img, cvPoint(cvRound(center.x*a+b),cvRound(center.y*a+d)), img 983 modules/imgproc/test/test_convhull.cpp cvShowImage( "test", img ); img 985 modules/imgproc/test/test_convhull.cpp cvReleaseImage(&img); img 1296 modules/imgproc/test/test_convhull.cpp IplImage* img = cvCreateImage( cvSize(cvRound(low_high_range*4), img 1298 modules/imgproc/test/test_convhull.cpp cvZero( img ); img 1302 modules/imgproc/test/test_convhull.cpp cvEllipseBox( img, box, CV_RGB(255,0,0), 3, 8 ); img 1309 modules/imgproc/test/test_convhull.cpp cvCircle( img, pt, 1, CV_RGB(255,255,255), -1, 8 ); img 1312 modules/imgproc/test/test_convhull.cpp cvShowImage( "test", img ); img 1313 modules/imgproc/test/test_convhull.cpp cvReleaseImage( &img ); img 1785 modules/imgproc/test/test_convhull.cpp CvMat* img = cvCreateMat( img_size.height, img_size.width, CV_8UC1 ); img 1790 modules/imgproc/test/test_convhull.cpp cvZero(img); img 1791 modules/imgproc/test/test_convhull.cpp cvFillPoly( img, &pt, &count, 1, cvScalarAll(1)); img 1792 modules/imgproc/test/test_convhull.cpp cvMoments( img, &moments0 ); img 1826 modules/imgproc/test/test_convhull.cpp cvCmpS( img, 0, img, CV_CMP_GT ); img 1828 modules/imgproc/test/test_convhull.cpp cvShowImage( "test", img ); img 1834 modules/imgproc/test/test_convhull.cpp cvReleaseMat( &img ); img 1660 modules/imgproc/test/test_filter.cpp static void test_integral( const Mat& img, Mat* sum, Mat* sqsum, Mat* tilted ) img 1662 modules/imgproc/test/test_filter.cpp CV_Assert( img.depth() == CV_32F ); img 1664 modules/imgproc/test/test_filter.cpp sum->create(img.rows+1, img.cols+1, CV_64F); img 1666 modules/imgproc/test/test_filter.cpp sqsum->create(img.rows+1, img.cols+1, CV_64F); img 1668 modules/imgproc/test/test_filter.cpp tilted->create(img.rows+1, img.cols+1, CV_64F); img 1670 modules/imgproc/test/test_filter.cpp const float* data = img.ptr<float>(); img 1674 modules/imgproc/test/test_filter.cpp int step = (int)(img.step/sizeof(data[0])); img 1678 modules/imgproc/test/test_filter.cpp Size size = img.size(); img 1712 modules/imgproc/test/test_filter.cpp if( data > img.ptr<float>() ) img 212 modules/imgproc/test/test_floodfill.cpp cv::Mat img = cv::cvarrToMat(test_array[INPUT_OUTPUT][0]), img 217 modules/imgproc/test/test_floodfill.cpp area = cv::floodFill( img, seed_pt, new_val, &rect, l_diff, u_diff, flags ); img 219 modules/imgproc/test/test_floodfill.cpp area = cv::floodFill( img, mask, seed_pt, new_val, &rect, l_diff, u_diff, flags ); img 251 modules/imgproc/test/test_floodfill.cpp float* img; img 280 modules/imgproc/test/test_floodfill.cpp img = tmp->data.fl; img 281 modules/imgproc/test/test_floodfill.cpp step = tmp->step / sizeof(img[0]); img 318 modules/imgproc/test/test_floodfill.cpp s0 = img[p0.iofs]; img 329 modules/imgproc/test/test_floodfill.cpp float* ptr = img + p0.iofs; img 358 modules/imgproc/test/test_floodfill.cpp s0 = img[p0.iofs]; img 359 modules/imgproc/test/test_floodfill.cpp s1 = img[p0.iofs + 1]; img 360 modules/imgproc/test/test_floodfill.cpp s2 = img[p0.iofs + 2]; img 374 modules/imgproc/test/test_floodfill.cpp float* ptr = img + p0.iofs; img 429 modules/imgproc/test/test_floodfill.cpp float* ptr = img + i*step; img 79 modules/imgproc/test/test_grabcut.cpp Mat img = imread(string(ts->get_data_path()) + "shared/airplane.png"); img 84 modules/imgproc/test/test_grabcut.cpp if (img.empty() || (!mask_prob.empty() && img.size() != mask_prob.size()) || img 85 modules/imgproc/test/test_grabcut.cpp (!exp_mask1.empty() && img.size() != exp_mask1.size()) || img 86 modules/imgproc/test/test_grabcut.cpp (!exp_mask2.empty() && img.size() != exp_mask2.size()) ) img 98 modules/imgproc/test/test_grabcut.cpp grabCut( img, mask, rect, bgdModel, fgdModel, 0, GC_INIT_WITH_RECT ); img 99 modules/imgproc/test/test_grabcut.cpp grabCut( img, mask, rect, bgdModel, fgdModel, 2, GC_EVAL ); img 123 modules/imgproc/test/test_grabcut.cpp grabCut( img, mask, rect, bgdModel, fgdModel, 0, GC_INIT_WITH_MASK ); img 124 modules/imgproc/test/test_grabcut.cpp grabCut( img, mask, rect, bgdModel, fgdModel, 1, GC_EVAL ); img 1681 modules/imgproc/test/test_histograms.cpp IplImage imgstub[CV_MAX_DIM], *img[CV_MAX_DIM]; img 1696 modules/imgproc/test/test_histograms.cpp img[i] = cvGetImage( mat, &imgstub[i] ); img 1697 modules/imgproc/test/test_histograms.cpp img[i]->roi = &roi; img 1713 modules/imgproc/test/test_histograms.cpp cvTsCalcHist( img, model, 0, channels ); img 58 modules/imgproc/test/test_imgproc_umat.cpp Mat img = imread(imgpath, 1), gray, smallimg, result; img 59 modules/imgproc/test/test_imgproc_umat.cpp UMat uimg = img.getUMat(ACCESS_READ), ugray, usmallimg, uresult; img 61 modules/imgproc/test/test_imgproc_umat.cpp cvtColor(img, gray, COLOR_BGR2GRAY); img 125 modules/imgproc/test/test_imgwarp.cpp Mat& img = test_mat[INPUT][0]; img 126 modules/imgproc/test/test_imgwarp.cpp int i, j, cols = img.cols; img 127 modules/imgproc/test/test_imgwarp.cpp int type = img.type(), depth = CV_MAT_DEPTH(type), cn = CV_MAT_CN(type); img 130 modules/imgproc/test/test_imgwarp.cpp vector<float> buffer(img.cols*cn); img 135 modules/imgproc/test/test_imgwarp.cpp if( test_mat[INPUT_OUTPUT][0].cols >= img.cols && img 136 modules/imgproc/test/test_imgwarp.cpp test_mat[INPUT_OUTPUT][0].rows >= img.rows ) img 139 modules/imgproc/test/test_imgwarp.cpp for( i = 0; i < img.rows; i++ ) img 141 modules/imgproc/test/test_imgwarp.cpp uchar* ptr = img.ptr(i); img 148 modules/imgproc/test/test_templmatch.cpp static void cvTsMatchTemplate( const CvMat* img, const CvMat* templ, CvMat* result, int method ) img 151 modules/imgproc/test/test_templmatch.cpp int depth = CV_MAT_DEPTH(img->type), cn = CV_MAT_CN(img->type); img 153 modules/imgproc/test/test_templmatch.cpp int a_step = img->step / CV_ELEM_SIZE(img->type & CV_MAT_DEPTH_MASK); img 201 modules/imgproc/test/test_templmatch.cpp const uchar* a = img->data.ptr + i*img->step + j*cn; img 233 modules/imgproc/test/test_templmatch.cpp const float* a = (const float*)(img->data.ptr + i*img->step) + j*cn; img 387 modules/objdetect/include/opencv2/objdetect.hpp CV_WRAP virtual void compute(InputArray img, img 393 modules/objdetect/include/opencv2/objdetect.hpp CV_WRAP virtual void detect(const Mat& img, CV_OUT std::vector<Point>& foundLocations, img 399 modules/objdetect/include/opencv2/objdetect.hpp virtual void detect(const Mat& img, CV_OUT std::vector<Point>& foundLocations, img 405 modules/objdetect/include/opencv2/objdetect.hpp CV_WRAP virtual void detectMultiScale(InputArray img, CV_OUT std::vector<Rect>& foundLocations, img 410 modules/objdetect/include/opencv2/objdetect.hpp virtual void detectMultiScale(InputArray img, CV_OUT std::vector<Rect>& foundLocations, img 415 modules/objdetect/include/opencv2/objdetect.hpp CV_WRAP virtual void computeGradient(const Mat& img, CV_OUT Mat& grad, CV_OUT Mat& angleOfs, img 439 modules/objdetect/include/opencv2/objdetect.hpp virtual void detectROI(const cv::Mat& img, const std::vector<cv::Point> &locations, img 445 modules/objdetect/include/opencv2/objdetect.hpp virtual void detectMultiScaleROI(const cv::Mat& img, img 216 modules/objdetect/include/opencv2/objdetect/detection_based_tracker.hpp void detectInRegion(const cv::Mat& img, const cv::Rect& r, std::vector<cv::Rect>& detectedObjectsInRegions); img 36 modules/objdetect/perf/opencl/perf_cascades.cpp Mat img = imread(getDataPath(imagePath), IMREAD_GRAYSCALE); img 37 modules/objdetect/perf/opencl/perf_cascades.cpp if (img.empty()) img 42 modules/objdetect/perf/opencl/perf_cascades.cpp equalizeHist(img, img); img 43 modules/objdetect/perf/opencl/perf_cascades.cpp declare.in(img).time(60); img 45 modules/objdetect/perf/opencl/perf_cascades.cpp UMat uimg = img.getUMat(ACCESS_READ); img 618 modules/objdetect/src/cascadedetect.cpp void HaarEvaluator::computeChannels(int scaleIdx, InputArray img) img 623 modules/objdetect/src/cascadedetect.cpp if (img.isUMat()) img 636 modules/objdetect/src/cascadedetect.cpp integral(img, sum, sqsum, tilted, CV_32S, CV_32S); img 641 modules/objdetect/src/cascadedetect.cpp integral(img, sum, sqsum, noArray(), CV_32S, CV_32S); img 653 modules/objdetect/src/cascadedetect.cpp integral(img, sum, sqsum, tilted, CV_32S, CV_32S); img 656 modules/objdetect/src/cascadedetect.cpp integral(img, sum, sqsum, noArray(), CV_32S, CV_32S); img 42 modules/objdetect/src/cascadedetect.hpp virtual bool setImage(InputArray img, const std::vector<float>& scales); img 363 modules/objdetect/src/cascadedetect.hpp virtual void computeChannels( int i, InputArray img ); img 445 modules/objdetect/src/cascadedetect.hpp virtual void computeChannels( int i, InputArray img ); img 971 modules/objdetect/src/detection_based_tracker.cpp void cv::DetectionBasedTracker::detectInRegion(const Mat& img, const Rect& r, std::vector<Rect>& detectedObjectsInRegions) img 973 modules/objdetect/src/detection_based_tracker.cpp Rect r0(Point(), img.size()); img 986 modules/objdetect/src/detection_based_tracker.cpp Mat img1(img, r1);//subimage for rectangle -- without data copying img 1500 modules/objdetect/src/haar.cpp CvMat stub, *img = (CvMat*)_img; img 1521 modules/objdetect/src/haar.cpp img = cvGetMat( img, &stub, &coi ); img 1525 modules/objdetect/src/haar.cpp if( CV_MAT_DEPTH(img->type) != CV_8U ) img 1536 modules/objdetect/src/haar.cpp maxSize.height = img->rows; img 1537 modules/objdetect/src/haar.cpp maxSize.width = img->cols; img 1540 modules/objdetect/src/haar.cpp temp.reset(cvCreateMat( img->rows, img->cols, CV_8UC1 )); img 1541 modules/objdetect/src/haar.cpp sum.reset(cvCreateMat( img->rows + 1, img->cols + 1, CV_32SC1 )); img 1542 modules/objdetect/src/haar.cpp sqsum.reset(cvCreateMat( img->rows + 1, img->cols + 1, CV_64FC1 )); img 1548 modules/objdetect/src/haar.cpp tilted.reset(cvCreateMat( img->rows + 1, img->cols + 1, CV_32SC1 )); img 1552 modules/objdetect/src/haar.cpp if( CV_MAT_CN(img->type) > 1 ) img 1554 modules/objdetect/src/haar.cpp cvCvtColor( img, temp, CV_BGR2GRAY ); img 1555 modules/objdetect/src/haar.cpp img = temp; img 1568 modules/objdetect/src/haar.cpp normImg.reset(cvCreateMat( img->rows, img->cols, CV_32FC1)); img 1570 modules/objdetect/src/haar.cpp imgSmall.reset(cvCreateMat( img->rows + 1, img->cols + 1, CV_8UC1 )); img 1576 modules/objdetect/src/haar.cpp CvSize sz(cvRound( img->cols/factor ), cvRound( img->rows/factor )); img 1604 modules/objdetect/src/haar.cpp cvResize( img, &img1, CV_INTER_LINEAR ); img 1635 modules/objdetect/src/haar.cpp cvIntegral( img, sum, sqsum, tilted ); img 1639 modules/objdetect/src/haar.cpp sumcanny.reset(cvCreateMat( img->rows + 1, img->cols + 1, CV_32SC1 )); img 1640 modules/objdetect/src/haar.cpp cvCanny( img, temp, 0, 50, 3 ); img 1645 modules/objdetect/src/haar.cpp factor*cascade->orig_window_size.width < img->cols - 10 && img 1646 modules/objdetect/src/haar.cpp factor*cascade->orig_window_size.height < img->rows - 10; img 1667 modules/objdetect/src/haar.cpp int endX = cvRound((img->cols - winSize.width) / ystep); img 1668 modules/objdetect/src/haar.cpp int endY = cvRound((img->rows - winSize.height) / ystep); img 1749 modules/objdetect/src/haar.cpp scanROI.width = std::min(scanROI.width + dx*2, img->cols-1-scanROI.x); img 1750 modules/objdetect/src/haar.cpp scanROI.height = std::min(scanROI.height + dy*2, img->rows-1-scanROI.y); img 225 modules/objdetect/src/hog.cpp void HOGDescriptor::computeGradient(const Mat& img, Mat& grad, Mat& qangle, img 228 modules/objdetect/src/hog.cpp CV_Assert( img.type() == CV_8U || img.type() == CV_8UC3 ); img 230 modules/objdetect/src/hog.cpp Size gradsize(img.cols + paddingTL.width + paddingBR.width, img 231 modules/objdetect/src/hog.cpp img.rows + paddingTL.height + paddingBR.height); img 237 modules/objdetect/src/hog.cpp img.locateROI(wholeSize, roiofs); img 240 modules/objdetect/src/hog.cpp int cn = img.channels(); img 311 modules/objdetect/src/hog.cpp const uchar* imgPtr = img.ptr(ymap[y]); img 314 modules/objdetect/src/hog.cpp const uchar* prevPtr = img.data + img.step*ymap[y-1]; img 315 modules/objdetect/src/hog.cpp const uchar* nextPtr = img.data + img.step*ymap[y+1]; img 498 modules/objdetect/src/hog.cpp const Mat& img, const Size& paddingTL, const Size& paddingBR, img 502 modules/objdetect/src/hog.cpp const Mat& img, const Size& paddingTL, const Size& paddingBR, img 1092 modules/objdetect/src/hog.cpp UMat img = _img.getUMat(); img 1104 modules/objdetect/src/hog.cpp idx = k.set(idx, (int)img.step1()); img 1107 modules/objdetect/src/hog.cpp idx = k.set(idx, ocl::KernelArg::PtrReadOnly(img)); img 1117 modules/objdetect/src/hog.cpp static bool ocl_computeGradient(InputArray img, UMat grad, UMat qangle, int nbins, Size effect_size, bool gamma_correction, bool signedGradient) img 1121 modules/objdetect/src/hog.cpp return ocl_compute_gradients_8UC1(effect_size.height, effect_size.width, img, img 1414 modules/objdetect/src/hog.cpp Mat img = _img.getMat(); img 1415 modules/objdetect/src/hog.cpp HOGCache cache(this, img, padding, padding, nwindows == 0, cacheStride); img 1436 modules/objdetect/src/hog.cpp if( pt0.x < -padding.width || pt0.x > img.cols + padding.width - winSize.width || img 1437 modules/objdetect/src/hog.cpp pt0.y < -padding.height || pt0.y > img.rows + padding.height - winSize.height ) img 1459 modules/objdetect/src/hog.cpp void HOGDescriptor::detect(const Mat& img, img 1476 modules/objdetect/src/hog.cpp Size paddedImgSize(img.cols + padding.width*2, img.rows + padding.height*2); img 1478 modules/objdetect/src/hog.cpp HOGCache cache(this, img, padding, padding, nwindows == 0, cacheStride); img 1502 modules/objdetect/src/hog.cpp if( pt0.x < -padding.width || pt0.x > img.cols + padding.width - winSize.width || img 1503 modules/objdetect/src/hog.cpp pt0.y < -padding.height || pt0.y > img.rows + padding.height - winSize.height ) img 1554 modules/objdetect/src/hog.cpp void HOGDescriptor::detect(const Mat& img, std::vector<Point>& hits, double hitThreshold, img 1558 modules/objdetect/src/hog.cpp detect(img, hits, weightsV, hitThreshold, winStride, padding, locations); img 1571 modules/objdetect/src/hog.cpp img = _img; img 1585 modules/objdetect/src/hog.cpp double minScale = i1 > 0 ? levelScale[i1] : i2 > 1 ? levelScale[i1+1] : std::max(img.cols, img.rows); img 1586 modules/objdetect/src/hog.cpp Size maxSz(cvCeil(img.cols/minScale), cvCeil(img.rows/minScale)); img 1587 modules/objdetect/src/hog.cpp Mat smallerImgBuf(maxSz, img.type()); img 1594 modules/objdetect/src/hog.cpp Size sz(cvRound(img.cols/scale), cvRound(img.rows/scale)); img 1595 modules/objdetect/src/hog.cpp Mat smallerImg(sz, img.type(), smallerImgBuf.ptr()); img 1596 modules/objdetect/src/hog.cpp if( sz == img.size() ) img 1597 modules/objdetect/src/hog.cpp smallerImg = Mat(sz, img.type(), img.data, img.step); img 1599 modules/objdetect/src/hog.cpp resize(img, smallerImg, sz); img 1626 modules/objdetect/src/hog.cpp Mat img; img 1724 modules/objdetect/src/hog.cpp static bool ocl_detect(InputArray img, std::vector<Point> &hits, double hit_threshold, Size win_stride, img 1732 modules/objdetect/src/hog.cpp Size imgSize = img.size(); img 1755 modules/objdetect/src/hog.cpp if(!ocl_computeGradient(img, grad, qangle, nbins, effect_size, gammaCorrection, signedGradient)) img 1870 modules/objdetect/src/hog.cpp Mat img = _img.getMat(); img 1872 modules/objdetect/src/hog.cpp HOGInvoker invoker(this, img, hitThreshold, winStride, padding, &levelScale[0], &allCandidates, &mtx, &tempWeights, &tempScales); img 1888 modules/objdetect/src/hog.cpp void HOGDescriptor::detectMultiScale(InputArray img, std::vector<Rect>& foundLocations, img 1893 modules/objdetect/src/hog.cpp detectMultiScale(img, foundLocations, foundWeights, hitThreshold, winStride, img 3278 modules/objdetect/src/hog.cpp img = _img; img 3290 modules/objdetect/src/hog.cpp Size maxSz(cvCeil(img.cols/(*locations)[0].scale), cvCeil(img.rows/(*locations)[0].scale)); img 3291 modules/objdetect/src/hog.cpp Mat smallerImgBuf(maxSz, img.type()); img 3298 modules/objdetect/src/hog.cpp Size sz(cvRound(img.cols / scale), cvRound(img.rows / scale)); img 3299 modules/objdetect/src/hog.cpp Mat smallerImg(sz, img.type(), smallerImgBuf.ptr()); img 3301 modules/objdetect/src/hog.cpp if( sz == img.size() ) img 3302 modules/objdetect/src/hog.cpp smallerImg = Mat(sz, img.type(), img.data, img.step); img 3304 modules/objdetect/src/hog.cpp resize(img, smallerImg, sz); img 3318 modules/objdetect/src/hog.cpp Mat img; img 3326 modules/objdetect/src/hog.cpp void HOGDescriptor::detectROI(const cv::Mat& img, const std::vector<cv::Point> &locations, img 3344 modules/objdetect/src/hog.cpp Size paddedImgSize(img.cols + padding.width*2, img.rows + padding.height*2); img 3347 modules/objdetect/src/hog.cpp HOGCache cache(this, img, padding, padding, true, cacheStride); img 3368 modules/objdetect/src/hog.cpp if( pt0.x < -padding.width || pt0.x > img.cols + padding.width - winSize.width || img 3369 modules/objdetect/src/hog.cpp pt0.y < -padding.height || pt0.y > img.rows + padding.height - winSize.height ) img 3419 modules/objdetect/src/hog.cpp void HOGDescriptor::detectMultiScaleROI(const cv::Mat& img, img 3427 modules/objdetect/src/hog.cpp HOGConfInvoker(this, img, hitThreshold, Size(8, 8), img 568 modules/objdetect/src/opencl/objdetect_hog.cl const __global uchar4 * img, __global float * grad, __global QANGLE_TYPE * qangle, img 576 modules/objdetect/src/opencl/objdetect_hog.cl __global const uchar4* row = img + gidY * img_step; img 624 modules/objdetect/src/opencl/objdetect_hog.cl a = convert_float4(img[(gidY - 1) * img_step + x].xyzw); img 625 modules/objdetect/src/opencl/objdetect_hog.cl b = convert_float4(img[(gidY + 1) * img_step + x].xyzw); img 667 modules/objdetect/src/opencl/objdetect_hog.cl __global const uchar * img, __global float * grad, __global QANGLE_TYPE * qangle, img 675 modules/objdetect/src/opencl/objdetect_hog.cl __global const uchar* row = img + gidY * img_step; img 703 modules/objdetect/src/opencl/objdetect_hog.cl float a = (float) img[ (gidY + 1) * img_step + x ]; img 704 modules/objdetect/src/opencl/objdetect_hog.cl float b = (float) img[ (gidY - 1) * img_step + x ]; img 66 modules/objdetect/test/opencl/test_hogdetector.cpp Mat img; img 72 modules/objdetect/test/opencl/test_hogdetector.cpp img = readImage("cascadeandhog/images/image_00000000_0.png", IMREAD_GRAYSCALE); img 73 modules/objdetect/test/opencl/test_hogdetector.cpp ASSERT_FALSE(img.empty()); img 74 modules/objdetect/test/opencl/test_hogdetector.cpp img.copyTo(uimg); img 88 modules/objdetect/test/opencl/test_hogdetector.cpp OCL_OFF(hog.compute(img, cpu_descriptors, hog.winSize)); img 110 modules/objdetect/test/opencl/test_hogdetector.cpp OCL_OFF(hog.detectMultiScale(img, cpu_found, 0, Size(8, 8), Size(0, 0), 1.05, 6)); img 113 modules/objdetect/test/opencl/test_hogdetector.cpp EXPECT_LT(checkRectSimilarity(img.size(), cpu_found, gpu_found), 0.05); img 76 modules/objdetect/test/test_cascadeandhog.cpp virtual int detectMultiScale( int di, const Mat& img, vector<Rect>& objects ) = 0; img 143 modules/objdetect/test/test_cascadeandhog.cpp Mat img = imread( dataPath+filename, 1 ); img 144 modules/objdetect/test/test_cascadeandhog.cpp images.push_back( img ); img 394 modules/objdetect/test/test_cascadeandhog.cpp virtual int detectMultiScale( int di, const Mat& img, vector<Rect>& objects ); img 395 modules/objdetect/test/test_cascadeandhog.cpp virtual int detectMultiScale_C( const string& filename, int di, const Mat& img, vector<Rect>& objects ); img 427 modules/objdetect/test/test_cascadeandhog.cpp int di, const Mat& img, img 439 modules/objdetect/test/test_cascadeandhog.cpp cvtColor( img, grayImg, COLOR_BGR2GRAY ); img 455 modules/objdetect/test/test_cascadeandhog.cpp int CV_CascadeDetectorTest::detectMultiScale( int di, const Mat& img, img 465 modules/objdetect/test/test_cascadeandhog.cpp return detectMultiScale_C(filename, di, img, objects); img 474 modules/objdetect/test/test_cascadeandhog.cpp cvtColor( img, grayImg, COLOR_BGR2GRAY ); img 488 modules/objdetect/test/test_cascadeandhog.cpp virtual int detectMultiScale( int di, const Mat& img, vector<Rect>& objects ); img 509 modules/objdetect/test/test_cascadeandhog.cpp int CV_HOGDetectorTest::detectMultiScale( int di, const Mat& img, img 517 modules/objdetect/test/test_cascadeandhog.cpp hog.detectMultiScale(img, objects); img 525 modules/objdetect/test/test_cascadeandhog.cpp Mat img; img 526 modules/objdetect/test/test_cascadeandhog.cpp img = imread(cvtest::TS::ptr()->get_data_path() + "/cascadeandhog/images/karen-and-rob.png"); img 527 modules/objdetect/test/test_cascadeandhog.cpp ASSERT_FALSE(img.empty()); img 565 modules/objdetect/test/test_cascadeandhog.cpp virtual void computeGradient(const Mat& img, Mat& grad, Mat& qangle, img 568 modules/objdetect/test/test_cascadeandhog.cpp virtual void detect(const Mat& img, img 573 modules/objdetect/test/test_cascadeandhog.cpp virtual void detect(const Mat& img, vector<Point>& hits, double hitThreshold = 0.0, img 577 modules/objdetect/test/test_cascadeandhog.cpp virtual void compute(InputArray img, vector<float>& descriptors, img 603 modules/objdetect/test/test_cascadeandhog.cpp const Mat& img, Size paddingTL, Size paddingBR, img 607 modules/objdetect/test/test_cascadeandhog.cpp const Mat& img, Size paddingTL, Size paddingBR, img 1002 modules/objdetect/test/test_cascadeandhog.cpp void HOGDescriptorTester::detect(const Mat& img, img 1020 modules/objdetect/test/test_cascadeandhog.cpp Size paddedImgSize(img.cols + padding.width*2, img.rows + padding.height*2); img 1022 modules/objdetect/test/test_cascadeandhog.cpp HOGCacheTester cache(this, img, padding, padding, nwindows == 0, cacheStride); img 1042 modules/objdetect/test/test_cascadeandhog.cpp if( pt0.x < -padding.width || pt0.x > img.cols + padding.width - winSize.width || img 1043 modules/objdetect/test/test_cascadeandhog.cpp pt0.y < -padding.height || pt0.y > img.rows + padding.height - winSize.height ) img 1076 modules/objdetect/test/test_cascadeandhog.cpp actual_hog->detect(img, actual_find_locations, actual_weights, img 1095 modules/objdetect/test/test_cascadeandhog.cpp ts->printf(cvtest::TS::LOG, "Channels: %d\n", img.channels()); img 1103 modules/objdetect/test/test_cascadeandhog.cpp void HOGDescriptorTester::detect(const Mat& img, vector<Point>& hits, double hitThreshold, img 1107 modules/objdetect/test/test_cascadeandhog.cpp detect(img, hits, weightsV, hitThreshold, winStride, padding, locations); img 1113 modules/objdetect/test/test_cascadeandhog.cpp Mat img = _img.getMat(); img 1122 modules/objdetect/test/test_cascadeandhog.cpp Size paddedImgSize(img.cols + padding.width*2, img.rows + padding.height*2); img 1124 modules/objdetect/test/test_cascadeandhog.cpp HOGCacheTester cache(this, img, padding, padding, nwindows == 0, cacheStride); img 1144 modules/objdetect/test/test_cascadeandhog.cpp if( pt0.x < -padding.width || pt0.x > img.cols + padding.width - winSize.width || img 1145 modules/objdetect/test/test_cascadeandhog.cpp pt0.y < -padding.height || pt0.y > img.rows + padding.height - winSize.height ) img 1169 modules/objdetect/test/test_cascadeandhog.cpp actual_hog->compute(img, actual_descriptors, winStride, padding, locations); img 1178 modules/objdetect/test/test_cascadeandhog.cpp ts->printf(cvtest::TS::LOG, "Channels: %d\n", img.channels()); img 1185 modules/objdetect/test/test_cascadeandhog.cpp void HOGDescriptorTester::computeGradient(const Mat& img, Mat& grad, Mat& qangle, img 1188 modules/objdetect/test/test_cascadeandhog.cpp CV_Assert( img.type() == CV_8U || img.type() == CV_8UC3 ); img 1190 modules/objdetect/test/test_cascadeandhog.cpp Size gradsize(img.cols + paddingTL.width + paddingBR.width, img 1191 modules/objdetect/test/test_cascadeandhog.cpp img.rows + paddingTL.height + paddingBR.height); img 1196 modules/objdetect/test/test_cascadeandhog.cpp img.locateROI(wholeSize, roiofs); img 1199 modules/objdetect/test/test_cascadeandhog.cpp int cn = img.channels(); img 1237 modules/objdetect/test/test_cascadeandhog.cpp const uchar* imgPtr = img.ptr(ymap[y]); img 1238 modules/objdetect/test/test_cascadeandhog.cpp const uchar* prevPtr = img.ptr(ymap[y-1]); img 1239 modules/objdetect/test/test_cascadeandhog.cpp const uchar* nextPtr = img.ptr(ymap[y+1]); img 1316 modules/objdetect/test/test_cascadeandhog.cpp actual_hog->computeGradient(img, actual_mats[0], actual_mats[1], paddingTL, paddingBR); img 1326 modules/objdetect/test/test_cascadeandhog.cpp ts->printf(cvtest::TS::LOG, "Channels: %d\n", img.channels()); img 1386 modules/objdetect/test/test_cascadeandhog.cpp Mat img(height, width, CV_8U); img 1387 modules/objdetect/test/test_cascadeandhog.cpp randu(img, 0, 256); img 1388 modules/objdetect/test/test_cascadeandhog.cpp cascade.detectMultiScale(img, objects); img 534 modules/photo/include/opencv2/photo.hpp CV_WRAP virtual void computeBitmaps(InputArray img, OutputArray tb, OutputArray eb) = 0; img 205 modules/photo/src/align.cpp Mat img = _img.getMat(); img 206 modules/photo/src/align.cpp _tb.create(img.size(), CV_8U); img 207 modules/photo/src/align.cpp _eb.create(img.size(), CV_8U); img 209 modules/photo/src/align.cpp int median = getMedian(img); img 210 modules/photo/src/align.cpp compare(img, median, tb, CMP_GT); img 211 modules/photo/src/align.cpp compare(abs(img - median), exclude_range, eb, CMP_GT); img 237 modules/photo/src/align.cpp void buildPyr(Mat& img, std::vector<Mat>& pyr, int maxlevel) img 240 modules/photo/src/align.cpp pyr[0] = img.clone(); img 246 modules/photo/src/align.cpp int getMedian(Mat& img) img 253 modules/photo/src/align.cpp calcHist(&img, 1, &channels, Mat(), hist, 1, &hist_size, ranges); img 256 modules/photo/src/align.cpp int thresh = (int)img.total() / 2; img 73 modules/photo/src/contrast_preserve.cpp Mat img; img 75 modules/photo/src/contrast_preserve.cpp img = Mat(I.size(),CV_32FC3); img 76 modules/photo/src/contrast_preserve.cpp I.convertTo(img,CV_32FC3,1.0/255.0); img 87 modules/photo/src/contrast_preserve.cpp obj.grad_system(img,polyGrad,Cg,comb); img 88 modules/photo/src/contrast_preserve.cpp obj.weak_order(img,alf); img 180 modules/photo/src/contrast_preserve.cpp Mat Gray = Mat::zeros(img.size(),CV_32FC1); img 181 modules/photo/src/contrast_preserve.cpp obj.grayImContruct(wei, img, Gray); img 187 modules/photo/src/contrast_preserve.cpp Mat lab = Mat(img.size(),CV_8UC3); img 188 modules/photo/src/contrast_preserve.cpp Mat color = Mat(img.size(),CV_8UC3); img 63 modules/photo/src/contrast_preserve.hpp void singleChannelGradx(const Mat &img, Mat& dest); img 64 modules/photo/src/contrast_preserve.hpp void singleChannelGrady(const Mat &img, Mat& dest); img 65 modules/photo/src/contrast_preserve.hpp void gradvector(const Mat &img, vector <double> &grad); img 66 modules/photo/src/contrast_preserve.hpp void colorGrad(Mat img, vector <double> &Cg); img 69 modules/photo/src/contrast_preserve.hpp void weak_order(Mat img, vector <double> &alf); img 70 modules/photo/src/contrast_preserve.hpp void grad_system(Mat img, vector < vector < double > > &polyGrad, img 74 modules/photo/src/contrast_preserve.hpp void grayImContruct(vector <double> &wei, Mat img, Mat &Gray); img 137 modules/photo/src/contrast_preserve.hpp void Decolor::singleChannelGradx(const Mat &img, Mat& dest) img 139 modules/photo/src/contrast_preserve.hpp int w=img.size().width; img 140 modules/photo/src/contrast_preserve.hpp int h=img.size().height; img 142 modules/photo/src/contrast_preserve.hpp filter2D(img, dest, -1, kernelx, anchor, 0.0, BORDER_CONSTANT); img 147 modules/photo/src/contrast_preserve.hpp void Decolor::singleChannelGrady(const Mat &img, Mat& dest) img 149 modules/photo/src/contrast_preserve.hpp int w=img.size().width; img 150 modules/photo/src/contrast_preserve.hpp int h=img.size().height; img 152 modules/photo/src/contrast_preserve.hpp filter2D(img, dest, -1, kernely, anchor, 0.0, BORDER_CONSTANT); img 157 modules/photo/src/contrast_preserve.hpp void Decolor::gradvector(const Mat &img, vector <double> &grad) img 159 modules/photo/src/contrast_preserve.hpp Mat dest= Mat(img.size().height,img.size().width, CV_32FC1); img 160 modules/photo/src/contrast_preserve.hpp Mat dest1= Mat(img.size().height,img.size().width, CV_32FC1); img 161 modules/photo/src/contrast_preserve.hpp singleChannelGradx(img,dest); img 162 modules/photo/src/contrast_preserve.hpp singleChannelGrady(img,dest1); img 181 modules/photo/src/contrast_preserve.hpp void Decolor::colorGrad(Mat img, vector <double> &Cg) img 184 modules/photo/src/contrast_preserve.hpp Mat lab = Mat(img.size(),CV_32FC3); img 186 modules/photo/src/contrast_preserve.hpp cvtColor(img,lab,COLOR_BGR2Lab); img 228 modules/photo/src/contrast_preserve.hpp void Decolor::weak_order(Mat img, vector <double> &alf) img 230 modules/photo/src/contrast_preserve.hpp int h = img.size().height; img 231 modules/photo/src/contrast_preserve.hpp int w = img.size().width; img 236 modules/photo/src/contrast_preserve.hpp resize(img,img,Size(round_num(h*sizefactor),round_num(w*sizefactor))); img 239 modules/photo/src/contrast_preserve.hpp Mat curIm = Mat(img.size(),CV_32FC1); img 241 modules/photo/src/contrast_preserve.hpp split(img,rgb_channel); img 302 modules/photo/src/contrast_preserve.hpp void Decolor::grad_system(Mat img, vector < vector < double > > &polyGrad, img 305 modules/photo/src/contrast_preserve.hpp int h = img.size().height; img 306 modules/photo/src/contrast_preserve.hpp int w = img.size().width; img 312 modules/photo/src/contrast_preserve.hpp resize(img,img,Size(round_num(h*sizefactor),round_num(w*sizefactor))); img 315 modules/photo/src/contrast_preserve.hpp h = img.size().height; img 316 modules/photo/src/contrast_preserve.hpp w = img.size().width; img 317 modules/photo/src/contrast_preserve.hpp colorGrad(img,Cg); img 319 modules/photo/src/contrast_preserve.hpp Mat curIm = Mat(img.size(),CV_32FC1); img 321 modules/photo/src/contrast_preserve.hpp split(img,rgb_channel); img 393 modules/photo/src/contrast_preserve.hpp void Decolor::grayImContruct(vector <double> &wei, Mat img, Mat &Gray) img 395 modules/photo/src/contrast_preserve.hpp int h=img.size().height; img 396 modules/photo/src/contrast_preserve.hpp int w=img.size().width; img 399 modules/photo/src/contrast_preserve.hpp split(img,rgb_channel); img 64 modules/photo/src/inpaint.cpp #define CV_MAT_3COLOR_ELEM(img,type,y,x,c) CV_MAT_ELEM(img,type,y,(x)*3+(c)) img 167 modules/photo/src/merge.cpp Mat img, gray, contrast, saturation, wellexp; img 170 modules/photo/src/merge.cpp images[i].convertTo(img, CV_32F, 1.0f/255.0f); img 172 modules/photo/src/merge.cpp cvtColor(img, gray, COLOR_RGB2GRAY); img 174 modules/photo/src/merge.cpp img.copyTo(gray); img 176 modules/photo/src/merge.cpp split(img, splitted); img 219 modules/photo/src/merge.cpp Mat img; img 220 modules/photo/src/merge.cpp images[i].convertTo(img, CV_32F, 1.0f/255.0f); img 223 modules/photo/src/merge.cpp buildPyramid(img, img_pyr, maxlevel); img 66 modules/photo/src/npr.cpp Mat img = Mat(I.size(),CV_32FC3); img 67 modules/photo/src/npr.cpp I.convertTo(img,CV_32FC3,1.0/255.0); img 69 modules/photo/src/npr.cpp obj.filter(img, res, sigma_s, sigma_r, flags); img 84 modules/photo/src/npr.cpp Mat img = Mat(I.size(),CV_32FC3); img 85 modules/photo/src/npr.cpp I.convertTo(img,CV_32FC3,1.0/255.0); img 90 modules/photo/src/npr.cpp Mat result = Mat(img.size(),CV_32FC3); img 91 modules/photo/src/npr.cpp Mat lab = Mat(img.size(),CV_32FC3); img 94 modules/photo/src/npr.cpp cvtColor(img,lab,COLOR_BGR2Lab); img 97 modules/photo/src/npr.cpp Mat L = Mat(img.size(),CV_32FC1); img 128 modules/photo/src/npr.cpp Mat img = Mat(I.size(),CV_32FC3); img 129 modules/photo/src/npr.cpp I.convertTo(img,CV_32FC3,1.0/255.0); img 136 modules/photo/src/npr.cpp obj.pencil_sketch(img, sketch, color_sketch, sigma_s, sigma_r, shade_factor); img 149 modules/photo/src/npr.cpp Mat img = Mat(I.size(),CV_32FC3); img 150 modules/photo/src/npr.cpp I.convertTo(img,CV_32FC3,1.0/255.0); img 152 modules/photo/src/npr.cpp int h = img.size().height; img 153 modules/photo/src/npr.cpp int w = img.size().width; img 159 modules/photo/src/npr.cpp obj.filter(img, res, sigma_s, sigma_r, NORMCONV_FILTER); img 59 modules/photo/src/npr.hpp void init(const Mat &img, int flags, float sigma_s, float sigma_r); img 60 modules/photo/src/npr.hpp void getGradientx( const Mat &img, Mat &gx); img 61 modules/photo/src/npr.hpp void getGradienty( const Mat &img, Mat &gy); img 62 modules/photo/src/npr.hpp void diffx(const Mat &img, Mat &temp); img 63 modules/photo/src/npr.hpp void diffy(const Mat &img, Mat &temp); img 64 modules/photo/src/npr.hpp void find_magnitude(Mat &img, Mat &mag); img 68 modules/photo/src/npr.hpp void filter(const Mat &img, Mat &res, float sigma_s, float sigma_r, int flags); img 69 modules/photo/src/npr.hpp void pencil_sketch(const Mat &img, Mat &sketch, Mat &color_res, float sigma_s, float sigma_r, float shade_factor); img 70 modules/photo/src/npr.hpp void Depth_of_field(const Mat &img, Mat &img1, float sigma_s, float sigma_r); img 73 modules/photo/src/npr.hpp void Domain_Filter::diffx(const Mat &img, Mat &temp) img 75 modules/photo/src/npr.hpp int channel = img.channels(); img 77 modules/photo/src/npr.hpp for(int i = 0; i < img.size().height; i++) img 78 modules/photo/src/npr.hpp for(int j = 0; j < img.size().width-1; j++) img 83 modules/photo/src/npr.hpp img.at<float>(i,(j+1)*channel+c) - img.at<float>(i,j*channel+c); img 88 modules/photo/src/npr.hpp void Domain_Filter::diffy(const Mat &img, Mat &temp) img 90 modules/photo/src/npr.hpp int channel = img.channels(); img 92 modules/photo/src/npr.hpp for(int i = 0; i < img.size().height-1; i++) img 93 modules/photo/src/npr.hpp for(int j = 0; j < img.size().width; j++) img 98 modules/photo/src/npr.hpp img.at<float>((i+1),j*channel+c) - img.at<float>(i,j*channel+c); img 103 modules/photo/src/npr.hpp void Domain_Filter::getGradientx( const Mat &img, Mat &gx) img 105 modules/photo/src/npr.hpp int w = img.cols; img 106 modules/photo/src/npr.hpp int h = img.rows; img 107 modules/photo/src/npr.hpp int channel = img.channels(); img 114 modules/photo/src/npr.hpp img.at<float>(i,(j+1)*channel+c) - img.at<float>(i,j*channel+c); img 118 modules/photo/src/npr.hpp void Domain_Filter::getGradienty( const Mat &img, Mat &gy) img 120 modules/photo/src/npr.hpp int w = img.cols; img 121 modules/photo/src/npr.hpp int h = img.rows; img 122 modules/photo/src/npr.hpp int channel = img.channels(); img 129 modules/photo/src/npr.hpp img.at<float>(i+1,j*channel+c) - img.at<float>(i,j*channel+c); img 134 modules/photo/src/npr.hpp void Domain_Filter::find_magnitude(Mat &img, Mat &mag) img 136 modules/photo/src/npr.hpp int h = img.rows; img 137 modules/photo/src/npr.hpp int w = img.cols; img 140 modules/photo/src/npr.hpp split(img, planes); img 397 modules/photo/src/npr.hpp void Domain_Filter::init(const Mat &img, int flags, float sigma_s, float sigma_r) img 399 modules/photo/src/npr.hpp int h = img.size().height; img 400 modules/photo/src/npr.hpp int w = img.size().width; img 401 modules/photo/src/npr.hpp int channel = img.channels(); img 408 modules/photo/src/npr.hpp diffx(img,derivx); img 409 modules/photo/src/npr.hpp diffy(img,derivy); img 447 modules/photo/src/npr.hpp img.copyTo(O); img 478 modules/photo/src/npr.hpp void Domain_Filter::filter(const Mat &img, Mat &res, float sigma_s = 60, float sigma_r = 0.4, int flags = 1) img 481 modules/photo/src/npr.hpp int h = img.size().height; img 482 modules/photo/src/npr.hpp int w = img.size().width; img 485 modules/photo/src/npr.hpp init(img,flags,sigma_s,sigma_r); img 533 modules/photo/src/npr.hpp void Domain_Filter::pencil_sketch(const Mat &img, Mat &sketch, Mat &color_res, float sigma_s, float sigma_r, float shade_factor) img 537 modules/photo/src/npr.hpp init(img,2,sigma_s,sigma_r); img 538 modules/photo/src/npr.hpp int h = img.size().height; img 539 modules/photo/src/npr.hpp int w = img.size().width; img 545 modules/photo/src/npr.hpp cvtColor(img,color_sketch,COLOR_BGR2YCrCb); img 70 modules/photo/src/seamless_cloning.hpp void solve(const Mat &img, Mat& mod_diff, Mat &result); img 72 modules/photo/src/seamless_cloning.hpp void poissonSolver(const cv::Mat &img, cv::Mat &gxx , cv::Mat &gyy, cv::Mat &result); img 76 modules/photo/src/seamless_cloning.hpp void computeGradientX(const cv::Mat &img, cv::Mat &gx); img 77 modules/photo/src/seamless_cloning.hpp void computeGradientY(const cv::Mat &img, cv::Mat &gy); img 78 modules/photo/src/seamless_cloning.hpp void computeLaplacianX(const cv::Mat &img, cv::Mat &gxx); img 79 modules/photo/src/seamless_cloning.hpp void computeLaplacianY(const cv::Mat &img, cv::Mat &gyy); img 48 modules/photo/src/seamless_cloning_impl.cpp void Cloning::computeGradientX( const Mat &img, Mat &gx) img 54 modules/photo/src/seamless_cloning_impl.cpp if(img.channels() == 3) img 56 modules/photo/src/seamless_cloning_impl.cpp filter2D(img, gx, CV_32F, kernel); img 58 modules/photo/src/seamless_cloning_impl.cpp else if (img.channels() == 1) img 63 modules/photo/src/seamless_cloning_impl.cpp filter2D(img, tmp[chan], CV_32F, kernel); img 69 modules/photo/src/seamless_cloning_impl.cpp void Cloning::computeGradientY( const Mat &img, Mat &gy) img 75 modules/photo/src/seamless_cloning_impl.cpp if(img.channels() == 3) img 77 modules/photo/src/seamless_cloning_impl.cpp filter2D(img, gy, CV_32F, kernel); img 79 modules/photo/src/seamless_cloning_impl.cpp else if (img.channels() == 1) img 84 modules/photo/src/seamless_cloning_impl.cpp filter2D(img, tmp[chan], CV_32F, kernel); img 90 modules/photo/src/seamless_cloning_impl.cpp void Cloning::computeLaplacianX( const Mat &img, Mat &laplacianX) img 95 modules/photo/src/seamless_cloning_impl.cpp filter2D(img, laplacianX, CV_32F, kernel); img 98 modules/photo/src/seamless_cloning_impl.cpp void Cloning::computeLaplacianY( const Mat &img, Mat &laplacianY) img 103 modules/photo/src/seamless_cloning_impl.cpp filter2D(img, laplacianY, CV_32F, kernel); img 159 modules/photo/src/seamless_cloning_impl.cpp void Cloning::solve(const Mat &img, Mat& mod_diff, Mat &result) img 161 modules/photo/src/seamless_cloning_impl.cpp const int w = img.cols; img 162 modules/photo/src/seamless_cloning_impl.cpp const int h = img.rows; img 179 modules/photo/src/seamless_cloning_impl.cpp const unsigned char * imgLinePtr = img.ptr<unsigned char>(0); img 184 modules/photo/src/seamless_cloning_impl.cpp result.ptr<unsigned char>(0)[i] = img.ptr<unsigned char>(0)[i]; img 189 modules/photo/src/seamless_cloning_impl.cpp imgLinePtr = img.ptr<unsigned char>(j); img 214 modules/photo/src/seamless_cloning_impl.cpp imgLinePtr = img.ptr<unsigned char>(h-1); img 219 modules/photo/src/seamless_cloning_impl.cpp void Cloning::poissonSolver(const Mat &img, Mat &laplacianX , Mat &laplacianY, Mat &result) img 221 modules/photo/src/seamless_cloning_impl.cpp const int w = img.cols; img 222 modules/photo/src/seamless_cloning_impl.cpp const int h = img.rows; img 224 modules/photo/src/seamless_cloning_impl.cpp Mat lap = Mat(img.size(),CV_32FC1); img 228 modules/photo/src/seamless_cloning_impl.cpp Mat bound = img.clone(); img 230 modules/photo/src/seamless_cloning_impl.cpp rectangle(bound, Point(1, 1), Point(img.cols-2, img.rows-2), Scalar::all(0), -1); img 238 modules/photo/src/seamless_cloning_impl.cpp solve(img,mod_diff,result); img 123 modules/photo/src/tonemap.cpp Mat img = _dst.getMat(); img 126 modules/photo/src/tonemap.cpp linear->process(src, img); img 129 modules/photo/src/tonemap.cpp cvtColor(img, gray_img, COLOR_RGB2GRAY); img 147 modules/photo/src/tonemap.cpp mapLuminance(img, img, gray_img, map, saturation); img 150 modules/photo/src/tonemap.cpp linear->process(img, img); img 207 modules/photo/src/tonemap.cpp Mat img = _dst.getMat(); img 209 modules/photo/src/tonemap.cpp linear->process(src, img); img 212 modules/photo/src/tonemap.cpp cvtColor(img, gray_img, COLOR_RGB2GRAY); img 224 modules/photo/src/tonemap.cpp mapLuminance(img, img, gray_img, map_img, saturation); img 225 modules/photo/src/tonemap.cpp pow(img, 1.0f / gamma, img); img 291 modules/photo/src/tonemap.cpp Mat img = _dst.getMat(); img 293 modules/photo/src/tonemap.cpp linear->process(src, img); img 296 modules/photo/src/tonemap.cpp cvtColor(img, gray_img, COLOR_RGB2GRAY); img 308 modules/photo/src/tonemap.cpp Scalar chan_mean = mean(img); img 312 modules/photo/src/tonemap.cpp split(img, channels); img 322 modules/photo/src/tonemap.cpp merge(channels, img); img 325 modules/photo/src/tonemap.cpp linear->process(img, img); img 385 modules/photo/src/tonemap.cpp Mat img = _dst.getMat(); img 387 modules/photo/src/tonemap.cpp linear->process(src, img); img 390 modules/photo/src/tonemap.cpp cvtColor(img, gray_img, COLOR_RGB2GRAY); img 432 modules/photo/src/tonemap.cpp mapLuminance(img, img, gray_img, x, saturation); img 435 modules/photo/src/tonemap.cpp linear->process(img, img); img 43 modules/photo/test/test_denoise_tvl1.cpp void make_noisy(const cv::Mat& img, cv::Mat& noisy, double sigma, double pepper_salt_ratio,cv::RNG& rng) img 45 modules/photo/test/test_denoise_tvl1.cpp noisy.create(img.size(), img.type()); img 46 modules/photo/test/test_denoise_tvl1.cpp cv::Mat noise(img.size(), img.type()), mask(img.size(), CV_8U); img 48 modules/photo/test/test_denoise_tvl1.cpp cv::addWeighted(img, 1, noise, 1, -128, noisy); img 52 modules/photo/test/test_denoise_tvl1.cpp cv::Mat half = mask.colRange(0, img.cols/2); img 58 modules/photo/test/test_denoise_tvl1.cpp void make_spotty(cv::Mat& img,cv::RNG& rng, int r=3,int n=1000) img 62 modules/photo/test/test_denoise_tvl1.cpp int x=rng(img.cols-r),y=rng(img.rows-r); img 64 modules/photo/test/test_denoise_tvl1.cpp img(cv::Range(y,y+r),cv::Range(x,x+r))=(uchar)0; img 66 modules/photo/test/test_denoise_tvl1.cpp img(cv::Range(y,y+r),cv::Range(x,x+r))=(uchar)255; img 80 modules/photo/test/test_denoise_tvl1.cpp cv::Mat img = cv::imread(cvtest::TS::ptr()->get_data_path() + "shared/lena.png", 0), noisy, res; img 82 modules/photo/test/test_denoise_tvl1.cpp ASSERT_FALSE(img.empty()) << "Error: can't open 'lena.png'"; img 88 modules/photo/test/test_denoise_tvl1.cpp make_noisy(img,images[i], 20, 0.02,rng); img 151 modules/photo/test/test_denoising.cpp cv::Mat img(50, 50, CV_8UC1, cv::Scalar::all(255)); img 153 modules/photo/test/test_denoising.cpp cv::fastNlMeansDenoising(img, filtered); img 155 modules/photo/test/test_denoising.cpp int nonWhitePixelsCount = (int)img.total() - cv::countNonZero(filtered == img); img 47 modules/photo/test/test_hdr.cpp void loadImage(string path, Mat &img) img 49 modules/photo/test/test_hdr.cpp img = imread(path, -1); img 50 modules/photo/test/test_hdr.cpp ASSERT_FALSE(img.empty()) << "Could not load input image " << path; img 68 modules/photo/test/test_hdr.cpp Mat img = imread(path + name); img 69 modules/photo/test/test_hdr.cpp ASSERT_FALSE(img.empty()) << "Could not load input image " << path + name; img 70 modules/photo/test/test_hdr.cpp images.push_back(img); img 93 modules/photo/test/test_hdr.cpp Mat img, expected, result; img 94 modules/photo/test/test_hdr.cpp loadImage(test_path + "image.hdr", img); img 98 modules/photo/test/test_hdr.cpp linear->process(img, result); img 104 modules/photo/test/test_hdr.cpp drago->process(img, result); img 110 modules/photo/test/test_hdr.cpp durand->process(img, result); img 116 modules/photo/test/test_hdr.cpp reinhard->process(img, result); img 122 modules/photo/test/test_hdr.cpp mantiuk->process(img, result); img 134 modules/photo/test/test_hdr.cpp Mat img; img 135 modules/photo/test/test_hdr.cpp loadImage(file_name, img); img 136 modules/photo/test/test_hdr.cpp cvtColor(img, img, COLOR_RGB2GRAY); img 148 modules/photo/test/test_hdr.cpp align->shiftMat(img, res, shift); img 149 modules/photo/test/test_hdr.cpp Point calc = align->calculateShift(img, res); img 80 modules/stitching/include/opencv2/stitching/detail/blenders.hpp virtual void feed(InputArray img, InputArray mask, Point tl); img 104 modules/stitching/include/opencv2/stitching/detail/blenders.hpp void feed(InputArray img, InputArray mask, Point tl); img 131 modules/stitching/include/opencv2/stitching/detail/blenders.hpp void feed(InputArray img, InputArray mask, Point tl); img 151 modules/stitching/include/opencv2/stitching/detail/blenders.hpp void CV_EXPORTS createLaplacePyr(InputArray img, int num_levels, std::vector<UMat>& pyr); img 152 modules/stitching/include/opencv2/stitching/detail/blenders.hpp void CV_EXPORTS createLaplacePyrGpu(InputArray img, int num_levels, std::vector<UMat>& pyr); img 68 modules/stitching/include/opencv2/stitching/detail/timelapsers.hpp virtual void process(InputArray img, InputArray mask, Point tl); img 82 modules/stitching/src/blenders.cpp Mat img = _img.getMat(); img 87 modules/stitching/src/blenders.cpp CV_Assert(img.type() == CV_16SC3); img 92 modules/stitching/src/blenders.cpp for (int y = 0; y < img.rows; ++y) img 94 modules/stitching/src/blenders.cpp const Point3_<short> *src_row = img.ptr<Point3_<short> >(y); img 99 modules/stitching/src/blenders.cpp for (int x = 0; x < img.cols; ++x) img 131 modules/stitching/src/blenders.cpp Mat img = _img.getMat(); img 134 modules/stitching/src/blenders.cpp CV_Assert(img.type() == CV_16SC3); img 144 modules/stitching/src/blenders.cpp for (int y = 0; y < img.rows; ++y) img 146 modules/stitching/src/blenders.cpp const Point3_<short>* src_row = img.ptr<Point3_<short> >(y); img 151 modules/stitching/src/blenders.cpp for (int x = 0; x < img.cols; ++x) img 281 modules/stitching/src/blenders.cpp UMat img = _img.getUMat(); img 282 modules/stitching/src/blenders.cpp CV_Assert(img.type() == CV_16SC3 || img.type() == CV_8UC3); img 289 modules/stitching/src/blenders.cpp Point br_new(std::min(dst_roi_.br().x, tl.x + img.cols + gap), img 290 modules/stitching/src/blenders.cpp std::min(dst_roi_.br().y, tl.y + img.rows + gap)); img 312 modules/stitching/src/blenders.cpp int bottom = br_new.y - tl.y - img.rows; img 313 modules/stitching/src/blenders.cpp int right = br_new.x - tl.x - img.cols; img 551 modules/stitching/src/blenders.cpp void createLaplacePyr(InputArray img, int num_levels, std::vector<UMat> &pyr) img 554 modules/stitching/src/blenders.cpp cv::Mat imgMat = img.getMat(); img 561 modules/stitching/src/blenders.cpp if(img.depth() == CV_8U) img 565 modules/stitching/src/blenders.cpp img.getUMat().convertTo(pyr[0], CV_16S); img 570 modules/stitching/src/blenders.cpp UMat current = img.getUMat(); img 571 modules/stitching/src/blenders.cpp pyrDown(img, downNext); img 596 modules/stitching/src/blenders.cpp pyr[0] = img.getUMat(); img 609 modules/stitching/src/blenders.cpp void createLaplacePyrGpu(InputArray img, int num_levels, std::vector<UMat> &pyr) img 615 modules/stitching/src/blenders.cpp gpu_pyr[0].upload(img); img 629 modules/stitching/src/blenders.cpp (void)img; img 129 modules/stitching/src/stitcher.cpp UMat img; img 135 modules/stitching/src/stitcher.cpp resize(imgs[i], img, Size(), seam_scale_, seam_scale_); img 136 modules/stitching/src/stitcher.cpp seam_est_imgs_[i] = img.clone(); img 219 modules/stitching/src/stitcher.cpp UMat full_img, img; img 271 modules/stitching/src/stitcher.cpp resize(full_img, img, Size(), compose_scale, compose_scale); img 275 modules/stitching/src/stitcher.cpp img = full_img; img 277 modules/stitching/src/stitcher.cpp Size img_size = img.size(); img 288 modules/stitching/src/stitcher.cpp w->warp(img, K, cameras_[img_idx].R, INTER_LINEAR, BORDER_CONSTANT, img_warped); img 312 modules/stitching/src/stitcher.cpp img.release(); img 392 modules/stitching/src/stitcher.cpp UMat full_img, img; img 409 modules/stitching/src/stitcher.cpp img = full_img; img 420 modules/stitching/src/stitcher.cpp resize(full_img, img, Size(), work_scale_, work_scale_); img 430 modules/stitching/src/stitcher.cpp (*features_finder_)(img, features_[i]); img 440 modules/stitching/src/stitcher.cpp (*features_finder_)(img, features_[i], rois); img 445 modules/stitching/src/stitcher.cpp resize(full_img, img, Size(), seam_scale_, seam_scale_); img 446 modules/stitching/src/stitcher.cpp seam_est_imgs_[i] = img.clone(); img 452 modules/stitching/src/stitcher.cpp img.release(); img 70 modules/stitching/src/timelapsers.cpp Mat img = _img.getMat(); img 73 modules/stitching/src/timelapsers.cpp CV_Assert(img.type() == CV_16SC3); img 77 modules/stitching/src/timelapsers.cpp for (int y = 0; y < img.rows; ++y) img 79 modules/stitching/src/timelapsers.cpp const Point3_<short> *src_row = img.ptr<Point3_<short> >(y); img 81 modules/stitching/src/timelapsers.cpp for (int x = 0; x < img.cols; ++x) img 53 modules/stitching/test/test_matchers.cpp Mat img = imread(string(cvtest::TS::ptr()->get_data_path()) + "cv/shared/lena.png"); img 56 modules/stitching/test/test_matchers.cpp rois.push_back(Rect(0, 0, img.cols / 2, img.rows / 2)); img 57 modules/stitching/test/test_matchers.cpp rois.push_back(Rect(img.cols / 2, img.rows / 2, img.cols - img.cols / 2, img.rows - img.rows / 2)); img 59 modules/stitching/test/test_matchers.cpp (*finder)(img, roi_features, rois); img 542 modules/ts/include/opencv2/ts.hpp CV_EXPORTS void fillGradient(Mat& img, int delta = 5); img 543 modules/ts/include/opencv2/ts.hpp CV_EXPORTS void smoothBorder(Mat& img, const Scalar& color, int delta = 3); img 586 modules/ts/src/ts.cpp void fillGradient(Mat& img, int delta) img 588 modules/ts/src/ts.cpp const int ch = img.channels(); img 589 modules/ts/src/ts.cpp CV_Assert(!img.empty() && img.depth() == CV_8U && ch <= 4); img 593 modules/ts/src/ts.cpp for(r=0; r<img.rows; r++) img 597 modules/ts/src/ts.cpp for(c=0; c<img.cols; c++) img 601 modules/ts/src/ts.cpp uchar vals[] = {uchar(valR), uchar(valC), uchar(200*r/img.rows), uchar(255)}; img 602 modules/ts/src/ts.cpp uchar *p = img.ptr(r, c); img 608 modules/ts/src/ts.cpp void smoothBorder(Mat& img, const Scalar& color, int delta) img 610 modules/ts/src/ts.cpp const int ch = img.channels(); img 611 modules/ts/src/ts.cpp CV_Assert(!img.empty() && img.depth() == CV_8U && ch <= 4); img 616 modules/ts/src/ts.cpp int nR = std::min(n, (img.rows+1)/2), nC = std::min(n, (img.cols+1)/2); img 622 modules/ts/src/ts.cpp for(c=0; c<img.cols; c++) img 624 modules/ts/src/ts.cpp p = img.ptr(r, c); img 629 modules/ts/src/ts.cpp for(c=0; c<img.cols; c++) img 631 modules/ts/src/ts.cpp p = img.ptr(img.rows-r-1, c); img 638 modules/ts/src/ts.cpp for(r=0; r<img.rows; r++) img 643 modules/ts/src/ts.cpp p = img.ptr(r, c); img 651 modules/ts/src/ts.cpp p = img.ptr(r, img.cols-c-1); img 120 modules/video/include/opencv2/video/tracking.hpp CV_EXPORTS_W int buildOpticalFlowPyramid( InputArray img, OutputArrayOfArrays pyramid, img 20 modules/video/perf/perf_ecc.cpp Mat img = imread(getDataPath("cv/shared/fruits_ecc.png"),0); img 34 modules/video/perf/perf_ecc.cpp warpAffine(img, templateImage, warpGround, img 42 modules/video/perf/perf_ecc.cpp warpAffine(img, templateImage, warpGround, img 48 modules/video/perf/perf_ecc.cpp warpAffine(img, templateImage, warpGround, img 55 modules/video/perf/perf_ecc.cpp warpPerspective(img, templateImage, warpGround, img 67 modules/video/perf/perf_ecc.cpp findTransformECC(templateImage, img, warpMat, transform_type, img 195 modules/video/perf/perf_optflowpyrlk.cpp Mat img = imread(filename); img 208 modules/video/perf/perf_optflowpyrlk.cpp img.adjustROI(winSize.height, winSize.height, winSize.width, winSize.width); img 210 modules/video/perf/perf_optflowpyrlk.cpp int maxLevel = buildOpticalFlowPyramid(img, pyramid, winSize, 1000, withDerivatives, BORDER_CONSTANT, BORDER_CONSTANT, tryReuseInputImage); img 212 modules/video/perf/perf_optflowpyrlk.cpp declare.in(img).out(pyramid); img 217 modules/video/perf/perf_optflowpyrlk.cpp buildOpticalFlowPyramid(img, pyramid, winSize, maxLevel, withDerivatives, pyrBorder, derivBorder, tryReuseInputImage); img 53 modules/video/src/compat_video.cpp cv::Mat img = cv::cvarrToMat(imgProb); img 55 modules/video/src/compat_video.cpp int iters = cv::meanShift(img, window, criteria); img 60 modules/video/src/compat_video.cpp comp->area = cvRound(cv::sum(img(window))[0]); img 73 modules/video/src/compat_video.cpp cv::Mat img = cv::cvarrToMat(imgProb); img 75 modules/video/src/compat_video.cpp cv::RotatedRect rr = cv::CamShift(img, window, criteria); img 80 modules/video/src/compat_video.cpp cv::Rect roi = rr.boundingRect() & cv::Rect(0, 0, img.cols, img.rows); img 81 modules/video/src/compat_video.cpp comp->area = cvRound(cv::sum(img(roi))[0]); img 747 modules/video/src/lkpyramid.cpp Mat img = _img.getMat(); img 748 modules/video/src/lkpyramid.cpp CV_Assert(img.depth() == CV_8U && winSize.width > 2 && winSize.height > 2 ); img 753 modules/video/src/lkpyramid.cpp int derivType = CV_MAKETYPE(DataType<cv::detail::deriv_type>::depth, img.channels() * 2); img 757 modules/video/src/lkpyramid.cpp if(tryReuseInputImage && img.isSubmatrix() && (pyrBorder & BORDER_ISOLATED) == 0) img 761 modules/video/src/lkpyramid.cpp img.locateROI(wholeSize, ofs); img 763 modules/video/src/lkpyramid.cpp && ofs.x + img.cols + winSize.width <= wholeSize.width img 764 modules/video/src/lkpyramid.cpp && ofs.y + img.rows + winSize.height <= wholeSize.height) img 766 modules/video/src/lkpyramid.cpp pyramid.getMatRef(0) = img; img 777 modules/video/src/lkpyramid.cpp if(temp.type() != img.type() || temp.cols != winSize.width*2 + img.cols || temp.rows != winSize.height * 2 + img.rows) img 778 modules/video/src/lkpyramid.cpp temp.create(img.rows + winSize.height*2, img.cols + winSize.width*2, img.type()); img 781 modules/video/src/lkpyramid.cpp img.copyTo(temp(Rect(winSize.width, winSize.height, img.cols, img.rows))); img 783 modules/video/src/lkpyramid.cpp copyMakeBorder(img, temp, winSize.height, winSize.height, winSize.width, winSize.width, pyrBorder); img 787 modules/video/src/lkpyramid.cpp Size sz = img.size(); img 799 modules/video/src/lkpyramid.cpp if(temp.type() != img.type() || temp.cols != winSize.width*2 + sz.width || temp.rows != winSize.height * 2 + sz.height) img 800 modules/video/src/lkpyramid.cpp temp.create(sz.height + winSize.height*2, sz.width + winSize.width*2, img.type()); img 1091 modules/video/src/optflowgf.cpp const Mat* img[2] = { &prev0, &next0 }; img 1147 modules/video/src/optflowgf.cpp img[i]->convertTo(fimg, CV_32F); img 63 modules/video/test/test_camshift.cpp CvMat* img; img 73 modules/video/test/test_camshift.cpp img = 0; img 88 modules/video/test/test_camshift.cpp cvReleaseMat( &img ); img 126 modules/video/test/test_camshift.cpp img = cvCreateMat( img_size.height, img_size.width, img_type ); img 127 modules/video/test/test_camshift.cpp cvZero( img ); img 132 modules/video/test/test_camshift.cpp uchar* ptr = img->data.ptr + img->step*y; img 235 modules/video/test/test_camshift.cpp area0 = cvCountNonZero(img); img 252 modules/video/test/test_camshift.cpp cvGetSubRect( img, &temp, init_rect ); img 265 modules/video/test/test_camshift.cpp cvCamShift( img, init_rect, criteria, &comp, &box ); img 352 modules/video/test/test_camshift.cpp cvCmpS( img, 0, img, CV_CMP_GT ); img 353 modules/video/test/test_camshift.cpp cvCvtColor( img, dst, CV_GRAY2BGR ); img 402 modules/video/test/test_camshift.cpp area0 = cvCountNonZero(img); img 419 modules/video/test/test_camshift.cpp cvGetSubRect( img, &temp, init_rect ); img 432 modules/video/test/test_camshift.cpp cvMeanShift( img, init_rect, criteria, &comp ); img 491 modules/video/test/test_camshift.cpp cvCmpS( img, 0, img, CV_CMP_GT ); img 492 modules/video/test/test_camshift.cpp cvCvtColor( img, dst, CV_GRAY2BGR ); img 114 modules/video/test/test_ecc.cpp Mat img = imread( string(ts->get_data_path()) + "shared/fruits.png", 0); img 117 modules/video/test/test_ecc.cpp if (img.empty()) img 124 modules/video/test/test_ecc.cpp resize(img, testImg, Size(216, 216)); img 189 modules/video/test/test_ecc.cpp Mat img = imread( string(ts->get_data_path()) + "shared/fruits.png", 0); img 192 modules/video/test/test_ecc.cpp if (img.empty()) img 199 modules/video/test/test_ecc.cpp resize(img, testImg, Size(216, 216)); img 264 modules/video/test/test_ecc.cpp Mat img = imread( string(ts->get_data_path()) + "shared/fruits.png", 0); img 266 modules/video/test/test_ecc.cpp if (img.empty()) img 273 modules/video/test/test_ecc.cpp resize(img, testImg, Size(216, 216)); img 339 modules/video/test/test_ecc.cpp Mat img = imread( string(ts->get_data_path()) + "shared/fruits.png", 0); img 342 modules/video/test/test_ecc.cpp if (img.empty()) img 349 modules/video/test/test_ecc.cpp resize(img, testImg, Size(216, 216)); img 411 modules/video/test/test_ecc.cpp Mat img = imread( string(ts->get_data_path()) + "shared/fruits.png", 0); img 414 modules/video/test/test_ecc.cpp if (img.empty()) img 421 modules/video/test/test_ecc.cpp resize(img, scaledImage, Size(216, 216)); img 137 modules/video/test/test_estimaterigid.cpp Mat img; img 145 modules/video/test/test_estimaterigid.cpp pyrDown(testImg, img); img 147 modules/video/test/test_estimaterigid.cpp Mat aff = cv::getRotationMatrix2D(Point(img.cols/2, img.rows/2), 1, 0.99); img 152 modules/video/test/test_estimaterigid.cpp warpAffine(img, rotated, aff, img.size()); img 154 modules/video/test/test_estimaterigid.cpp Mat aff_est = estimateRigidTransform(img, rotated, true); img 240 modules/videoio/src/cap_dc1394_v2.cpp IplImage *img[NIMG]; img 292 modules/videoio/src/cap_dc1394_v2.cpp img[i] = maps[i][0] = maps[i][1] = 0; img 524 modules/videoio/src/cap_dc1394_v2.cpp cvReleaseImage(&img[i]); img 601 modules/videoio/src/cap_dc1394_v2.cpp if (!img[i]) img 602 modules/videoio/src/cap_dc1394_v2.cpp img[i] = cvCreateImage(cvSize(fc->size[0], fc->size[1]), 8, nch); img 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 ) img 614 modules/videoio/src/cap_dc1394_v2.cpp CvSize size = cvGetSize(img[i]); img 630 modules/videoio/src/cap_dc1394_v2.cpp cvRemap(&fhdr, img[i], maps[i][0], maps[i][1]); img 633 modules/videoio/src/cap_dc1394_v2.cpp cvCopy(&fhdr, img[i]); img 653 modules/videoio/src/cap_dc1394_v2.cpp return 0 <= idx && idx < nimages ? img[idx] : 0; img 572 modules/videoio/src/cap_mjpeg_encoder.cpp Mat img = _img.getMat(); img 574 modules/videoio/src/cap_mjpeg_encoder.cpp int input_channels = img.channels(); img 579 modules/videoio/src/cap_mjpeg_encoder.cpp CV_Assert( img.cols == width && img.rows == height ); img 584 modules/videoio/src/cap_mjpeg_encoder.cpp CV_Assert( img.cols == width && img.rows == height && channels == 3 ); img 589 modules/videoio/src/cap_mjpeg_encoder.cpp CV_Assert( img.cols == width && img.rows == height && channels == 3 ); img 594 modules/videoio/src/cap_mjpeg_encoder.cpp CV_Assert( img.cols == width && img.rows == height*3 ); img 603 modules/videoio/src/cap_mjpeg_encoder.cpp writeFrameData(img.data, (int)img.step, colorspace, input_channels); img 4078 modules/videoio/src/cap_msmf.cpp virtual bool writeFrame(const IplImage* img); img 4206 modules/videoio/src/cap_msmf.cpp bool CvVideoWriter_MSMF::writeFrame(const IplImage* img) img 4208 modules/videoio/src/cap_msmf.cpp if (!img) img 4211 modules/videoio/src/cap_msmf.cpp int length = img->width * img->height * 4; img 4214 modules/videoio/src/cap_msmf.cpp for (int rowIdx = 0; rowIdx < img->height; rowIdx++) img 4216 modules/videoio/src/cap_msmf.cpp char* rowStart = img->imageData + rowIdx*img->widthStep; img 4217 modules/videoio/src/cap_msmf.cpp for (int colIdx = 0; colIdx < img->width; colIdx++) img 4219 modules/videoio/src/cap_msmf.cpp BYTE b = rowStart[colIdx * img->nChannels + 0]; img 4220 modules/videoio/src/cap_msmf.cpp BYTE g = rowStart[colIdx * img->nChannels + 1]; img 4221 modules/videoio/src/cap_msmf.cpp BYTE r = rowStart[colIdx * img->nChannels + 2]; img 4223 modules/videoio/src/cap_msmf.cpp target[rowIdx*img->width+colIdx] = (r << 16) + (g << 8) + b; img 144 modules/videoio/test/test_ffmpeg.cpp Mat img(frame_s, CV_8UC3, Scalar::all(0)); img 150 modules/videoio/test/test_ffmpeg.cpp rectangle(img, Point2i(coeff * i, coeff * i), Point2i(coeff * (i + 1), coeff * (i + 1)), img 152 modules/videoio/test/test_ffmpeg.cpp writer << img; img 196 modules/videoio/test/test_ffmpeg.cpp Mat img, img_next; img 197 modules/videoio/test/test_ffmpeg.cpp cap >> img; img 200 modules/videoio/test/test_ffmpeg.cpp CV_Assert( !img0.empty() && !img.empty() && img_next.empty() ); img 202 modules/videoio/test/test_ffmpeg.cpp double diff = cvtest::norm(img0, img, CV_C); img 276 modules/videoio/test/test_video_io.cpp IplImage* img = cvQueryFrame( cap ); img 278 modules/videoio/test/test_video_io.cpp if (!img) img 281 modules/videoio/test/test_video_io.cpp frames.push_back(cv::cvarrToMat(img, true)); img 285 modules/videoio/test/test_video_io.cpp writer = cvCreateVideoWriter(tmp_name.c_str(), fmt.fourcc, 24, cvGetSize(img)); img 296 modules/videoio/test/test_video_io.cpp cvWriteFrame(writer, img); img 318 modules/videoio/test/test_video_io.cpp Mat img = frames[i]; img 321 modules/videoio/test/test_video_io.cpp double psnr = cvtest::PSNR(img1, img); img 455 modules/videoio/test/test_video_io.cpp Mat img = imread(file_path, IMREAD_COLOR); img 457 modules/videoio/test/test_video_io.cpp if (img.empty()) img 466 modules/videoio/test/test_video_io.cpp for (int k = 0; k < img.rows; ++k) img 467 modules/videoio/test/test_video_io.cpp for (int l = 0; l < img.cols; ++l) img 468 modules/videoio/test/test_video_io.cpp if (img.at<Vec3b>(k, l) == Vec3b::all(0)) img 469 modules/videoio/test/test_video_io.cpp img.at<Vec3b>(k, l) = Vec3b(0, 255, 0); img 470 modules/videoio/test/test_video_io.cpp else img.at<Vec3b>(k, l) = Vec3b(0, 0, 255); img 472 modules/videoio/test/test_video_io.cpp resize(img, img, frame_size, 0.0, 0.0, INTER_CUBIC); img 474 modules/videoio/test/test_video_io.cpp images.push_back(img); img 475 modules/videoio/test/test_video_io.cpp writer << img; img 529 modules/videoio/test/test_video_io.cpp Mat img = images[i]; img 532 modules/videoio/test/test_video_io.cpp double psnr = cvtest::PSNR(img, frame); img 79 modules/videoio/test/test_video_pos.cpp Mat img = drawFrame(i); img 80 modules/videoio/test/test_video_pos.cpp writer << img; img 142 modules/videoio/test/test_video_pos.cpp Mat img; cap >> img; img 154 modules/videoio/test/test_video_pos.cpp if (img.empty()) img 161 modules/videoio/test/test_video_pos.cpp double err = cvtest::PSNR(img, img0); img 17 samples/android/hello-android/main.cpp Mat img(textsize.height + 20, textsize.width + 20, CV_32FC1, Scalar(230,230,230)); img 18 samples/android/hello-android/main.cpp putText(img, message, Point(10, img.rows - 10), FONT_HERSHEY_COMPLEX, 3, Scalar(0, 0, 0), 5); img 22 samples/android/hello-android/main.cpp imwrite("/mnt/sdcard/HelloAndroid.png", img); img 24 samples/android/hello-android/main.cpp imshow("test", img); img 64 samples/cpp/bgfg_segm.cpp Mat img0, img, fgmask, fgimg; img 73 samples/cpp/bgfg_segm.cpp resize(img0, img, Size(640, 640*img0.rows/img0.cols), INTER_LINEAR); img 76 samples/cpp/bgfg_segm.cpp fgimg.create(img.size(), img.type()); img 79 samples/cpp/bgfg_segm.cpp bg_model->apply(img, fgmask, update_bg_model ? -1 : 0); img 87 samples/cpp/bgfg_segm.cpp img.copyTo(fgimg, fgmask); img 92 samples/cpp/bgfg_segm.cpp imshow("image", img); img 10 samples/cpp/connected_components.cpp Mat img; img 15 samples/cpp/connected_components.cpp Mat bw = threshval < 128 ? (img < threshval) : (img > threshval); img 16 samples/cpp/connected_components.cpp Mat labelImage(img.size(), CV_32S); img 23 samples/cpp/connected_components.cpp Mat dst(img.size(), CV_8UC3); img 54 samples/cpp/connected_components.cpp img = imread(inputImage.c_str(), 0); img 56 samples/cpp/connected_components.cpp if(img.empty()) img 63 samples/cpp/connected_components.cpp imshow( "Image", img ); img 38 samples/cpp/contours2.cpp Mat img = Mat::zeros(w, w, CV_8UC1); img 57 samples/cpp/contours2.cpp line(img, Point(cvRound(dx+100+j*10-80*cos(angle)), img 64 samples/cpp/contours2.cpp ellipse( img, Point(dx+150, dy+100), Size(100,70), 0, 0, 360, white, -1, 8, 0 ); img 65 samples/cpp/contours2.cpp ellipse( img, Point(dx+115, dy+70), Size(30,20), 0, 0, 360, black, -1, 8, 0 ); img 66 samples/cpp/contours2.cpp ellipse( img, Point(dx+185, dy+70), Size(30,20), 0, 0, 360, black, -1, 8, 0 ); img 67 samples/cpp/contours2.cpp ellipse( img, Point(dx+115, dy+70), Size(15,15), 0, 0, 360, white, -1, 8, 0 ); img 68 samples/cpp/contours2.cpp ellipse( img, Point(dx+185, dy+70), Size(15,15), 0, 0, 360, white, -1, 8, 0 ); img 69 samples/cpp/contours2.cpp ellipse( img, Point(dx+115, dy+70), Size(5,5), 0, 0, 360, black, -1, 8, 0 ); img 70 samples/cpp/contours2.cpp ellipse( img, Point(dx+185, dy+70), Size(5,5), 0, 0, 360, black, -1, 8, 0 ); img 71 samples/cpp/contours2.cpp ellipse( img, Point(dx+150, dy+100), Size(10,5), 0, 0, 360, black, -1, 8, 0 ); img 72 samples/cpp/contours2.cpp ellipse( img, Point(dx+150, dy+150), Size(40,10), 0, 0, 360, black, -1, 8, 0 ); img 73 samples/cpp/contours2.cpp ellipse( img, Point(dx+27, dy+100), Size(20,35), 0, 0, 360, white, -1, 8, 0 ); img 74 samples/cpp/contours2.cpp ellipse( img, Point(dx+273, dy+100), Size(20,35), 0, 0, 360, white, -1, 8, 0 ); img 78 samples/cpp/contours2.cpp imshow( "image", img ); img 81 samples/cpp/contours2.cpp findContours( img, contours0, hierarchy, RETR_TREE, CHAIN_APPROX_SIMPLE); img 18 samples/cpp/convexhull.cpp Mat img(500, 500, CV_8UC3); img 33 samples/cpp/convexhull.cpp pt.x = rng.uniform(img.cols/4, img.cols*3/4); img 34 samples/cpp/convexhull.cpp pt.y = rng.uniform(img.rows/4, img.rows*3/4); img 42 samples/cpp/convexhull.cpp img = Scalar::all(0); img 44 samples/cpp/convexhull.cpp circle(img, points[i], 3, Scalar(0, 0, 255), FILLED, LINE_AA); img 52 samples/cpp/convexhull.cpp line(img, pt0, pt, Scalar(0, 255, 0), 1,LINE_AA); img 56 samples/cpp/convexhull.cpp imshow("hull", img); img 19 samples/cpp/delaunay2.cpp static void draw_subdiv_point( Mat& img, Point2f fp, Scalar color ) img 21 samples/cpp/delaunay2.cpp circle( img, fp, 3, color, FILLED, LINE_8, 0 ); img 24 samples/cpp/delaunay2.cpp static void draw_subdiv( Mat& img, Subdiv2D& subdiv, Scalar delaunay_color ) img 37 samples/cpp/delaunay2.cpp line(img, pt[0], pt[1], delaunay_color, 1, LINE_AA, 0); img 38 samples/cpp/delaunay2.cpp line(img, pt[1], pt[2], delaunay_color, 1, LINE_AA, 0); img 39 samples/cpp/delaunay2.cpp line(img, pt[2], pt[0], delaunay_color, 1, LINE_AA, 0); img 49 samples/cpp/delaunay2.cpp line(img, pt0, pt1, delaunay_color, 1, LINE_AA, 0); img 54 samples/cpp/delaunay2.cpp static void locate_point( Mat& img, Subdiv2D& subdiv, Point2f fp, Scalar active_color ) img 67 samples/cpp/delaunay2.cpp line( img, org, dst, active_color, 3, LINE_AA, 0 ); img 74 samples/cpp/delaunay2.cpp draw_subdiv_point( img, fp, active_color ); img 78 samples/cpp/delaunay2.cpp static void paint_voronoi( Mat& img, Subdiv2D& subdiv ) img 97 samples/cpp/delaunay2.cpp fillConvexPoly(img, ifacet, color, 8, 0); img 100 samples/cpp/delaunay2.cpp polylines(img, ifacets, true, Scalar(), 1, LINE_AA, 0); img 101 samples/cpp/delaunay2.cpp circle(img, centers[i], 3, Scalar(), FILLED, LINE_AA, 0); img 114 samples/cpp/delaunay2.cpp Mat img(rect.size(), CV_8UC3); img 116 samples/cpp/delaunay2.cpp img = Scalar::all(0); img 118 samples/cpp/delaunay2.cpp imshow(win, img); img 125 samples/cpp/delaunay2.cpp locate_point( img, subdiv, fp, active_facet_color ); img 126 samples/cpp/delaunay2.cpp imshow( win, img ); img 133 samples/cpp/delaunay2.cpp img = Scalar::all(0); img 134 samples/cpp/delaunay2.cpp draw_subdiv( img, subdiv, delaunay_color ); img 135 samples/cpp/delaunay2.cpp imshow( win, img ); img 141 samples/cpp/delaunay2.cpp img = Scalar::all(0); img 142 samples/cpp/delaunay2.cpp paint_voronoi( img, subdiv ); img 143 samples/cpp/delaunay2.cpp imshow( win, img ); img 71 samples/cpp/detect_blob.cpp Mat img(600, 800, CV_8UC1); img 85 samples/cpp/detect_blob.cpp img = imread(fileName[0], IMREAD_COLOR); img 86 samples/cpp/detect_blob.cpp if (img.rows*img.cols <= 0) img 133 samples/cpp/detect_blob.cpp pBLOB.back().maxArea = float(img.rows*img.cols); img 183 samples/cpp/detect_blob.cpp Mat desc, result(img.rows, img.cols, CV_8UC3); img 187 samples/cpp/detect_blob.cpp sbd->detect(img, keyImg, Mat()); img 188 samples/cpp/detect_blob.cpp drawKeypoints(img, keyImg, result); img 195 samples/cpp/detect_blob.cpp imshow("Original", img); img 216 samples/cpp/detect_mser.cpp static void DrawOpenGLMSER(Mat img, Mat result) img 219 samples/cpp/detect_mser.cpp if (img.type() != CV_8UC1) img 220 samples/cpp/detect_mser.cpp cvtColor(img, imgGray, COLOR_BGR2GRAY); img 222 samples/cpp/detect_mser.cpp imgGray = img; img 226 samples/cpp/detect_mser.cpp Mat_<Vec3f> vertex(1, img.cols*img.rows); img 227 samples/cpp/detect_mser.cpp Mat_<Vec2f> texCoords(1, img.cols*img.rows); img 228 samples/cpp/detect_mser.cpp for (int i = 0, nbPix = 0; i<img.rows; i++) img 230 samples/cpp/detect_mser.cpp for (int j = 0; j<img.cols; j++, nbPix++) img 232 samples/cpp/detect_mser.cpp float x = (j) / (float)img.cols; img 233 samples/cpp/detect_mser.cpp float y = (i) / (float)img.rows; img 239 samples/cpp/detect_mser.cpp Mat_<int> indices(1, (img.rows - 1)*(6 * img.cols)); img 240 samples/cpp/detect_mser.cpp for (int i = 1, nbPix = 0; i<img.rows; i++) img 242 samples/cpp/detect_mser.cpp for (int j = 1; j<img.cols; j++) img 244 samples/cpp/detect_mser.cpp int c = i*img.cols + j; img 247 samples/cpp/detect_mser.cpp indices.at<int>(0, nbPix++) = c- img.cols - 1; img 248 samples/cpp/detect_mser.cpp indices.at<int>(0, nbPix++) = c- img.cols - 1; img 249 samples/cpp/detect_mser.cpp indices.at<int>(0, nbPix++) = c - img.cols; img 335 samples/cpp/detect_mser.cpp Mat img(800, 800, CV_8UC1); img 338 samples/cpp/detect_mser.cpp img = Scalar(fond); img 349 samples/cpp/detect_mser.cpp rectangle(img, Rect(p0, Size(width[i], width[i])), Scalar(color[i]), 1); img 351 samples/cpp/detect_mser.cpp floodFill(img, p0, Scalar(color[i])); img 359 samples/cpp/detect_mser.cpp circle(img, p0, width[i] / 2, Scalar(color[i]), 1); img 360 samples/cpp/detect_mser.cpp floodFill(img, p0, Scalar(color[i])); img 368 samples/cpp/detect_mser.cpp rectangle(img, Rect(p0, Size(width[i], width[i])), Scalar(color[i]), 1); img 370 samples/cpp/detect_mser.cpp floodFill(img, p0, Scalar(color[i])); img 379 samples/cpp/detect_mser.cpp circle(img, p0, width[i] / 2, Scalar(color[i]), 1); img 380 samples/cpp/detect_mser.cpp floodFill(img, p0, Scalar(color[i])); img 387 samples/cpp/detect_mser.cpp calcHist(&img, 1, 0, Mat(), hist, 1, &histSize, histRange, true, false); img 397 samples/cpp/detect_mser.cpp return img; img 403 samples/cpp/detect_mser.cpp Mat imgOrig,img; img 408 samples/cpp/detect_mser.cpp imgOrig = imread(fileName[0], IMREAD_GRAYSCALE); blur(imgOrig, img, blurSize); img 415 samples/cpp/detect_mser.cpp img=imgOrig; img 461 samples/cpp/detect_mser.cpp Mat result(img.rows, img.cols, CV_8UC3); img 466 samples/cpp/detect_mser.cpp if (img.type() == CV_8UC3) img 482 samples/cpp/detect_mser.cpp if (img.type()==CV_8UC3) img 484 samples/cpp/detect_mser.cpp img.copyTo(result); img 489 samples/cpp/detect_mser.cpp plan.push_back(img); img 490 samples/cpp/detect_mser.cpp plan.push_back(img); img 491 samples/cpp/detect_mser.cpp plan.push_back(img); img 505 samples/cpp/detect_mser.cpp sbd->detectRegions(img, region, zone); img 522 samples/cpp/detect_mser.cpp imshow("Original", img); img 530 samples/cpp/detect_mser.cpp DrawOpenGLMSER(img, result); img 31 samples/cpp/dft.cpp Mat img = imread(filename.c_str(), IMREAD_GRAYSCALE); img 32 samples/cpp/dft.cpp if( img.empty() ) img 38 samples/cpp/dft.cpp int M = getOptimalDFTSize( img.rows ); img 39 samples/cpp/dft.cpp int N = getOptimalDFTSize( img.cols ); img 41 samples/cpp/dft.cpp copyMakeBorder(img, padded, 0, M - img.rows, 0, N - img.cols, BORDER_CONSTANT, Scalar::all(0)); img 22 samples/cpp/em.cpp Mat img = Mat::zeros( Size( 500, 500 ), CV_8UC3 ); img 31 samples/cpp/em.cpp Scalar mean(((i%N1)+1)*img.rows/(N1+1), img 32 samples/cpp/em.cpp ((i/N1)+1)*img.rows/(N1+1)); img 46 samples/cpp/em.cpp for( i = 0; i < img.rows; i++ ) img 48 samples/cpp/em.cpp for( j = 0; j < img.cols; j++ ) img 55 samples/cpp/em.cpp circle( img, Point(j, i), 1, c*0.75, FILLED ); img 63 samples/cpp/em.cpp circle( img, pt, 1, colors[labels.at<int>(i)], FILLED ); img 66 samples/cpp/em.cpp imshow( "EM-clustering result", img ); img 36 samples/cpp/facedetect.cpp void detectAndDraw( Mat& img, CascadeClassifier& cascade, img 198 samples/cpp/facedetect.cpp void detectAndDraw( Mat& img, CascadeClassifier& cascade, img 213 samples/cpp/facedetect.cpp Mat gray, smallImg( cvRound (img.rows/scale), cvRound(img.cols/scale), CV_8UC1 ); img 215 samples/cpp/facedetect.cpp cvtColor( img, gray, COLOR_BGR2GRAY ); img 258 samples/cpp/facedetect.cpp circle( img, center, radius, color, 3, 8, 0 ); img 261 samples/cpp/facedetect.cpp rectangle( img, cvPoint(cvRound(r->x*scale), cvRound(r->y*scale)), img 280 samples/cpp/facedetect.cpp circle( img, center, radius, color, 3, 8, 0 ); img 283 samples/cpp/facedetect.cpp cv::imshow( "result", img ); img 126 samples/cpp/facial_features.cpp static void detectFaces(Mat& img, vector<Rect_<int> >& faces, string cascade_path) img 131 samples/cpp/facial_features.cpp face_cascade.detectMultiScale(img, faces, 1.15, 3, 0|CASCADE_SCALE_IMAGE, Size(30, 30)); img 135 samples/cpp/facial_features.cpp static void detectFacialFeaures(Mat& img, const vector<Rect_<int> > faces, string eye_cascade, img 142 samples/cpp/facial_features.cpp rectangle(img, Point(face.x, face.y), Point(face.x+face.width, face.y+face.height), img 146 samples/cpp/facial_features.cpp Mat ROI = img(Rect(face.x, face.y, face.width, face.height)); img 214 samples/cpp/facial_features.cpp static void detectEyes(Mat& img, vector<Rect_<int> >& eyes, string cascade_path) img 219 samples/cpp/facial_features.cpp eyes_cascade.detectMultiScale(img, eyes, 1.20, 5, 0|CASCADE_SCALE_IMAGE, Size(30, 30)); img 223 samples/cpp/facial_features.cpp static void detectNose(Mat& img, vector<Rect_<int> >& nose, string cascade_path) img 228 samples/cpp/facial_features.cpp nose_cascade.detectMultiScale(img, nose, 1.20, 5, 0|CASCADE_SCALE_IMAGE, Size(30, 30)); img 232 samples/cpp/facial_features.cpp static void detectMouth(Mat& img, vector<Rect_<int> >& mouth, string cascade_path) img 237 samples/cpp/facial_features.cpp mouth_cascade.detectMultiScale(img, mouth, 1.20, 5, 0|CASCADE_SCALE_IMAGE, Size(30, 30)); img 21 samples/cpp/houghcircles.cpp Mat img = imread(filename, 0); img 22 samples/cpp/houghcircles.cpp if(img.empty()) img 30 samples/cpp/houghcircles.cpp medianBlur(img, img, 5); img 31 samples/cpp/houghcircles.cpp cvtColor(img, cimg, COLOR_GRAY2BGR); img 34 samples/cpp/houghcircles.cpp HoughCircles(img, circles, HOUGH_GRADIENT, 1, 10, img 40 samples/cpp/image.cpp Mat img = cv::cvarrToMat(iplimg); // cv::Mat replaces the CvMat and IplImage, but it's easy to convert img 45 samples/cpp/image.cpp Mat img = imread(imagename); // the newer cvLoadImage alternative, MATLAB-style function img 46 samples/cpp/image.cpp if(img.empty()) img 53 samples/cpp/image.cpp if( img.empty() ) // check if the image has been loaded properly img 57 samples/cpp/image.cpp cvtColor(img, img_yuv, COLOR_BGR2YCrCb); // convert image to YUV color space. The output image will be created automatically img 85 samples/cpp/image.cpp Mat noise(img.size(), CV_8U); // another Mat constructor; allocates a matrix of the specified size and type img 115 samples/cpp/image.cpp cvtColor(img_yuv, img, COLOR_YCrCb2BGR); img 124 samples/cpp/image.cpp imshow("image with grain", img); img 26 samples/cpp/inpaint.cpp Mat img, inpaintMask; img 41 samples/cpp/inpaint.cpp line( img, prevPt, pt, Scalar::all(255), 5, 8, 0 ); img 43 samples/cpp/inpaint.cpp imshow("image", img); img 62 samples/cpp/inpaint.cpp img = img0.clone(); img 63 samples/cpp/inpaint.cpp inpaintMask = Mat::zeros(img.size(), CV_8U); img 65 samples/cpp/inpaint.cpp imshow("image", img); img 78 samples/cpp/inpaint.cpp img0.copyTo(img); img 79 samples/cpp/inpaint.cpp imshow("image", img); img 85 samples/cpp/inpaint.cpp inpaint(img, inpaintMask, inpainted, 3, INPAINT_TELEA); img 33 samples/cpp/kalman.cpp Mat img(500, 500, CV_8UC3); img 54 samples/cpp/kalman.cpp Point2f center(img.cols*0.5f, img.rows*0.5f); img 55 samples/cpp/kalman.cpp float R = img.cols/3.f; img 73 samples/cpp/kalman.cpp line( img, Point( center.x - d, center.y - d ), \ img 75 samples/cpp/kalman.cpp line( img, Point( center.x + d, center.y - d ), \ img 78 samples/cpp/kalman.cpp img = Scalar::all(0); img 82 samples/cpp/kalman.cpp line( img, statePt, measPt, Scalar(0,0,255), 3, LINE_AA, 0 ); img 83 samples/cpp/kalman.cpp line( img, statePt, predictPt, Scalar(0,255,255), 3, LINE_AA, 0 ); img 91 samples/cpp/kalman.cpp imshow( "Kalman", img ); img 30 samples/cpp/kmeans.cpp Mat img(500, 500, CV_8UC3); img 46 samples/cpp/kmeans.cpp center.x = rng.uniform(0, img.cols); img 47 samples/cpp/kmeans.cpp center.y = rng.uniform(0, img.rows); img 51 samples/cpp/kmeans.cpp rng.fill(pointChunk, RNG::NORMAL, Scalar(center.x, center.y), Scalar(img.cols*0.05, img.rows*0.05)); img 60 samples/cpp/kmeans.cpp img = Scalar::all(0); img 66 samples/cpp/kmeans.cpp circle( img, ipt, 2, colorTab[clusterIdx], FILLED, LINE_AA ); img 69 samples/cpp/kmeans.cpp imshow("clusters", img); img 26 samples/cpp/mask_tmpl.cpp Mat img = imread(filename); img 31 samples/cpp/mask_tmpl.cpp if(img.empty()) img 54 samples/cpp/mask_tmpl.cpp matchTemplate(img, tmpl, res, method, mask); img 66 samples/cpp/mask_tmpl.cpp rectangle(img, rect, Scalar(0, 255, 0), 2); img 68 samples/cpp/mask_tmpl.cpp imshow("detected template", img); img 24 samples/cpp/minarea.cpp Mat img(500, 500, CV_8UC3); img 36 samples/cpp/minarea.cpp pt.x = rng.uniform(img.cols/4, img.cols*3/4); img 37 samples/cpp/minarea.cpp pt.y = rng.uniform(img.rows/4, img.rows*3/4); img 56 samples/cpp/minarea.cpp img = Scalar::all(0); img 60 samples/cpp/minarea.cpp circle( img, points[i], 3, Scalar(0, 0, 255), FILLED, LINE_AA ); img 64 samples/cpp/minarea.cpp line(img, vtx[i], vtx[(i+1)%4], Scalar(0, 255, 0), 1, LINE_AA); img 68 samples/cpp/minarea.cpp line(img, triangle[i], triangle[(i+1)%3], Scalar(255, 255, 0), 1, LINE_AA); img 71 samples/cpp/minarea.cpp circle(img, center, cvRound(radius), Scalar(0, 255, 255), 1, LINE_AA); img 73 samples/cpp/minarea.cpp imshow( "Rectangle, triangle & circle", img ); img 66 samples/cpp/npr_demo.cpp Mat img; img 75 samples/cpp/npr_demo.cpp edgePreservingFilter(I,img,type); img 76 samples/cpp/npr_demo.cpp imshow("Edge Preserve Smoothing",img); img 81 samples/cpp/npr_demo.cpp detailEnhance(I,img); img 82 samples/cpp/npr_demo.cpp imshow("Detail Enhanced",img); img 87 samples/cpp/npr_demo.cpp pencilSketch(I,img1, img, 10 , 0.1f, 0.03f); img 89 samples/cpp/npr_demo.cpp imshow("Color Pencil Sketch",img); img 93 samples/cpp/npr_demo.cpp stylization(I,img); img 94 samples/cpp/npr_demo.cpp imshow("Stylization",img); img 21 samples/cpp/points_classifier.cpp Mat img, imgDst; img 43 samples/cpp/points_classifier.cpp if( img.empty() ) img 59 samples/cpp/points_classifier.cpp img = Scalar::all(0); img 65 samples/cpp/points_classifier.cpp circle( img, trainedPoints[i], 5, Scalar(c), -1 ); img 68 samples/cpp/points_classifier.cpp imshow( winName, img ); img 88 samples/cpp/points_classifier.cpp for( int y = 0; y < img.rows; y += testStep ) img 90 samples/cpp/points_classifier.cpp for( int x = 0; x < img.cols; x += testStep ) img 240 samples/cpp/points_classifier.cpp img.copyTo( imgDst ); img 275 samples/cpp/points_classifier.cpp for( int y = 0; y < img.rows; y += testStep ) img 277 samples/cpp/points_classifier.cpp for( int x = 0; x < img.cols; x += testStep ) img 304 samples/cpp/points_classifier.cpp img.create( 480, 640, CV_8UC3 ); img 307 samples/cpp/points_classifier.cpp imshow( "points", img ); img 321 samples/cpp/points_classifier.cpp img = Scalar::all(0); img 327 samples/cpp/points_classifier.cpp imshow( winName, img ); img 344 samples/cpp/points_classifier.cpp img.copyTo( imgDst ); img 21 samples/cpp/segment_objects.cpp static void refineSegments(const Mat& img, Mat& mask, Mat& dst) img 36 samples/cpp/segment_objects.cpp dst = Mat::zeros(img.size(), CV_8UC3); img 32 samples/cpp/smiledetect.cpp void detectAndDraw( Mat& img, CascadeClassifier& cascade, img 157 samples/cpp/smiledetect.cpp void detectAndDraw( Mat& img, CascadeClassifier& cascade, img 171 samples/cpp/smiledetect.cpp Mat gray, smallImg( cvRound (img.rows/scale), cvRound(img.cols/scale), CV_8UC1 ); img 173 samples/cpp/smiledetect.cpp cvtColor( img, gray, COLOR_BGR2GRAY ); img 214 samples/cpp/smiledetect.cpp circle( img, center, radius, color, 3, 8, 0 ); img 217 samples/cpp/smiledetect.cpp rectangle( img, cvPoint(cvRound(r->x*scale), cvRound(r->y*scale)), img 245 samples/cpp/smiledetect.cpp int rect_height = cvRound((float)img.rows * intensityZeroOne); img 247 samples/cpp/smiledetect.cpp rectangle(img, cvPoint(0, img.rows), cvPoint(img.cols/10, img.rows - rect_height), col, -1); img 250 samples/cpp/smiledetect.cpp cv::imshow( "result", img ); img 87 samples/cpp/stereo_calib.cpp Mat img = imread(filename, 0); img 88 samples/cpp/stereo_calib.cpp if(img.empty()) img 91 samples/cpp/stereo_calib.cpp imageSize = img.size(); img 92 samples/cpp/stereo_calib.cpp else if( img.size() != imageSize ) img 103 samples/cpp/stereo_calib.cpp timg = img; img 105 samples/cpp/stereo_calib.cpp resize(img, timg, Size(), scale, scale); img 122 samples/cpp/stereo_calib.cpp cvtColor(img, cimg, COLOR_GRAY2BGR); img 124 samples/cpp/stereo_calib.cpp double sf = 640./MAX(img.rows, img.cols); img 135 samples/cpp/stereo_calib.cpp cornerSubPix(img, corners, Size(11,11), Size(-1,-1), img 304 samples/cpp/stereo_calib.cpp Mat img = imread(goodImageList[i*2+k], 0), rimg, cimg; img 305 samples/cpp/stereo_calib.cpp remap(img, rimg, rmap[k][0], rmap[k][1], INTER_LINEAR); img 127 samples/cpp/stitching.cpp Mat img = imread(argv[i]); img 128 samples/cpp/stitching.cpp if (img.empty()) img 133 samples/cpp/stitching.cpp imgs.push_back(img); img 404 samples/cpp/stitching_detailed.cpp Mat full_img, img; img 422 samples/cpp/stitching_detailed.cpp img = full_img; img 433 samples/cpp/stitching_detailed.cpp resize(full_img, img, Size(), work_scale, work_scale); img 442 samples/cpp/stitching_detailed.cpp (*finder)(img, features[i]); img 446 samples/cpp/stitching_detailed.cpp resize(full_img, img, Size(), seam_scale, seam_scale); img 447 samples/cpp/stitching_detailed.cpp images[i] = img.clone(); img 452 samples/cpp/stitching_detailed.cpp img.release(); img 766 samples/cpp/stitching_detailed.cpp resize(full_img, img, Size(), compose_scale, compose_scale); img 768 samples/cpp/stitching_detailed.cpp img = full_img; img 770 samples/cpp/stitching_detailed.cpp Size img_size = img.size(); img 776 samples/cpp/stitching_detailed.cpp warper->warp(img, K, cameras[img_idx].R, INTER_LINEAR, BORDER_REFLECT, img_warped); img 788 samples/cpp/stitching_detailed.cpp img.release(); img 21 samples/cpp/train_HOG.cpp void draw_locations( Mat & img, const vector< Rect > & locations, const Scalar & color ); img 96 samples/cpp/train_HOG.cpp Mat img = imread( (prefix+line).c_str() ); // load the image img 97 samples/cpp/train_HOG.cpp if( img.empty() ) // invalid image, just skip it. img 100 samples/cpp/train_HOG.cpp imshow( "image", img ); img 103 samples/cpp/train_HOG.cpp img_lst.push_back( img.clone() ); img 118 samples/cpp/train_HOG.cpp vector< Mat >::const_iterator img = full_neg_lst.begin(); img 120 samples/cpp/train_HOG.cpp for( ; img != end ; ++img ) img 122 samples/cpp/train_HOG.cpp box.x = rand() % (img->cols - size_x); img 123 samples/cpp/train_HOG.cpp box.y = rand() % (img->rows - size_y); img 124 samples/cpp/train_HOG.cpp Mat roi = (*img)(box); img 300 samples/cpp/train_HOG.cpp vector< Mat >::const_iterator img = img_lst.begin(); img 302 samples/cpp/train_HOG.cpp for( ; img != end ; ++img ) img 304 samples/cpp/train_HOG.cpp cvtColor( *img, gray, COLOR_BGR2GRAY ); img 308 samples/cpp/train_HOG.cpp imshow( "gradient", get_hogdescriptor_visu( img->clone(), descriptors, size ) ); img 338 samples/cpp/train_HOG.cpp void draw_locations( Mat & img, const vector< Rect > & locations, const Scalar & color ) img 346 samples/cpp/train_HOG.cpp rectangle( img, *loc, color, 2 ); img 356 samples/cpp/train_HOG.cpp Mat img, draw; img 383 samples/cpp/train_HOG.cpp video >> img; img 384 samples/cpp/train_HOG.cpp if( img.empty() ) img 387 samples/cpp/train_HOG.cpp draw = img.clone(); img 390 samples/cpp/train_HOG.cpp hog.detectMultiScale( img, locations ); img 394 samples/cpp/train_HOG.cpp my_hog.detectMultiScale( img, locations ); img 17 samples/cpp/tutorial_code/Histograms_Matching/MatchTemplate_Demo.cpp Mat img; Mat templ; Mat result; img 33 samples/cpp/tutorial_code/Histograms_Matching/MatchTemplate_Demo.cpp img = imread( argv[1], 1 ); img 58 samples/cpp/tutorial_code/Histograms_Matching/MatchTemplate_Demo.cpp img.copyTo( img_display ); img 61 samples/cpp/tutorial_code/Histograms_Matching/MatchTemplate_Demo.cpp int result_cols = img.cols - templ.cols + 1; img 62 samples/cpp/tutorial_code/Histograms_Matching/MatchTemplate_Demo.cpp int result_rows = img.rows - templ.rows + 1; img 67 samples/cpp/tutorial_code/Histograms_Matching/MatchTemplate_Demo.cpp matchTemplate( img, templ, result, match_method ); img 15 samples/cpp/tutorial_code/core/Matrix/Drawing_1.cpp void MyEllipse( Mat img, double angle ); img 16 samples/cpp/tutorial_code/core/Matrix/Drawing_1.cpp void MyFilledCircle( Mat img, Point center ); img 17 samples/cpp/tutorial_code/core/Matrix/Drawing_1.cpp void MyPolygon( Mat img ); img 18 samples/cpp/tutorial_code/core/Matrix/Drawing_1.cpp void MyLine( Mat img, Point start, Point end ); img 82 samples/cpp/tutorial_code/core/Matrix/Drawing_1.cpp void MyEllipse( Mat img, double angle ) img 87 samples/cpp/tutorial_code/core/Matrix/Drawing_1.cpp ellipse( img, img 102 samples/cpp/tutorial_code/core/Matrix/Drawing_1.cpp void MyFilledCircle( Mat img, Point center ) img 107 samples/cpp/tutorial_code/core/Matrix/Drawing_1.cpp circle( img, img 119 samples/cpp/tutorial_code/core/Matrix/Drawing_1.cpp void MyPolygon( Mat img ) img 149 samples/cpp/tutorial_code/core/Matrix/Drawing_1.cpp fillPoly( img, img 161 samples/cpp/tutorial_code/core/Matrix/Drawing_1.cpp void MyLine( Mat img, Point start, Point end ) img 165 samples/cpp/tutorial_code/core/Matrix/Drawing_1.cpp line( img, img 20 samples/cpp/tutorial_code/ml/introduction_to_pca/introduction_to_pca.cpp void drawAxis(Mat& img, Point p, Point q, Scalar colour, const float scale = 0.2) img 33 samples/cpp/tutorial_code/ml/introduction_to_pca/introduction_to_pca.cpp line(img, p, q, colour, 1, CV_AA); img 38 samples/cpp/tutorial_code/ml/introduction_to_pca/introduction_to_pca.cpp line(img, p, q, colour, 1, CV_AA); img 42 samples/cpp/tutorial_code/ml/introduction_to_pca/introduction_to_pca.cpp line(img, p, q, colour, 1, CV_AA); img 49 samples/cpp/tutorial_code/ml/introduction_to_pca/introduction_to_pca.cpp double getOrientation(const vector<Point> &pts, Mat &img) img 82 samples/cpp/tutorial_code/ml/introduction_to_pca/introduction_to_pca.cpp circle(img, cntr, 3, Scalar(255, 0, 255), 2); img 85 samples/cpp/tutorial_code/ml/introduction_to_pca/introduction_to_pca.cpp drawAxis(img, cntr, p1, Scalar(0, 255, 0), 1); img 86 samples/cpp/tutorial_code/ml/introduction_to_pca/introduction_to_pca.cpp drawAxis(img, cntr, p2, Scalar(255, 255, 0), 5); img 49 samples/cpp/tutorial_code/photo/hdr_imaging/hdr_imaging.cpp Mat img = imread(path + name); img 50 samples/cpp/tutorial_code/photo/hdr_imaging/hdr_imaging.cpp images.push_back(img); img 65 samples/cpp/tutorial_code/photo/non_photorealistic_rendering/npr_demo.cpp Mat img; img 74 samples/cpp/tutorial_code/photo/non_photorealistic_rendering/npr_demo.cpp edgePreservingFilter(I,img,type); img 75 samples/cpp/tutorial_code/photo/non_photorealistic_rendering/npr_demo.cpp imshow("Edge Preserve Smoothing",img); img 80 samples/cpp/tutorial_code/photo/non_photorealistic_rendering/npr_demo.cpp detailEnhance(I,img); img 81 samples/cpp/tutorial_code/photo/non_photorealistic_rendering/npr_demo.cpp imshow("Detail Enhanced",img); img 86 samples/cpp/tutorial_code/photo/non_photorealistic_rendering/npr_demo.cpp pencilSketch(I,img1, img, 10 , 0.1f, 0.03f); img 88 samples/cpp/tutorial_code/photo/non_photorealistic_rendering/npr_demo.cpp imshow("Color Pencil Sketch",img); img 92 samples/cpp/tutorial_code/photo/non_photorealistic_rendering/npr_demo.cpp stylization(I,img); img 93 samples/cpp/tutorial_code/photo/non_photorealistic_rendering/npr_demo.cpp imshow("Stylization",img); img 34 samples/cpp/ufacedetect.cpp void detectAndDraw( UMat& img, Mat& canvas, CascadeClassifier& cascade, img 184 samples/cpp/ufacedetect.cpp void detectAndDraw( UMat& img, Mat& canvas, CascadeClassifier& cascade, img 206 samples/cpp/ufacedetect.cpp resize( img, smallImg, Size(), scale0, scale0, INTER_LINEAR ); img 26 samples/cpp/watershed.cpp Mat markerMask, img; img 31 samples/cpp/watershed.cpp if( x < 0 || x >= img.cols || y < 0 || y >= img.rows ) img 43 samples/cpp/watershed.cpp line( img, prevPt, pt, Scalar::all(255), 5, 8, 0 ); img 45 samples/cpp/watershed.cpp imshow("image", img); img 62 samples/cpp/watershed.cpp img0.copyTo(img); img 63 samples/cpp/watershed.cpp cvtColor(img, markerMask, COLOR_BGR2GRAY); img 66 samples/cpp/watershed.cpp imshow( "image", img ); img 79 samples/cpp/watershed.cpp img0.copyTo(img); img 80 samples/cpp/watershed.cpp imshow( "image", img ); img 77 samples/gpu/cascadeclassifier.cpp static void matPrint(Mat &img, int lineOffsY, Scalar fontColor, const string &ss) img 87 samples/gpu/cascadeclassifier.cpp putText(img, ss, org, fontFace, fontScale, Scalar(0,0,0), 5*fontThickness/2, 16); img 88 samples/gpu/cascadeclassifier.cpp putText(img, ss, org, fontFace, fontScale, fontColor, fontThickness, 16); img 42 samples/gpu/cascadeclassifier_nvidia_api.cpp static void matPrint(Mat &img, int lineOffsY, Scalar fontColor, const string &ss) img 52 samples/gpu/cascadeclassifier_nvidia_api.cpp putText(img, ss, org, fontFace, fontScale, Scalar(0,0,0), 5*fontThickness/2, 16); img 53 samples/gpu/cascadeclassifier_nvidia_api.cpp putText(img, ss, org, fontFace, fontScale, fontColor, fontThickness, 16); img 294 samples/gpu/hog.cpp Mat img_aux, img, img_to_show; img 308 samples/gpu/hog.cpp if (args.resize_src) resize(img_aux, img, Size(args.width, args.height)); img 309 samples/gpu/hog.cpp else img = img_aux; img 310 samples/gpu/hog.cpp img_to_show = img; img 318 samples/gpu/hog.cpp gpu_img.upload(img); img 329 samples/gpu/hog.cpp cpu_hog.detectMultiScale(img, found, hit_threshold, win_stride, img 363 samples/gpu/hog.cpp if (make_gray) cvtColor(img_to_show, img, COLOR_GRAY2BGR); img 364 samples/gpu/hog.cpp else cvtColor(img_to_show, img, COLOR_BGRA2BGR); img 366 samples/gpu/hog.cpp video_writer << img; img 49 samples/gpu/morphology.cpp Mat img = imread(filename); img 50 samples/gpu/morphology.cpp if (img.empty()) img 56 samples/gpu/morphology.cpp src.upload(img); img 70 samples/gpu/opengl.cpp Mat img = imread(filename); img 71 samples/gpu/opengl.cpp if (img.empty()) img 94 samples/gpu/opengl.cpp data.tex.copyFrom(img); img 1066 samples/gpu/performance/tests.cpp Mat img = imread(abspath("../data/aloeL.jpg"), IMREAD_GRAYSCALE); img 1068 samples/gpu/performance/tests.cpp if (img.empty()) throw runtime_error("can't open ../data/aloeL.jpg"); img 1070 samples/gpu/performance/tests.cpp Mat edges(img.size(), CV_8UC1); img 1073 samples/gpu/performance/tests.cpp Canny(img, edges, 50.0, 100.0); img 1076 samples/gpu/performance/tests.cpp cuda::GpuMat d_img(img); img 190 samples/tapi/hog.cpp UMat img_aux, img; img 206 samples/tapi/hog.cpp resize(img_aux, img, sz); img 208 samples/tapi/hog.cpp else img = img_aux; img 209 samples/tapi/hog.cpp img.copyTo(img_to_show); img 216 samples/tapi/hog.cpp hog.detectMultiScale(img, found, hit_threshold, win_stride, img 253 samples/tapi/hog.cpp if (make_gray) cvtColor(img_to_show, img, COLOR_GRAY2BGR); img 254 samples/tapi/hog.cpp else cvtColor(img_to_show, img, COLOR_BGRA2BGR); img 256 samples/tapi/hog.cpp video_writer << img.getMat(ACCESS_READ);