private NumProperty GetSeriesVol2(CAtomicImageSeries series)
        {
            Double result = series.Images.Aggregate <CAtomicImage_RENAME, Double>(
                0,
                (current, image) => current + image.GetPixelData().Cast <Int16>().Sum(x => x + 1));

            return(new NumProperty(_volumeTwoHeader.Name, result.ToString(CultureInfo.InvariantCulture)));
        }
        private static CAtomicPicts GenerateDummyLoadedFiles()
        {
            Log.Message("[DicomFileLoader] creating Atomic pics");

            List <CAtomicImage_RENAME> dummyLoad =
                new List <CAtomicImage_RENAME>
            {
                SDummyAtomicPictGenerator.GeneratePict(),
                                       SDummyAtomicPictGenerator.GeneratePict(),
                                       SDummyAtomicPictGenerator.GeneratePict(),
                                       SDummyAtomicPictGenerator.GeneratePict(),
                                       SDummyAtomicPictGenerator.GeneratePict()
            };

            CAtomicImageSeries dummySeries = new CAtomicImageSeries(
                CSeriesInfo.CreateFromFileInfo(new FileInfo("C:\\src\\Test\\dummy.dicom")), dummyLoad);

            dummySeries.SetCaption("Test series");

            return(new CAtomicPicts(new[] { dummySeries }));
        }