private void Subtract() { BinaryOperationImageViewModel imageViewModel = new BinaryOperationImageViewModel(ImageType.SUBTRACT); imageViewModel.SubtractImage(_leftImageViewModel.ImageSource, _rightImageViewModel.ImageSource); ImageList.Add(imageViewModel); SelectedImage = imageViewModel; }
private void AbsDiff() { BinaryOperationImageViewModel imageViewModel = new BinaryOperationImageViewModel(ImageType.ABS_DIFF); imageViewModel.AbsDiff(_leftImageViewModel.ImageSource, _rightImageViewModel.ImageSource); ImageList.Add(imageViewModel); SelectedImage = imageViewModel; }
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; }