From 8b0d9f4f5cd07a456f0e8f5dd3f10b78c83a01da Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Tue, 10 Apr 2012 20:35:57 +0000 Subject: [PATCH] excluded dangerously overriden Mat_::reshape() method (ticket #1510) --- modules/core/include/opencv2/core/core.hpp | 1 - modules/core/include/opencv2/core/mat.hpp | 3 --- 2 files changed, 4 deletions(-) diff --git a/modules/core/include/opencv2/core/core.hpp b/modules/core/include/opencv2/core/core.hpp index 525d8de140..b21430c002 100644 --- a/modules/core/include/opencv2/core/core.hpp +++ b/modules/core/include/opencv2/core/core.hpp @@ -2732,7 +2732,6 @@ public: static MatExpr eye(Size size); //! some more overriden methods - Mat_ reshape(int _rows) const; Mat_& adjustROI( int dtop, int dbottom, int dleft, int dright ); Mat_ operator()( const Range& rowRange, const Range& colRange ) const; Mat_ operator()( const Rect& roi ) const; diff --git a/modules/core/include/opencv2/core/mat.hpp b/modules/core/include/opencv2/core/mat.hpp index f2f14fe0e9..b68c997fac 100644 --- a/modules/core/include/opencv2/core/mat.hpp +++ b/modules/core/include/opencv2/core/mat.hpp @@ -950,9 +950,6 @@ template inline int Mat_<_Tp>::channels() const template inline size_t Mat_<_Tp>::stepT(int i) const { return step.p[i]/elemSize(); } template inline size_t Mat_<_Tp>::step1(int i) const { return step.p[i]/elemSize1(); } -template inline Mat_<_Tp> Mat_<_Tp>::reshape(int _rows) const -{ return Mat_<_Tp>(Mat::reshape(0,_rows)); } - template inline Mat_<_Tp>& Mat_<_Tp>::adjustROI( int dtop, int dbottom, int dleft, int dright ) { return (Mat_<_Tp>&)(Mat::adjustROI(dtop, dbottom, dleft, dright)); }