Exemplo n.º 1
0
 public FileInfo(RS_Lib.RsImage p)
 {
     InitializeComponent();
     _img = p;
     textBlock1.Text += "\n图像文件地址:" + p.GetFilePath();
     textBlock1.Text += "\n波段数:" + p.BandsCount;
     textBlock1.Text += "\n图像说明:" + p.Description;
     textBlock1.Text += "\n图像格式:" + p.Interleave;
 }
Exemplo n.º 2
0
        public FileInfo(RS_Lib.RsImage p)
        {
            InitializeComponent();
            StringBuilder sb = new StringBuilder();

            sb.AppendLine("图像元信息如下");
            sb.AppendLine();
            sb.AppendLine("图像文件名:" + p.FileName);
            sb.AppendLine("图像文件地址:" + p.GetFilePath());
            sb.AppendLine("波段数:" + p.BandsCount);
            sb.AppendLine("图像行数:" + p.Lines);
            sb.AppendLine("图像列数:" + p.Samples);
            sb.AppendLine("图像格式:" + p.Interleave);
            sb.AppendLine();
            sb.AppendLine("图像说明:" + p.Description);

            textBlock1.Text = sb.ToString();
        }
Exemplo n.º 3
0
        // private ObservableCollection<StatsCorr>[] _statCorr;

        public BasicStats(RS_Lib.RsImage p)
        {
            InitializeComponent();
            _stats = new RS_Lib.ImageStats(p);
            TextInfo.Text += "\n\t图像数据位置:" + p.GetFilePath();
            TextInfo.Text += "\n\t波段数目:" + p.BandsCount;
            TextInfo.Text += "\n\t图像尺寸(高x宽):" + p.Lines + " x " + p.Samples + "\n";

            for (int i = 0; i < p.BandsCount; i++)
            {
                _bandName.Add("波段 " + (i + 1));
            }

            DataAve.ItemsSource = _statAve;
            DataDev.ItemsSource = _statDev;

            Ave();
            StdDev();
            StdCorr();
            StdCov();
        }