如何找到opencv函数的源代码

如何找到opencv函数的源代码

本文介绍了如何找到opencv函数的源代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是opencv的新手,并且正在将opencv用于Windows.如何查看opencv库的特定功能的源代码?我只是想了解一下如何实现特定的机器视觉算法.

I am new to opencv and I am using opencv for windows. How can I see the source code for a specific function of an opencv library ? I just one want to get an idea of how that specific machine vision algorithm is implemented.

推荐答案

您可以从 https:/获取OpenCV源代码. /github.com/opencv .查找函数标头的一种简单方法是在OPENCV_HOME\build\include中打开资源管理器窗口(此处是您选择安装OpenCV的位置),然后使用搜索框查找包含函数的标头文件-这将有所帮助您知道它所在的模块.然后您可以在OPENCV_HOME\modules\MODULE_NAME\src中搜索以找到函数的来源.如果您安装了grepWin之类的搜索工具,则更加容易.

You can get the OpenCV source code from https://github.com/opencv. An easy way to find the header for a function is to open an explorer window in OPENCV_HOME\build\include (where is the location where you chose to install OpenCV) and use the search box to find the header file that contains your function - this will help you know what module it is in. Then you can search in OPENCV_HOME\modules\MODULE_NAME\src to find the source of the the function. This is even easier if you install a search tool like grepWin.

寻找源代码对于找出为什么引发这些讨厌的OpenCV异常几乎是必不可少的.这也意味着您可以自己回答有关OpenCV的大多数问题,而不必在这里询问.

Looking at the source is almost essential for finding out why those pesky OpenCV exceptions are thrown. It also means that you can answer most things about OpenCV yourself without having to ask here.

这篇关于如何找到opencv函数的源代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 17:28