我正在使用Emgu CV(v2.4)和C#。在下面的课程中。我需要将表中所用列的数据类型修改为数组。
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
如何将此数据类型修改为数组?
您可以使用
Matrix
中的属性:
float[] elements = modelDescriptors.Elements;