91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 172KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-06-05
  • 語言: C#
  • 標(biāo)簽: C#??噪聲模型??

資源簡介

C#VS 2015 圖像平滑與去噪(噪聲模型、均值濾波與中值濾波、灰度形態(tài)學(xué)濾波、小波變換去噪、高斯低通濾波、統(tǒng)計濾波)

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Text;
using?System.Windows.Forms;

namespace?smooth
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????}

????????private?void?open_Click(object?sender?EventArgs?e)
????????{
????????????OpenFileDialog?opnDlg?=?new?OpenFileDialog();
????????????opnDlg.Filter?=?“所有圖像文件?|?*.bmp;?*.pcx;?*.png;?*.jpg;?*.gif;“?+
????????????????“*.tif;?*.ico;?*.dxf;?*.cgm;?*.cdr;?*.wmf;?*.eps;?*.emf|“?+
????????????????“位圖(?*.bmp;?*.jpg;?*.png;...)?|?*.bmp;?*.pcx;?*.png;?*.jpg;?*.gif;?*.tif;?*.ico|“?+
????????????????“矢量圖(?*.wmf;?*.eps;?*.emf;...)?|?*.dxf;?*.cgm;?*.cdr;?*.wmf;?*.eps;?*.emf“;
????????????opnDlg.title?=?“打開圖像文件“;
????????????opnDlg.ShowHelp?=?true;
????????????if?(opnDlg.ShowDialog()?==?DialogResult.OK)
????????????{
????????????????curFileName?=?opnDlg.FileName;
????????????????try
????????????????{
????????????????????curBitmap?=?(Bitmap)Image.FromFile(curFileName);
????????????????}
????????????????catch?(Exception?exp)
????????????????{
????????????????????MessageBox.Show(exp.Message);
????????????????}
????????????}
????????????Invalidate();
????????}

????????private?void?close_Click(object?sender?EventArgs?e)
????????{
????????????this.Close();
????????}

????????private?void?Form1_Paint(object?sender?PaintEventArgs?e)
????????{
????????????Graphics?g?=?e.Graphics;
????????????if?(curBitmap?!=?null)
????????????{
????????????????g.DrawImage(curBitmap?160?20?curBitmap.Width?curBitmap.Height);
????????????}
????????}

????????private?void?noise_Click(object?sender?EventArgs?e)
????????{
????????????if?(curBitmap?!=?null)
????????????{
????????????????noiseModel?noise?=?new?noiseModel();
????????????????if?(noise.ShowDialog()?==?DialogResult.OK)
????????????????{
????????????????????Rectangle?rect?=?new?Rectangle(0?0?curBitmap.Width?curBitmap.Height);
????????????????????System.Drawing.Imaging.BitmapData?bmpData?=?curBitmap.LockBits(rect?System.Drawing.Imaging.ImageLockMode.ReadWrite?curBitmap.PixelFormat);
????????????????????IntPtr?ptr?=?bmpData.Scan0;
????????????????????int?bytes?=?curBitmap.Width?*?curBitmap.Height;
????????????????????byte[]?grayValues?=?new?byte[bytes];
????????????????????System.Runtime.InteropServices.Marshal.Copy(ptr?grayValues?0?bytes);
????????????????????double?temp?=?0;
????????????????????byte?flagNoise?=?noise.GetFlag;
????????????????????double[]?paraNoise?=?new?double[2];
????????????????????paraNoise?=?noise.GetParaN;

????????????????????Random?r1?r2;
????????????????????double?v1?v2;
????????????????????r1?=?new?Random(unchecked((int)DateTime.Now.Ticks));
????????????????????r2?=?new?Random(~unchecked((int)DateTime.Now.Ticks));

????????????????????for?(int?i?=?0;?i?????????????????????{
????????????????

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件??????69266??2008-09-05?10:17??Backup\smooth\Form1.cs

?????文件???????6571??2008-08-23?14:39??Backup\smooth\Form1.Designer.cs

?????文件???????5814??2008-08-23?14:39??Backup\smooth\Form1.resx

?????文件????????745??2008-09-03?22:17??Backup\smooth\gauss.cs

?????文件???????3714??2008-09-03?22:16??Backup\smooth\gauss.Designer.cs

?????文件???????5814??2008-08-22?10:32??Backup\smooth\gauss.resx

?????文件????????879??2008-09-03?21:05??Backup\smooth\meanMedian.cs

?????文件???????5612??2008-09-03?21:05??Backup\smooth\meanMedian.Designer.cs

?????文件???????5814??2008-08-22?11:45??Backup\smooth\meanMedian.resx

?????文件??????11217??2008-08-22?15:42??Backup\smooth\morphologic.cs

?????文件??????20168??2008-08-22?15:40??Backup\smooth\morphologic.Designer.cs

?????文件???????5814??2008-08-22?15:40??Backup\smooth\morphologic.resx

?????文件???????3592??2008-08-22?10:39??Backup\smooth\noiseModel.cs

?????文件??????13077??2008-08-22?10:32??Backup\smooth\noiseModel.Designer.cs

?????文件???????5814??2008-08-22?10:32??Backup\smooth\noiseModel.resx

?????文件????????465??2008-01-23?13:59??Backup\smooth\Program.cs

?????文件???????1184??2008-01-23?13:59??Backup\smooth\Properties\AssemblyInfo.cs

?????文件???????2867??2008-01-23?13:59??Backup\smooth\Properties\Resources.Designer.cs

?????文件???????5612??2008-01-23?13:59??Backup\smooth\Properties\Resources.resx

?????文件???????1090??2008-01-23?13:59??Backup\smooth\Properties\Settings.Designer.cs

?????文件????????249??2008-01-23?13:59??Backup\smooth\Properties\Settings.settings

?????文件???????5343??2008-02-23?20:52??Backup\smooth\smooth.csproj

?????文件????????901??2008-09-03?22:22??Backup\smooth\stati.cs

?????文件???????5602??2008-09-03?22:22??Backup\smooth\stati.Designer.cs

?????文件???????5814??2008-08-22?10:32??Backup\smooth\stati.resx

?????文件???????2232??2008-09-03?21:54??Backup\smooth\wavelet.cs

?????文件??????12570??2008-09-03?21:53??Backup\smooth\wavelet.Designer.cs

?????文件???????5814??2008-08-22?10:32??Backup\smooth\wavelet.resx

?????文件????????907??2008-01-23?13:59??Backup\smooth.sln

?????文件??????59392??2018-06-02?13:08??smooth\bin\Debug\smooth.exe

............此處省略66個文件信息

評論

共有 條評論