Ejemplo n.º 1
0
 public static Bitmap CaiThienAnh(Bitmap bmpGray)
 {
     matrannguyen mt = new matrannguyen(512, 512);
     mt.DocBitmap(bmpGray);
     mt=mt.loctrungvi(3);
     //mt=mt.gabor();
     mt = mt.gabor();
     mt = mt.loctrungvi(3);
     mt=mt.nhiphan();
     //Bitmap bmp = vnImageProcess.ConvertToGrayscale(mt.ToBitmap());
     // bmp = vnImageProcess.Wiener(bmp);
     return mt.ToBitmap();
 }
Ejemplo n.º 2
0
 public matrannhiphan(matrannguyen anhxam)
 {
     matrannguyen anh = anhxam.nhiphan();
     int i, j;
     sohang = anhxam.Sohang;
     socot = anhxam.Socot;
     data = new bool[sohang, socot];
     for (i = 0; i < sohang; ++i)
         for (j = 0; j < socot; ++j)
         {
             data[i, j] = (anh.data[i, j] < 100);
         }
 }