Browse Source

git-svn-id: https://emgucv.svn.sourceforge.net/svnroot/emgucv/trunk@188 d7f09016-e345-0410-b530-edf29a71df78

UWP10
canming 17 years ago
parent
commit
ee5e476185
  1. 18
      Emgu.CV.Example/ShapeDetection/MainForm.Designer.cs
  2. 14
      Emgu.CV.Example/ShapeDetection/MainForm.cs
  3. 44
      Emgu.CV.Example/ShapeDetection/Properties/Resources.Designer.cs
  4. 24
      Emgu.CV.Example/ShapeDetection/Properties/Settings.Designer.cs
  5. 8
      Emgu.CV.Example/ShapeDetection/ShapeDetection.csproj
  6. 60
      Solution/VS2008/Emgu.CV.Example.sln

18
Emgu.CV.Example/ShapeDetection/MainForm.Designer.cs

@ -47,7 +47,7 @@ namespace ShapeDetection
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.button1 = new System.Windows.Forms.Button();
this.label5 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.fileNameTextBox = new System.Windows.Forms.TextBox();
this.panel1.SuspendLayout();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
@ -66,7 +66,7 @@ namespace ShapeDetection
//
// panel1
//
this.panel1.Controls.Add(this.textBox1);
this.panel1.Controls.Add(this.fileNameTextBox);
this.panel1.Controls.Add(this.label5);
this.panel1.Controls.Add(this.button1);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
@ -269,12 +269,12 @@ namespace ShapeDetection
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(49, 14);
this.textBox1.Name = "textBox1";
this.textBox1.ReadOnly = true;
this.textBox1.Size = new System.Drawing.Size(215, 20);
this.textBox1.TabIndex = 2;
this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
this.fileNameTextBox.Location = new System.Drawing.Point(49, 14);
this.fileNameTextBox.Name = "textBox1";
this.fileNameTextBox.ReadOnly = true;
this.fileNameTextBox.Size = new System.Drawing.Size(215, 20);
this.fileNameTextBox.TabIndex = 2;
this.fileNameTextBox.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
//
// MainForm
//
@ -326,7 +326,7 @@ namespace ShapeDetection
private Emgu.CV.UI.ImageBox circleImageBox;
private Emgu.CV.UI.ImageBox triangleRectangleImageBox;
private Emgu.CV.UI.ImageBox lineImageBox;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.TextBox fileNameTextBox;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.OpenFileDialog openFileDialog1;

14
Emgu.CV.Example/ShapeDetection/MainForm.cs

@ -14,15 +14,15 @@ namespace ShapeDetection
public MainForm()
{
InitializeComponent();
DoShapeDetection();
textBox1.Text = "stuff.jpg";
fileNameTextBox.Text = "pic3.png";
}
public void DoShapeDetection()
public void PerformShapeDetection()
{
if (textBox1.Text != String.Empty)
if (fileNameTextBox.Text != String.Empty)
{
Image<Bgr, Byte> img = new Image<Bgr, byte>(textBox1.Text).Resize(400, 400, true);
Image<Bgr, Byte> img = new Image<Bgr, byte>(fileNameTextBox.Text).Resize(400, 400, true);
Image<Gray, Byte> gray = img.Convert<Gray, Byte>().PyrDown().PyrUp();
Gray cannyThreshold = new Gray(180);
Gray cannyThresholdLinking = new Gray(120);
@ -109,7 +109,7 @@ namespace ShapeDetection
private void textBox1_TextChanged(object sender, EventArgs e)
{
DoShapeDetection();
PerformShapeDetection();
}
private void button1_Click(object sender, EventArgs e)
@ -117,7 +117,7 @@ namespace ShapeDetection
DialogResult result = openFileDialog1.ShowDialog();
if (result == DialogResult.OK || result == DialogResult.Yes)
{
textBox1.Text = openFileDialog1.FileName;
fileNameTextBox.Text = openFileDialog1.FileName;
}
}
}

44
Emgu.CV.Example/ShapeDetection/Properties/Resources.Designer.cs

@ -1,17 +1,17 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.1433
// Runtime Version:2.0.50727.1434
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace ShapeDetection.Properties
{
namespace ShapeDetection.Properties {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
@ -22,48 +22,40 @@ namespace ShapeDetection.Properties
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources
{
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources()
{
internal Resources() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager
{
get
{
if ((resourceMan == null))
{
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ShapeDetection.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set
{
set {
resourceCulture = value;
}
}

24
Emgu.CV.Example/ShapeDetection/Properties/Settings.Designer.cs

@ -1,28 +1,24 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.1433
// Runtime Version:2.0.50727.1434
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace ShapeDetection.Properties
{
namespace ShapeDetection.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "8.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
public static Settings Default {
get {
return defaultInstance;
}
}

8
Emgu.CV.Example/ShapeDetection/ShapeDetection.csproj

@ -1,4 +1,4 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@ -9,6 +9,11 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ShapeDetection</RootNamespace>
<AssemblyName>ShapeDetection</AssemblyName>
<FileUpgradeFlags>
</FileUpgradeFlags>
<OldToolsVersion>2.0</OldToolsVersion>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -56,6 +61,7 @@
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>

60
Solution/VS2008/Emgu.CV.Example.sln

@ -32,8 +32,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Webservice_Host", "..\..\Em
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Webservice_Client", "..\..\Emgu.CV.Example\Webservice_Client\Webservice_Client.csproj", "{94C0C68E-E46F-4228-9DFF-148F9498BC0E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HughLineAndCircleDetection", "..\..\Emgu.CV.Example\HughLineAndCircleDetection\HughLineAndCircleDetection.csproj", "{4A2817AD-1B82-48A9-A471-E6BB98801E95}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CameraCapture", "..\..\Emgu.CV.Example\CameraCapture\CameraCapture.csproj", "{5F6B97F8-7EA6-4B5D-9A5D-F5581505C303}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Emgu.CV", "..\..\Emgu.CV\Emgu.CV.csproj", "{9A1A77FE-F01B-495E-87B7-4B16E4F8C908}"
@ -46,6 +44,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PlannarSubdivision", "..\..
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CPlusPlus", "..\..\Emgu.CV.Example\CPlusPlus\CPlusPlus.vcproj", "{32330110-727C-41A1-9377-6BA41002983D}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ShapeDetection", "..\..\Emgu.CV.Example\ShapeDetection\ShapeDetection.csproj", "{F42D1B92-5722-41F4-B8F1-98185CD09D87}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug Linux|.NET = Debug Linux|.NET
@ -238,34 +238,6 @@ Global
{94C0C68E-E46F-4228-9DFF-148F9498BC0E}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{94C0C68E-E46F-4228-9DFF-148F9498BC0E}.Release|Win32.ActiveCfg = Release|Any CPU
{94C0C68E-E46F-4228-9DFF-148F9498BC0E}.Release|x86.ActiveCfg = Release|Any CPU
{4A2817AD-1B82-48A9-A471-E6BB98801E95}.Debug Linux|.NET.ActiveCfg = Debug Linux|Any CPU
{4A2817AD-1B82-48A9-A471-E6BB98801E95}.Debug Linux|Any CPU.ActiveCfg = Debug Linux|Any CPU
{4A2817AD-1B82-48A9-A471-E6BB98801E95}.Debug Linux|Any CPU.Build.0 = Debug Linux|Any CPU
{4A2817AD-1B82-48A9-A471-E6BB98801E95}.Debug Linux|Mixed Platforms.ActiveCfg = Debug Linux|Any CPU
{4A2817AD-1B82-48A9-A471-E6BB98801E95}.Debug Linux|Mixed Platforms.Build.0 = Debug Linux|Any CPU
{4A2817AD-1B82-48A9-A471-E6BB98801E95}.Debug Linux|Win32.ActiveCfg = Debug Linux|Any CPU
{4A2817AD-1B82-48A9-A471-E6BB98801E95}.Debug Linux|x86.ActiveCfg = Debug Linux|Any CPU
{4A2817AD-1B82-48A9-A471-E6BB98801E95}.Debug|.NET.ActiveCfg = Debug|Any CPU
{4A2817AD-1B82-48A9-A471-E6BB98801E95}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4A2817AD-1B82-48A9-A471-E6BB98801E95}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4A2817AD-1B82-48A9-A471-E6BB98801E95}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{4A2817AD-1B82-48A9-A471-E6BB98801E95}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{4A2817AD-1B82-48A9-A471-E6BB98801E95}.Debug|Win32.ActiveCfg = Debug|Any CPU
{4A2817AD-1B82-48A9-A471-E6BB98801E95}.Debug|x86.ActiveCfg = Debug|Any CPU
{4A2817AD-1B82-48A9-A471-E6BB98801E95}.Release Linux|.NET.ActiveCfg = Release Linux|Any CPU
{4A2817AD-1B82-48A9-A471-E6BB98801E95}.Release Linux|Any CPU.ActiveCfg = Release Linux|Any CPU
{4A2817AD-1B82-48A9-A471-E6BB98801E95}.Release Linux|Any CPU.Build.0 = Release Linux|Any CPU
{4A2817AD-1B82-48A9-A471-E6BB98801E95}.Release Linux|Mixed Platforms.ActiveCfg = Release Linux|Any CPU
{4A2817AD-1B82-48A9-A471-E6BB98801E95}.Release Linux|Mixed Platforms.Build.0 = Release Linux|Any CPU
{4A2817AD-1B82-48A9-A471-E6BB98801E95}.Release Linux|Win32.ActiveCfg = Release Linux|Any CPU
{4A2817AD-1B82-48A9-A471-E6BB98801E95}.Release Linux|x86.ActiveCfg = Release Linux|Any CPU
{4A2817AD-1B82-48A9-A471-E6BB98801E95}.Release|.NET.ActiveCfg = Release|Any CPU
{4A2817AD-1B82-48A9-A471-E6BB98801E95}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4A2817AD-1B82-48A9-A471-E6BB98801E95}.Release|Any CPU.Build.0 = Release|Any CPU
{4A2817AD-1B82-48A9-A471-E6BB98801E95}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{4A2817AD-1B82-48A9-A471-E6BB98801E95}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{4A2817AD-1B82-48A9-A471-E6BB98801E95}.Release|Win32.ActiveCfg = Release|Any CPU
{4A2817AD-1B82-48A9-A471-E6BB98801E95}.Release|x86.ActiveCfg = Release|Any CPU
{5F6B97F8-7EA6-4B5D-9A5D-F5581505C303}.Debug Linux|.NET.ActiveCfg = Debug Linux|Any CPU
{5F6B97F8-7EA6-4B5D-9A5D-F5581505C303}.Debug Linux|Any CPU.ActiveCfg = Debug Linux|Any CPU
{5F6B97F8-7EA6-4B5D-9A5D-F5581505C303}.Debug Linux|Any CPU.Build.0 = Debug Linux|Any CPU
@ -438,6 +410,34 @@ Global
{32330110-727C-41A1-9377-6BA41002983D}.Release|Win32.ActiveCfg = Release|Win32
{32330110-727C-41A1-9377-6BA41002983D}.Release|Win32.Build.0 = Release|Win32
{32330110-727C-41A1-9377-6BA41002983D}.Release|x86.ActiveCfg = Release|Win32
{F42D1B92-5722-41F4-B8F1-98185CD09D87}.Debug Linux|.NET.ActiveCfg = Debug|Any CPU
{F42D1B92-5722-41F4-B8F1-98185CD09D87}.Debug Linux|Any CPU.ActiveCfg = Debug|Any CPU
{F42D1B92-5722-41F4-B8F1-98185CD09D87}.Debug Linux|Any CPU.Build.0 = Debug|Any CPU
{F42D1B92-5722-41F4-B8F1-98185CD09D87}.Debug Linux|Mixed Platforms.ActiveCfg = Debug|Any CPU
{F42D1B92-5722-41F4-B8F1-98185CD09D87}.Debug Linux|Mixed Platforms.Build.0 = Debug|Any CPU
{F42D1B92-5722-41F4-B8F1-98185CD09D87}.Debug Linux|Win32.ActiveCfg = Debug|Any CPU
{F42D1B92-5722-41F4-B8F1-98185CD09D87}.Debug Linux|x86.ActiveCfg = Debug|Any CPU
{F42D1B92-5722-41F4-B8F1-98185CD09D87}.Debug|.NET.ActiveCfg = Debug|Any CPU
{F42D1B92-5722-41F4-B8F1-98185CD09D87}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F42D1B92-5722-41F4-B8F1-98185CD09D87}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F42D1B92-5722-41F4-B8F1-98185CD09D87}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{F42D1B92-5722-41F4-B8F1-98185CD09D87}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{F42D1B92-5722-41F4-B8F1-98185CD09D87}.Debug|Win32.ActiveCfg = Debug|Any CPU
{F42D1B92-5722-41F4-B8F1-98185CD09D87}.Debug|x86.ActiveCfg = Debug|Any CPU
{F42D1B92-5722-41F4-B8F1-98185CD09D87}.Release Linux|.NET.ActiveCfg = Release|Any CPU
{F42D1B92-5722-41F4-B8F1-98185CD09D87}.Release Linux|Any CPU.ActiveCfg = Release|Any CPU
{F42D1B92-5722-41F4-B8F1-98185CD09D87}.Release Linux|Any CPU.Build.0 = Release|Any CPU
{F42D1B92-5722-41F4-B8F1-98185CD09D87}.Release Linux|Mixed Platforms.ActiveCfg = Release|Any CPU
{F42D1B92-5722-41F4-B8F1-98185CD09D87}.Release Linux|Mixed Platforms.Build.0 = Release|Any CPU
{F42D1B92-5722-41F4-B8F1-98185CD09D87}.Release Linux|Win32.ActiveCfg = Release|Any CPU
{F42D1B92-5722-41F4-B8F1-98185CD09D87}.Release Linux|x86.ActiveCfg = Release|Any CPU
{F42D1B92-5722-41F4-B8F1-98185CD09D87}.Release|.NET.ActiveCfg = Release|Any CPU
{F42D1B92-5722-41F4-B8F1-98185CD09D87}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F42D1B92-5722-41F4-B8F1-98185CD09D87}.Release|Any CPU.Build.0 = Release|Any CPU
{F42D1B92-5722-41F4-B8F1-98185CD09D87}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{F42D1B92-5722-41F4-B8F1-98185CD09D87}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{F42D1B92-5722-41F4-B8F1-98185CD09D87}.Release|Win32.ActiveCfg = Release|Any CPU
{F42D1B92-5722-41F4-B8F1-98185CD09D87}.Release|x86.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

Loading…
Cancel
Save