资源简介

c#编写的小envi,包括计算均值,方差,相关系数,协方差,累计/联合/灰度直方图,极差纹理。共生矩阵,对比度,K-T变换,RGB显示,HIS变换,波段运算,K-均值分类,最大似然分类,OIF计算,图像拉伸均衡化/规定化

资源截图

代码片段和文件信息

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

namespace BSQBILBIP
{
    /*以最终的合并后的数据为对象的类
     */
    public class BSQBILBIPFile
    {
        //文件类型,可选为:BSQBILBIP
        public string fileType;
        //列数
        public int lines { get; private set; }
        //行数
        public int samples { get; private set; }
        //波段数
        public int Bands { get; private set; }

        //合并后的数据,byte[bands lines samples]
        public byte[ ] initalData;
        public BSQBILBIPFile()
        {

        }
        /// 
        /// 用单个文件的List合集声明类
        /// 

        /// 存有所有头文件的SingleHDRFile类的List
        public BSQBILBIPFile(List fileList)
        {
            this.lines = fileList[0].lines;
            this.samples = fileList[0].samples;
            this.Bands = fileList.Count;

            initalData = new byte[this.Bands this.samples this.lines];
            for (int n = 0; n < this.Bands; n++)
            {
                for (int x = 0; x < this.samples; x++)
                {
                    for (int y = 0; y < this.lines; y++)
                    {
                        initalData[n x y] = fileList[n].HDRdata[0 x y];
                    }
                }
            }
        }

        /// 
        /// 用一个BSQ文件声明类
        /// 

        /// 按BSQ编码的HDR文件的路径
        public BSQBILBIPFile(string fileNameint num)
        {
            InitialFileInfo(fileName);

            FileStream fileStream = new FileStream(fileName.Split(‘.‘)[0] FileMode.Open);
            BinaryReader binaryReader = new BinaryReader(fileStream);

            binaryReader.baseStream.Position = 0;

            initalData = new byte[this.Bands this.lines this.samples];
            if (num == 1)
            {
                for (int i = 0; i < this.Bands; i++)
                {
                    for (int j = 0; j < this.lines; j++)
                    {
                        for (int k = 0; k < this.samples; k++)
                        {
                            initalData[i j k] = binaryReader.ReadByte();
                        }
                    }
                }
            }
            else if (num == 2)
            {
                for (int j = 0; j < this.lines; j++)
                {
                    for (int i = 0; i < this.Bands; i++)
                    {
                        for (int k = 0; k < this.samples; k++)
                        {
                            initalData[i j k] = binaryReader.ReadByte();
                        }
                    }
                }
            }
            else
            {
                for (int j = 0; j < this.lines; j++)
                {
                    for 

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

     文件        187  2015-10-13 19:20  遥感\遥感\App.config

     文件    5260960  2014-04-12 00:48  遥感\遥感\bin\Debug\mscorlib.dll

     文件      59342  2010-03-18 00:23  遥感\遥感\bin\Debug\normidna.nlp

     文件      47076  2010-03-18 00:23  遥感\遥感\bin\Debug\normnfc.nlp

     文件      40566  2010-03-18 00:23  遥感\遥感\bin\Debug\normnfd.nlp

     文件      67808  2010-03-18 00:23  遥感\遥感\bin\Debug\normnfkc.nlp

     文件      61718  2010-03-18 00:23  遥感\遥感\bin\Debug\normnfkd.nlp

     文件     535552  2017-12-24 20:56  遥感\遥感\bin\Debug\RS实验.exe

     文件        187  2015-10-13 19:20  遥感\遥感\bin\Debug\RS实验.exe.config

     文件     534016  2017-12-24 20:56  遥感\遥感\bin\Debug\RS实验.pdb

     文件      23168  2017-12-24 21:00  遥感\遥感\bin\Debug\RS实验.vshost.exe

     文件        187  2015-10-13 19:20  遥感\遥感\bin\Debug\RS实验.vshost.exe.config

     文件        490  2014-09-19 01:53  遥感\遥感\bin\Debug\RS实验.vshost.exe.manifest

     文件     287072  2010-05-03 21:47  遥感\遥感\bin\Debug\zh-Hans\mscorlib.resources.dll

     文件     535040  2016-01-18 16:50  遥感\遥感\bin\Debug\遥感.exe

     文件     316928  2016-01-18 16:50  遥感\遥感\bin\Debug\遥感.pdb

     文件        187  2015-10-13 19:20  遥感\遥感\bin\Debug\遥感.vshost.exe.config

     文件        490  2015-07-10 19:01  遥感\遥感\bin\Debug\遥感.vshost.exe.manifest

     文件      49625  2016-01-15 01:09  遥感\遥感\BSQBILBIPFile.cs

     文件       6874  2016-01-14 19:32  遥感\遥感\ClassDiagram1.cd

     文件       4422  2016-01-13 01:11  遥感\遥感\JointHistogram.cs

     文件       5493  2016-01-13 01:11  遥感\遥感\JointHistogram.Designer.cs

     文件      31555  2016-01-13 01:11  遥感\遥感\JointHistogram.resx

     文件       1410  2016-01-18 16:52  遥感\遥感\K-T颜色分类.cs

     文件       1516  2016-01-18 16:52  遥感\遥感\K-T颜色分类.Designer.cs

     文件       5817  2016-01-18 16:52  遥感\遥感\K-T颜色分类.resx

     文件       8295  2016-01-13 02:12  遥感\遥感\K-均值.cs

     文件       4664  2016-01-13 02:12  遥感\遥感\K-均值.Designer.cs

     文件      31555  2016-01-13 02:12  遥感\遥感\K-均值.resx

     文件       2457  2016-01-14 19:33  遥感\遥感\obj\Debug\DesignTimeResolveAssemblyReferences.cache

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

评论

共有 条评论