mirror of
https://github.com/opencv/opencv.git
synced 2026-10-02 04:02:40 +03:00
fixed bugs in CartToPolarToCart test
This commit is contained in:
1 parent
061b49e0b2
commit
77529b1fa6
3 files changed
+50
-47
No files matched your search
@@ -445,7 +445,7 @@ void cartToPolar( const Mat& X, const Mat& Y, Mat& Mag, Mat& Angle, bool angleIn
|
||||
NAryMatIterator it(arrays, planes);
|
||||
|
||||
for( int i = 0; i < it.nplanes; i++, ++it )
|
||||
cartToPolar( it.planes[0], it.planes[1], it.planes[2], it.planes[2], angleInDegrees );
|
||||
cartToPolar( it.planes[0], it.planes[1], it.planes[2], it.planes[3], angleInDegrees );
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -604,7 +604,7 @@ void polarToCart( const Mat& Mag, const Mat& Angle, Mat& X, Mat& Y, bool angleIn
|
||||
NAryMatIterator it(arrays, planes);
|
||||
|
||||
for( int i = 0; i < it.nplanes; i++, ++it )
|
||||
polarToCart( it.planes[0], it.planes[1], it.planes[2], it.planes[2], angleInDegrees );
|
||||
polarToCart( it.planes[0], it.planes[1], it.planes[2], it.planes[3], angleInDegrees );
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user