Tegra optimization for image filtering
This commit is contained in:
@@ -3010,6 +3010,11 @@ void cv::filter2D( InputArray _src, OutputArray _dst, int ddepth,
|
||||
Mat dst = _dst.getMat();
|
||||
anchor = normalizeAnchor(anchor, kernel.size());
|
||||
|
||||
#ifdef HAVE_TEGRA_OPTIMIZATION
|
||||
if( tegra::filter2D(src, dst, kernel, anchor, delta, borderType) )
|
||||
return;
|
||||
#endif
|
||||
|
||||
if( kernel.cols*kernel.rows >= dft_filter_size )
|
||||
{
|
||||
Mat temp;
|
||||
|
@@ -311,6 +311,12 @@ void cv::boxFilter( InputArray _src, OutputArray _dst, int ddepth,
|
||||
if( src.cols == 1 )
|
||||
ksize.width = 1;
|
||||
}
|
||||
|
||||
#ifdef HAVE_TEGRA_OPTIMIZATION
|
||||
if ( tegra::boxFilter(src, dst, ksize, anchor, normalize, borderType) )
|
||||
return;
|
||||
#endif
|
||||
|
||||
Ptr<FilterEngine> f = createBoxFilter( src.type(), dst.type(),
|
||||
ksize, anchor, normalize, borderType );
|
||||
f->apply( src, dst );
|
||||
|
Reference in New Issue
Block a user