Exemplo n.º 1
0
        public void SetInput(string filePath)
        {
            string fileName = string.Format("{0}", filePath);

            sitk.Image inputImage  = ImageFileReader.ReadImage(fileName);
            sitk.Image outputImage = BinaryThinningImageFilter.BinaryThinning(inputImage);

            string newFileName = string.Format("temporary\\{0}.jpg", Guid.NewGuid().ToString());

            ImageFileWriter.WriteImage(outputImage, newFileName);

            originalBitmap = new Bitmap(Image.FromFile(newFileName));
        }