Package com.alibaba.security.simpleimage.analyze.harissurf

Examples of com.alibaba.security.simpleimage.analyze.harissurf.SURFInterestPointN


            File f = new File(fileName);
            fis = new ObjectInputStream(new FileInputStream(f));
            int count = fis.readInt();
            List<SURFInterestPointN> al = new ArrayList<SURFInterestPointN>();
            for (int i = 0; i < count; i++) {
                SURFInterestPointN ip = (SURFInterestPointN) fis.readObject();
                al.add(ip);
            }
            int w = fis.readInt();
            int h = fis.readInt();
            InterestPointNListInfo ipln = new InterestPointNListInfo();
View Full Code Here


            if (kpNNList.size() < 2) throw (new IllegalArgumentException("BUG: less than two neighbours!"));
            KDTree.BestEntry be1 = (KDTree.BestEntry) kpNNList.get(0);
            KDTree.BestEntry be2 = (KDTree.BestEntry) kpNNList.get(1);
            if ((be1.getDist() / be2.getDist()) > ModifiableConst.getTowPntDistRatio()) continue;
            // XXX:最近邻点和次近邻点的距离比值
            SURFInterestPointN kpN = (SURFInterestPointN) be1.getNeighbour();
            if (Math.abs(kpN.getOrientation() - sp.getOrientation()) > ModifiableConst.getTowPntOrientationMinus())
            // continue;
            // if (Math.abs(kpN.getScale() - kp.getScale()) > ModifiableConst.getTowPntScaleMinus()) continue;
            matches.add(new SurfMatch(sp, kpN, be1.getDist(), be2.getDist()));
        }
        return (matches);
View Full Code Here

TOP

Related Classes of com.alibaba.security.simpleimage.analyze.harissurf.SURFInterestPointN

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.