Commit 2671fba1 SK

查找内接圆

1 个父辈 fcc459f9
...@@ -69,7 +69,7 @@ namespace Acc.Demo ...@@ -69,7 +69,7 @@ namespace Acc.Demo
{ {
theshValue = int.Parse(textBoxThesh.Text); theshValue = int.Parse(textBoxThesh.Text);
} }
Image result = ImageUtil.Threshhold(orginalImage, theshValue); Image result = ImageUtil.Threshhold(orginalImage, theshValue, false);
imageBox.Image = result; imageBox.Image = result;
} }
...@@ -158,9 +158,8 @@ namespace Acc.Demo ...@@ -158,9 +158,8 @@ namespace Acc.Demo
theshValue = int.Parse(textBoxThesh.Text); theshValue = int.Parse(textBoxThesh.Text);
} }
ImageUtil.selectB = true; ImageUtil.selectB = true;
int feature = ImageUtil.GetItemFeature(orginalImage, markX, markY, theshValue); Image image = ImageUtil.Mark(orginalImage, markX, markY, theshValue);
labelFeature.Text = "特征值:" + feature + ""; imageBox.Image = image;
textBoxFeature.Text = feature + "";
} }
private void 保存当前图片ToolStripMenuItem_Click(object sender, EventArgs e) private void 保存当前图片ToolStripMenuItem_Click(object sender, EventArgs e)
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!