c++ - 如何找到OpenCV中最低特征值对应的特征向量?

标签 c++ opencv computer-vision eigenvector eigenvalue

我可以只寻找最低的非零特征值,然后得到相应的特征向量。

你知道还有其他更清洁的方法吗?

来自 eigen() 的 lowindex 在当前实现中显然被忽略了 :(

最佳答案

因为它says in the documentation :

eigenvalues – output vector of eigenvalues of the same type as src; the eigenvalues are stored in the descending order.

eigenvectors – output matrix of eigenvectors; it has the same size and type as src; the eigenvectors are stored as subsequent matrix rows, in the same order as the corresponding eigenvalues

因此,最低特征值只是特征值 vector 中的最后一个元素,相应的特征向量是特征向量 矩阵的最后一行。

如果最后一个特征值为零(即您的输入是单数),如果您想要最低的非零值,则需要从最后一个条目向上搜索。

关于c++ - 如何找到OpenCV中最低特征值对应的特征向量?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30269753/

相关文章:

java - JNA 将 HICON 转换为 Java 图像

c++ - 在cpp中运行一个计时器,与正在执行的程序并行

python-3.x - OpenCV的findContours功能

linux - 错误共享库 libopencv_xphoto.so.3.1 丢失

opencv - 如何使用基于 flann 的匹配器,或者通常在 opencv 中使用 flann?

c++ - Mysql截断难读字符

c++ - 整数溢出和整数限制

c++ - 命名嵌套类时无法在 Lambda 中解析名称

python - 如何检测 table 的水平线和垂直线并消除噪音?

c++ - 与 CPU 版本相比,OpenCV GPU 对象检测速度较慢且检测次数较少