private void button_Click(object sender, EventArgs e)
        {
            //获取参数
            //原始图像路径
            string OriRasURL = "GDBP://MapGisLocal/" + selectDBCmb1.Text + "/ras/" + selectRasterCmb1.Text;
            //分类图像路径
            string ClsRasURL = "GDBP://MapGisLocal/" + selectDBCmb2.Text + "/ras/" + selectRasterCmb2.Text;
            //评价结果路径
            string result = resultPath.Text;

            //统计参数
            bool ErrMatrix = false;
            bool ClsAccu   = false;
            bool TtlAccu   = false;
            bool Kappa     = false;

            if (this.ErrMatrix.Checked == true)
            {
                ErrMatrix = true;
            }
            if (this.ClsAccu.Checked == true)
            {
                ClsAccu = true;
            }
            if (this.TtlAccu.Checked == true)
            {
                TtlAccu = true;
            }
            if (this.Kappa.Checked == true)
            {
                Kappa = true;
            }


            RasterDataSet ori_rds = new RasterDataSet();
            RasterDataSet cls_rds = new RasterDataSet();

            ori_rds.OpenByURL(OriRasURL, RasAccessType.RasAccessType_Update);
            cls_rds.OpenByURL(ClsRasURL, RasAccessType.RasAccessType_Update);
            //显示图像信息
            height = cls_rds.GetPixelHeight();
            width  = cls_rds.GetPixelWidth();

            //生成评价器
            RasClassificationAnalyse rca = new RasClassificationAnalyse();

            //设置初始参数
            rca.SetData(cls_rds, cls_rds.BandCount);
            //设置处理范围
            rca.SetCommonParam(0, 0, height, width);
            //调用评价器
            int i = rca.RsClassificationAccuracyAnalyse(ori_rds, ErrMatrix, ClsAccu, TtlAccu, Kappa, result);

            if (i > 0)
            {
                MessageBox.Show("精度评价完成!");
            }
            else
            {
                MessageBox.Show("精度评价失败!");
            }
        }