public void Instalize()
        {
            StructureMapConfigure.Configure();
            var container = StructureMapConfigure.Container;

            _memoryReader = container.GetInstance <ISampleReader>("Memory");
        }
Exemple #2
0
        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();
            }
        }
Exemple #3
0
 public SpectrumVideoSource(FileStream fs, ISampleReader reader)
 {
     this.fs     = fs;
     this.reader = reader;
 }