Exemple #1
0
        public MarkerDetetection()
        {
            Emgu.CV.Image <Emgu.CV.Structure.Bgr, byte> m = new Image <Bgr, byte>("marker2.bmp");
            Emgu.CV.Image <Gray, byte> gray = m.Convert <Gray, byte>();
            gray = gray.Resize(30, 30, INTER.CV_INTER_LINEAR);
            gray._ThresholdBinary(new Gray(50), new Gray(255.0));
            _marker      = gray;
            _marker_size = _marker.Width;

            _dest = new PointF[] {
                new PointF(0, 0),
                new PointF(0, _marker_size),
                new PointF(_marker_size, _marker_size),
                new PointF(_marker_size, 0)
            };

            _roi = new Image <Gray, byte>(_marker_size, _marker_size);
            _tmp = new Image <Gray, byte>(_marker_size, _marker_size);
        }