繁体   English   中英

openCV输出SIFT描述符的类型

[英]type of openCV output SIFT descriptors

openCV C ++中输出描述符Mat的类型是什么或应该是什么类型?

C ++:void SIFT :: operator()(InputArray img,InputArray掩码,向量和关键点,OutputArray描述符,布尔useProvidedKeypoints = false)参数:

    img – Input 8-bit grayscale image
    mask – Optional input mask that marks the regions where we should detect features.
    keypoints – The input/output vector of keypoints
    descriptors – The output matrix of descriptors. Pass cv::noArray() if you do not need them.
    useProvidedKeypoints – Boolean flag. If it is true, the keypoint detector is not run. Instead, the provided vector of keypoints is used and the algorithm just computes their descriptors.

我的意思是“描述符–描述符的输出矩阵”。

谢谢。

根据经验:只要看到OutputArray,就不必担心大小或类型。

只需提供未初始化的Mat,函数就会填充它。

在这种情况下,输出将是NxM浮点,其中N(行)将是关键点的数量,而M(cols)将是128(SIFT功能的长度)。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM