Esempio n. 1
0
 public ProcessFrame(string fileSource, FrameReader frameReader, Locator locator, InputSettings inSet)
 {
     this.source = fileSource;
     this.frameReader = frameReader;
     this.locator = locator;
     this.fileName = IO.Path.GetFileNameWithoutExtension(fileSource);
     this.inSet = inSet;
 }
Esempio n. 2
0
        private InputSettings GenerateInputSettings()
        {
            int percentage = txtPercentage.Text.Length == 0 ? 0 : Convert.ToInt32(txtPercentage.Text);
            int threshold = txtThreshold.Text.Length == 0 ? 3 : Convert.ToInt32(txtThreshold.Text);
            int pixel = txtPixels.Text.Length == 0 ? 500 : Convert.ToInt32(txtPixels.Text);

            InputSettings inSet = new InputSettings(threshold, percentage, pixel);
            return inSet;
        }