public ResultFilterWindow(ResultWindow resultWindow)
        {
            InitializeComponent();

            this.resultWindow = resultWindow;

            resultFilter.Items.Add(ConvolutionFilter2D.GetGauss55());
            resultFilter.Items.Add(ConvolutionFilter2D.GetLaplace());
            resultFilter.Items.Add(ConvolutionFilter2D.GetSharpen());
            resultFilter.Items.Add(ConvolutionFilter2D.GetLaplacianOfGaussian55());
            resultFilter.Items.Add(ConvolutionFilter2D.GetLaplacianOfGaussian77());
            //resultFilter.Items.Add(EdgeDetectorRoberts.Instance);
            resultFilter.Items.Add(CompositeConvolutionFilter2D.getRoberts());
            resultFilter.Items.Add(CompositeConvolutionFilter2D.getKirsch());
            resultFilter.Items.Add(new RemoveNegativeValuesFilter());
            resultFilter.Items.Add(new AbsoluteValueFilter());
            resultFilter.SelectedIndex = 0;
        }
예제 #2
0
        public MainWindow()
        {
            InitializeComponent();
            this.Width = 800;
            saveInputBtn.Visibility = Visibility.Hidden;
            projectionAlgorithm.Items.Add(new ProjectionHandlerRaycast());
            projectionAlgorithm.Items.Add(new ProjectionHandlerBresenham());
            projectionAlgorithm.SelectedIndex = 0;
            reconstructionAlgorithm.Items.Add("Back projection");
            reconstructionAlgorithm.Items.Add("Iterative");
            reconstructionAlgorithm.SelectedIndex = 0;

            projectionFilter.Items.Add(Filter1D.GetGaussianFilter());
            projectionFilter.Items.Add(Filter1D.GetHammingFilter1());
            projectionFilter.Items.Add(Filter1D.GetHammingFilter2());
            projectionFilter.Items.Add(Filter1D.GetHammingFilter3());
            projectionFilter.Items.Add(Filter1D.GetLaplaceFilter());
            projectionFilter.Items.Add(Filter1D.GetLaplaceSharpeningFilter());
            projectionFilter.Items.Add(Filter1D.GetUnsharpMaskingGaussianFilter());
            projectionFilter.Items.Add(Filter1D.GetUnsharpMaskingHammingFilter1());
            projectionFilter.Items.Add(Filter1D.GetUnsharpMaskingHammingFilter2());
            projectionFilter.Items.Add(Filter1D.GetUnsharpMaskingHammingFilter3());
            projectionFilter.Items.Add(Filter1D.GetMultiplicativeNoiseFilter());
            projectionFilter.Items.Add(Filter1D.GetAdditiveNoiseFilter());
            projectionFilter.SelectedIndex = 0;

            sinogramFilter.Items.Add(ConvolutionFilter2D.GetGauss55());
            sinogramFilter.Items.Add(ConvolutionFilter2D.GetLaplace());
            sinogramFilter.Items.Add(ConvolutionFilter2D.GetSharpen());
            sinogramFilter.Items.Add(ConvolutionFilter2D.GetLaplacianOfGaussian55());
            sinogramFilter.Items.Add(ConvolutionFilter2D.GetLaplacianOfGaussian77());
            sinogramFilter.Items.Add(CompositeConvolutionFilter2D.getRoberts());
            sinogramFilter.Items.Add(CompositeConvolutionFilter2D.getKirsch());
            sinogramFilter.Items.Add(new RemoveNegativeValuesFilter());
            sinogramFilter.Items.Add(new AbsoluteValueFilter());
            sinogramFilter.SelectedIndex = 0;
        }