使用EMGU.CV对图像进行SIFT和SURF特征提取
2014-05-15 22:12
603 查看
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
using Emgu.CV;
using Emgu.CV.Features2D;
using Emgu.CV.Structure;
using Emgu.CV.Util;
namespace ConsoleApplication_test
{
class Program
{
static void Main(string[] args)
{
//SURF特征
/*
Image<Gray, Byte> image = new Image<Gray, byte>("E:\\lena.jpg");
SURFDetector detector = new SURFDetector(1000, false);
VectorOfKeyPoint keyPoints;
keyPoints = detector.DetectKeyPointsRaw(image, null);
Matrix<float> descriptors = detector.ComputeDescriptorsRaw(image, null, keyPoints);
Console.WriteLine(descriptors.Rows + "\t" + descriptors.Cols);
*/
//SIFT特征
Image<Gray, Byte> image = new Image<Gray, byte>("E:\\lena.jpg");
SIFTDetector detector = new SIFTDetector();
VectorOfKeyPoint keyPoints;
keyPoints = detector.DetectKeyPointsRaw(image, null);
Matrix<float> descriptors = detector.ComputeDescriptorsRaw(image, null, keyPoints);
Console.WriteLine(descriptors.Rows + "\t" + descriptors.Cols);
Console.ReadKey();
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
using Emgu.CV;
using Emgu.CV.Features2D;
using Emgu.CV.Structure;
using Emgu.CV.Util;
namespace ConsoleApplication_test
{
class Program
{
static void Main(string[] args)
{
//SURF特征
/*
Image<Gray, Byte> image = new Image<Gray, byte>("E:\\lena.jpg");
SURFDetector detector = new SURFDetector(1000, false);
VectorOfKeyPoint keyPoints;
keyPoints = detector.DetectKeyPointsRaw(image, null);
Matrix<float> descriptors = detector.ComputeDescriptorsRaw(image, null, keyPoints);
Console.WriteLine(descriptors.Rows + "\t" + descriptors.Cols);
*/
//SIFT特征
Image<Gray, Byte> image = new Image<Gray, byte>("E:\\lena.jpg");
SIFTDetector detector = new SIFTDetector();
VectorOfKeyPoint keyPoints;
keyPoints = detector.DetectKeyPointsRaw(image, null);
Matrix<float> descriptors = detector.ComputeDescriptorsRaw(image, null, keyPoints);
Console.WriteLine(descriptors.Rows + "\t" + descriptors.Cols);
Console.ReadKey();
}
}
}
相关文章推荐
- [置顶] 使用SIFT特征提取和K-Means方法对图片进行分类
- 使用openCV提取sift;surf;hog特征
- 如何使用GIST+LIBLINEAR分类器提取CIFAR-10 dataset数据集中图像特征,并用测试数据进行实验
- 如何使用GIST+LIBLINEAR分类器提取CIFAR-10 dataset数据集中图像特征,并用测试数据进行实验
- 使用OpenCV3进行SURF特征提取和暴力匹配代码详解
- 使用Opencv2.4.9进行SIFT特征点提取和匹配
- 使用vl_sift提取图像特征
- SIFT和SURF特征提取分析比较(小结篇)
- 图像分块是否会对SIFT特征的提取产生一定的影响
- 利用特征点(Brief,ORB,SIFT)进行图像匹配,模板匹配
- SIFT算法学习:特征提取函数的使用
- 图像特征提取5:SIFT特征
- 特征提取方法 SIFT,PCA-SIFT,GLOH,SURF
- 图像特征提取4:Surf特征
- VLFeat(1)——SIFT图像特征提取(VC++实现)
- Python 文本挖掘:使用机器学习方法进行情感分析(一、特征提取和选择)
- 图像特征提取4:Surf特征
- 特征提取方法 SIFT,PCA-SIFT,GLOH,SURF
- 利用特征点(Brief,ORB,SIFT)进行图像匹配,模板匹配
- VLFeat——SIFT图像特征提取(VC++实现)