/*private void initComboBoxes() { comboBoxTransType.Items }*/ private void saveConfig(string cfgPath) { // System.IO.TextWriter config = new System.IO.StreamWriter(cfgPath); configFile config = new configFile(cfgPath); // I/O settings config.addParam("VideoSource", getVidSource()); config.addParam("ImageDir", textBoxDir.Text ); config.addParam("VideoFile", textBoxVidFile.Text); config.addParam("MosaicDestination", getMosaicDestination()); config.addParam("MosaicSaveDir", textBoxSaveMosaic.Text); // Transform settings config.addParam("TransformType", comboBoxTransType.SelectedIndex); config.addParam("FeatureDetector", comboBoxFeatureDetector.SelectedIndex); config.addParam("NumFeatures", textBoxNumCorners.Text); config.addParam("NumBlobScales", textBoxBlobScales.Text); config.addParam("CorrespondenceQuality", textBoxCorrQuality.Text); config.addParam("LMIterations", textBoxLMIterations.Text); config.addParam("LM", checkBoxLM.Checked ? 1 : 0); config.addParam("PatchDescriptorType", comboBoxDescriptor.SelectedIndex); config.addParam("PatchDescriptorSize", comboBoxPatchSize.SelectedIndex); config.addParam("MaxRansacIters", textBoxMaxRansacIters.Text); config.addParam("MaxSearchForTransform", textBoxMaxSearchForTransform.Text); //Renderer settings config.addParam("MaxFrames", textBoxMaxFrames.Text); config.addParam("IncrementalRendering", checkBoxIncrementalRenderer.Checked ? 1 : 0); config.addParam("FullFrameUpdateFreq", textBoxFullFrameUpdateFreq.Text); config.addParam("SkipFrames", checkBoxSkipFrames.Checked ? 1 : 0); config.addParam("RendererType", comboBoxRenderer.SelectedIndex); config.addParam("FeatherRadius", textBoxFeatherRad.Text); config.addParam("DijkstraScale", textBoxDijkstraScale.Text); config.addParam("WarpMethod", comboBoxWarpMethod.SelectedIndex); config.addParam("MosaicX", textBoxMosaicX.Text); config.addParam("MosaicY", textBoxMosaicY.Text); //Evaluation settings config.addParam("EvaluationFunction", comboBoxEvalFunction.SelectedIndex); config.Close(); }
/*private void initComboBoxes() * { * comboBoxTransType.Items * }*/ private void saveConfig(string cfgPath) { // System.IO.TextWriter config = new System.IO.StreamWriter(cfgPath); configFile config = new configFile(cfgPath); // I/O settings config.addParam("VideoSource", getVidSource()); config.addParam("ImageDir", textBoxDir.Text); config.addParam("VideoFile", textBoxVidFile.Text); config.addParam("MosaicDestination", getMosaicDestination()); config.addParam("MosaicSaveDir", textBoxSaveMosaic.Text); // Transform settings config.addParam("TransformType", comboBoxTransType.SelectedIndex); config.addParam("FeatureDetector", comboBoxFeatureDetector.SelectedIndex); config.addParam("NumFeatures", textBoxNumCorners.Text); config.addParam("NumBlobScales", textBoxBlobScales.Text); config.addParam("CorrespondenceQuality", textBoxCorrQuality.Text); config.addParam("LMIterations", textBoxLMIterations.Text); config.addParam("LM", checkBoxLM.Checked ? 1 : 0); config.addParam("PatchDescriptorType", comboBoxDescriptor.SelectedIndex); config.addParam("PatchDescriptorSize", comboBoxPatchSize.SelectedIndex); config.addParam("MaxRansacIters", textBoxMaxRansacIters.Text); config.addParam("MaxSearchForTransform", textBoxMaxSearchForTransform.Text); //Renderer settings config.addParam("MaxFrames", textBoxMaxFrames.Text); config.addParam("IncrementalRendering", checkBoxIncrementalRenderer.Checked ? 1 : 0); config.addParam("FullFrameUpdateFreq", textBoxFullFrameUpdateFreq.Text); config.addParam("SkipFrames", checkBoxSkipFrames.Checked ? 1 : 0); config.addParam("RendererType", comboBoxRenderer.SelectedIndex); config.addParam("FeatherRadius", textBoxFeatherRad.Text); config.addParam("DijkstraScale", textBoxDijkstraScale.Text); config.addParam("WarpMethod", comboBoxWarpMethod.SelectedIndex); config.addParam("MosaicX", textBoxMosaicX.Text); config.addParam("MosaicY", textBoxMosaicY.Text); //Evaluation settings config.addParam("EvaluationFunction", comboBoxEvalFunction.SelectedIndex); config.Close(); }