Class MatrixPairMorphology

java.lang.Object
net.algart.matrices.morphology.MatrixPairMorphology

public final class MatrixPairMorphology extends Object
  • Method Details

    • newInstance

      public static MatrixPairMorphology newInstance(Matrix<? extends UpdatablePArray> work)
    • isMultithreading

      public boolean isMultithreading()
    • setMultithreading

      public MatrixPairMorphology setMultithreading(boolean multithreading)
    • continuationMode

      public Matrix.ContinuationMode continuationMode()
    • setContinuationMode

      public MatrixPairMorphology setContinuationMode(Matrix.ContinuationMode continuationMode)
      Sets continuation model.

      Note: if the continuation mode is not specified (null), this class works with maximal performance, but the results near matrix boundary are not strictly specified. Really, in this case the current implmentation uses CYCLIC or PSEUDO_CYCLIC mode, but it can change in future versions.

      Parameters:
      continuationMode - new continuation mode; may be null, then will be chosen automatically to provide better performance
      Returns:
      a reference to this object.
    • setMatrixToProcess

      public MatrixPairMorphology setMatrixToProcess(Matrix<? extends UpdatablePArray> matrix)
    • copyFrom

      public MatrixPairMorphology copyFrom(Matrix<? extends PArray> source)
    • openBySquare

      public MatrixPairMorphology openBySquare(long side)
    • closeBySquare

      public MatrixPairMorphology closeBySquare(long side)
    • dilationBySquare

      public static void dilationBySquare(Matrix<? extends UpdatablePArray> matrix, Matrix<? extends UpdatablePArray> temporaryMatrix, long side)
    • dilationBySquare

      public MatrixPairMorphology dilationBySquare(long side)
    • dilationByDoubleSquare

      public MatrixPairMorphology dilationByDoubleSquare(int halfSide)
    • dilationByRectangle

      public MatrixPairMorphology dilationByRectangle(long minX, long minY, long sizeX, long sizeY)
    • dilationByRectangle

      public MatrixPairMorphology dilationByRectangle(long minX, long minY, long sizeX, long sizeY, boolean provideResult)
    • dilationByOctagonWithDiameter

      public MatrixPairMorphology dilationByOctagonWithDiameter(long diameter)
    • dilationByOctagon

      public MatrixPairMorphology dilationByOctagon(long radius)
    • dilationByOctagon

      public MatrixPairMorphology dilationByOctagon(long radius, boolean addHalf)
    • erosionBySquare

      public static void erosionBySquare(Matrix<? extends UpdatablePArray> matrix, Matrix<? extends UpdatablePArray> temporaryMatrix, long side)
    • erosionBySquare

      public MatrixPairMorphology erosionBySquare(long side)
    • erosionByDoubleSquare

      public MatrixPairMorphology erosionByDoubleSquare(int halfSide)
    • erosionByRectangle

      public MatrixPairMorphology erosionByRectangle(long minX, long minY, long sizeX, long sizeY)
    • erosionByRectangle

      public MatrixPairMorphology erosionByRectangle(long minX, long minY, long sizeX, long sizeY, boolean provideResult)
    • erosionByOctagonWithDiameter

      public MatrixPairMorphology erosionByOctagonWithDiameter(long diameter)
    • erosionByOctagon

      public MatrixPairMorphology erosionByOctagon(long radius)
    • erosionByOctagon

      public MatrixPairMorphology erosionByOctagon(long radius, boolean addHalf)
    • shiftAndSwap

      public void shiftAndSwap(IPoint p)
    • shiftBackAndSwap

      public void shiftBackAndSwap(IPoint p)
    • dilationAndSwap

      public void dilationAndSwap(IPoint p1, IPoint p2)
    • dilationAndSwap

      public void dilationAndSwap(List<IPoint> points)
    • dilationAndSwap

      public void dilationAndSwap(Pattern pattern)
    • erosionAndSwap

      public void erosionAndSwap(IPoint p1, IPoint p2)
    • erosionAndSwap

      public void erosionAndSwap(List<IPoint> points)
    • erosionAndSwap

      public void erosionAndSwap(Pattern pattern)
    • provideResult

      public void provideResult()
    • getSinglethreadingMorphology

      public Morphology getSinglethreadingMorphology()
    • getMorphology

      public Morphology getMorphology()