public static void Run()
        {
            // ExStart:ApplyFilterOnDICOMImage
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_DICOM();

            // Load an image          
            using (DicomImage image = new DicomImage(dataDir + "image.dcm"))
            {
                // Supply the filters to DICOM image and Save the results to output path.
                image.Filter(image.Bounds, new MedianFilterOptions(8));
                image.Save(dataDir + "ApplyFilterOnDICOMImage_out.bmp", new BmpOptions());
            }
            // ExEnd:ApplyFilterOnDICOMImage
        }
Ejemplo n.º 2
0
        public static void Run()
        {
            //ExStart:ApplyFilterOnDICOMImage
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_DICOM();

            using (var fileStream = new FileStream(dataDir + "file.dcm", FileMode.Open, FileAccess.Read))
                using (DicomImage image = new DicomImage(fileStream))
                {
                    // Supply the filters to DICOM image and Save the results to output path.
                    image.Filter(image.Bounds, new MedianFilterOptions(8));
                    image.Save(dataDir + "ApplyFilterOnDICOMImage_out.bmp", new BmpOptions());
                }
            //ExEnd:ApplyFilterOnDICOMImage
        }
Ejemplo n.º 3
0
        public static void Run()
        {
            // ExStart:ApplyFilterOnDICOMImage
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_DICOM();

            // Load an image
            using (DicomImage image = new DicomImage(dataDir + "image.dcm"))
            {
                // Supply the filters to DICOM image and Save the results to output path.
                image.Filter(image.Bounds, new MedianFilterOptions(8));
                image.Save(dataDir + "ApplyFilterOnDICOMImage_out.bmp", new BmpOptions());
            }
            // ExEnd:ApplyFilterOnDICOMImage
        }