Documentation of 'boofcv.alg.InputSanityCheck' Java class
InputSanityCheck
boofcv.alg

Class InputSanityCheck



  • public class InputSanityCheck
    extends java.lang.Object
    • Constructor Detail

      • InputSanityCheck

        public InputSanityCheck()
    • 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.
      • checkSameShape

        public static void checkSameShape(ImageBase<?> imgA,
                                          ImageBase<?> imgB)
      • checkSubimage

        public static void checkSubimage(ImageBase image)
        Makes sure the input image is not a sub-image

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.