Ejemplo n.º 1
0
        public void Interpret(InterpretArgs args)
        {
            List <Tree> features = FeatureDetectionLayer.GetFeaturesFromTree(args.Tree);

            foreach (Tree feature in features)
            {
                args.Remove(feature);
            }
        }
Ejemplo n.º 2
0
		public static int Main(string[] args){
			FeatureDetectionLayer layer = new FeatureDetectionLayer();
			layer.Init(null);
			Bitmap bmp = Bitmap.FromFile("../prefab/AdobePreferences.png");
			Dictionary<string, object> tags = new Dictionary<string, object>();
			Tree tree = Tree.FromPixels(bmp, tags);

			InterpretArgs iargs = new InterpretArgs(tree, new Tree.BatchTransform(tree), null);

			layer.Interpret(iargs);

			return 0;
		}
Ejemplo n.º 3
0
        public static int Main(string[] args)
        {
            FeatureDetectionLayer layer = new FeatureDetectionLayer();

            layer.Init(null);
            Bitmap bmp = Bitmap.FromFile("../prefab/AdobePreferences.png");
            Dictionary <string, object> tags = new Dictionary <string, object>();
            Tree tree = Tree.FromPixels(bmp, tags);

            InterpretArgs iargs = new InterpretArgs(tree, new Tree.BatchTransform(tree), null);

            layer.Interpret(iargs);

            return(0);
        }