Merge pull request #5759 from grundman:patch-1
This commit is contained in:
commit
f95203e93f
@ -3258,6 +3258,12 @@ void cv::resize( InputArray _src, OutputArray _dst, Size dsize,
|
|||||||
_dst.create(dsize, src.type());
|
_dst.create(dsize, src.type());
|
||||||
Mat dst = _dst.getMat();
|
Mat dst = _dst.getMat();
|
||||||
|
|
||||||
|
if (dsize == ssize) {
|
||||||
|
// Source and destination are of same size. Use simple copy.
|
||||||
|
src.copyTo(dst);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef HAVE_TEGRA_OPTIMIZATION
|
#ifdef HAVE_TEGRA_OPTIMIZATION
|
||||||
if (tegra::useTegra() && tegra::resize(src, dst, (float)inv_scale_x, (float)inv_scale_y, interpolation))
|
if (tegra::useTegra() && tegra::resize(src, dst, (float)inv_scale_x, (float)inv_scale_y, interpolation))
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user