Package com.alibaba.simpleimage.analyze.sift.render

Examples of com.alibaba.simpleimage.analyze.sift.render.RenderImage


            }
        });
        int i = 0;
        for (File logoFile : logoFiles) {
            BufferedImage img = ImageIO.read(logoFile);
            RenderImage ri = new RenderImage(img);
            SIFT sift = new SIFT();
            sift.detectFeatures(ri.toPixelFloatArray(null));
            List<KDFeaturePoint> al = sift.getGlobalKDFeaturePoints();
            KDFeaturePointListInfo info = new KDFeaturePointListInfo();
            info.setHeight(img.getHeight());
            info.setWidth(img.getWidth());
            info.setImageFile(logoFile.getName());
View Full Code Here


  public static void main(String[] args) throws Exception {

    BufferedImage img = ImageIO.read(new File(
        "/Users/axman/Downloads/min.png"));
    RenderImage ri = new RenderImage(img);
    SIFT sift = new SIFT();
    sift.detectFeatures(ri.toPixelFloatArray(null));
    List<KDFeaturePoint> al = sift.getGlobalKDFeaturePoints();

    BufferedImage img1 = ImageIO.read(new File(
        "/Users/axman/Downloads/big.png"));
    RenderImage ri1 = new RenderImage(img1);
    SIFT sift1 = new SIFT();
    sift1.detectFeatures(ri1.toPixelFloatArray(null));
    List<KDFeaturePoint> al1 = sift1.getGlobalKDFeaturePoints();

    List<Match> ms = MatchKeys.findMatchesBBF(al1, al);
    ms = MatchKeys.filterMore(ms);
    //ms = MatchKeys.filterFarMatchL(ms, img.getWidth(), img.getHeight());
View Full Code Here

public class RenderImageTest extends TestCase {

    public void testRenderImage() throws Exception {

        BufferedImage bi = ImageIO.read(this.getClass().getResource("/test.png"));
        RenderImage ri = new RenderImage(bi);
        ImagePixelArray arr = ri.toPixelFloatArray(null);
        DumpImage.dump(arr, "/Users/axman/Downloads/arr.jpg");
        //arr = arr.doubled();
        Pyramid pyr = new Pyramid();
        pyr.buildOctaves(arr, 0.5f, 3, 1.6f, 32);
       
View Full Code Here

TOP

Related Classes of com.alibaba.simpleimage.analyze.sift.render.RenderImage

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.