private void luminânciaToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            Bitmap imgDest = new Bitmap(image);

            imageBitmap = (Bitmap)image;
            Filtros.convert_to_grayDMA(imageBitmap, imgDest);
            pictBoxImg2.Image = imgDest;
        }
        private void suavizaçãoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Bitmap imgDest = new Bitmap(image);

            imageBitmap = (Bitmap)image;
            Filtros.suavizacao(imageBitmap, imgDest, 5);
            pictBoxImg2.Image = imgDest;
        }
        private void negativoToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            Bitmap imgDest = new Bitmap(image);

            imageBitmap = (Bitmap)image;
            Filtros.negativoDMA(imageBitmap, imgDest);
            pictBoxImg2.Image = imgDest;
        }
        private void equalizaçãoDoHistogramaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Bitmap imgDest = new Bitmap(image);

            imageBitmap = (Bitmap)image;
            Filtros.equalizacao(imageBitmap, imgDest);
            pictBoxImg2.Image = imgDest;
        }
Ejemplo n.º 5
0
        private void btnInverteRcomBcomDMA_Click(object sender, EventArgs e)
        {
            Bitmap imgDest = new Bitmap(image);

            imageBitmap = (Bitmap)image;
            Filtros.inverteRB_DMA(imageBitmap, imgDest);
            pictBoxImg2.Image = imgDest;
        }
        private void btnEqualizarCinzaDMA_Click(object sender, EventArgs e)
        {
            Bitmap imgDest = new Bitmap(image);

            imageBitmap = (Bitmap)image;
            Filtros.EqualizarHistogramaCinzaDMA(imageBitmap, imgDest);
            pictBoxImg2.Image = imgDest;
        }
        private void rotacionarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Bitmap imgDest = new Bitmap(image.Height, image.Width);

            imageBitmap = (Bitmap)image;
            Filtros.rotacionaDMA(imageBitmap, imgDest);
            pictBoxImg2.Image = imgDest;
        }
        private void btnSuavizarFMDMA_Click(object sender, EventArgs e)
        {
            Bitmap imgDest = new Bitmap(image);

            imageBitmap = (Bitmap)image;
            Filtros.MedianaDMA(imageBitmap, imgDest);
            pictBoxImg2.Image = imgDest;
        }
Ejemplo n.º 9
0
        private void btnNegativoComDMA_Click(object sender, EventArgs e)
        {
            Bitmap imgDest = new Bitmap(image);

            imageBitmap = (Bitmap)image;
            Filtros.negativoDMA(imageBitmap, imgDest);
            pictBoxImg2.Image = imgDest;
        }
Ejemplo n.º 10
0
        private void btnEspelhoHorizontalComDMA_Click(object sender, EventArgs e)
        {
            Bitmap imgDest = new Bitmap(image);

            imageBitmap = (Bitmap)image;
            Filtros.espelho_horizontalDMA(imageBitmap, imgDest);
            pictBoxImg2.Image = imgDest;
        }
Ejemplo n.º 11
0
        private void btnDivisaoCentroComDMA_Click(object sender, EventArgs e)
        {
            Bitmap imgDest = new Bitmap(image);

            imageBitmap = (Bitmap)image;
            Filtros.divisao_centroDMA(imageBitmap, imgDest);
            pictBoxImg2.Image = imgDest;
        }
Ejemplo n.º 12
0
        private void btnLuminanciaComDMA_Click(object sender, EventArgs e)
        {
            Bitmap imgDest = new Bitmap(image);

            imageBitmap = (Bitmap)image;
            Filtros.convert_to_grayDMA(imageBitmap, imgDest);
            pictBoxImg2.Image = imgDest;
        }
Ejemplo n.º 13
0
        private void btnRotacao90ComDMA_Click(object sender, EventArgs e)
        {
            Bitmap imgDest = new Bitmap(image, new Size(image.Height, image.Width));

            imageBitmap = (Bitmap)image;
            Filtros.rotacao90DMA(imageBitmap, imgDest);
            pictBoxImg2.Image = imgDest;
        }
Ejemplo n.º 14
0
        private void btnSepararRcomDMA_Click(object sender, EventArgs e)
        {
            Bitmap imgDest = new Bitmap(image);

            imageBitmap = (Bitmap)image;
            Filtros.separarR_DMA(imageBitmap, imgDest);
            pictBoxImg2.Image = imgDest;
        }
        private void fatiamentoDeBitsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Bitmap imgDest = new Bitmap(image);

            imageBitmap = (Bitmap)image;
            Filtros.fatiamento(imageBitmap, imgDest, openFileDialog.FileName, 7);
            pictBoxImg2.Image = imgDest;
        }
Ejemplo n.º 16
0
        private void btnEspelhoDiagonalPrincipalComDMA_Click(object sender, EventArgs e)
        {
            Bitmap imgDest = new Bitmap(image);

            imageBitmap = (Bitmap)image;
            Filtros.espelho_diagonal_principalDMA(imageBitmap, imgDest);
            pictBoxImg2.Image = imgDest;
        }
Ejemplo n.º 17
0
        private void btnPretoBrancoComDMA_Click(object sender, EventArgs e)
        {
            Bitmap imgDest = new Bitmap(image);

            imageBitmap = (Bitmap)image;
            Filtros.preto_brancoDMA(imageBitmap, imgDest);
            pictBoxImg2.Image = imgDest;
        }
Ejemplo n.º 18
0
        private void btnEspelhoVertivalSemDMA_Click(object sender, EventArgs e)
        {
            Bitmap imgDest = new Bitmap(image);

            imageBitmap = (Bitmap)image;
            Filtros.espelho_vertical(imageBitmap, imgDest);
            pictBoxImg2.Image = imgDest;
        }
        private void espelhamentoVerticalToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Bitmap imgDest = new Bitmap(image);

            imageBitmap = (Bitmap)image;
            Filtros.verticallDMA(imageBitmap, imgDest);
            pictBoxImg2.Image = imgDest;
        }
        private void separarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Bitmap imgDest = new Bitmap(image);

            imageBitmap = (Bitmap)image;
            Random r = new Random();

            Filtros.separaCanaisDMA(imageBitmap, imgDest, r.Next(150) % 3);
            pictBoxImg2.Image = imgDest;
        }
        private void btnFatiarDMA_Click(object sender, EventArgs e)
        {
            Bitmap[] dst = new Bitmap[8];
            for (int i = 0; i < 8; i++)
            {
                dst[i] = new Bitmap(image);
            }


            imageBitmap = (Bitmap)image;
            Filtros.FatiarPlanoBitsDMA(imageBitmap, dst);
            Process.Start("Explorer", @"D:\TTC\imagens\Fatiamento");
        }
Ejemplo n.º 22
0
 private void BtTransformar_Click(object sender, EventArgs e)
 {
     if (cbTransformacao.GetItemText(cbTransformacao.SelectedItem).Equals("Luminância sem DMA"))
     {
         Bitmap imgDest = new Bitmap(image);
         imageBitmap = (Bitmap)image;
         Filtros.convert_to_gray(imageBitmap, imgDest);
         pictBoxImg2.Image = imgDest;
     }
     else if (cbTransformacao.GetItemText(cbTransformacao.SelectedItem).Equals("Luminância com DMA"))
     {
         Bitmap imgDest = new Bitmap(image);
         imageBitmap = (Bitmap)image;
         Filtros.convert_to_grayDMA(imageBitmap, imgDest);
         pictBoxImg2.Image = imgDest;
     }
     else if (cbTransformacao.GetItemText(cbTransformacao.SelectedItem).Equals("Negativo sem DMA"))
     {
         Bitmap imgDest = new Bitmap(image);
         imageBitmap = (Bitmap)image;
         Filtros.negativo(imageBitmap, imgDest);
         pictBoxImg2.Image = imgDest;
     }
     else if (cbTransformacao.GetItemText(cbTransformacao.SelectedItem).Equals("Negativo com DMA"))
     {
         Bitmap imgDest = new Bitmap(image);
         imageBitmap = (Bitmap)image;
         Filtros.negativoDMA(imageBitmap, imgDest);
         pictBoxImg2.Image = imgDest;
     }
     else if (cbTransformacao.GetItemText(cbTransformacao.SelectedItem).Equals("Espelho Vertical"))
     {
         Bitmap imgDest = new Bitmap(image);
         imageBitmap = (Bitmap)image;
         Filtros.espelhoVert(imageBitmap, imgDest);
         pictBoxImg2.Image = imgDest;
     }
     else if (cbTransformacao.GetItemText(cbTransformacao.SelectedItem).Equals("Espelho Horizontal"))
     {
         Bitmap imgDest = new Bitmap(image);
         imageBitmap = (Bitmap)image;
         Filtros.espelhoHori(imageBitmap, imgDest);
         pictBoxImg2.Image = imgDest;
     }
     else if (cbTransformacao.GetItemText(cbTransformacao.SelectedItem).Equals("Espelho Diagonal"))
     {
         Bitmap imgDest = new Bitmap(image);
         imageBitmap = (Bitmap)image;
         Filtros.espelhoDiag(imageBitmap, imgDest);
         pictBoxImg2.Image = imgDest;
     }
     else if (cbTransformacao.GetItemText(cbTransformacao.SelectedItem).Equals("Espelho Vertical DMA"))
     {
         Bitmap imgDest = new Bitmap(image);
         imageBitmap = (Bitmap)image;
         Filtros.espelhoVertDMA(imageBitmap, imgDest);
         pictBoxImg2.Image = imgDest;
     }
     else if (cbTransformacao.GetItemText(cbTransformacao.SelectedItem).Equals("Espelho Horizontal DMA"))
     {
         Bitmap imgDest = new Bitmap(image);
         imageBitmap = (Bitmap)image;
         Filtros.espelhoHoriDMA(imageBitmap, imgDest);
         pictBoxImg2.Image = imgDest;
     }
     else if (cbTransformacao.GetItemText(cbTransformacao.SelectedItem).Equals("Espelho Diagonal DMA"))
     {
         Bitmap imgDest = new Bitmap(image);
         imageBitmap = (Bitmap)image;
         Filtros.espelhoDiagDMA(imageBitmap, imgDest);
         pictBoxImg2.Image = imgDest;
     }
     else if (cbTransformacao.GetItemText(cbTransformacao.SelectedItem).Equals("Separa RED"))
     {
         Bitmap imgDest = new Bitmap(image);
         imageBitmap = (Bitmap)image;
         Filtros.separaRed(imageBitmap, imgDest);
         pictBoxImg2.Image = imgDest;
     }
     else if (cbTransformacao.GetItemText(cbTransformacao.SelectedItem).Equals("Separa GREEN"))
     {
         Bitmap imgDest = new Bitmap(image);
         imageBitmap = (Bitmap)image;
         Filtros.separaGreen(imageBitmap, imgDest);
         pictBoxImg2.Image = imgDest;
     }
     else if (cbTransformacao.GetItemText(cbTransformacao.SelectedItem).Equals("Separa BLUE"))
     {
         Bitmap imgDest = new Bitmap(image);
         imageBitmap = (Bitmap)image;
         Filtros.separaBlue(imageBitmap, imgDest);
         pictBoxImg2.Image = imgDest;
     }
     else if (cbTransformacao.GetItemText(cbTransformacao.SelectedItem).Equals("Separa RED DMA"))
     {
         Bitmap imgDest = new Bitmap(image);
         imageBitmap = (Bitmap)image;
         Filtros.separaRedDMA(imageBitmap, imgDest);
         pictBoxImg2.Image = imgDest;
     }
     else if (cbTransformacao.GetItemText(cbTransformacao.SelectedItem).Equals("Separa GREEN DMA"))
     {
         Bitmap imgDest = new Bitmap(image);
         imageBitmap = (Bitmap)image;
         Filtros.separaGreenDMA(imageBitmap, imgDest);
         pictBoxImg2.Image = imgDest;
     }
     else if (cbTransformacao.GetItemText(cbTransformacao.SelectedItem).Equals("Separa BLUE DMA"))
     {
         Bitmap imgDest = new Bitmap(image);
         imageBitmap = (Bitmap)image;
         Filtros.separaBlueDMA(imageBitmap, imgDest);
         pictBoxImg2.Image = imgDest;
     }
     else if (cbTransformacao.GetItemText(cbTransformacao.SelectedItem).Equals("Preto & Branco"))
     {
         Bitmap imgDest = new Bitmap(image);
         imageBitmap = (Bitmap)image;
         Filtros.PeB(imageBitmap, imgDest);
         pictBoxImg2.Image = imgDest;
     }
     else if (cbTransformacao.GetItemText(cbTransformacao.SelectedItem).Equals("Preto & Branco DMA"))
     {
         Bitmap imgDest = new Bitmap(image);
         imageBitmap = (Bitmap)image;
         Filtros.PeBDMA(imageBitmap, imgDest);
         pictBoxImg2.Image = imgDest;
     }
     else if (cbTransformacao.GetItemText(cbTransformacao.SelectedItem).Equals("Inverter RED BLUE"))
     {
         Bitmap imgDest = new Bitmap(image);
         imageBitmap = (Bitmap)image;
         Filtros.invRB(imageBitmap, imgDest);
         pictBoxImg2.Image = imgDest;
     }
     else if (cbTransformacao.GetItemText(cbTransformacao.SelectedItem).Equals("Inverter RED BLUE DMA"))
     {
         Bitmap imgDest = new Bitmap(image);
         imageBitmap = (Bitmap)image;
         Filtros.invRBDMA(imageBitmap, imgDest);
         pictBoxImg2.Image = imgDest;
     }
     else if (cbTransformacao.GetItemText(cbTransformacao.SelectedItem).Equals("Rotação Horária"))
     {
         Bitmap imgDest = new Bitmap(image.Height, image.Width);
         imageBitmap = (Bitmap)image;
         Filtros.rotacaoHoraria(imageBitmap, imgDest);
         pictBoxImg2.Image = imgDest;
     }
     else if (cbTransformacao.GetItemText(cbTransformacao.SelectedItem).Equals("Rotação Horária DMA"))
     {
         Bitmap imgDest = new Bitmap(image.Height, image.Width);
         imageBitmap = (Bitmap)image;
         Filtros.rotacaoHorariaDMA(imageBitmap, imgDest);
         pictBoxImg2.Image = imgDest;
     }
     else if (cbTransformacao.GetItemText(cbTransformacao.SelectedItem).Equals("Separar Regioes"))
     {
         Bitmap imgDest = new Bitmap(image);
         imageBitmap = (Bitmap)image;
         Filtros.separaRegioes(imageBitmap, imgDest);
         pictBoxImg2.Image = imgDest;
     }
     else if (cbTransformacao.GetItemText(cbTransformacao.SelectedItem).Equals("Separar RegioesDMA"))
     {
         Bitmap imgDest = new Bitmap(image);
         imageBitmap = (Bitmap)image;
         Filtros.separaRegioesDMA(imageBitmap, imgDest);
         pictBoxImg2.Image = imgDest;
     }
 }