• 大小: 7.4MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-26
  • 语言: C#
  • 标签:

资源简介

图像的统计特性, 融合,傅里叶变换等等,原创

资源截图

代码片段和文件信息

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

namespace _1
{
    public class BitmapAvg
    {
        private int avgGray;
        private int avgR;
        private int avgG;
        private int avgB;
        public int AvgGray
        {
            get
            {
                return avgGray;
            }
            set
            {
                avgGray = value;
            }
        }
        public int AvgG
        {
            get
            {
                return avgG;
            }
            set
            {
                avgG = value;
            }
        }
        public int AvgR
        {
            get
            {
                return avgR;
            }
            set
            {
                avgR = value;
            }
        }
        public int AvgB
        {
            get
            {
                return avgB;
            }
            set
            {
                avgB = value;
            }
        }
        public BitmapAvg(Bitmap bitmap)
        {
            
            int xres yres i j sumGray r g b sumR sumG sumB;
            xres = bitmap.Width;
            yres = bitmap.Height;
            sumGray = 0;
            sumB = 0;
            sumG = 0;
            sumR = 0;
            for (i = 0; i <= xres - 1; i++)
            {
                for (j = 0; j <= yres - 1; j++)
                {
                    Color c = new Color();
                    c = bitmap.GetPixel(i j);
                    r = c.R;
                    g = c.G;
                    b = c.B;
                    sumGray = sumGray + (r + g + b) / 3;
                    sumR = sumR + r;
                    sumG = sumG + g;
                    sumB = sumB + b;
                }
            }
            avgR = sumR / (xres * yres);
            avgG = sumG / (xres * yres);
            avgB = sumB / (xres * yres);
            avgGray = sumGray / (xres * yres);
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       5613  2011-05-29 10:14  2\1\1.csproj

     文件      60928  2011-05-29 10:46  2\1\bin\Debug\1.exe

     文件     144896  2011-05-29 10:46  2\1\bin\Debug\1.pdb

     文件      11608  2011-05-29 11:54  2\1\bin\Debug\1.vshost.exe

     文件        490  2010-03-17 22:39  2\1\bin\Debug\1.vshost.exe.manifest

     文件       1270  2011-05-28 21:54  2\1\Bitmap1.bmp

     文件       1270  2011-05-28 21:54  2\1\Bitmap2.bmp

     文件       2110  2011-05-28 21:54  2\1\BitmapAvg.cs

     文件       2559  2011-05-28 21:54  2\1\BitmapISH.cs

     文件       5031  2011-05-28 21:54  2\1\Blend.cs

     文件       2560  2011-05-28 21:54  2\1\Correlation.cs

     文件        349  2011-05-28 21:54  2\1\Density.cs

     文件      34461  2011-05-28 23:07  2\1\Form1.cs

     文件      72280  2011-05-28 23:07  2\1\Form1.Designer.cs

     文件       6014  2011-05-28 23:07  2\1\Form1.resx

     文件       2606  2011-05-28 21:54  2\1\Form2.cs

     文件       3205  2011-05-28 21:54  2\1\Form2.Designer.cs

     文件       5814  2011-05-28 21:54  2\1\Form2.resx

     文件       1143  2011-05-28 21:54  2\1\Form3.cs

     文件       3205  2011-05-28 21:54  2\1\Form3.Designer.cs

     文件       5814  2011-05-28 21:54  2\1\Form3.resx

     文件       3895  2011-05-28 23:03  2\1\Form4.cs

     文件       2201  2011-05-28 23:03  2\1\Form4.designer.cs

     文件       5814  2011-05-28 23:03  2\1\Form4.resx

     文件       1228  2011-05-28 21:54  2\1\FSintegrated.cs

     文件       3126  2011-05-28 21:54  2\1\FSmath.cs

     文件       2421  2011-05-28 21:54  2\1\IntegrationBrovey.cs

     文件       4131  2011-05-28 21:54  2\1\IntegrationISH.cs

     文件       4155  2011-05-29 11:54  2\1\obj\Debug\1.csproj.FileListAbsolute.txt

     文件       1083  2011-05-28 23:07  2\1\obj\Debug\1.csproj.GenerateResource.Cache

............此处省略51个文件信息

评论

共有 条评论

相关资源