public void Instalize() { StructureMapConfigure.Configure(); var container = StructureMapConfigure.Container; _memoryReader = container.GetInstance <ISampleReader>("Memory"); }
void Begin_Click(object sender, EventArgs e) { Sampler?.Dispose(); switch (SamplerBox.SelectedIndex) { case 0: Sampler = new SampleReaders.CameraSampler(0); Sampler.Recognizers.Add(new SampleRecognizers.HarrisCorner()); break; } if(Sampler is SampleReaders.WindowSamplerBase window) { window.BeginUpdate(); } }
public SpectrumVideoSource(FileStream fs, ISampleReader reader) { this.fs = fs; this.reader = reader; }