Examples of lowerSurface()


Examples of net.algart.math.patterns.UniformGridPattern.lowerSurface()

        Set<Point> points = p.points();
        System.out.println(points.size() + " points");
        if (points.size() < 1000) {
            System.out.println(new TreeSet<Point>(points));
        }
        points = p.lowerSurface(0).points();
        System.out.println(points.size() + " left points:");
        if (points.size() < 1000) {
            System.out.println(new TreeSet<Point>(points));
        }
        points = p.upperSurface(0).points();
View Full Code Here

Examples of net.algart.math.patterns.UniformGridPattern.lowerSurface()

        long size = srcArray.length();
        long[] shifts = BasicMorphology.toShifts(null, size, dimensions, pattern, false);
        if (shifts.length == 0)
            throw new AssertionError("Empty pattern: it is impossible");
        UniformGridPattern roundedPattern = pattern.round();
        long[] leftShifts = BasicMorphology.toShifts(null, size, dimensions, roundedPattern.lowerSurface(0), false);
        long[] rightShifts = BasicMorphology.toShifts(null, size, dimensions, roundedPattern.upperSurface(0), false);
        if (leftShifts.length != rightShifts.length)
            throw new AssertionError("Unbalanced pattern.lowerSurface / pattern.upperSurface: different lengths");
        PArray processed = asProcessed(requiredType, srcArray, additionalArrays, dimensions,
            shifts, leftShifts, rightShifts);
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.