Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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");
        }
Ejemplo n.º 3
0
        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");
        }
Ejemplo n.º 4
0
 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();
 }
Ejemplo n.º 5
0
 public VideoSettings(ImageProcessor processor)
 {
     ContourOptions.SaveOption("AdaptiveThresholdBlockSize", processor.adaptiveThresholdBlockSize);
     InitializeComponent();
     Processor = processor;
 }