void VsICoreAnalyzerPage.SetConfiguration(VsICoreAnalyzerConfiguration config) { VsObjectDetectionConfiguration cfg = (VsObjectDetectionConfiguration)config; if (cfg != null) { this.comboBox1.SelectedIndex = cfg.SelectedObject; } }
void VsICoreAnalyzerPage.SetConfiguration(VsICoreAnalyzerConfiguration config) { VsSquareDetectionConfiguration cfg = (VsSquareDetectionConfiguration)config; if (cfg != null) { this.trackBar1.Value = cfg.Threshold; } }
void VsICoreAnalyzerPage.SetConfiguration(VsICoreAnalyzerConfiguration config) { VsMotionDetectionConfiguration cfg = (VsMotionDetectionConfiguration)config; if (cfg != null) { this.trackBar1.Value = cfg.ThresholdAlpha; this.trackBar2.Value = cfg.ThresholdSigma; } }
void VsICoreAnalyzerPage.SetConfiguration(VsICoreAnalyzerConfiguration config) { VsLineDetectionConfiguration cfg = (VsLineDetectionConfiguration)config; if (cfg != null) { this.trackBar1.Value = cfg.ThresholdStrong; this.trackBar2.Value = cfg.ThresholdWeak; } }
// Save configuration public void SaveConfiguration(XmlTextWriter writer, VsICoreAnalyzerConfiguration config) { try { analyserDesc.SaveConfiguration(writer, config); } catch (Exception err) { logger.Log(LogLevel.Error, err.Message + " " + err.Source + " " + err.StackTrace);; } }
// Create video source public VsICoreAnalyzer CreateAnalyserSource(long syncTimer, VsICoreAnalyzerConfiguration config) { try { return(analyserDesc.CreateAnalyser(syncTimer, config)); } catch (Exception err) { logger.Log(LogLevel.Error, err.Message + " " + err.Source + " " + err.StackTrace);; } return(null); }
VsICoreAnalyzer VsICoreAnalyzerDescription.CreateAnalyser(long syncTimer, VsICoreAnalyzerConfiguration config) { VsMotionHistoryConfiguration cfg = (VsMotionHistoryConfiguration)config; if (cfg != null) { VsMotionHistory analyser = new VsMotionHistory(syncTimer); analyser.AnalyzerConfiguration = cfg.GetConfiguration(); return((VsMotionHistory)analyser); } return(null); }
VsICoreAnalyzer VsICoreAnalyzerDescription.CreateAnalyser(long syncTimer, VsICoreAnalyzerConfiguration config) { VsOpticalFlowConfiguration cfg = (VsOpticalFlowConfiguration)config; if (cfg != null) { VsOpticalFlow analyser = new VsOpticalFlow(syncTimer); analyser.AnalyzerConfiguration = cfg.GetConfiguration(); return((VsOpticalFlow)analyser); } return(null); }
VsICoreAnalyzer VsICoreAnalyzerDescription.CreateAnalyser(long syncTimer, VsICoreAnalyzerConfiguration config) { VsEllipseDetectionConfiguration cfg = (VsEllipseDetectionConfiguration)config; if (cfg != null) { VsEllipseDetection analyser = new VsEllipseDetection(syncTimer); analyser.AnalyzerConfiguration = cfg.GetConfiguration(); return((VsEllipseDetection)analyser); } return(null); }
VsICoreAnalyzer VsICoreAnalyzerDescription.CreateAnalyser(long syncTimer, VsICoreAnalyzerConfiguration config) { VsFqiDetectionConfiguration cfg = (VsFqiDetectionConfiguration)config; if (cfg != null) { VsFqiDetection analyser = new VsFqiDetection(syncTimer); analyser.AnalyzerConfiguration = cfg.GetConfiguration(); return (VsFqiDetection)analyser; } return null; }
VsICoreAnalyzer VsICoreAnalyzerDescription.CreateAnalyser(long syncTimer, VsICoreAnalyzerConfiguration config) { VsMatchImageConfiguration cfg = (VsMatchImageConfiguration)config; if (cfg != null) { VsMatchImage analyser = new VsMatchImage(syncTimer); analyser.AnalyzerConfiguration = cfg.GetConfiguration(); return((VsMatchImage)analyser); } return(null); }
VsICoreAnalyzer VsICoreAnalyzerDescription.CreateAnalyser(long syncTimer, VsICoreAnalyzerConfiguration config) { VsMotionHistoryConfiguration cfg = (VsMotionHistoryConfiguration)config; if (cfg != null) { VsMotionHistory analyser = new VsMotionHistory(syncTimer); analyser.AnalyzerConfiguration = cfg.GetConfiguration(); return (VsMotionHistory)analyser; } return null; }
void VsICoreAnalyzerDescription.SaveConfiguration(System.Xml.XmlTextWriter writer, VsICoreAnalyzerConfiguration config) { VsMotionHistoryConfiguration cfg = (VsMotionHistoryConfiguration)config; if (cfg != null) { writer.WriteAttributeString("ThresholdAlpha", cfg.ThresholdAlpha.ToString()); writer.WriteAttributeString("ThresholdSigma", cfg.ThresholdSigma.ToString()); } }
void VsICoreAnalyzerPage.SetConfiguration(VsICoreAnalyzerConfiguration config) { VsEdgeDetectionConfiguration cfg = (VsEdgeDetectionConfiguration)config; if (cfg != null) { this.trackBar1.Value = cfg.ThresholdStrong ; this.trackBar2.Value = cfg.ThresholdWeak; } }
void VsICoreAnalyzerPage.SetConfiguration(VsICoreAnalyzerConfiguration config) { VsObjectDetectionConfiguration cfg = (VsObjectDetectionConfiguration)config; if (cfg != null) { this.comboBox1.SelectedIndex = cfg.SelectedObject ; } }
void VsICoreAnalyzerDescription.SaveConfiguration(System.Xml.XmlTextWriter writer, VsICoreAnalyzerConfiguration config) { VsObjectDetectionConfiguration cfg = (VsObjectDetectionConfiguration)config; if (cfg != null) { writer.WriteAttributeString("SelectedObject", cfg.SelectedObject.ToString()); } }
void VsICoreAnalyzerDescription.SaveConfiguration(System.Xml.XmlTextWriter writer, VsICoreAnalyzerConfiguration config) { VsFqiDetectionConfiguration cfg = (VsFqiDetectionConfiguration)config; if (cfg != null) { writer.WriteAttributeString("Threshold", cfg.Threshold.ToString()); } }
void VsICoreAnalyzerPage.SetConfiguration(VsICoreAnalyzerConfiguration config) { VsLipDetectionConfiguration cfg = (VsLipDetectionConfiguration)config; if (cfg != null) { this.trackBar1.Value = cfg.Threshold; } }
void VsICoreAnalyzerDescription.SaveConfiguration(System.Xml.XmlTextWriter writer, VsICoreAnalyzerConfiguration config) { VsLineDetectionConfiguration cfg = (VsLineDetectionConfiguration)config; if (cfg != null) { writer.WriteAttributeString("ThresholdStrong", cfg.ThresholdStrong.ToString()); writer.WriteAttributeString("ThresholdWeak", cfg.ThresholdWeak.ToString()); writer.WriteAttributeString("ThresholdHough", cfg.ThresholdHough.ToString()); } }
// Save configuration public void SaveConfiguration(XmlTextWriter writer, VsICoreAnalyzerConfiguration config) { try { analyserDesc.SaveConfiguration(writer, config); } catch (Exception err) { logger.Log(LogLevel.Error, err.Message + " " + err.Source + " " + err.StackTrace);; } }
// Create video source public VsICoreAnalyzer CreateAnalyserSource(long syncTimer, VsICoreAnalyzerConfiguration config) { try { return analyserDesc.CreateAnalyser(syncTimer, config); } catch (Exception err) { logger.Log(LogLevel.Error, err.Message + " " + err.Source + " " + err.StackTrace);; } return null; }
void VsICoreAnalyzerDescription.SaveConfiguration(System.Xml.XmlTextWriter writer, VsICoreAnalyzerConfiguration config) { VsMatchImageConfiguration cfg = (VsMatchImageConfiguration)config; if (cfg != null) { writer.WriteAttributeString("ThresholdStrong", cfg.ThresholdStrong.ToString()); writer.WriteAttributeString("ThresholdWeak", cfg.ThresholdWeak.ToString()); writer.WriteAttributeString("ThresholdHough", cfg.ThresholdHough.ToString()); } }
void VsICoreAnalyzerDescription.SaveConfiguration(System.Xml.XmlTextWriter writer, VsICoreAnalyzerConfiguration config) { VsObjectDetectionConfiguration cfg = (VsObjectDetectionConfiguration)config; if (cfg != null) { writer.WriteAttributeString("SelectedObject", cfg.SelectedObject.ToString()); } }
void VsICoreAnalyzerDescription.SaveConfiguration(System.Xml.XmlTextWriter writer, VsICoreAnalyzerConfiguration config) { VsMotionDetectionConfiguration cfg = (VsMotionDetectionConfiguration)config; if (cfg != null) { writer.WriteAttributeString("ThresholdAlpha", cfg.ThresholdAlpha.ToString()); writer.WriteAttributeString("ThresholdSigma", cfg.ThresholdSigma.ToString()); } }
void VsICoreAnalyzerPage.SetConfiguration(VsICoreAnalyzerConfiguration config) { VsDummyDetectionConfiguration cfg = (VsDummyDetectionConfiguration)config; if (cfg != null) { this.trackBar1.Value = cfg.ThresholdAlpha ; this.trackBar2.Value = cfg.ThresholdSigma; } }