Worked around an apparent GCC bug in moments.
This commit is contained in:
parent
e8d26b02ac
commit
e35d98e566
@ -197,6 +197,10 @@ static void icvContourMoments( CvSeq* contour, CvMoments* moments )
|
||||
\****************************************************************************************/
|
||||
|
||||
template<typename T, typename WT, typename MT>
|
||||
#if defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ >= 5 && __GNUC_MINOR__ < 9
|
||||
// Workaround for http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60196
|
||||
__attribute__((optimize("no-tree-vectorize")))
|
||||
#endif
|
||||
static void momentsInTile( const cv::Mat& img, double* moments )
|
||||
{
|
||||
cv::Size size = img.size();
|
||||
|
Loading…
x
Reference in New Issue
Block a user