Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/318.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Can';t使用Harris检测来检测角点_C#_Emgucv - Fatal编程技术网

C# Can';t使用Harris检测来检测角点

C# Can';t使用Harris检测来检测角点,c#,emgucv,C#,Emgucv,我想用Emgu CV中的Harris检测来检测角点,但不同图像的结果总是黑色的 我的代码: 图像img; 图像m_;图像; 图像m_阈值图像; 私有无效按钮1\u单击(对象发送者,事件参数e) { OpenFileDialog opf=新建OpenFileDialog(); if(opf.ShowDialog()==DialogResult.OK) { img=新图像(opf.FileName); imageBox1.Image=img; } } 私有无效按钮4_单击(对象发送者,事件参数e)

我想用Emgu CV中的Harris检测来检测角点,但不同图像的结果总是黑色的

我的代码:


图像img;
图像m_;图像;
图像m_阈值图像;
私有无效按钮1\u单击(对象发送者,事件参数e)
{
OpenFileDialog opf=新建OpenFileDialog();
if(opf.ShowDialog()==DialogResult.OK)
{
img=新图像(opf.FileName);
imageBox1.Image=img;
}
}
私有无效按钮4_单击(对象发送者,事件参数e)
{
//创建角强度图像并执行以下操作:
m_CornerImage=新图像(图像大小);
C.CornerHarris(img,m_CornerImage,3,3,0.01);
//创建并显示反转阈值图像
m_ThresholdImage=新图像(图像大小);
CvInvoke.Threshold(m_CornerImage,m_ThresholdImage,0.0001,
255.0,ThresholdType.binarynv);
imageBox3.Image=m_阈值图像;
}
哪里是错误的部分??!
谢谢:)

什么是
imageBox1
?@đěxěŕ此图像框是在我从“打开文件”对话框中选择图像后显示图像的,它是
PictureBox
?@đxěxŕ否它是EmguCv中显示图像的工具,它类似于PictureBox,但不在vsi中的工具箱中。我可以使用PictureBox,但使用image box工具,我可以显示图像,而无需将图像转换为位图(我必须使用PictureBox将其转换)