private async void ConvertToGrayScaleITUR_BT709PageMenuFlyoutItem_Click(object sender, RoutedEventArgs e) { AddToUndo(WriteableOutputImage.Clone()); WriteableOutputImage = BinaryzationHelper.ConvertToGrayscaleITUR_BT709(WriteableOutputImage); await UpdateOutputImage(); }
private async Task ManualBinaryzation(int threshold) { AddToUndo(WriteableOutputImage.Clone()); ConvertToGrayScaleITUR_BT709PageMenuFlyoutItem_Click(null, null); BinaryzationHelper.ManualBinaryzation(threshold, WriteableOutputImage); await UpdateOutputImage(); }