Class PlanePyramidTools
java.lang.Object
net.algart.matrices.maps.pyramids.io.api.PlanePyramidTools
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanareVeryLittleSizes(long dimX, long dimY) static net.algart.arrays.Matrix<? extends net.algart.arrays.PArray>asBackground(Class<?> elementType, long dimX, long dimY, double[] backgroundColor) static List<net.algart.arrays.Matrix<? extends net.algart.arrays.PArray>>buildPyramid(net.algart.arrays.Matrix<? extends net.algart.arrays.PArray> matrix) static List<net.algart.arrays.Matrix<? extends net.algart.arrays.PArray>>buildPyramid(net.algart.arrays.Matrix<? extends net.algart.arrays.PArray> matrix, int compression) static intdefaultCompression(PlanePyramidSource source) static List<net.algart.arrays.Matrix<? extends net.algart.arrays.PArray>>equalizePrecisionToTheBest(List<? extends net.algart.arrays.Matrix<? extends net.algart.arrays.PArray>> matrices) static voidfillMatrix(net.algart.arrays.Matrix<? extends net.algart.arrays.UpdatablePArray> m, double[] color) static voidfillMatrix(net.algart.arrays.Matrix<? extends net.algart.arrays.UpdatablePArray> m, long fromX, long fromY, long toX, long toY, double[] color) static voidfillMatrix(net.algart.arrays.Matrix<? extends net.algart.arrays.UpdatablePArray> m, long fromX, long fromY, long toX, long toY, Color color) static voidfillMatrix(net.algart.arrays.Matrix<? extends net.algart.arrays.UpdatablePArray> m, Color color) static intfindCompression(long[] dimensionsOfSomeLevel, long[] dimensionsOnNextLevel) static booleanisDimensionsRelationCorrect(long[] dimOfSomeLevel, long[] dimOfNextLevel, int compression) static intnumberOfResolutions(long dimX, long dimY, int compression, long minimalPyramidSize) Returns the number of resolution in the pyramid with the largest (zero) level dimX x dimY, with given compression between neighbour levels and with the last level less than minimalPyramidSize x minimalPyramidSize.static net.algart.arrays.Matrix<? extends net.algart.arrays.PArray>static IOExceptionrmiSafeWrapper(Exception nonStandardException) static double
-
Field Details
-
MIN_PYRAMID_LEVEL_SIDE
public static final int MIN_PYRAMID_LEVEL_SIDE- See Also:
-
-
Method Details
-
readSpecialOrSmallestMatrix
public static net.algart.arrays.Matrix<? extends net.algart.arrays.PArray> readSpecialOrSmallestMatrix(PlanePyramidSource source, PlanePyramidSource.SpecialImageKind kind) throws NotYetConnectedException - Throws:
NotYetConnectedException
-
isDimensionsRelationCorrect
public static boolean isDimensionsRelationCorrect(long[] dimOfSomeLevel, long[] dimOfNextLevel, int compression) -
findCompression
public static int findCompression(long[] dimensionsOfSomeLevel, long[] dimensionsOnNextLevel) -
numberOfResolutions
public static int numberOfResolutions(long dimX, long dimY, int compression, long minimalPyramidSize) Returns the number of resolution in the pyramid with the largest (zero) level dimX x dimY, with given compression between neighbour levels and with the last level less than minimalPyramidSize x minimalPyramidSize. But the result is never less than 1, even if the specified dimX and dimY are already less than minimalPyramidSize (in this case 1 returned).- Parameters:
dimX- width of zero-level (largest) level.dimY- height of zero-level (largest) level.compression- compression between neighbour levels, usually 2 or 4.minimalPyramidSize- minimal size of resulting levels.- Returns:
- the number of resolutions in the resulting pyramid, always ≥1.
-
areVeryLittleSizes
public static boolean areVeryLittleSizes(long dimX, long dimY) -
rmiSafeWrapper
-
defaultCompression
-
equalizePrecisionToTheBest
-
asBackground
public static net.algart.arrays.Matrix<? extends net.algart.arrays.PArray> asBackground(Class<?> elementType, long dimX, long dimY, double[] backgroundColor) -
fillMatrix
public static void fillMatrix(net.algart.arrays.Matrix<? extends net.algart.arrays.UpdatablePArray> m, long fromX, long fromY, long toX, long toY, Color color) -
fillMatrix
public static void fillMatrix(net.algart.arrays.Matrix<? extends net.algart.arrays.UpdatablePArray> m, long fromX, long fromY, long toX, long toY, double[] color) -
fillMatrix
public static void fillMatrix(net.algart.arrays.Matrix<? extends net.algart.arrays.UpdatablePArray> m, Color color) -
fillMatrix
public static void fillMatrix(net.algart.arrays.Matrix<? extends net.algart.arrays.UpdatablePArray> m, double[] color) -
buildPyramid
public static List<net.algart.arrays.Matrix<? extends net.algart.arrays.PArray>> buildPyramid(net.algart.arrays.Matrix<? extends net.algart.arrays.PArray> matrix) -
buildPyramid
public static List<net.algart.arrays.Matrix<? extends net.algart.arrays.PArray>> buildPyramid(net.algart.arrays.Matrix<? extends net.algart.arrays.PArray> matrix, int compression) -
usedMemory
public static double usedMemory()
-