Exemple #1
0
 private void forward_Click(object sender, EventArgs e)
 {
     if (image_number < num_of_images)
     {
         pixels16.Clear();
         dec.EraseFields();
         ImagePlane.EraseFields();
         image_number++;
         image_label.Text = path + image_number;
         safename         = "_" + image_number;
         navi             = true;
         ReadAndDisplayDicomFile(path + safename, safename);
     }
 }
Exemple #2
0
        private void test_head_Click(object sender, EventArgs e)
        {
            path = "E:\\tsvme\\DICOM images\\kid\\";

            for (int i = 30; i < 190; i++)
            {
                safename = "_" + Convert.ToString(i);
                pixels16.Clear();
                pixels8.Clear();
                dec.EraseFields();
                ImagePlane.EraseFields();
                Cursor = Cursors.WaitCursor;
                ReadAndDisplayDicomFile(path + safename, safename);
                Cursor           = Cursors.Default;
                image_label.Text = path + safename;
                num_of_images++;
            }
            image_number = num_of_images;
        }
Exemple #3
0
        private void Open_Click(object sender, EventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();

            ofd.Filter = "All DICOM Files(*.*)|*.*";

            if ((ofd.ShowDialog() == DialogResult.OK) && (ofd.FileName.Length > 0))
            {
                pixels16.Clear();
                pixels8.Clear();
                dec.EraseFields();
                ImagePlane.EraseFields();

                Cursor = Cursors.WaitCursor;
                ReadAndDisplayDicomFile(ofd.FileName, ofd.SafeFileName);
                Cursor           = Cursors.Default;
                image_label.Text = ofd.FileName;
                num_of_images++;
            }
            ofd.Dispose();
        }