Package com.alibaba.simpleimage.analyze.harissurf

Examples of com.alibaba.simpleimage.analyze.harissurf.HarrisSurf


                }
                String target = pntDir + f.getName() + ".rsurfn";

                List<SURFInterestPointN> al = null;
                if (bi != null) {
                    HarrisSurf tempalte_hs = new HarrisSurf(bi);
                    tempalte_hs.getDescriptions(tempalte_hs.detectInterestPoints(), true);
                    al = tempalte_hs.getGlobalNaturalInterestPoints();
                }
                if (al == null) al = new ArrayList<SURFInterestPointN>();
                InterestPointNListInfo ipl = new InterestPointNListInfo();
                ipl.setList(al);
                ipl.setWidth(bi == null ? 0 : bi.getWidth());
View Full Code Here


                } catch (IOException e) {
                    e.printStackTrace();
                    continue;
                }

                HarrisSurf hs = new HarrisSurf(image);
                hs.getDescriptions(hs.detectInterestPoints(), false);
                surfPoints = hs.getInterestPoints();
                info = new InterestPointListInfo();
                info.setHeight(image.getHeight());
                info.setWidth(image.getWidth());
                info.setList(surfPoints);
                info.setImageFile(tmp + ".jpg");
View Full Code Here

                }
                String target = pntDir + f.getName() + ".surf";

                List<SURFInterestPoint> al = null;
                if (bi != null) {
                    HarrisSurf tempalte_hs = new HarrisSurf(bi);
                    tempalte_hs.getDescriptions(tempalte_hs.detectInterestPoints(), false);
                    al = tempalte_hs.getInterestPoints();
                }
                if (al == null) al = new ArrayList<SURFInterestPoint>();
                InterestPointListInfo ipl = new InterestPointListInfo();
                ipl.setList(al);
                ipl.setWidth(bi == null ? 0 : bi.getWidth());
View Full Code Here

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());
        }
View Full Code Here

                }
                String target = pntDir + f.getName() + ".rsurf";

                List<SURFInterestPoint> al = null;
                if (bi != null) {
                    HarrisSurf tempalte_hs = new HarrisSurf(bi);
                    tempalte_hs.getDescriptions(tempalte_hs.detectInterestPoints(), true);
                    al = tempalte_hs.getInterestPoints();
                }
                if (al == null) al = new ArrayList<SURFInterestPoint>();
                InterestPointListInfo ipl = new InterestPointListInfo();
                ipl.setList(al);
                ipl.setWidth(bi == null ? 0 : bi.getWidth());
View Full Code Here

TOP

Related Classes of com.alibaba.simpleimage.analyze.harissurf.HarrisSurf

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.