• 大小: 9.15MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-17
  • 语言: C#
  • 标签: c#  winform  DIP  滤波  

资源简介

数字图像处理设计软件,c# winform写成,界面漂亮,功能齐全,包括几何变换,空间变换,空间滤波,频域变换,频域滤波,边缘提取,彩色图像处理等等

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ImageProcessframework
{
    /// 
    /// bmp图像的头文件类,主要保存bmp图像的头文件信息
    /// 其构造方法要求传入bmp流数据
    /// 

    class bmpHead
    {
        public ulong bfhSize;  //文件大小,以字节为单位
        public ulong bfhReserverd1; //文件保留字,必须为0
        public ulong bfhReserverd2; //文件保留字,必须为0
        public ulong bfhOffBits;  //文件头的偏移量表示,以字节为单位

        public ulong biSize;   //本结构大小字节为单位
        public ulong biWidth;  //图形宽度以象素为单位
        public ulong biHeight;  //图形高度以象素为单位
        public ulong biPlanes;  //目标设备的级别,必须为1
        public ulong biBitCount;  //每个象素所需要的位数 1.单色 4.16色 8.256色 24.24位真彩 32.32位真彩
        public ulong biCompression; //是否为压缩 0:none( BI_RGB ) ....
        public ulong biSizeImage; //位图区数据的大小,以字节为单位 每行字节数是4的倍数,不够要补足
        public ulong biXPelsPerMeter;//位图水平分辨率,每米像素数
        public ulong biYPelsPerMeter;//位图垂直分辨率,每米像素数
        public ulong biClrUsed;  //位图实际使用的颜色表中的颜色数 0:颜色数是2的biBitCount次幂
        public ulong biClrImportant; //位图显示过程中重要的颜色数 0:所有颜色都重要
        public byte[] colorData;
        public byte[] allData;
        public bmpHead(byte[] headData)
        {
            bfhSize = byteToLong(headData 2 4);
            bfhReserverd1 = byteToLong(headData 6 2);
            bfhReserverd2 = byteToLong(headData 8 2);
            bfhOffBits = byteToLong(headData 10 4);
            biSize = byteToLong(headData 14 4);
            biWidth = byteToLong(headData 18 4);
            biHeight = byteToLong(headData 22 4);
            biPlanes = byteToLong(headData 26 2);
            biBitCount = byteToLong(headData 28 2);
            biCompression = byteToLong(headData 30 4);
            biSizeImage = byteToLong(headData 34 4);
            biXPelsPerMeter = byteToLong(headData 38 4);
            biYPelsPerMeter = byteToLong(headData 42 4);
            biClrUsed = byteToLong(headData 46 4);
            biClrImportant = byteToLong(headData 50 4);
            colorData = new byte[bfhOffBits - 54];

            for (int i = 0; i < colorData.Length; i++)
            {
                if (biBitCount == 8)
                {
                    colorData[i] = headData[i + 54];
                }
                else colorData = null;
            }
            allData = new byte[headData.Length];
            headData.CopyTo(allData 0);
        }
        public bmpStruct getBmpStruct(rgbColor[] rc)
        {
            bmpStruct tem = new bmpStruct();
            tem.allData = allData;
            tem.bitCount = (int)biBitCount;
            tem.RGBdata = rc;
            return tem;
        }
        public byte[] getAllData()
        {
            ulong[] ALL ={bfhSizebfhReserverd1bfhReserverd2bfhOffBitsbiSizebiWidth
                           biHeightbiPlanesbiBitCountbiCompressionbiSizeImage
                           biXPelsPerMeterbiYPelsP

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-10-25 20:09  ImageProcessframeworkEmpty2.4.2\
     目录           0  2013-10-25 20:09  ImageProcessframeworkEmpty2.4.2\ImageProcessframework\
     文件       92102  2013-10-25 05:25  ImageProcessframeworkEmpty2.4.2\ImageProcessframework\6.ico
     文件        3304  2013-10-19 23:45  ImageProcessframeworkEmpty2.4.2\ImageProcessframework\Complex.cs
     文件       76275  2013-10-25 19:55  ImageProcessframeworkEmpty2.4.2\ImageProcessframework\Form1.Designer.cs
     文件       37551  2013-10-25 19:57  ImageProcessframeworkEmpty2.4.2\ImageProcessframework\Form1.cs
     文件      153676  2013-10-25 19:55  ImageProcessframeworkEmpty2.4.2\ImageProcessframework\Form1.resx
     文件        5915  2013-10-25 16:12  ImageProcessframeworkEmpty2.4.2\ImageProcessframework\FormAbout.Designer.cs
     文件        1287  2013-10-25 16:12  ImageProcessframeworkEmpty2.4.2\ImageProcessframework\FormAbout.cs
     文件        5817  2013-10-25 16:12  ImageProcessframeworkEmpty2.4.2\ImageProcessframework\FormAbout.resx
     文件       17336  2013-10-25 17:10  ImageProcessframeworkEmpty2.4.2\ImageProcessframework\FormAddingNoise.Designer.cs
     文件        2889  2013-10-25 17:10  ImageProcessframeworkEmpty2.4.2\ImageProcessframework\FormAddingNoise.cs
     文件        5817  2013-10-25 17:10  ImageProcessframeworkEmpty2.4.2\ImageProcessframework\FormAddingNoise.resx
     文件        8868  2013-10-25 16:35  ImageProcessframeworkEmpty2.4.2\ImageProcessframework\FormBrightnessContrast.Designer.cs
     文件        1789  2013-10-25 16:35  ImageProcessframeworkEmpty2.4.2\ImageProcessframework\FormBrightnessContrast.cs
     文件        5817  2013-10-25 16:35  ImageProcessframeworkEmpty2.4.2\ImageProcessframework\FormBrightnessContrast.resx
     文件        7541  2013-10-25 06:06  ImageProcessframeworkEmpty2.4.2\ImageProcessframework\FormCut.Designer.cs
     文件        4354  2013-10-25 06:06  ImageProcessframeworkEmpty2.4.2\ImageProcessframework\FormCut.cs
     文件        5817  2013-10-25 06:06  ImageProcessframeworkEmpty2.4.2\ImageProcessframework\FormCut.resx
     文件       20362  2013-10-25 17:01  ImageProcessframeworkEmpty2.4.2\ImageProcessframework\FormEdge.Designer.cs
     文件       21015  2013-10-25 17:01  ImageProcessframeworkEmpty2.4.2\ImageProcessframework\FormEdge.cs
     文件        5817  2013-10-25 17:01  ImageProcessframeworkEmpty2.4.2\ImageProcessframework\FormEdge.resx
     文件       22222  2013-10-25 06:10  ImageProcessframeworkEmpty2.4.2\ImageProcessframework\FormFreqFilter.Designer.cs
     文件       19234  2013-10-25 06:10  ImageProcessframeworkEmpty2.4.2\ImageProcessframework\FormFreqFilter.cs
     文件        5817  2013-10-25 06:10  ImageProcessframeworkEmpty2.4.2\ImageProcessframework\FormFreqFilter.resx
     文件       11474  2013-10-25 06:13  ImageProcessframeworkEmpty2.4.2\ImageProcessframework\FormGame.Designer.cs
     文件       15467  2013-10-25 06:13  ImageProcessframeworkEmpty2.4.2\ImageProcessframework\FormGame.cs
     文件        6411  2013-10-25 06:13  ImageProcessframeworkEmpty2.4.2\ImageProcessframework\FormGame.resx
     文件       10191  2013-10-25 06:15  ImageProcessframeworkEmpty2.4.2\ImageProcessframework\FormHistEqua.Designer.cs
     文件        2560  2013-10-25 06:15  ImageProcessframeworkEmpty2.4.2\ImageProcessframework\FormHistEqua.cs
     文件        5817  2013-10-25 06:15  ImageProcessframeworkEmpty2.4.2\ImageProcessframework\FormHistEqua.resx
............此处省略142个文件信息

评论

共有 条评论