@@ -0,0 +1,1395 @@
+/**%0A * Created by dongyi.kim on 2017-06-07.%0A */%0Apublic class TestClass %7B%0A%0A%0A%0A    public static void main(String%5B%5D args)%7B%0A%0A%0A        int tn = 10;%0A        for(int r = 0; r %3C= 120; r+=10)%7B%0A            int kernelSize = r * 2 + 1;%0A            MedianFilter%5B%5D filters = new MedianFilter%5B%5D%7B new HuangsFilter(kernelSize), new ProposedFilter(kernelSize)%7D;%0A            double%5B%5D cost = new double%5Bfilters.length%5D;%0A%0A            for(int t = 0 ; t %3C tn; t++)%7B%0A                int%5B%5D%5B%5D m = UtilClass.getRandomBoxesImage(1024,1024);%0A                long%5B%5D beginTimes = new long%5Bfilters.length%5D;%0A                long%5B%5D endTimes = new long%5Bfilters.length%5D;%0A%0A                for(int i = 0 ; i %3C filters.length; i++) %7B%0A                    System.gc();%0A                    beginTimes%5Bi%5D = System.currentTimeMillis();%0A                    filters%5Bi%5D.filtering(m);%0A                    endTimes%5Bi%5D = System.currentTimeMillis();%0A                %7D%0A%0A                for(int i = 0 ; i %3C filters.length; i++)%7B%0A                    double tc = (endTimes%5Bi%5D - beginTimes%5Bi%5D) / 1000.f;%0A                    cost%5Bi%5D += tc;%0A                %7D%0A            %7D%0A%0A            for(int i = 0 ; i %3C filters.length; i++)%7B%0A                cost%5Bi%5D /= (double)tn;%0A                System.out.printf(%22%25.5f %22, cost%5Bi%5D);%0A            %7D%0A            System.out.println();%0A%0A%0A        %7D%0A%0A//        for(int i = 0 ; i %3C cost.length; i++)%7B%0A%0A//        %7D%0A%0A    %7D%0A%0A%7D%0A

Create TestClass.java