private void ThresholdImage()
        {
            if (inputSoftwareBitmap != null)
            {
                processedImage = inputSoftwareBitmap.ToWriteableBitmap();

                OpenCvWrapper.Threshold(processedImage, thresholdLevel, thresholdType);

                OnPropertyChanged("ProcessedImage");
            }
        }
        private async void ButtonLoadImage_Click(object sender, RoutedEventArgs e)
        {
            var bitmapFile = await PickBitmap();

            if (bitmapFile != null)
            {
                inputSoftwareBitmap = await GetBitmapFromFile(bitmapFile);

                InputImage = inputSoftwareBitmap.ToWriteableBitmap();
            }
        }