Click here to Skip to main content
15,884,176 members
Articles / Multimedia / GDI+

Computer Vision Applications with C# - Part I

Rate me:
Please Sign up or sign in to vote.
4.83/5 (30 votes)
15 Apr 2009CPOL6 min read 104.3K   5.4K   123  
Applied Computer Vision introduction.
using System;
using System.Collections.Generic;
using System.Text;

namespace CVIntro
{
    public class Histogram
    {
        public Histogram(int binCount)
        {
            _data = new float[binCount];
        }

        public float[] Data
        {
            get { return _data; }
        }

        public void Normalise(float total)
        {
            for (int i = 0; i < _data.Length; i++)
            {
                _data[i] = _data[i] / total;
            }
        }

        private float[] _data;
    }
}

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
Australia Australia
I have been in the IT industry since April 1996. My main expertise is in Microsoft space.

Coming from engineering background, any application of programming to engineering and related fields easily excites me. I like to use OO and design patterns and find them very useful.

I have been an avid reader of CodeProject. I decided it was time to make a commitment to make my contribution to the community - so here I am.

My Website: http://www.puresolutions-online.com

Comments and Discussions