예제 #1
0
 public EAROpt(EMCollection fatherform, DataSet spec_trans)//定义构造函数
 {
     InitializeComponent();
     tmp_fatherform = fatherform;
     NumofSpec      = spec_trans.Tables.Count;         //端元光谱个数等于数据表中表的个数
     NumofBands     = spec_trans.Tables[0].Rows.Count; //端元光谱波段数等于数据表中表的行数
     //class_spec = new double[NumofBands, NumofSpec];
     class_spec = new DenseMatrix(NumofBands, NumofSpec);
     for (int i = 0; i < NumofSpec; i++)      //列数
     {
         for (int j = 0; j < NumofBands; j++) //行数
         {
             class_spec[j, i] = double.Parse(spec_trans.Tables[i].Rows[j][1].ToString());
         }
     }
     //var class_matrix = DenseMatrix.OfArray(class_spec);
     //MessageBox.Show(class_matrix.ToString(), "端元数组", MessageBoxButtons.OK, MessageBoxIcon.Warning);
 }
예제 #2
0
        private void EM_collection_bt_Click(object sender, EventArgs e)
        {
            EMCollection emcollectionform1 = new EMCollection();

            emcollectionform1.Show();
        }