Package com.alibaba.security.simpleimage.analyze.reftype

Examples of com.alibaba.security.simpleimage.analyze.reftype.RefDouble


        }

        // step 8
        IKDTreeDomain nearest = null;

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

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

        // step 10
        if (furtherHr.isInReach(target, Math.sqrt(maxDistSq))) {
            double 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
            RefDouble tempDistSq = new RefDouble();
            IKDTreeDomain tempNearest = null;
            if (furtherKd == null) {
                tempDistSq.val = Double.POSITIVE_INFINITY;
            } else {
                tempNearest = furtherKd.nearestNeighbourI(target, furtherHr, maxDistSq, tempDistSq);
View Full Code Here


            ImageMap space = spaces[point.level];
            if (x <= 0 || x >= (space.xDim - 1)) return (true);
            if (y <= 0 || y >= (space.yDim - 1)) return (true);

            RefDouble dp = new RefDouble();
            SimpleMatrix adj = getAdjustment(point, point.level, x, y, dp);

            // Get adjustments and check if we require further adjustments due
            // to pixel level moves. If so, turn the adjustments into real
            // changes and continue the loop. Do not adjust the plane, as we
View Full Code Here

TOP

Related Classes of com.alibaba.security.simpleimage.analyze.reftype.RefDouble

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.