public class HarrisTest {
public static void main(String[] args) throws IOException {
BufferedImage bi = ImageIO.read(new File("/Users/axman/Downloads/logo/img/alipay_logo1.png"));
HarrisSurf tempalte_hs = new HarrisSurf(bi);
tempalte_hs.getDescriptions(tempalte_hs.detectInterestPoints(), false);
List<SURFInterestPoint> al = tempalte_hs.getInterestPoints();
BufferedImage bi1 = ImageIO.read(new File("/Users/axman/Downloads/logo/img/alipay_logo1.png"));
long start = System.currentTimeMillis();
for (int i = 0; i < 100; i++) {
HarrisSurf tempalte_hs1 = new HarrisSurf(bi1);
tempalte_hs1.getDescriptions(tempalte_hs.detectInterestPoints(), false);
List<SURFInterestPoint> al1 = tempalte_hs1.getInterestPoints();
Map<SURFInterestPoint, SURFInterestPoint> ms = HarrisSurf.match(al, al1);
HarrisSurf.joinsFilter(ms);
HarrisSurf.geometricFilter(ms, bi.getWidth(), bi.getHeight());
//System.out.println(ms.size());
}