/external/opencv3/modules/cudaimgproc/src/cuda/ |
D | clahe.cu | 58 const int2 tileSize, const int tilesX, in calcLutKernel() argument 121 lut(ty * tilesX + tx, tid) = saturate_cast<uchar>(__float2int_rn(lutScale * lutVal)); in calcLutKernel() 124 …void calcLut(PtrStepSzb src, PtrStepb lut, int tilesX, int tilesY, int2 tileSize, int clipLimit, f… in calcLut() argument 127 const dim3 grid(tilesX, tilesY); in calcLut() 129 calcLutKernel<<<grid, block, 0, stream>>>(src, lut, tileSize, tilesX, clipLimit, lutScale); in calcLut() 137 …Szb src, PtrStepb dst, const PtrStepb lut, const int2 tileSize, const int tilesX, const int tilesY) in tranformKernel() argument 157 tx2 = ::min(tx2, tilesX - 1); in tranformKernel() 163 res += lut(ty1 * tilesX + tx1, srcVal) * ((1.0f - xa) * (1.0f - ya)); in tranformKernel() 164 res += lut(ty1 * tilesX + tx2, srcVal) * ((xa) * (1.0f - ya)); in tranformKernel() 165 res += lut(ty2 * tilesX + tx1, srcVal) * ((1.0f - xa) * (ya)); in tranformKernel() [all …]
|
/external/opencv3/modules/imgproc/src/ |
D | clahe.cpp | 54 const int tilesX, const int tilesY, const cv::Size tileSize, in calcLut() argument 71 _dst.create(tilesX * tilesY, 256, CV_8UC1); in calcLut() 79 size_t globalThreads[3] = { tilesX * localThreads[0], tilesY * localThreads[1], 1 }; in calcLut() 85 idx = k.set(idx, tilesX); in calcLut() 93 const int tilesX, const int tilesY, const cv::Size & tileSize) in transform() argument 119 idx = k.set(idx, tilesX); in transform() 134 …t cv::Mat& src, const cv::Mat& lut, const cv::Size& tileSize, const int& tilesX, const int& clipLi… in CLAHE_CalcLut_Body() argument 135 …src_(src), lut_(lut), tileSize_(tileSize), tilesX_(tilesX), clipLimit_(clipLimit), lutScale_(lutSc… in CLAHE_CalcLut_Body() 234 …t cv::Mat& dst, const cv::Mat& lut, const cv::Size& tileSize, const int& tilesX, const int& tilesY… in CLAHE_Interpolation_Body() argument 235 src_(src), dst_(dst), lut_(lut), tileSize_(tileSize), tilesX_(tilesX), tilesY_(tilesY) in CLAHE_Interpolation_Body() [all …]
|
/external/opencv3/modules/imgproc/src/opencl/ |
D | clahe.cl | 145 const int2 tileSize, const int tilesX, 210 lut[(ty * tilesX + tx) * dstStep + tid + dst_offset] = 219 const int tilesX, const int tilesY) 239 tx2 = min(tx2, tilesX - 1); 245 … res += lut[mad24(ty1 * tilesX + tx1, lutStep, srcVal + lut_offset)] * ((1.0f - xa) * (1.0f - ya)); 246 res += lut[mad24(ty1 * tilesX + tx2, lutStep, srcVal + lut_offset)] * ((xa) * (1.0f - ya)); 247 res += lut[mad24(ty2 * tilesX + tx1, lutStep, srcVal + lut_offset)] * ((1.0f - xa) * (ya)); 248 res += lut[mad24(ty2 * tilesX + tx2, lutStep, srcVal + lut_offset)] * ((xa) * (ya));
|
/external/opencv3/modules/cudaimgproc/src/ |
D | histogram.cpp | 132 …void calcLut(PtrStepSzb src, PtrStepb lut, int tilesX, int tilesY, int2 tileSize, int clipLimit, f… 133 …void transform(PtrStepSzb src, PtrStepSzb dst, PtrStepb lut, int tilesX, int tilesY, int2 tileSize… 141 CLAHE_Impl(double clipLimit = 40.0, int tilesX = 8, int tilesY = 8); 163 CLAHE_Impl::CLAHE_Impl(double clipLimit, int tilesX, int tilesY) : in CLAHE_Impl() argument 164 clipLimit_(clipLimit), tilesX_(tilesX), tilesY_(tilesY) in CLAHE_Impl()
|
/external/skia/src/gpu/ |
D | SkGpuDevice.cpp | 732 int tilesX = (srcRect.fRight / tileSize) - (srcRect.fLeft / tileSize) + 1; in get_tile_count() local 734 return tilesX * tilesY; in get_tile_count()
|