cv::moments giving different results in Windows and Mac (Bug #2945)


Added by Miguel Algaba almost 12 years ago. Updated almost 12 years ago.


Status:Cancelled Start date:2013-04-08
Priority:Normal Due date:
Assignee:Vadim Pisarevsky % Done:

0%

Category:imgproc, video
Target version:-
Affected version:2.4.4 Operating System:
Difficulty: HW Platform:
Pull request:

Description

I have detected that the cv::moments function provides different results for some of the moments when running on Windows and Mac. I provide a simple executable and a file containing one contour to help you reproduce the issue. The following repository contains a standalone application to ilustrate the different results, as well as the results obtained with our setups https://github.com/MiguelAlgaba/MomentsOpenCV. Those are the configurations where I have got different results:

Windows setup
  • Windows Server 2008 R2 Standard (64bit)
  • Compiler: Microsoft Visual 2008 (32 bit)
  • OpenCV versions: 2.3.1 - 2.4.4 (master branch)
  • IPP (disabled)
  • OpenMP (disabled)
  • SSE, SSE2 (enabled)
  • CUDA (disabled)
  • OpenCL (disabled)
Mac setup
  • Mac OS X 10.8.3 (64bit)
  • Compiler (clang): Apple LLVM version 4.2 (clang-425.0.27) (based on LLVM 3.2svn)
  • OpenCV versions: 2.3.1 - 2.4.4 (master branch)
  • IPP (disabled)
  • OpenMP (disabled)
  • SSE, SSE2, SSE3 (enabled)
  • CUDA (disabled)
  • OpenCL (disabled)

MomentsOpenCV.zip (7 kB) Miguel Algaba, 2013-04-08 06:13 pm


History

Updated by Andrey Kamaev almost 12 years ago

Outputs from attached zip differ only in formatting.

  • Status changed from Open to Cancelled

Also available in: Atom PDF