private void CropWindow_Closing(object sender, CancelEventArgs e) { var oP = new OptionsProperties(); oP.SetOption("ContourThickness", SecimValue.Value); oP.SetOption("SuccessRate", DogrulukValue.Value); ContourOptions.SaveOption("AdaptiveThresholdBlockSize", DetailSlider.Value); }
private void CropWindow_Loaded(object sender, RoutedEventArgs e) { var oP = new OptionsProperties(); SecimValue.Value = oP.GetOption <double>("ContourThickness"); DogrulukValue.Value = oP.GetOption <double>("SuccessRate"); DetailSlider.Value = ContourOptions.GetOption <double>("AdaptiveThresholdBlockSize"); }
private void MenuItem_Click_3(object sender, RoutedEventArgs e) { var videoSettings = new VideoSettings(_processor); videoSettings.ShowDialog(); _processor = videoSettings.Processor; DetailSlider.Value = ContourOptions.GetOption <double>("AdaptiveThresholdBlockSize"); }
private void YeniButon_Click(object sender, RoutedEventArgs e) { ContourOptions.SaveOption("AdaptiveThresholdBlockSize", DetailSlider.Value); _lockSelection = false; _processor = ContourOptions.Processor; _croppedImage = null; _designedSamples = new Templates(); AlanSayisi.Text = ResLocalization.SavedTemplateCount + " :0"; PaintCanvas.Background = Brushes.White; PaintCanvas.Children.Clear(); }
public VideoSettings(ImageProcessor processor) { ContourOptions.SaveOption("AdaptiveThresholdBlockSize", processor.adaptiveThresholdBlockSize); InitializeComponent(); Processor = processor; }