[][src]Function opencv::core::check_hardware_support

pub fn check_hardware_support(feature: i32) -> Result<bool>

Returns true if the specified feature is supported by the host hardware.

The function returns true if the host hardware supports the specified feature. When user calls setUseOptimized(false), the subsequent calls to checkHardwareSupport() will return false until setUseOptimized(true) is called. This way user can dynamically switch on and off the optimized code in OpenCV.

Parameters

  • feature: The feature of interest, one of cv::CpuFeatures