Package net.algart.matrices.morphology
Class MatrixPairMorphology
java.lang.Object
net.algart.matrices.morphology.MatrixPairMorphology
-
Method Summary
Modifier and TypeMethodDescriptioncloseBySquare
(long side) void
dilationAndSwap
(List<IPoint> points) void
dilationAndSwap
(IPoint p1, IPoint p2) void
dilationAndSwap
(Pattern pattern) dilationByDoubleSquare
(int halfSide) dilationByOctagon
(long radius) dilationByOctagon
(long radius, boolean addHalf) dilationByOctagonWithDiameter
(long diameter) dilationByRectangle
(long minX, long minY, long sizeX, long sizeY) dilationByRectangle
(long minX, long minY, long sizeX, long sizeY, boolean provideResult) dilationBySquare
(long side) static void
dilationBySquare
(Matrix<? extends UpdatablePArray> matrix, Matrix<? extends UpdatablePArray> temporaryMatrix, long side) void
erosionAndSwap
(List<IPoint> points) void
erosionAndSwap
(IPoint p1, IPoint p2) void
erosionAndSwap
(Pattern pattern) erosionByDoubleSquare
(int halfSide) erosionByOctagon
(long radius) erosionByOctagon
(long radius, boolean addHalf) erosionByOctagonWithDiameter
(long diameter) erosionByRectangle
(long minX, long minY, long sizeX, long sizeY) erosionByRectangle
(long minX, long minY, long sizeX, long sizeY, boolean provideResult) erosionBySquare
(long side) static void
erosionBySquare
(Matrix<? extends UpdatablePArray> matrix, Matrix<? extends UpdatablePArray> temporaryMatrix, long side) boolean
static MatrixPairMorphology
newInstance
(Matrix<? extends UpdatablePArray> work) openBySquare
(long side) void
setContinuationMode
(Matrix.ContinuationMode continuationMode) Sets continuation model.setMatrixToProcess
(Matrix<? extends UpdatablePArray> matrix) setMultithreading
(boolean multithreading) void
void
-
Method Details
-
newInstance
-
isMultithreading
public boolean isMultithreading() -
setMultithreading
-
continuationMode
-
setContinuationMode
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
-
copyFrom
-
openBySquare
-
closeBySquare
-
dilationBySquare
public static void dilationBySquare(Matrix<? extends UpdatablePArray> matrix, Matrix<? extends UpdatablePArray> temporaryMatrix, long side) -
dilationBySquare
-
dilationByDoubleSquare
-
dilationByRectangle
-
dilationByRectangle
public MatrixPairMorphology dilationByRectangle(long minX, long minY, long sizeX, long sizeY, boolean provideResult) -
dilationByOctagonWithDiameter
-
dilationByOctagon
-
dilationByOctagon
-
erosionBySquare
public static void erosionBySquare(Matrix<? extends UpdatablePArray> matrix, Matrix<? extends UpdatablePArray> temporaryMatrix, long side) -
erosionBySquare
-
erosionByDoubleSquare
-
erosionByRectangle
-
erosionByRectangle
public MatrixPairMorphology erosionByRectangle(long minX, long minY, long sizeX, long sizeY, boolean provideResult) -
erosionByOctagonWithDiameter
-
erosionByOctagon
-
erosionByOctagon
-
shiftAndSwap
-
shiftBackAndSwap
-
dilationAndSwap
-
dilationAndSwap
-
dilationAndSwap
-
erosionAndSwap
-
erosionAndSwap
-
erosionAndSwap
-
provideResult
public void provideResult() -
getSinglethreadingMorphology
-
getMorphology
-