如何修改Matrix< float>的数据类型。排列? [英] How to modify datatype of Matrix<float> to array?

查看:149
本文介绍了如何修改Matrix< float>的数据类型。排列?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将Emgu CV(v2.4)与C#一起使用。在下面的课程中。我需要将表中使用的列的数据类型修改为数组。

I am using Emgu CV (v2.4) with C#. In the following class. I need to modify the data type of the used column in the table to array.

public void  FindSURF(Image<Gray, Byte> modelImage)
{
    VectorOfKeyPoint modelKeyPoints;

    SURFDetector surfCPU = new SURFDetector(500, false);

    //extract features from the object image
    modelKeyPoints = new VectorOfKeyPoint();
    Matrix<float> modelDescriptors = surfCPU.DetectAndCompute(modelImage, null, modelKeyPoints);

}  

SURF特征提取并存储在 Matrix< float> modelDescriptors 如何将该数据类型修改为数组?

the SURF feature extract and store in Matrix<float> modelDescriptors how can I modify this datatype to array?

推荐答案

您可以使用 Matrix

float[] elements = modelDescriptors.Elements;

这篇关于如何修改Matrix&lt; float&gt;的数据类型。排列?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆