Beispiel #1
0
        public static StructureSet LoadStructureSetSync(DicomFile dicomFile, IProgress <double> progress)
        {
            var loader       = new ROILoader();
            var structureSet = new StructureSet();

            loader.Load(dicomFile, structureSet, progress);
            return(structureSet);
        }
Beispiel #2
0
        public static async Task <StructureSet> LoadStructureSetAsync(string[] fileNames, IProgress <double> progress)
        {
            var files = await getFilesAsync(fileNames);

            var loader       = new ROILoader();
            var structureSet = new StructureSet();

            loader.Load(files, structureSet, progress);
            return(structureSet);
        }
Beispiel #3
0
        public void Load(string fullPath)
        {
            var roiLoader = new ROILoader(fullPath);
            var rois      = roiLoader.Load();

            foreach (var roi in rois)
            {
                _regionsOfInterest.Add(roi);
                _regionsOfInterestByIndex[roi.Index] = roi;
            }

            X.Min = roiLoader.XMin;
            X.Max = roiLoader.XMax;
            Y.Min = roiLoader.YMin;
            Y.Max = roiLoader.YMax;
            Z.Min = roiLoader.ZMin;
            Z.Max = roiLoader.ZMax;

            _eventAggregator.Publish(new RegionsLoadedEvent());
        }
Beispiel #4
0
        public StructureSet(params DicomFile[] files) : base(files)
        {
            var loader = new ROILoader();

            loader.Load(files, this);
        }