English 中文(简体)
开放的CV特征中的`query'和`train'是什么?
原标题:What is `query` and `train` in openCV features2D

faceatures2D 类中,我看到术语 query train 。例如, martche trainIdx queryIdx , Matchers train() 方法。

我知道英语中的单词定义 train query ,但我无法理解这些属性或方法的含义。

我理解,这是一个非常愚蠢的问题, 但也许是因为英语不是我的母语。

最佳回答

要完成 ansuiso 回答, 我想选择这些名称的原因应该是, 在一些应用程序中, 我们事先得到了一套图像( 培训图像), 比如在您办公室内部摄取了 10 张图像 。 特征可以提取, 特征描述符可以对这些图像进行计算 。 在运行时, 将一个图像提供给系统以查询经过培训的数据库。 因此, 查询图像指的是此图像 。 我真的不喜欢他们命名这些参数的方式 。 如果您有一副立体图像, 您想要匹配这些功能, 这些名称不合理, 但是您必须选择一个常规, 说总是将左图像称为查询图像, 右图像作为培训图像 。 我做了计算机视觉博士, 在 OpenCV 中指定了一些会议, 对我来说似乎非常混乱/ 完全。 所以如果您发现这些令人困惑或愚昧的图像, 您并不孤单一人 。

问题回答
  • train :此函数构建分类器内部状态,使其运行。例如,设想 训练 SVM ,或从参考数据中构建 kd-tree。也许您被混淆了,因为文献中通常称之为 学习

  • query 是找到附近邻居到一组点的行动, 并扩展其范围, 它也指您想要最近的邻居所在的整组点。 回顾您可以要求使用一个点的邻居, 或者在同一函数调用中( 将特征点堆叠在矩阵中) 。

  • trainIdx queryIdx 分别指参考/查询组中的品脱指数,即,您询问匹配者是否将最近的点(储存在 trainIdx 位置)保存到其他点(存储在 queryIdx position)。当然,在函数调用后, trainIdx 是已知的。如果您的点存储在矩阵中,该索引将成为所考虑的特征的直线。

I understand "query" and "train" in a very naive but useful way: "train": a data or image is preprocessed to get a database "query": an input data or image that will be queried in the database which we trained before. Hope it helps u as well.





相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?