Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要一些 OpenCV Java 2.4.9 和 3.1 的方法,但是 3.1 版本Imgproc的类没有copyMakeBorder()方法,而它存在于 2.4.9 版本中。请注意,如果我只选择将其中一个作为库添加有一些缺陷,我可以成功运行它们。那么,有没有办法可以同时使用它们呢?
Imgproc
copyMakeBorder()
您只能使用 OpenCV 3.1。copyMakeBorder已移至Core,您可以这样称呼它:
copyMakeBorder
Core
int border = 2; Core.copyMakeBorder(src, dst, border, border, border, border, Core.BORDER_REFLECT_101);