private void button2_Click(object sender, EventArgs e)
        {
            ReadImage r = new ReadImage(@"G:\HandWriting\logo_4.bmp");

            double[][] data = r.getData;
            double[][] res;
            bool[][]   mim;
            CLUSTER    c = new CLUSTER(data, 6, 2, 0.0001);

            res = c.ClusterMyDataByC_Mean();
            mim = c.cluster_BY_data();
//            pictureBox1.BackgroundImage = r.IMAGE.Bitmap;
            UnsafeBitmap temp = new UnsafeBitmap(r.IMAGE.Width, r.IMAGE.Height);

            PixelData[] colors = new PixelData[6];
            colors[0] = new PixelData(Color.Coral.R, Color.Coral.G, Color.Coral.B);
            colors[1] = new PixelData(Color.Peru.R, Color.Peru.G, Color.Peru.B);
            colors[2] = new PixelData(Color.Goldenrod.R, Color.Goldenrod.G, Color.Goldenrod.B);
            colors[3] = new PixelData(Color.DarkKhaki.R, Color.DarkKhaki.G, Color.DarkKhaki.B);
            colors[4] = new PixelData(Color.Yellow.R, Color.Yellow.G, Color.Yellow.B);
            colors[5] = new PixelData(Color.WhiteSmoke.R, Color.WhiteSmoke.G, Color.WhiteSmoke.B);
            temp.LockBitmap();
            for (int x = 0; x < mim[0].Length; x++)
            {
                for (int y = 0; y < mim.Length; y++)
                {
                    if (mim[y][x])
                    {
                        temp.SetPixel(x % temp.Width, x / temp.Width, colors[y]);
                        break;
                    }
                }
            }
            //          pictureBox2.BackgroundImage = temp.Bitmap;
            temp.UnlockBitmap();
            r.IMAGE.UnlockBitmap();
        }
        public void SetPixel(int x, int y, PixelData colour)
        {
            PixelData *pixel = PixelAt(x, y);

            *pixel = colour;
        }
        public PixelData GetPixel(int x, int y)
        {
            PixelData returnValue = *PixelAt(x, y);

            return(returnValue);
        }