Esempio n. 1
0
        public static double [] CalcularCaracteristicasTextura(Bitmap Im_ent)
        {
            Dictionary <int, double>[] hsr = PictureAnalizer.HistogramasSumaDiferencia(Im_ent);

            double[] op = PictureAnalizer.CaracteristicasTextura(hsr[0], hsr[1]);

            return(op);
        }
Esempio n. 2
0
        private void button18_Click(object sender, EventArgs e)
        {
            Dictionary <int, double>[] Hsr = PictureAnalizer.HistogramasSumaDiferencia(PictureAnalizer.ImagenEntrada);
            // media, varianza, homogen, energia, entropia, contraste
            double[] Carc = PictureAnalizer.CaracteristicasTextura(Hsr[0], Hsr[1]);

            lbl_Textr.Text = "";

            lbl_Textr.Text = " Media: " + Math.Round(Carc[0]) + "\n" + " Varianza: " + Math.Round(Carc[1]) + "\n" + " Homogeneidad: " + Math.Round(Carc[2]) + "\n"
                             + " Energia: " + Math.Round(Carc[3]) + "\n" + " Entropia: " + Math.Round(Carc[4]) + "\n" + " Contraste: " + Math.Round(Carc[5]) + "\n";

            PictureAnalizer.HNormSumasDifecs = Hsr;

            int c = 0;
        }