Image My_Image = new Image(Openfile.FileName);
pictureBox1.Image = My_Image.ToBitmap();
Image<Gray, Byte> modelImage = My_Image.Convert<Gray, byte>();
SIFTDetector siftCPU = new SIFTDetector();
VectorOfKeyPoint modelKeyPoints = new VectorOfKeyPoint();
MKeyPoint[] mKeyPoints = siftCPU.DetectKeyPoints(modelImage, null);
modelKeyPoints.Push(mKeyPoints);
ImageFeature<float>[] results = siftCPU.ComputeDescriptors(modelImage, null, mKeyPoints);
Image<Bgr, Byte> image = Features2DToolbox.DrawKeypoints(modelImage, modelKeyPoints, new Bgr(Color.Red), Features2DToolbox.KeypointDrawType.DEFAULT);
pictureBox1.Image = image.ToBitmap();
这个程序只是在一张图像中找到 SIFT 描述符。我想与 Image 进行比较,但我不知道我将使用哪个 ImageFeature<>。我正在查找 ImageFeature<> 的功能我找不到它请帮助我。