开发者

How to modify openCV source code? [closed]

Closed. This question needs debugging details. It is not currently acc开发者_开发技巧epting answers.

Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.

Closed 7 years ago.

Improve this question

I copied the part of codes that I wanted to modify into my main.cpp. However, upon executing it, the speed is much slower. Why is that so and how do I modify codes in this case?


Am not sure exactly what you are looking for but if you are trying to modify some bits of OpenCV source and use it in your code then here's a way of doing it:

-> modify the source code. for example `./src/cv/vcsurf.cpp` 
-> cd $(OPENCV_HOME)/src and run cmake CMakeLists.txt
-> make //if you have permission errors use sudo make
-> sudo make install

I usually customize OpenCV library this way for my programs Let me know if you are looking for something completely different. And if anyone thinks this approach is bad please let me know, I'd be more than happy to learn.

Best.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜