Examples of IRectangularArea


Examples of net.algart.math.IRectangularArea

    }

    public Matrix<? extends UpdatablePArray> maskedDilationErosion(Matrix<? extends PArray> src,
        Pattern ptn1, Pattern ptn2)
    {
        IRectangularArea a = SUM_MAX_0.getAperture(src.dimCount(), ptn1, false, ptn2, true);
        return reduce(parent.maskedDilationErosion(extend(src, a), ptn1, ptn2), a);
    }
View Full Code Here

Examples of net.algart.math.IRectangularArea

    }

    public Matrix<? extends UpdatablePArray> maskedErosionDilation(Matrix<? extends PArray> src,
        Pattern ptn1, Pattern ptn2)
    {
        IRectangularArea a = SUM_MAX_0.getAperture(src.dimCount(), ptn1, true, ptn2, false);
        return reduce(parent.maskedErosionDilation(extend(src, a), ptn1, ptn2), a);
    }
View Full Code Here

Examples of net.algart.math.IRectangularArea

    public void dilation(
        Matrix<? extends UpdatablePArray> dest, Matrix<? extends PArray> src, Pattern pattern,
        boolean disableMemoryAllocation)
    {
        Matrices.checkDimensionEquality(dest, src);
        IRectangularArea a = (disableMemoryAllocation ? SUM_MAX_0 : SUM).getAperture(src.dimCount(), pattern, false);
        // SUM_MAX_0: including the origin is necessary while extending the destination matrix
        Matrix<? extends PArray> continued = extend(src, a);
        if (disableMemoryAllocation) { // in this case we should not create extra matrices
            parent.dilation(extend(dest, a, true), continued, pattern, disableMemoryAllocation);
        } else { // in this case destination matrix can be used as a temporary storage: it's better to work quickly
View Full Code Here

Examples of net.algart.math.IRectangularArea

    public void erosion(
        Matrix<? extends UpdatablePArray> dest, Matrix<? extends PArray> src, Pattern pattern,
        boolean disableMemoryAllocation)
    {
        Matrices.checkDimensionEquality(dest, src);
        IRectangularArea a = (disableMemoryAllocation ? SUM_MAX_0 : SUM).getAperture(src.dimCount(), pattern, true);
        // SUM_MAX_0: including the origin is necessary while extending the destination matrix
        Matrix<? extends PArray> continued = extend(src, a);
        if (disableMemoryAllocation) { // in this case we should not create extra matrices
            parent.erosion(extend(dest, a, true), continued, pattern, disableMemoryAllocation);
        } else { // in this case destination matrix can be used as a temporary storage: it's better to work quickly
View Full Code Here

Examples of net.algart.math.IRectangularArea

    public boolean isPseudoCyclic() {
        return tiler.continuationMode() == Matrix.ContinuationMode.PSEUDO_CYCLIC;
    }

    public Matrix<? extends PArray> asDilation(Matrix<? extends PArray> src, Pattern pattern) {
        IRectangularArea a = (parent.isPseudoCyclic() ? SUM : SUM_MAX_0).getAperture(src.dimCount(), pattern, false);
        src = DependenceApertureBuilder.extend(src, a, tiler.continuationMode());
        return DependenceApertureBuilder.reduce(parent.asDilation(src, pattern), a);
    }
View Full Code Here

Examples of net.algart.math.IRectangularArea

        src = DependenceApertureBuilder.extend(src, a, tiler.continuationMode());
        return DependenceApertureBuilder.reduce(parent.asDilation(src, pattern), a);
    }

    public Matrix<? extends PArray> asErosion(Matrix<? extends PArray> src, Pattern pattern) {
        IRectangularArea a = (parent.isPseudoCyclic() ? SUM : SUM_MAX_0).getAperture(src.dimCount(), pattern, true);
        src = DependenceApertureBuilder.extend(src, a, tiler.continuationMode());
        return DependenceApertureBuilder.reduce(parent.asErosion(src, pattern), a);
    }
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.