Repository navigation
Fix missing intrin.hpp header in dis_flow.cpp - #13115
Conversation
|
@catree @alalek I checked also a little bit on this and thought about whether there could be also other algorithms in opencv that lack in the inclusion of "opencv2/core/hal/intrin.hpp" So in core module intrin.hpp is included via precomp.hpp On the other hand in video module intrin.hpp is not included by precomp (every module has its own precomp.hpp for some reason) I checked all modules of opencv and opencv_contrib and actually only the precomp.hpp of core includes "opencv2/core/hal/intrin.hpp" Does it make sense to include by all other precomp.hpp of all other modules or should it specifically only be included by the actual cpp implemention files that make use of them? Because if we would do so then this kind of bug would never bother us anymore. I dont know it there is a significant impact on the compile time to not do it. |
No
Yes
Need to change: -#ifdef CV_SIMD128
+#if CV_SIMD128anywhere. "ifdef" approach in "dis_optflow.cpp" and "variational_refinement.cpp" is invalid. |
|
Thank you. I added a PR for opencv_contrib 3.4 branch. Am I assuming right that all cpp implementation files that use CV_AVX2, CV_SIMD, CV_VSX, CV_NEON, CV_SSE need an inclusion of #include "opencv2/core/hal/intrin.hpp" except for the core module implementations as they get it from precomp.hpp? |
Fix #ifdef CV_SIMD128, should be #if CV_SIMD128.
e743f6a to
c96850b
Compare
|
@alalek according to our discussion yesterday i went through the source to check for more locations that might lack "opencv2/core/hal/intrin.hpp". Arent the following files also missing the inclusion of "opencv2/core/hal/intrin.hpp"? https://github.com/opencv/opencv/blob/master/modules/dnn/src/layers/batch_norm_layer.cpp |
|
If it can helps, with Visual Studio:
There is an include to |
|
Thanks for answering and providing a pr. I was busy the last days. |
resolves opencv/opencv_contrib#1894
Geometric mean (ms)