1 inline 2 Mat Mat::clone() const 3 { 4 Mat m; 5 copyTo(m); 6 return m; 7 }


1 void Mat::copyTo( OutputArray _dst ) const 2 { 3 int dtype = _dst.type(); 4 if( _dst.fixedType() && dtype != type() ) 5 { 6 CV_Assert( channels() == CV_MAT_CN(dtype) ); 7 convertTo( _dst, dtype ); 8 return; 9 } 10 11 if( empty() )