Example #1
0
 public override void Initialize(TestParms test)
 {
     test.LoadData();
     allData = test.image.data;
     width   = test.image.width;
     height  = test.image.height;
     depth   = test.image.depth;
 }
Example #2
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());
        }
Example #3
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;
        }