Package com.alibaba.simpleimage.analyze.search.cluster

Examples of com.alibaba.simpleimage.analyze.search.cluster.Clusterable


                InterestPointInfoWriter.writeComplete(featfile, info);
            }

            Iterator<SURFInterestPoint> itr = surfPoints.iterator();
            while (itr.hasNext()) {
                Clusterable next = itr.next();
                if (next != null) {
                    if (count % useEvery == 0) {
                        points.add(next);
                    }
                    count++;
View Full Code Here


        // long end = 0;
        // long cost = 0;
        // start = System.currentTimeMillis();
        for (int j = 0; j < values.size(); j++) {
            // start = System.currentTimeMillis();
            Clusterable val = values.get(j);
            // end = System.currentTimeMillis();
            // start = System.currentTimeMillis();
            Clusterable nearestCluster = null;
            float minDistance = Float.MAX_VALUE;
            for (int i = 0; i < clusters.length; i++) {
                Clusterable cluster = clusters[i];
                float distance = ClusterUtils.getEuclideanDistance(val, cluster);

                if (distance < minDistance) {
                    nearestCluster = cluster;
                    minDistance = distance;
View Full Code Here

TOP

Related Classes of com.alibaba.simpleimage.analyze.search.cluster.Clusterable

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.