Package com.alibaba.simpleimage.analyze

Examples of com.alibaba.simpleimage.analyze.RefFloat


        }

        // step 8
        IKDTreeDomain nearest = null;

        RefFloat distSq = new RefFloat();
        if (nearerKd == null) {
            distSq.val = Float.POSITIVE_INFINITY;
        } else {
            nearest = nearerKd.nearestNeighbourI(target, nearerHr, maxDistSq, distSq);
        }

        // step 9
        maxDistSq = (float) Math.min(maxDistSq, distSq.val);

        // step 10
        if (furtherHr.isInReach(target, (float) Math.sqrt(maxDistSq))) {
            float ptDistSq = KDTree.distanceSq(pivot, target);
            if (ptDistSq < distSq.val) {
                // steps 10.1.1 to 10.1.3
                nearest = pivot;
                distSq.val = ptDistSq;
                maxDistSq = distSq.val;
            }

            // step 10.2
            RefFloat tempDistSq = new RefFloat();
            IKDTreeDomain tempNearest = null;
            if (furtherKd == null) {
                tempDistSq.val = Float.POSITIVE_INFINITY;
            } else {
                tempNearest = furtherKd.nearestNeighbourI(target, furtherHr, maxDistSq, tempDistSq);
View Full Code Here


            ImagePixelArray space = diffImags[peak.level];
            if (x <= 0 || x >= (space.width - 1)) return (true);
            if (y <= 0 || y >= (space.height - 1)) return (true);

            RefFloat dp = new RefFloat();
            AdjustedArray adj = getAdjustment(peak, peak.level, x, y, dp);

            float adjS = adj.data[0];
            float adjY = adj.data[1];
            float adjX = adj.data[2];
View Full Code Here

            ImagePixelArray space = diffImags[peak.level];
            if (x <= 0 || x >= (space.width - 1)) return (true);
            if (y <= 0 || y >= (space.height - 1)) return (true);

            RefFloat dp = new RefFloat();
            AdjustedArray adj = getAdjustment(peak, peak.level, x, y, dp);

            float adjS = adj.data[0];
            float adjY = adj.data[1];
            float adjX = adj.data[2];
View Full Code Here

TOP

Related Classes of com.alibaba.simpleimage.analyze.RefFloat

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.