Tegra optimization for warpPerspective() and 2 new perf tests

This commit is contained in:
Andrey Pavlenko
2012-01-11 14:18:10 +00:00
parent 9260ad4d70
commit 07d157591a
2 changed files with 78 additions and 0 deletions

View File

@@ -2977,6 +2977,11 @@ void cv::warpPerspective( InputArray _src, OutputArray _dst, InputArray _M0,
if( !(flags & WARP_INVERSE_MAP) )
invert(matM, matM);
#ifdef HAVE_TEGRA_OPTIMIZATION
if( tegra::warpPerspective(src, dst, M, interpolation, borderType, borderValue) )
return;
#endif
int x, y, x1, y1, width = dst.cols, height = dst.rows;
int bh0 = std::min(BLOCK_SZ/2, height);