Beispiel #1
0
        private void cmbXaxis_SelectedIndexChanged(object sender, EventArgs e)
        {
            GeoImageTools gimt = new GeoImageTools(gida);

            band1      = gimt.getOneBandBytes(cmbXaxis.SelectedIndex);
            bandResult = new byte[band1.Length];
        }
Beispiel #2
0
        private void lstBands_SelectedIndexChanged(object sender, EventArgs e)
        {
            imw.Dock = DockStyle.Fill;
            GeoImageTools GTools = new GeoImageTools(gida);

            currentBand = GTools.getOneBandBytes(lstBands.SelectedIndex);
            imw.DrawImage(gida, currentBand, colorpal);
            spec = new Point[gida.Nbands];
            createSpectrum(cursorPosition);
            spectrum.displaySpectrum(spec, gida.Wavelength);
            spectrum.BringToFront();
        }
Beispiel #3
0
        public frmSpectrumAnalysis(GeoImageData gimda, Int32[] colp)
        {
            InitializeComponent();
            gida     = gimda;
            colorpal = colp;
            fillListBands();
            splitContainer1.Panel2.Controls.Add(imw);
            imw.Dock = DockStyle.Fill;
            GeoImageTools GTools = new GeoImageTools(gida);

            currentBand = GTools.getOneBandBytes(lstBands.SelectedIndex);
            imw.DrawImage(gida, currentBand, colp);
            spectrum.Show();
            spectrum.BringToFront();
            spectrum.Location = new Point(0, 0);
            //spec = new Point[gida.Nbands];
            //createSpectrum(cursorPosition);
            //spectrum.displaySpectrum(spec);
        }
Beispiel #4
0
        private void cmbYaxis_SelectedIndexChanged(object sender, EventArgs e)
        {
            GeoImageTools gimt = new GeoImageTools(gida);

            band2 = gimt.getOneBandBytes(cmbYaxis.SelectedIndex);
        }
Beispiel #5
0
 void getRGBbandsfromBil()
 {
     red   = imgTools.getOneBandBytes(Convert.ToInt16(cmbRed.SelectedItem));
     green = imgTools.getOneBandBytes(Convert.ToInt16(cmbGreen.SelectedItem));
     blue  = imgTools.getOneBandBytes(Convert.ToInt16(cmbBlue.SelectedItem));
 }