Пример #1
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);
        }
Пример #2
0
        public static void TestFloodFill(TestParms test)
        {
            L_LargeFloodFill_Threshold ff = new L_LargeFloodFill_Threshold();

            test.LoadData();
            ff.SetThres(test.min, test.max);
            ff.ExecuteSeededGrow(new FloodFillInput(
                                     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 <Int16Triple>()
            {
                test.seed
            }, false, false, true)
                                 );
            Console.WriteLine("FloodFill Result Count :" + ff.GetResult());
            return;
        }