boofcv.alg
Class InputSanityCheck
- java.lang.Object
-
- boofcv.alg.InputSanityCheck
-
public class InputSanityCheck extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description InputSanityCheck()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static <In extends ImageGray,Out extends ImageGray>
OutcheckDeclare(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>
TcheckDeclare(T input, T output)If the output has not been declared a new instance is declared.static <T extends ImageGray>
TcheckReshape(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 voidcheckSameShape(ImageBase<?> imgA, ImageBase<?> imgB)static voidcheckSameShape(ImageBase<?> imgA, ImageBase<?> imgB, ImageBase<?> imgC)static voidcheckSameShape(ImageBase<?> imgA, ImageBase<?> imgB, ImageBase<?> imgC, ImageBase<?> imgD)static voidcheckSameShape(ImageBase<?> imgA, ImageBase<?> imgB, ImageBase<?> imgC, ImageBase<?> imgD, ImageBase<?> imgE)static voidcheckSameShape(ImagePyramid<?> imgA, ImagePyramid<?> imgB)static voidcheckSameShapeB(ImageMultiBand<?> imgA, ImageMultiBand<?> imgB)static voidcheckSubimage(ImageBase image)Makes sure the input image is not a sub-image
-
-
-
Method Detail
-
checkReshape
public static <T extends ImageGray> T 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. If it is null then a new image is returned, otherwise target is reshaped and returned.- Type Parameters:
T-- Parameters:
target-testImage-targetType-- Returns:
-
checkDeclare
public static <T extends ImageGray> T checkDeclare(T input, T output)
If the output has not been declared a new instance is declared. If an instance of the output is provided its bounds are checked.
-
checkDeclare
public static <In extends ImageGray,Out extends ImageGray> Out checkDeclare(In input, Out output, java.lang.Class<Out> typeOut)
If the output has not been declared a new instance is declared. If an instance of the output is provided its bounds are checked.
-
checkSameShapeB
public static void checkSameShapeB(ImageMultiBand<?> imgA, ImageMultiBand<?> imgB)
-
checkSameShape
public static void checkSameShape(ImagePyramid<?> imgA, ImagePyramid<?> imgB)
-
checkSameShape
public static void checkSameShape(ImageBase<?> imgA, ImageBase<?> imgB, ImageBase<?> imgC)
-
checkSameShape
public static void checkSameShape(ImageBase<?> imgA, ImageBase<?> imgB, ImageBase<?> imgC, ImageBase<?> imgD)
-
checkSameShape
public static void checkSameShape(ImageBase<?> imgA, ImageBase<?> imgB, ImageBase<?> imgC, ImageBase<?> imgD, ImageBase<?> imgE)
-
checkSubimage
public static void checkSubimage(ImageBase image)
Makes sure the input image is not a sub-image
-
-
DataMelt 3.0 © DataMelt by jWork.ORG