Exemplo n.º 1
0
 public MatchedDosePair(DoseFile source, DoseFile target, Controller.Settings settings)
 {
     _source       = source;
     _target       = target;
     _dtas         = settings.Dtas;
     _comparisons  = new SingleComparison[_dtas.Length];
     PDDoutString  = "PDD's not run";
     ChartTitle    = "PDD of " + _source.PlanID + @" " + _source.FieldName;
     ChartFileName = _source.PlanID + @"\" + _source.FieldName;
 }
Exemplo n.º 2
0
        public static List <DoseFile> DoseFiles(string[] listOfFiles)
        {
            ConcurrentBag <DoseFile> doseFiles = new ConcurrentBag <DoseFile>();

            _ = Parallel.ForEach(listOfFiles, new ParallelOptions {
                MaxDegreeOfParallelism = Environment.ProcessorCount
            }, file =>
            {
                DicomFile temp = new DicomFile(file);
                if (temp.IsDoseFile)
                {
                    DoseFile tempDose = new DoseFile(file);
                    Debug.WriteLine("Found Dose File " + tempDose.FileName);
                    doseFiles.Add(tempDose);
                }
            });
            return(new List <DoseFile>(doseFiles));
        }