Function opencv::core::check_hardware_support
[−]
[src]
pub fn check_hardware_support(feature: i32) -> Result<bool, String>
Returns SSE etc. support status
The function returns true if certain hardware features are available. Currently, the following features are recognized: - CV_CPU_MMX - MMX - CV_CPU_SSE - SSE - CV_CPU_SSE2 - SSE 2 - CV_CPU_SSE3 - SSE 3 - CV_CPU_SSSE3 - SSSE 3 - CV_CPU_SSE4_1 - SSE 4.1 - CV_CPU_SSE4_2 - SSE 4.2 - CV_CPU_POPCNT - POPCOUNT - CV_CPU_AVX - AVX - CV_CPU_AVX2 - AVX2
\note {Note that the function output is not static. Once you called cv::useOptimized(false), most of the hardware acceleration is disabled and thus the function will returns false, until you call cv::useOptimized(true)}