예제 #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);
        }
예제 #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");
        }
예제 #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");
        }
예제 #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();
 }
예제 #5
0
 public VideoSettings(ImageProcessor processor)
 {
     ContourOptions.SaveOption("AdaptiveThresholdBlockSize", processor.adaptiveThresholdBlockSize);
     InitializeComponent();
     Processor = processor;
 }