Exemplo n.º 1
0
        public void Instalize()
        {
            StructureMapConfigure.Configure();
            var container = StructureMapConfigure.Container;

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