Beispiel #1
0
        /// <summary>
        /// 对比度计算
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ButtonContrast_Click(object sender, RoutedEventArgs e)
        {
            if (!CheckImage()) return;

            double[] cst = new double[_image[_fChoose.ChoosedFile].BandsCount];
            for (int i = 1; i <= cst.Length; i++)
            {
                cst[i - 1] = new RS_Lib.Contrast(_image[_fChoose.ChoosedFile].GetPicData(i)).GetImageContrast();
            }

            _dock.AddDocForm(new RS_Diag.tmpContrast(cst), "对比度: " + _image[_fChoose.ChoosedFile].FileName);
        }
Beispiel #2
0
        /// <summary>
        /// 对比度计算
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ButtonContrast_Click(object sender, RoutedEventArgs e)
        {
            if (!CheckImage())
            {
                return;
            }

            double[] cst = new double[_image[_fChoose.ChoosedFile].BandsCount];
            for (int i = 1; i <= cst.Length; i++)
            {
                cst[i - 1] = new RS_Lib.Contrast(_image[_fChoose.ChoosedFile].GetPicData(i)).GetImageContrast();
            }

            _dock.AddDocForm(new RS_Diag.tmpContrast(cst), "对比度: " + _image[_fChoose.ChoosedFile].FileName);
        }