public class InputSanityCheck
extends java.lang.Object
| Constructor and Description |
|---|
InputSanityCheck() |
| Modifier and Type | Method and Description |
|---|---|
static <In extends ImageGray,Out extends ImageGray> |
checkDeclare(In input,
Out output,
java.lang.Class<Out> typeOut)
If the output has not been declared a new instance is declared.
|
static <T extends ImageGray> |
checkDeclare(T input,
T output)
If the output has not been declared a new instance is declared.
|
static <T extends ImageGray> |
checkReshape(T target,
ImageGray testImage,
java.lang.Class<T> targetType)
Checks to see if the target image is null or if it is a different size than
the test image.
|
static void |
checkSameShape(ImageBase<?> imgA,
ImageBase<?> imgB) |
static void |
checkSameShape(ImageBase<?> imgA,
ImageBase<?> imgB,
ImageBase<?> imgC) |
static void |
checkSameShape(ImageBase<?> imgA,
ImageBase<?> imgB,
ImageBase<?> imgC,
ImageBase<?> imgD) |
static void |
checkSameShape(ImageBase<?> imgA,
ImageBase<?> imgB,
ImageBase<?> imgC,
ImageBase<?> imgD,
ImageBase<?> imgE) |
static void |
checkSameShape(ImagePyramid<?> imgA,
ImagePyramid<?> imgB) |
static void |
checkSameShapeB(ImageMultiBand<?> imgA,
ImageMultiBand<?> imgB) |
static void |
checkSubimage(ImageBase image)
Makes sure the input image is not a sub-image
|
public static <T extends ImageGray> T checkReshape(T target, ImageGray testImage, java.lang.Class<T> targetType)
T - target - testImage - targetType - public static <T extends ImageGray> T checkDeclare(T input, T output)
public static <In extends ImageGray,Out extends ImageGray> Out checkDeclare(In input, Out output, java.lang.Class<Out> typeOut)
public static void checkSameShapeB(ImageMultiBand<?> imgA, ImageMultiBand<?> imgB)
public static void checkSameShape(ImagePyramid<?> imgA, ImagePyramid<?> imgB)
public static void checkSameShape(ImageBase<?> imgA, ImageBase<?> imgB, ImageBase<?> imgC)
public static void checkSameShape(ImageBase<?> imgA, ImageBase<?> imgB, ImageBase<?> imgC, ImageBase<?> imgD)
public static void checkSameShape(ImageBase<?> imgA, ImageBase<?> imgB, ImageBase<?> imgC, ImageBase<?> imgD, ImageBase<?> imgE)
public static void checkSubimage(ImageBase image)