Class FactoryImageBorder

java.lang.Object
boofcv.core.image.border.FactoryImageBorder

public class FactoryImageBorder
extends Object
Contains functions that create classes which handle pixels outside the image border differently.
  • Constructor Details

    • FactoryImageBorder

      public FactoryImageBorder()
  • Method Details

    • createGrowBorder

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

      public static Class<ImageBorder> lookupBorderClassType​(Class<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 ImageBase<T>> ImageBorder<T> wrap​(BorderType borderType, T image)
    • generic

      public static <T extends ImageBase<T>> ImageBorder<T> generic​(BorderType borderType, ImageType<T> imageType)
    • genericValue

      public static <T extends ImageBase<T>> ImageBorder<T> genericValue​(double value, ImageType<T> imageType)
    • single

      public static <T extends ImageGray<T>,​ Border extends ImageBorder<T>> Border single​(BorderType borderType, 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 ImageInterleaved<T>> ImageBorder<T> interleaved​(BorderType borderType, 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 ImageGray<T>> 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 ImageGray<T>> ImageBorder<T> singleValue​(double value, 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 ImageInterleaved<T>> 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 ImageInterleaved<T>> ImageBorder<T> interleavedValue​(double value, 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