资源简介
花了我50个c币,真狠呐,我下载下来以后自己从新编译了下,原项目是vs2005的,我用vs2015编译的,代码可用。记得项目属性要设置为允许执行不安全代码
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Imaging;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Runtime.InteropServices;
namespace ImageProcessing
{
public partial class Form_Main : Form
{
public Form_Main()
{
InitializeComponent();
Initialize();
}
private bool sourceAvailable;
private void Initialize()
{
sourceAvailable = false;
openFileDialog_LoadImage.Filter = “*.png*.jpg|*.png;*.jpg;*.jpeg“;
openFileDialog_LoadImage.FilterIndex = 1;
openFileDialog_LoadImage.RestoreDirectory = true;
}
private void button_LoadImage_Click(object sender EventArgs e)
{
if (openFileDialog_LoadImage.ShowDialog() == DialogResult.OK)
{
string fileName = openFileDialog_LoadImage.FileName;
pictureBox_SourceImage.Image = Image.FromFile(fileName);
sourceAvailable = true;
}
}
private void button_Mean_Click(object sender EventArgs e)
{
if (!sourceAvailable)
{
MessageBox.Show(“Please load source image first!“);
return;
}
Bitmap sourceImage = new Bitmap(pictureBox_SourceImage.Image);
FormatImage(ref sourceImage);
kernel = new int[] { { 1 1 1 } { 1 1 1 } { 1 1 1 } };
Bitmap destImage = getTargetImage(sourceImage false);
pictureBox_ConvertedImage.Image = destImage;
}
private void button_Edges_Click(object sender EventArgs e)
{
if (!sourceAvailable)
{
MessageBox.Show(“Please load source image first!“);
return;
}
Bitmap sourceImage = new Bitmap(pictureBox_SourceImage.Image);
FormatImage(ref sourceImage);
kernel = new int[] { { 0 -1 0 } { -1 4 -1 } { 0 -1 0 } };
Bitmap destImage = getTargetImage(sourceImage false);
pictureBox_ConvertedImage.Image = destImage;
}
private void button_Sharpen_Click(object sender EventArgs e)
{
if (!sourceAvailable)
{
MessageBox.Show(“Please load source image first!“);
return;
}
Bitmap sourceImage = new Bitmap(pictureBox_SourceImage.Image);
FormatImage(ref sourceImage);
kernel = new int[] { { 0 -1 0 } { -1 5 -1 } { 0 -1 0 } };
Bitmap destImage = getTargetImage(sourceImage false);
pictureBox_ConvertedImage.Image = destImage;
}
private void button_Med_Click(object sender EventArgs e)
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-11-29 11:40 image processing\
目录 0 2009-06-13 23:51 image processing\image processing\
目录 0 2009-06-13 23:53 image processing\image processing\images\
文件 66614 2007-06-08 14:06 image processing\image processing\images\Barbara256.bmp
文件 263222 2007-06-02 20:53 image processing\image processing\images\Barbara512.bmp
文件 263224 2009-04-12 22:01 image processing\image processing\images\lena.bmp
文件 66614 2007-06-02 11:55 image processing\image processing\images\lena256.bmp
文件 263222 2007-06-02 20:56 image processing\image processing\images\Lena512.bmp
文件 66614 2007-06-02 21:01 image processing\image processing\images\peppers256.bmp
文件 263222 2007-06-02 20:55 image processing\image processing\images\Peppers512.bmp
目录 0 2009-06-13 23:53 image processing\image processing\release\
文件 24576 2009-06-13 23:54 image processing\image processing\release\ImageProcessing.exe
文件 30208 2009-06-13 23:54 image processing\image processing\release\ImageProcessing.pdb
文件 5632 2005-12-08 14:51 image processing\image processing\release\ImageProcessing.vshost.exe
目录 0 2018-11-29 14:56 image processing\image processing\source code\
目录 0 2018-11-29 14:56 image processing\image processing\source code\ImageProcessing\
文件 1012 2018-11-29 11:41 image processing\image processing\source code\ImageProcessing.sln
文件 19968 2010-04-27 17:21 image processing\image processing\source code\ImageProcessing.suo
目录 0 2009-06-13 23:51 image processing\image processing\source code\ImageProcessing\bin\
目录 0 2018-11-29 11:53 image processing\image processing\source code\ImageProcessing\bin\Debug\
文件 15872 2018-11-29 11:48 image processing\image processing\source code\ImageProcessing\bin\Debug\ImageProcessing.exe
文件 32256 2018-11-29 11:48 image processing\image processing\source code\ImageProcessing\bin\Debug\ImageProcessing.pdb
文件 21680 2018-11-29 11:53 image processing\image processing\source code\ImageProcessing\bin\Debug\ImageProcessing.vshost.exe
文件 490 2018-04-12 07:35 image processing\image processing\source code\ImageProcessing\bin\Debug\ImageProcessing.vshost.exe.manifest
目录 0 2009-06-13 23:54 image processing\image processing\source code\ImageProcessing\bin\Release\
文件 24576 2009-06-13 23:54 image processing\image processing\source code\ImageProcessing\bin\Release\ImageProcessing.exe
文件 30208 2009-06-13 23:54 image processing\image processing\source code\ImageProcessing\bin\Release\ImageProcessing.pdb
文件 5632 2005-12-08 14:51 image processing\image processing\source code\ImageProcessing\bin\Release\ImageProcessing.vshost.exe
文件 15970 2018-11-29 14:56 image processing\image processing\source code\ImageProcessing\Form1.cs
文件 8423 2018-11-29 11:46 image processing\image processing\source code\ImageProcessing\Form1.Designer.cs
文件 6026 2018-11-29 11:46 image processing\image processing\source code\ImageProcessing\Form1.resx
............此处省略31个文件信息
相关资源
- C#图像平滑与去噪噪声模型、均值滤波
- C#图像处理六项图片处理功能及截图工
- 基于矩阵的图像处理绘图软件源码
- 遥感图像处理课程设计代码
- C#数字图像处理算法典型随书光盘源码
- C# 数字图像处理技术光盘源码
- C#数字图像处理算法典型包含源码
- C#数字图像处理算法典型](随书光盘
- C# 图像处理、神经网络、遗传算法集
- C# 图像处理软件及其源码
- c#图像噪声平滑处理
- 图像处理程序-课程作业
- C#数字图像处理3种典型方法:提取像
- C#图像处理源代码包括包括均值滤波,
- C#车牌识别
- 数字图像处理图像压缩源程序
- C#图像处理源码
- 数字图像处理基本操作全
- 自适应二值化阈值
- C#图片高级操作源码:噪声模型、均
- C#水平垂直图像镜像---C#数字图像处理
- C#版的模拟PhotoShop处理图片色阶的程序
- 图像处理各种颜色空间互相转换
- C# 数字图像处理 有关遥感图像处理的
- C# 数字图像处理,单色、Robers、Sobe
- c#图像处理bmp转化为灰度图片
- C#读取psd格式图片
- C#版图像处理界面,包含二值化、灰度
- C# 图像二值化
- 图像处理VS2017C#
评论
共有 条评论