Example #1
0
        static void TestBlockSpanFill(TestParms test)
        {
            DataFiller_Simulation df = new DataFiller_Simulation();

            df.Initialize(test);
            Block.SP.B_LargeSeededGrowManager_SpanFill lsg = new Block.SP.B_LargeSeededGrowManager_SpanFill();
            lsg.SetScale(test.image.width, test.image.height, test.image.depth, 50, 50, 20);
            Block.SP.ConcreteFills.B_LargeSpanFill_Threshold ff = new Block.SP.ConcreteFills.B_LargeSpanFill_Threshold();
            ff.SetThres(test.min, test.max);
            lsg.SetExecutor(ff);
            lsg.SetDataProvider(df);
            lsg.ExecuteSeededGrow(test.seed);
            Console.WriteLine("Block Based SpanFill Result Count :" + lsg.GetResult().Count);
            IO.WriteXYZFile(lsg.GetResult().resultSet, "test1.xyz");
        }
Example #2
0
        public static void TestLayerFloodFill(TestParms test)
        {
            DataFiller_Simulation df = new DataFiller_Simulation();

            df.Initialize(test);
            L_LargeSeededGrowManager_FloodFill lsg = new L_LargeSeededGrowManager_FloodFill();

            lsg.SetScale(test.image.width, test.image.height, test.image.depth, 20);
            L_LargeFloodFill_Threshold ff = new L_LargeFloodFill_Threshold();

            ff.SetThres(test.min, test.max);
            lsg.SetExecutor(ff);
            lsg.SetDataProvider(df);
            lsg.ExecuteSeededGrow(test.seed);
            Console.WriteLine("Layer Based FloodFill Result Count :" + lsg.resultCount);
        }
Example #3
0
        public static void TestLayerSpanFill(TestParms test)
        {
            DataFiller df = new DataFiller_Simulation();

            df.Initialize(test);
            L_LargeSeededGrowManager_SpanFill lsg = new L_LargeSeededGrowManager_SpanFill();

            lsg.SetScale(test.image.width, test.image.height, test.image.depth, 20);
            L_LargeSpanFill_Threshold ff = new L_LargeSpanFill_Threshold();

            ff.SetThres(test.min, test.max);
            lsg.SetExecutor(ff);
            lsg.SetDataProvider(df);
            lsg.ExecuteSeededGrow(test.seed);
            Console.WriteLine("Layer Based SpanFill Result Count :" + lsg.resultCount);
            //df.Close();
            //IO.WriteXYZFile(lsg.resultSet, "Test1.xyz");
            //return lsg.resultSet;
        }