mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
Merge pull request #3032 from vpisarev:refactor_ml2
This commit is contained in:
@@ -845,7 +845,6 @@ For convenience, the following types from the OpenCV C API already have such a s
|
||||
that calls the appropriate release function:
|
||||
|
||||
* ``CvCapture``
|
||||
* :ocv:struct:`CvDTreeSplit`
|
||||
* :ocv:struct:`CvFileStorage`
|
||||
* ``CvHaarClassifierCascade``
|
||||
* :ocv:struct:`CvMat`
|
||||
|
||||
@@ -1557,13 +1557,17 @@ static void _SVDcompute( InputArray _aarr, OutputArray _w,
|
||||
{
|
||||
if( !at )
|
||||
{
|
||||
transpose(temp_u, _u);
|
||||
temp_v.copyTo(_vt);
|
||||
if( _u.needed() )
|
||||
transpose(temp_u, _u);
|
||||
if( _vt.needed() )
|
||||
temp_v.copyTo(_vt);
|
||||
}
|
||||
else
|
||||
{
|
||||
transpose(temp_v, _u);
|
||||
temp_u.copyTo(_vt);
|
||||
if( _u.needed() )
|
||||
transpose(temp_v, _u);
|
||||
if( _vt.needed() )
|
||||
temp_u.copyTo(_vt);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user