コード例 #1
0
        private void Subtract()
        {
            BinaryOperationImageViewModel imageViewModel = new BinaryOperationImageViewModel(ImageType.SUBTRACT);

            imageViewModel.SubtractImage(_leftImageViewModel.ImageSource, _rightImageViewModel.ImageSource);
            ImageList.Add(imageViewModel);
            SelectedImage = imageViewModel;
        }
コード例 #2
0
        private void AbsDiff()
        {
            BinaryOperationImageViewModel imageViewModel = new BinaryOperationImageViewModel(ImageType.ABS_DIFF);

            imageViewModel.AbsDiff(_leftImageViewModel.ImageSource, _rightImageViewModel.ImageSource);
            ImageList.Add(imageViewModel);
            SelectedImage = imageViewModel;
        }
コード例 #3
0
        private void WeightedSum()
        {
            BinaryOperationImageViewModel weightedSumImageViewModel = new BinaryOperationImageViewModel(ImageType.WEIGHTED_SUM);

            weightedSumImageViewModel.AddWeightedImages(_leftImageViewModel.ImageSource, _rightImageViewModel.ImageSource, 0.5, 0.5);
            ImageList.Add(weightedSumImageViewModel);
            SelectedImage = weightedSumImageViewModel;
        }