How to know if SSE2 is activated in opencv

后端 未结 2 1015
温柔的废话
温柔的废话 2021-01-13 21:08

I have a version of OpenCV 2.4.10 Library which was built for Intel X64 on Windows.

How can I know if the CV_SSE2 is active? I do not have the code. I just have the

2条回答
  •  广开言路
    2021-01-13 21:49

    From the output of cv::getBuildInformation(), look for the line that says e.g. C++ flags (Release), if -msse2 is there in the list, that means software code of your version of OpenCV library is compiled with SSE2 build option enabled.
    According to OpenCV's documentation, checkHardwareSupport() reports whether the feature is supported by the host hardware, which may not be the same as the compile option used to build the software, especially if your library is compiled by someone else on a different machine.

提交回复
热议问题