Ejemplo n.º 1
0
        public CWatcher(
            CWatchImage[] cWatchImages,
            string name,
            WatcherType watcherType,
            ColorSpace colorSpace,
            int channel,
            bool equalize,
            ErrorMetric errorMetric
            )
        {
            Name         = name;
            WatcherType  = watcherType;
            ColorSpace   = colorSpace;
            Channel      = channel;
            Equalize     = equalize;
            ErrorMetric  = errorMetric;
            CWatchImages = cWatchImages;

            IsStandard       = WatcherType.Equals(WatcherType.Standard);
            IsDuplicateFrame = WatcherType.Equals(WatcherType.DuplicateFrame);
        }
        public CWatcher(CWatchImage[] cWatchImages, Watcher watcher)
        {
            Name         = watcher.Name;
            WatcherType  = watcher.WatcherType;
            ColorSpace   = watcher.ColorSpace;
            Channel      = watcher.Channel;
            Equalize     = watcher.Equalize;
            ErrorMetric  = watcher.ErrorMetric;
            CWatchImages = cWatchImages;

            IsStandard       = WatcherType.Equals(WatcherType.Standard);
            IsDuplicateFrame = WatcherType.Equals(WatcherType.DuplicateFrame);
        }