Click here to Skip to main content
15,895,840 members
Articles / Programming Languages / C#

Image Recognition with Neural Networks

Rate me:
Please Sign up or sign in to vote.
4.82/5 (89 votes)
30 Oct 2007CPOL4 min read 1M   46.2K   286  
This article contains a brief description of BackPropagation Artificial Neural Network and its implementation for Image Recognition
#region Copyright (c), Some Rights Reserved
/*##########################################################################
 * 
 * BPBase.cs
 * -------------------------------------------------------------------------
 * By
 * Murat FIRAT, June 2007
 * 
 * -------------------------------------------------------------------------
 * Description:
 * BPBase.cs Contains Common Structs For Backpropagation Neural Network
 * And a Custom EventArgs Class For Neural Network
 * 
 * -------------------------------------------------------------------------
 ###########################################################################*/
#endregion

using System;
using System.Collections.Generic;
using System.Text;

namespace BPSimplified.Lib
{
    [Serializable]
    struct PreInput
    {
        public double Value;
        public double[] Weights;
    };
    [Serializable]
    struct Input
    {
        public double InputSum;
        public double Output;
        public double Error;
        public double[] Weights;
    };
    [Serializable]
    struct Hidden
    {
        public double InputSum;
        public double Output;
        public double Error;
        public double[] Weights;
    };
   
    [Serializable]
    struct Output<T> where T : IComparable<T>
    {
        public double InputSum;
        public double output;
        public double Error;
        public double Target;
        public T Value;
    };

    public class NeuralEventArgs : EventArgs
    {
        public bool Stop = false;
        public double CurrentError = 0;
        public int CurrentIteration = 0;
    }

}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Turkey Turkey
Has BS degree on computer science, working as software engineer in istanbul.

Comments and Discussions