Ask Your Question

Revision history [back]

is 'round' function really needed in opencv\modules\core\src\hal_internal.cpp ?

Hi

I built opencv on my windows 7 machine with visual studio 2012. With a fresh clone from git it will not compile because of the 'round'-functions in opencv\modules\core\src\hal_internal.cpp

Source code

 lwork = (int)round(work1); //optimal buffer size

Compiler error:

opencv\modules\core\src\hal_internal.cpp(232): error C3861: 'round': identifier not found

I 'fixed' it by replacing 'round' with 'ceil', and now it compiles and works well.

lwork = (int)ceil(work1); //optimal buffer size

I dont feel comfortable with neither git not opencv to make a pull request. If you give me exact instructions of which git commands I should use I can give it a try, assuming the replacement above is not breaking anything.