【发布时间】:2013-10-11 05:30:33
【问题描述】:
我只是用
#include <opencv2/opencv.hpp>
一切顺利。我可以问为什么我们应该这样做:
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/objdetect/objdetect.hpp>
#include <opencv2/highgui/highgui.hpp>
为什么这里是 *.hpp 文件而不是 *.h 文件?
请问这么简单的问题。
【问题讨论】:
-
什么东西?你应该描述你在用 openCV 做什么。根据您可以决定包含哪些内容。包含不必要的代码会为您的程序加载大量不必要的代码。