码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • trainImage queryImage trainIdex queryIdx OpenCV


    问题之由来

    OpenCV中有一个类 DMatch

    它有几个成员变量:
    imgIdx, train image index
    int _queryIdx, query descriptor index
    int _trainIdx, train descriptor index
    float _distance

    但是这些名字的内涵我不了解,所以下文是了解后的内容:

    解答

    I suppose the reason for choosing these names should be that in some application we have got a set of images (training images) beforehand, for example 10 images taken inside your office.
    The features can be extracted and the feature descriptors can be computed for these images.

    And at run-time an image is given to the system to query the trained database. Hence the query image refers to this image.

    I really don’t like the way they have named these parameters.
    Where you have a pair of stereo images and you want to match the features, these names don’t make sense but you have to chose a convention say always call the left image the query image and the right image as the training image.

    I did my PhD in computer vision and some naming conventions in OpenCV seem really confusing/silly to me. So if you find these confusing or silly you’re not alone.

    To put it even more simple, train is the image you learned (extracted features) beforehand, query is the image that you are trying to match with the ones trained.

    来源

    What is query and train in openCV features2D

  • 相关阅读:
    堆排序与优先队列
    C和指针 第13章 高级指针话题 13.5 字符串常量
    Flutter实战之go_router路由组件入门指南
    HTML小游戏8 —— 小霸王游戏机网页版(附完整源码)
    Python 获取北上广深历史天气数据并做数据可视化
    MyBatis
    10个好用的Mac数据恢复软件推荐—恢复率高达99%
    【前端面试题】01—42道常见的HTML5面试题
    在ubuntu中安装filezilla及解决 Ubuntu E:无法定位软件包问题
    华为小型智能园区网络解决方案
  • 原文地址:https://blog.csdn.net/OrdinaryMatthew/article/details/127134513
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号