Worked around an apparent GCC bug in moments.

pull/2359/head
Roman Donchenko 11 years ago
parent e8d26b02ac
commit e35d98e566
  1. 4
      modules/imgproc/src/moments.cpp

@ -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…
Cancel
Save