mirror of
https://github.com/opencv/opencv.git
synced 2025-07-29 17:02:49 +08:00
Removed an unnecessary workaround for matrix-to-vector copyTo.
This commit is contained in:
parent
ee97a5e757
commit
4e4a7d0353
@ -232,10 +232,7 @@ void Mat::copyTo( OutputArray _dst ) const
|
|||||||
const uchar* sptr = data;
|
const uchar* sptr = data;
|
||||||
uchar* dptr = dst.data;
|
uchar* dptr = dst.data;
|
||||||
|
|
||||||
// to handle the copying 1xn matrix => nx1 std vector.
|
Size sz = getContinuousSize(*this, dst);
|
||||||
Size sz = size() == dst.size() ?
|
|
||||||
getContinuousSize(*this, dst) :
|
|
||||||
getContinuousSize(*this);
|
|
||||||
size_t len = sz.width*elemSize();
|
size_t len = sz.width*elemSize();
|
||||||
|
|
||||||
for( ; sz.height--; sptr += step, dptr += dst.step )
|
for( ; sz.height--; sptr += step, dptr += dst.step )
|
||||||
|
Loading…
Reference in New Issue
Block a user