Lines Matching refs:Dx
289 Mat Dx, Dy;
292 Sobel( src, Dx, CV_32F, 1, 0, aperture_size, scale, 0, borderType );
297 Scharr( src, Dx, CV_32F, 1, 0, scale, 0, borderType );
308 const float* dxdata = Dx.ptr<float>(i);
356 float dx = dxdata[j];
359 cov_data[j*3] = dx*dx;
360 cov_data[j*3+1] = dx*dy;
378 static bool extractCovData(InputArray _src, UMat & Dx, UMat & Dy, int depth,
394 Dx.create(src.size(), CV_32FC1);
415 ocl::KernelArg::WriteOnlyNoSize(Dx), ocl::KernelArg::WriteOnly(Dy),
424 Sobel(_src, Dx, CV_32F, 1, 0, aperture_size, scale, 0, borderType);
429 Scharr(_src, Dx, CV_32F, 1, 0, scale, 0, borderType);
462 UMat Dx, Dy;
463 if (!extractCovData(_src, Dx, Dy, depth, (float)scale, aperture_size, borderType))
476 Dx), ocl::KernelArg::ReadOnly(Dy),
481 size_t globalSizeX = (Dx.cols) % gSize == 0 ? Dx.cols / gSize * blockSizeX : (Dx.cols / gSize + 1) * blockSizeX;
483 size_t globalSizeY = ((Dx.rows + rows_per_thread - 1) / rows_per_thread) % blockSizeY == 0 ?
484 ((Dx.rows + rows_per_thread - 1) / rows_per_thread) :
485 (((Dx.rows + rows_per_thread - 1) / rows_per_thread) / blockSizeY + 1) * blockSizeY;
493 UMat Dx, Dy, D2x, D2y, Dxy;
495 if (!extractCovData(_src, Dx, Dy, depth, 1, ksize, borderType))
514 k.args(ocl::KernelArg::ReadOnlyNoSize(Dx), ocl::KernelArg::ReadOnlyNoSize(Dy),
679 Mat Dx, Dy, D2x, D2y, Dxy, src = _src.getMat();
683 Sobel( src, Dx, CV_32F, 1, 0, ksize, 1, 0, borderType );
707 const float* dxdata = Dx.ptr<float>(i);
743 float dx = dxdata[j];
745 dstdata[j] = (float)(factor*(dx*dx*d2ydata[j] + dy*dy*d2xdata[j] - 2*dx*dy*dxydata[j]));