Examples of KDFeaturePoint


Examples of com.alibaba.simpleimage.analyze.sift.scale.KDFeaturePoint

    Graphics2D g = outputImage.createGraphics();
    g.drawImage(logo, 0, 0, lw, lh, null);
    g.drawImage(model, lw, lh, mw, mh, null);
    g.setColor(Color.GREEN);
    for (Match m : ms) {
      KDFeaturePoint fromPoint = m.fp1;
      KDFeaturePoint toPoint = m.fp2;
      g.drawLine((int) fromPoint.x, (int) fromPoint.y, (int) toPoint.x
          + lw, (int) toPoint.y + lh);
    }
    g.dispose();
    FileOutputStream fos = new FileOutputStream(file);
View Full Code Here

Examples of com.alibaba.simpleimage.analyze.sift.scale.KDFeaturePoint

        if (globalKDFeaturePoints != null) return (globalKDFeaturePoints);
        if (globalFeaturePoints == null) throw (new IllegalArgumentException("No featurePoints generated yet."));
        globalKDFeaturePoints = new ArrayList<KDFeaturePoint>();
        for (FeaturePoint fp : globalFeaturePoints) {
            globalKDFeaturePoints.add(new KDFeaturePoint(fp));
        }
        return globalKDFeaturePoints;
    }
View Full Code Here

Examples of com.alibaba.simpleimage.analyze.sift.scale.KDFeaturePoint

            KDTree.BestEntry be2 = (KDTree.BestEntry) kpNNList.get(1);
            if ((be1.getDist() / be2.getDist()) > ModifiableConst.getTowPntDistRatio()) {
                continue;
            }
            // XXX:
            KDFeaturePoint kpN = (KDFeaturePoint) be1.getNeighbour();
            if (Math.abs(kpN.orientation - kp.orientation) > ModifiableConst.getTowPntOrientationMinus()) {
                continue;
            }
            // if (Math.abs(kpN.getScale() - kp.getScale()) > ModifiableConst.getTowPntScaleMinus()) continue;
            matches.add(new Match(kp, kpN, be1.getDist(), be2.getDist()));
View Full Code Here

Examples of com.alibaba.simpleimage.analyze.sift.scale.KDFeaturePoint

            fis = new ObjectInputStream(new FileInputStream(f));
            int count = fis.readInt();
            if (count == 0) return null;
            List<KDFeaturePoint> al = new ArrayList<KDFeaturePoint>();
            for (int i = 0; i < count; i++) {
                KDFeaturePoint kp = (KDFeaturePoint) fis.readObject();
                al.add(kp);
            }
            int w = fis.readInt();
            int h = fis.readInt();
            KDFeaturePointListInfo kfl = new KDFeaturePointListInfo();
View Full Code Here

Examples of com.alibaba.simpleimage.analyze.sift.scale.KDFeaturePoint

        try {
            int count = fis.readInt();
            if (count == 0) return null;
            List<KDFeaturePoint> al = new ArrayList<KDFeaturePoint>();
            for (int i = 0; i < count; i++) {
                KDFeaturePoint kp = (KDFeaturePoint) fis.readObject();
                al.add(kp);
            }
            int w = fis.readInt();
            int h = fis.readInt();
            KDFeaturePointListInfo kfl = new KDFeaturePointListInfo();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.