Пример #1
0
        /// <summary>
        /// TODO add error checking here!
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void BtnExecute_Click(object sender, EventArgs e)
        {
            // TODO impliment proper threadding request
            DicomStrictCompare.Controller.Settings settings = new DicomStrictCompare.Controller.Settings(Dtas.ToArray(), chkDoseCompare.Checked, chkPDDCompare.Checked, false, Environment.ProcessorCount);
            /// TODO make Fuzzy res width gui configurable
            /// TODO Impliment gamma


            if (!_isRunning)
            {
                _dataHandler.Settings        = settings;
                _dataHandler.SourceAliasName = SourceAliasName;
                _dataHandler.TargetAliasName = TargetAliasName;



                if (Tested == false)
                {
                    TestDirectories_Click(sender, e);
                }
                if (Tested == false)
                {
                    lblRunStatus.Text = "Tested text Fields, Please Rerun";
                    return;
                }
                if (!chkPDDCompare.Checked && !chkDoseCompare.Checked)
                {
                    lblRunStatus.Text = "Nothing to do";
                    return;
                }



                worker.RunWorkerAsync();
                return;
            }
            else
            {
                worker.CancelAsync();
            }
        }
Пример #2
0
        /// <summary>
        /// TODO add error checking here!
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void BtnExecute_Click(object sender, EventArgs e)
        {
            DicomStrictCompare.Controller.Settings settings = new DicomStrictCompare.Controller.Settings(
                chkBoxFuzzy.Checked, (float)0.25, false, false, 1, chkBoxUseGPU.Checked, Dtas.ToArray(), Threshold, chkDoseCompare.Checked, chkPDDCompare.Checked, true);
            /// TODO make Fuzzy res width gui configurable
            /// TODO Impliment gamma


            if (!_isRunning)
            {
                _dataHandler.Settings        = settings;
                _dataHandler.SourceAliasName = SourceAliasName;
                _dataHandler.TargetAliasName = TargetAliasName;



                if (tested == false)
                {
                    TestDirectories_Click(sender, e);
                }
                if (tested == false)
                {
                    lblRunStatus.Text = "Tested text Fields, Please Rerun";
                    return;
                }
                if (!chkPDDCompare.Checked && !chkDoseCompare.Checked)
                {
                    lblRunStatus.Text = "Nothing to do";
                    return;
                }



                worker.RunWorkerAsync();
                return;
            }
            else
            {
                worker.CancelAsync();
            }
        }
Пример #3
0
 public DscDataHandler(DicomStrictCompare.Controller.Settings settings)
 {
     this.Settings = settings;
     DosePairsList = new ConcurrentBag <MatchedDosePair>();
     mathematics   = new X86Mathematics();
 }