IRasterDataset2 rd2 = rastDataset as IRasterDataset2;
IRaster raster = rd2.CreateFullRaster();
IRasterBandCollection rbc = (IRasterBandCollection)raster;
for (int i = 0; i < rbc.Count; i++)
{
    IRasterBand rb = rbc.Item(i);
    bool tmpBool ;
    rb.HasStatistics(out tmpBool);
    if(!tmpBool)
        rb.ComputeStatsAndHist();
    IRasterHistogram rh = rb.Histogram;
    IRasterStatistics rs = rb.Statistics;
}
 
 from:  http://blog.csdn.net/rrrrssss00/article/details/6585211

相关文章:

  • 2021-08-13
  • 2021-11-13
  • 2021-08-07
  • 2022-12-23
  • 2021-12-16
  • 2022-12-23
  • 2021-08-11
  • 2021-10-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-08
  • 2022-12-23
相关资源
相似解决方案