Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Is there any way to decrease CPU usage of feature detector?

Hi everbody,

The feature detector,in OpenCV c++, launches 14 threads and makes heavy usage of CPU (more than 50%). Is there any way to decrease this usage.

Simple code:

cv::Mat grayImage= cv::imread("image.bmp",CV_LOAD_IMAGE_GRAYSCALE);

cv::FeatureDetector *detector;

detector = new cv::SURF(300, 1);

cv::initModule_nonfree();

std::vector<cv::keypoint> keyPoints;

detector->detect(grayImage, keyPoints);

enviroınment: Intel i7 3770K , 8GB RAM, Windows 8.1 Pro Visual studio 2013 Pro

click to hide/show revision 2
No.2 Revision

updated 2016-03-10 03:38:44 -0600

berak gravatar image

Is there any way to decrease CPU usage of feature detector?

Hi everbody,

The feature detector,in OpenCV c++, launches 14 threads and makes heavy usage of CPU (more than 50%). Is there any way to decrease this usage.

Simple code:

cv::Mat grayImage= cv::imread("image.bmp",CV_LOAD_IMAGE_GRAYSCALE);

cv::imread("image.bmp",CV_LOAD_IMAGE_GRAYSCALE); cv::FeatureDetector *detector;

cv::FeatureDetector *detector;

detector = new cv::SURF(300, 1);

1); cv::initModule_nonfree();

cv::initModule_nonfree();

std::vector<cv::KeyPoint> keyPoints;

std::vector<cv::keypoint> keyPoints;

detector->detect(grayImage, keyPoints);

keyPoints);

enviroınment: Intel i7 3770K , 8GB RAM, Windows 8.1 Pro Visual studio 2013 Pro