Class FactoryImageBorder


  • public class FactoryImageBorder
    extends java.lang.Object
    Contains functions that create classes which handle pixels outside the image border differently.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T extends boofcv.struct.image.ImageBase<T>>
      GrowBorder<T,​?>
      createGrowBorder​(boofcv.struct.image.ImageType<T> imageType)
      Creates a GrowBorder class.
      static <T extends boofcv.struct.image.ImageBase<T>>
      boofcv.struct.border.ImageBorder<T>
      generic​(boofcv.struct.border.BorderType borderType, boofcv.struct.image.ImageType<T> imageType)  
      static <T extends boofcv.struct.image.ImageBase<T>>
      boofcv.struct.border.ImageBorder<T>
      genericValue​(double value, boofcv.struct.image.ImageType<T> imageType)  
      static <T extends boofcv.struct.image.ImageInterleaved<T>>
      boofcv.struct.border.ImageBorder<T>
      interleaved​(boofcv.struct.border.BorderType borderType, java.lang.Class<T> imageType)
      Creates an instance of the requested algorithms for handling borders pixels on ImageInterleaved.
      static <T extends boofcv.struct.image.ImageInterleaved<T>>
      boofcv.struct.border.ImageBorder<T>
      interleavedValue​(double value, java.lang.Class<T> imageType)
      Creates an ImageBorder that returns the specified value always.
      static <T extends boofcv.struct.image.ImageInterleaved<T>>
      boofcv.struct.border.ImageBorder<T>
      interleavedValue​(double value, T image)
      Creates an ImageBorder that returns the specified value always.
      static java.lang.Class<boofcv.struct.border.ImageBorder> lookupBorderClassType​(java.lang.Class<boofcv.struct.image.ImageGray> imageType)
      Given an image type return the appropriate ImageBorder class type.
      static <T extends boofcv.struct.image.ImageGray<T>,​Border extends boofcv.struct.border.ImageBorder<T>>
      Border
      single​(boofcv.struct.border.BorderType borderType, java.lang.Class<T> imageType)
      Creates an instance of the requested algorithms for handling borders pixels on ImageGray.
      static <T extends boofcv.struct.image.ImageGray<T>>
      boofcv.struct.border.ImageBorder<T>
      singleValue​(double value, java.lang.Class<T> imageType)
      Creates an ImageBorder that returns the specified value always.
      static <T extends boofcv.struct.image.ImageGray<T>>
      boofcv.struct.border.ImageBorder<T>
      singleValue​(double value, T image)
      Creates an ImageBorder that returns the specified value always.
      static <T extends boofcv.struct.image.ImageBase<T>>
      boofcv.struct.border.ImageBorder<T>
      wrap​(boofcv.struct.border.BorderType borderType, T image)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FactoryImageBorder

        public FactoryImageBorder()
    • Method Detail

      • createGrowBorder

        public static <T extends boofcv.struct.image.ImageBase<T>> GrowBorder<T,​?> createGrowBorder​(boofcv.struct.image.ImageType<T> imageType)
        Creates a GrowBorder class.
      • lookupBorderClassType

        public static java.lang.Class<boofcv.struct.border.ImageBorder> lookupBorderClassType​(java.lang.Class<boofcv.struct.image.ImageGray> imageType)
        Given an image type return the appropriate ImageBorder class type.
        Parameters:
        imageType - Type of image which is being processed.
        Returns:
        The ImageBorder for processing the image type.
      • wrap

        public static <T extends boofcv.struct.image.ImageBase<T>> boofcv.struct.border.ImageBorder<T> wrap​(boofcv.struct.border.BorderType borderType,
                                                                                                            T image)
      • generic

        public static <T extends boofcv.struct.image.ImageBase<T>> boofcv.struct.border.ImageBorder<T> generic​(boofcv.struct.border.BorderType borderType,
                                                                                                               boofcv.struct.image.ImageType<T> imageType)
      • genericValue

        public static <T extends boofcv.struct.image.ImageBase<T>> boofcv.struct.border.ImageBorder<T> genericValue​(double value,
                                                                                                                    boofcv.struct.image.ImageType<T> imageType)
      • single

        public static <T extends boofcv.struct.image.ImageGray<T>,​Border extends boofcv.struct.border.ImageBorder<T>> Border single​(boofcv.struct.border.BorderType borderType,
                                                                                                                                          java.lang.Class<T> imageType)
        Creates an instance of the requested algorithms for handling borders pixels on ImageGray. If type BorderType.ZERO is passed in then the value will be set to 0. Alternatively you could use singleValue(double, Class) instead.
        Parameters:
        borderType - Which border algorithm should it use.
        imageType - Type of image being processed.
        Returns:
        The requested ImageBorder.
      • interleaved

        public static <T extends boofcv.struct.image.ImageInterleaved<T>> boofcv.struct.border.ImageBorder<T> interleaved​(boofcv.struct.border.BorderType borderType,
                                                                                                                          java.lang.Class<T> imageType)
        Creates an instance of the requested algorithms for handling borders pixels on ImageInterleaved. If type BorderType.ZERO is passed in then the value will be set to 0. Alternatively you could use singleValue(double, Class) instead.
        Parameters:
        borderType - Which border algorithm should it use.
        imageType - Type of image being processed.
        Returns:
        The requested ImageBorder.
      • singleValue

        public static <T extends boofcv.struct.image.ImageGray<T>> boofcv.struct.border.ImageBorder<T> singleValue​(double value,
                                                                                                                   T image)
        Creates an ImageBorder that returns the specified value always.
        Parameters:
        value - The value which will be returned.
        image - The image the border is being created for.
        Returns:
        An ImageBorder
        See Also:
        ImageBorderValue
      • singleValue

        public static <T extends boofcv.struct.image.ImageGray<T>> boofcv.struct.border.ImageBorder<T> singleValue​(double value,
                                                                                                                   java.lang.Class<T> imageType)
        Creates an ImageBorder that returns the specified value always.
        Parameters:
        value - The value which will be returned.
        imageType - The image type the border is being created for.
        Returns:
        An ImageBorder
        See Also:
        ImageBorderValue
      • interleavedValue

        public static <T extends boofcv.struct.image.ImageInterleaved<T>> boofcv.struct.border.ImageBorder<T> interleavedValue​(double value,
                                                                                                                               T image)
        Creates an ImageBorder that returns the specified value always.
        Parameters:
        value - The value which will be returned.
        image - The image the border is being created for.
        Returns:
        An ImageBorder
        See Also:
        ImageBorderValue
      • interleavedValue

        public static <T extends boofcv.struct.image.ImageInterleaved<T>> boofcv.struct.border.ImageBorder<T> interleavedValue​(double value,
                                                                                                                               java.lang.Class<T> imageType)
        Creates an ImageBorder that returns the specified value always.
        Parameters:
        value - The value which will be returned.
        imageType - The image type the border is being created for.
        Returns:
        An ImageBorder
        See Also:
        ImageBorderValue