Пример #1
0
        private void placaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Gaus          gaus         = new Gaus(mainImage);
            Limiarization limiarizacao = new Limiarization();

            this.img.Image = limiarizacao.Run(190, gaus.RunGaus());
            Bitmap pic = (Bitmap)this.img.Image;

            for (int y = 0; (y <= (pic.Height - 1)); y++)
            {
                for (int x = 0; (x <= (pic.Width - 1)); x++)
                {
                    Color inv = pic.GetPixel(x, y);
                    inv = Color.FromArgb(255, (255 - inv.R), (255 - inv.G), (255 - inv.B));
                    pic.SetPixel(x, y, inv);
                }
            }

            /*Sobel s = new Sobel();
             * pic = (Bitmap)s.Executar(pic);*/
            this.img.Image = _plateRecognitionController.FloodByArea(pic);

            /*;*/

            //// Todo Floodfild
        }
Пример #2
0
        private void Gaus_Click(object sender, EventArgs e)
        {
            Gaus gaus = new Gaus(mainImage);

            this.img.Image = gaus.RunGaus();
        }