|
|
@ -2852,8 +2852,19 @@ void cv::warpAffine( InputArray _src, OutputArray _dst, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#ifdef HAVE_TEGRA_OPTIMIZATION |
|
|
|
#ifdef HAVE_TEGRA_OPTIMIZATION |
|
|
|
|
|
|
|
if (borderType == BORDER_REPLICATE) |
|
|
|
|
|
|
|
{ |
|
|
|
if( tegra::warpAffine(src, dst, M, interpolation, borderType, borderValue) ) |
|
|
|
if( tegra::warpAffine(src, dst, M, interpolation, borderType, borderValue) ) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
double warp_mat[6]; |
|
|
|
|
|
|
|
Mat warp_m(2, 3, CV_64F, warp_mat); |
|
|
|
|
|
|
|
M0.convertTo(warp_m, warp_m.type()); |
|
|
|
|
|
|
|
if( tegra::warpAffine(src, dst, warp_mat, interpolation, borderType, borderValue) ) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
int x, y, x1, y1, width = dst.cols, height = dst.rows; |
|
|
|
int x, y, x1, y1, width = dst.cols, height = dst.rows; |
|
|
|