Package boofcv.core.image.border
Class FactoryImageBorder
- java.lang.Object
-
- boofcv.core.image.border.FactoryImageBorder
-
public class FactoryImageBorder extends java.lang.ObjectContains functions that create classes which handle pixels outside the image border differently.
-
-
Constructor Summary
Constructors Constructor Description FactoryImageBorder()
-
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 aGrowBorderclass.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 onImageInterleaved.static <T extends boofcv.struct.image.ImageInterleaved<T>>
boofcv.struct.border.ImageBorder<T>interleavedValue(double value, java.lang.Class<T> imageType)Creates anImageBorderthat returns the specified value always.static <T extends boofcv.struct.image.ImageInterleaved<T>>
boofcv.struct.border.ImageBorder<T>interleavedValue(double value, T image)Creates anImageBorderthat 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 appropriateImageBorderclass type.static <T extends boofcv.struct.image.ImageGray<T>,Border extends boofcv.struct.border.ImageBorder<T>>
Bordersingle(boofcv.struct.border.BorderType borderType, java.lang.Class<T> imageType)Creates an instance of the requested algorithms for handling borders pixels onImageGray.static <T extends boofcv.struct.image.ImageGray<T>>
boofcv.struct.border.ImageBorder<T>singleValue(double value, java.lang.Class<T> imageType)Creates anImageBorderthat returns the specified value always.static <T extends boofcv.struct.image.ImageGray<T>>
boofcv.struct.border.ImageBorder<T>singleValue(double value, T image)Creates anImageBorderthat 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)
-
-
-
Method Detail
-
createGrowBorder
public static <T extends boofcv.struct.image.ImageBase<T>> GrowBorder<T,?> createGrowBorder(boofcv.struct.image.ImageType<T> imageType)
Creates aGrowBorderclass.
-
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 appropriateImageBorderclass 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 onImageGray. If typeBorderType.ZEROis passed in then the value will be set to 0. Alternatively you could usesingleValue(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 onImageInterleaved. If typeBorderType.ZEROis passed in then the value will be set to 0. Alternatively you could usesingleValue(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 anImageBorderthat 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 anImageBorderthat 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 anImageBorderthat 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 anImageBorderthat 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
-
-