cv::SVD::V_T
时间: 2023-09-13 15:04:13 浏览: 109
cv::SVD::V_T is a member function of the cv::SVD class in OpenCV library. It returns the transpose of the matrix of right singular vectors of the input matrix. The right singular vectors are the eigenvectors of the transpose of the input matrix multiplied by the input matrix. The transpose of the right singular vectors matrix is also known as the matrix of left singular vectors.
In other words, if we have a matrix A, and we perform the Singular Value Decomposition (SVD) on it: A=U*S*V_T, then cv::SVD::V_T returns the matrix of right singular vectors V_T.
Syntax:
cv::Mat cv::SVD::V_T
Returns:
A cv::Mat object representing the transpose of the matrix of right singular vectors of the input matrix.
Example:
```
cv::Mat A = (cv::Mat_<double>(3,3) << 1, 2, 3, 4, 5, 6, 7, 8, 9);
cv::SVD svd(A);
cv::Mat V_T = svd.vt;
```
This code snippet calculates the SVD of a 3x3 matrix A and returns the transpose of the right singular vectors matrix in V_T.
阅读全文