资源简介
本资源为非局部均值滤波器的源码和DEMO,对应本人博客非局部均值滤波器一文。

代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Imaging;
namespace TestDemo
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
#region 变量声明
//图像路径
private String curFileName = null;
//当前图像变量
private Bitmap curBitmap = null;
//原始图像变量
private Bitmap srcBitmap = null;
#endregion
#region 图像打开保存模块
//打开图像函数
public void OpenFile()
{
OpenFileDialog ofd = new OpenFileDialog();
ofd.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“;
ofd.ShowHelp = true;
ofd.title = “打开图像文件“;
if (ofd.ShowDialog() == DialogResult.OK)
{
curFileName = ofd.FileName;
try
{
curBitmap = (Bitmap)System.Drawing.Image.FromFile(curFileName);
srcBitmap = new Bitmap(curBitmap);
}
catch (Exception exp)
{ MessageBox.Show(exp.Message); }
}
}
//保存图像函数
public void SaveFile()
{
SaveFileDialog sfd = new SaveFileDialog();
sfd.Filter = “PNG文件(*.png)|*.png“;
if (sfd.ShowDialog() == DialogResult.OK)
{
pictureBox1.Image.Save(sfd.FileName ImageFormat.Png);
}
}
//打开图像
private void openBtn_Click(object sender EventArgs e)
{
OpenFile();
if (curBitmap != null)
{
pictureBox1.Image = (Image)curBitmap;
}
}
//保存图像
private void saveBtn_Click(object sender EventArgs e)
{
if (pictureBox1.Image != null)
SaveFile();
}
#endregion
private void button2_Click(object sender EventArgs e)
{
if (pictureBox1.Image != null)
{
SaveFile();
}
}
private void button1_Click(object sender EventArgs e)
{
if (pictureBox1.Image != null)
{
int dradius = Convert.ToInt32(textBox1.Text.ToString());
int sradius = Convert.ToInt32(textBox2.Text.ToString());
int h = Convert.ToInt32(textBox3.Text.ToString());
DateTime start = DateTime.Now;
curBitmap
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-09-29 17:42 012非局部均值滤波器 - 副本\
目录 0 2018-09-29 17:43 012非局部均值滤波器 - 副本\TestDemo\
文件 9561 2018-09-29 17:22 012非局部均值滤波器 - 副本\TestDemo\Form1.Designer.cs
文件 4044 2018-09-29 17:22 012非局部均值滤波器 - 副本\TestDemo\Form1.cs
文件 5817 2018-09-29 17:22 012非局部均值滤波器 - 副本\TestDemo\Form1.resx
文件 1146 2018-09-29 17:07 012非局部均值滤波器 - 副本\TestDemo\ImageProcessDll.cs
文件 500 2015-05-05 11:41 012非局部均值滤波器 - 副本\TestDemo\Program.cs
目录 0 2018-09-29 17:42 012非局部均值滤波器 - 副本\TestDemo\Properties\
文件 1428 2015-05-05 11:41 012非局部均值滤波器 - 副本\TestDemo\Properties\AssemblyInfo.cs
文件 2846 2015-05-05 11:41 012非局部均值滤波器 - 副本\TestDemo\Properties\Resources.Designer.cs
文件 5612 2015-05-05 11:41 012非局部均值滤波器 - 副本\TestDemo\Properties\Resources.resx
文件 1095 2015-05-05 11:41 012非局部均值滤波器 - 副本\TestDemo\Properties\Settings.Designer.cs
文件 249 2015-05-05 11:41 012非局部均值滤波器 - 副本\TestDemo\Properties\Settings.settings
文件 1060 2015-05-05 12:41 012非局部均值滤波器 - 副本\TestDemo\TestBitmap.cs
文件 5504 2015-07-29 14:24 012非局部均值滤波器 - 副本\TestDemo\TestDemo.csproj
文件 638 2015-05-05 12:41 012非局部均值滤波器 - 副本\TestDemo\TestDemo.csproj.user
目录 0 2018-09-29 17:43 012非局部均值滤波器 - 副本\TestDemo\bin\
目录 0 2018-09-29 17:42 012非局部均值滤波器 - 副本\TestDemo\bin\Release\
文件 14336 2018-09-29 17:22 012非局部均值滤波器 - 副本\TestDemo\bin\Release\TestDemo.exe
文件 42496 2018-09-29 17:22 012非局部均值滤波器 - 副本\TestDemo\bin\Release\TestDemo.pdb
文件 11600 2018-09-29 17:22 012非局部均值滤波器 - 副本\TestDemo\bin\Release\TestDemo.vshost.exe
文件 490 2017-09-29 21:43 012非局部均值滤波器 - 副本\TestDemo\bin\Release\TestDemo.vshost.exe.manifest
文件 7168 2018-09-29 17:15 012非局部均值滤波器 - 副本\TestDemo\bin\Release\TestDemo_C.dll
文件 406 2018-09-29 17:15 012非局部均值滤波器 - 副本\TestDemo\bin\Release\TestDemo_C.dll.manifest
文件 685 2018-09-29 17:15 012非局部均值滤波器 - 副本\TestDemo\bin\Release\TestDemo_C.exp
文件 1750 2018-09-29 17:15 012非局部均值滤波器 - 副本\TestDemo\bin\Release\TestDemo_C.lib
文件 175104 2018-09-29 17:15 012非局部均值滤波器 - 副本\TestDemo\bin\Release\TestDemo_C.pdb
文件 2670 2015-07-24 16:52 012非局部均值滤波器 - 副本\TestDemo.sln
文件 39424 2018-09-29 17:42 012非局部均值滤波器 - 副本\TestDemo.suo
目录 0 2018-09-29 17:43 012非局部均值滤波器 - 副本\TestDemo_C\
文件 2189 2015-05-05 11:48 012非局部均值滤波器 - 副本\TestDemo_C\ReadMe.txt
............此处省略5个文件信息
相关资源
- 条码字体barcode128
- STM32蓝牙和串口程序
- UNICODE GBK双向码表二进制文件
- 常用编码(UnicodeUTF-8GBK)转换工具
- vc URL编解码类
- 中文转化unicoder码的方法
- codesys编程手册中文版
- XSS Encode
- LHC生命周期前沿的非弹性暗物质:A
- arm cortex m0 rtl code
- Xcode 12.3(16F156)安装包.zip
- windows 64位系统下安装Code Warrior6.3方法
- Zxing-Code_128一维码
- CODE128A 字体
- Code 128 字体
- INBarcodeOCR条码识别组件,识别率及速
- code39条形码字体
- 飞思卡尔68HC08Metrowerks_CodeWarrior开发软
- codewarrior使用指南中文版
- Code Warrior License 破解,各个版本可用
- Codewarrior HCS12 V5.1 license
- codewarrior6.3 win10环境可以安装的破解
- Codesys变成入门手册
- patchedcode.bin
- 奥科网关M1000B配置手册.docx
- icm20948_Sensor_Code.zip
- OzCode3.X Patch 注册机
- Qt实现Code39条形码
- shellcoder编程揭秘
- 黄金矿工源码
评论
共有 条评论