How to know if SSE2 is activated in opencv
问题 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 libs ,DLLs and headers. Thanks 回答1: You can check if SSE2 is enabled with the function checkHardwareSupport like: #include <opencv2/opencv.hpp> #include <iostream> int main() { cv::setUseOptimized(true); // Turn on optimization (if it was disabled) // Get other build information //std::cout << cv::getBuildInformation(); // Check