Tegra-optmized pyrDown
This commit is contained in:
parent
7d8f487b03
commit
f05259f28f
@ -407,6 +407,12 @@ void cv::pyrDown( InputArray _src, OutputArray _dst, const Size& _dsz )
|
|||||||
Size dsz = _dsz == Size() ? Size((src.cols + 1)/2, (src.rows + 1)/2) : _dsz;
|
Size dsz = _dsz == Size() ? Size((src.cols + 1)/2, (src.rows + 1)/2) : _dsz;
|
||||||
_dst.create( dsz, src.type() );
|
_dst.create( dsz, src.type() );
|
||||||
Mat dst = _dst.getMat();
|
Mat dst = _dst.getMat();
|
||||||
|
|
||||||
|
#ifdef HAVE_TEGRA_OPTIMIZATION
|
||||||
|
if(tegra::pyrDown(src, dst))
|
||||||
|
return;
|
||||||
|
#endif
|
||||||
|
|
||||||
int depth = src.depth();
|
int depth = src.depth();
|
||||||
PyrFunc func = 0;
|
PyrFunc func = 0;
|
||||||
if( depth == CV_8U )
|
if( depth == CV_8U )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user