// 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(); }