Example #1
0
        public MainWindow()
        {
            InitializeComponent();

            chromakey      = new Chromakey();
            imageConverter = new OpenCV.ImageConverter();
            orgImg         = new Image <Bgr, byte>(_width, _height);
            Application.Current.MainWindow.WindowState = WindowState.Maximized;
        }
Example #2
0
 private void button3_Click(object sender, EventArgs e)
 {
     if (bitmap1 != null && bitmap2 != null)
     {
         Chromakey chromaKey = new Chromakey(bitmap1, bitmap2);
         pictureBox1.Image    = chromaKey.ChromaKeyFullBitmap;
         pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;
     }
 }