Lines Matching full:_src
53 static bool calcLut(cv::InputArray _src, cv::OutputArray _dst,
70 cv::UMat src = _src.getUMat();
92 static bool transform(cv::InputArray _src, cv::OutputArray _dst, cv::InputArray _lut,
104 cv::UMat src = _src.getUMat();
352 void CLAHE_Impl::apply(cv::InputArray _src, cv::OutputArray _dst)
354 CV_Assert( _src.type() == CV_8UC1 || _src.type() == CV_16UC1 );
357 bool useOpenCL = cv::ocl::useOpenCL() && _src.isUMat() && _src.dims()<=2 && _src.type() == CV_8UC1;
360 int histSize = _src.type() == CV_8UC1 ? 256 : 4096;
365 if (_src.size().width % tilesX_ == 0 && _src.size().height % tilesY_ == 0)
367 tileSize = cv::Size(_src.size().width / tilesX_, _src.size().height / tilesY_);
368 _srcForLut = _src;
375 cv::copyMakeBorder(_src, usrcExt_, 0, tilesY_ - (_src.size().height % tilesY_), 0, tilesX_ - (_src.size().width % tilesX_), cv::BORDER_REFLECT_101);
382 cv::copyMakeBorder(_src, srcExt_, 0, tilesY_ - (_src.size().height % tilesY_), 0, tilesX_ - (_src.size().width % tilesX_), cv::BORDER_REFLECT_101);
400 if( clahe::transform(_src, _dst, ulut_, tilesX_, tilesY_, tileSize) )
407 cv::Mat src = _src.getMat();
411 lut_.create(tilesX_ * tilesY_, histSize, _src.type());
414 if (_src.type() == CV_8UC1)
416 else if (_src.type() == CV_16UC1)
424 if (_src.type() == CV_8UC1)
426 else if (_src.type() == CV_16UC1)