Пример #1
0
        public static void TestSpanFill(TestParms test)
        {
            test.LoadData();
            L_LargeSpanFill_Threshold ff = new L_LargeSpanFill_Threshold();

            ff.SetThres(test.min, test.max);
            ff.ExecuteSeededGrow(new SpanFillInput(
                                     test.image.data, test.image.width, test.image.height, test.image.depth,
                                     new FlagMap3d(test.image.width, test.image.height, test.image.depth), new List <Range>(), test.seed, false, false, true)
                                 );
            Console.WriteLine("SpanFill Result Count :" + ff.GetResult());
        }
Пример #2
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;
        }