C# Harries角点检测c中兴趣点的获取#

C# Harries角点检测c中兴趣点的获取#,c#,emgucv,C#,Emgucv,我正在用Emgucv实现Harries角点检测器 我把代码转换成C# 使用此链接 所以我想访问这些角的坐标或者任何关于这个兴趣点的信息 如何做到这一点? 谢谢您可以制作哈里斯角点图像的阈值图像,然后对其进行迭代。这样,点的强度为255,在图像上有一个具有X和Y值的角点。示例: //创建角强度图像并执行以下操作: m_CornerImage=新图像(m_SourceImage.Size); CvInvoke.cvCornerHarris(m_SourceImage,m_CornerImage,

我正在用Emgucv实现Harries角点检测器 我把代码转换成C# 使用此链接

所以我想访问这些角的坐标或者任何关于这个兴趣点的信息 如何做到这一点?
谢谢

您可以制作哈里斯角点图像的阈值图像,然后对其进行迭代。这样,点的强度为255,在图像上有一个具有X和Y值的角点。示例:

//创建角强度图像并执行以下操作: m_CornerImage=新图像(m_SourceImage.Size); CvInvoke.cvCornerHarris(m_SourceImage,m_CornerImage,3,3,0.01); //创建并显示反转阈值图像 m_ThresholdImage=新图像(m_SourceImage.Size); CvInvoke.cvThreshold(m_CornerImage,m_ThresholdImage,0.0001255.0,Emgu.CvEnum.threshold.CV_threshold_BINARY_INV); imageBox2.Image=m_阈值图像; imageBox1.Image=m_; 常数加倍最大强度=255; int=0; 对于(int x=0;x
// create corner strength image and do Harris m_CornerImage = new Image<Gray, float>(m_SourceImage.Size); CvInvoke.cvCornerHarris(m_SourceImage, m_CornerImage, 3, 3, 0.01); // create and show inverted threshold image m_ThresholdImage = new Image<Gray, Byte>(m_SourceImage.Size); CvInvoke.cvThreshold(m_CornerImage, m_ThresholdImage, 0.0001, 255.0, Emgu.CV.CvEnum.THRESH.CV_THRESH_BINARY_INV); imageBox2.Image = m_ThresholdImage; imageBox1.Image = m_CornerImage; const double MAX_INTENSITY = 255; int contCorners = 0; for (int x = 0; x < m_ThresholdImage.Width; x++) { for (int y = 0; y < m_ThresholdImage.Height; y++) { Gray imagenP = m_ThresholdImage[y,x]; if (imagenP.Intensity == MAX_INTENSITY) { //X and Y are harris point cordenates } } }