public static Bitmap Gabor(Bitmap bmpGray) { matrannguyen mt = new matrannguyen(512,512); mt.DocBitmap(bmpGray); mt.gabor(); return mt.ToBitmap(); }
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(); }
private void bwLuongXuly_DoWork(object sender, DoWorkEventArgs e) { mt = mt.gabor(); anhGabor = mt.ToBitmap(); bwLuongXuly.ReportProgress(20); anhNhiPhan = vnSumarySDK.CaiThienAnh(anhGoc); bwLuongXuly.ReportProgress(40); anhXuong = vnSumarySDK.LayAnhXuong(anhNhiPhan); bwLuongXuly.ReportProgress(60); anhDacTrung = vnSumarySDK.LayAnhDacTrung(anhNhiPhan); bwLuongXuly.ReportProgress(80); anhTrungBinh = vnSumarySDK.LayAnhDacTrungANN(anhNhiPhan); bwLuongXuly.ReportProgress(100); }