Exemplo n.º 1
0
 private void button17_Click(object sender, EventArgs e)
 {
     try
     {
         InsertarCambio("Closing");
         anterior          = MethodsImagenFilter.CopyBitmap(actual);
         actual            = MethodsImagenFilter.Closing(actual);
         pictureBox1.Image = actual;
     }
     catch (Exception ex)
     {
         MessageBox.Show($"Erro: {ex.Message}");
     }
 }
Exemplo n.º 2
0
 private void MethodsImagenFilterReceita()
 {
     try
     {
         int[,] kernel =
         {
             {  2, -1,  2 },
             { -1, 10, -1 },
             {  2, -1,  2 }
         };
         actual = MethodsImagenFilter.Closing(actual);
         actual = MethodsImagenFilter.Convolution(actual, kernel, 2);
         actual = MethodsImagenFilter.TirarBorda(actual);
         actual = MethodsImagenFilter.RetirarTodasAsCoresEColocarNaImagemFinal(actual);
         actual = MethodsImagenFilter.engrossarLinhaPreto(actual);
         actual = MethodsImagenFilter.FA_TirarPixelPretoSozinhoNaHorizontal(actual);
         actual = MethodsImagenFilter.FA_TirarPixelPretoSozinhoNaVertical(actual);
     }
     catch (Exception ex)
     {
         MessageBox.Show($"Erro: {ex.Message}");
     }
 }