user2513496
user2513496

Reputation: 3

How to view the code behind a function in a linked-to library e.g. OpenCV

I am programming with Visual studio C++. I know that openCV is an open source library. So I should be able to see the code of any function or method.

Let's say for example that I want to see how the drawing function "circle" works(the code behind it). I right click the function "circle" inside the Visual Studio and choose "Go To Definition" and it shows me the the declaration of the function which is inside "core.hpp".

How can I view the code of the function? Thanks a lot.

Upvotes: 0

Views: 242

Answers (1)

Leigh
Leigh

Reputation: 12526

The source isn't necessarily downloaded in the Library, .hpp is a header file.

To view the source you may need to download it in the source format or find it online- this actual circle function does appear to be on the opencv mirror on GitHub here, though:

https://github.com/Itseez/opencv/blob/master/modules/core/src/drawing.cpp#L1319

Upvotes: 2

Related Questions