Ejemplo n.º 1
0
        public detect_blobs()
        {
            MinHeightBeaninFrame = 3;
            isMaster             = true;

            cfg = SettingsManager.Instance.GetCurrent(System.Windows.Forms.Application.StartupPath);

            ThresholdType_METHOD = (ThresholdType)cfg.BinMethod;
            ThresholdType_VAL    = (byte)cfg.BinVal;
            ThresholdType_MAX    = 255;

            colorRange = new ColorRange("Red");

            listOfFilter   = (new filters.manager()).get();
            lineColorEmpty = (new filters.manager()).getColorEmpty();
        }
Ejemplo n.º 2
0
        public detect_blobs(ColorRange cr, ThresholdType tm = ThresholdType.BinaryInv, byte tv = 170, byte tmx = 255,
                            int minHeightBeaninFrame        = 2, bool ismaster = true)
        {
            MinHeightBeaninFrame = minHeightBeaninFrame;
            isMaster             = ismaster;

            cfg = SettingsManager.Instance.GetCurrent(System.Windows.Forms.Application.StartupPath);

            ThresholdType_METHOD = (ThresholdType)cfg.BinMethod;
            ThresholdType_VAL    = (byte)cfg.BinVal;
            ThresholdType_MAX    = tmx;

            colorRange = cr;

            listOfFilter   = (new filters.manager()).get();
            lineColorEmpty = (new filters.manager()).getColorEmpty();
        }