Package boofcv.core.image.border
Class FactoryImageBorder
java.lang.Object
boofcv.core.image.border.FactoryImageBorder
Contains functions that create classes which handle pixels outside the image border differently.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends ImageBase<T>>
GrowBorder<T,?> createGrowBorder
(ImageType<T> imageType) Creates aGrowBorder
class.static <T extends ImageBase<T>>
ImageBorder<T>generic
(BorderType borderType, ImageType<T> imageType) static <T extends ImageBase<T>>
ImageBorder<T>genericValue
(double value, ImageType<T> imageType) static <T extends ImageInterleaved<T>>
ImageBorder<T>interleaved
(BorderType borderType, Class<T> imageType) Creates an instance of the requested algorithms for handling borders pixels onImageInterleaved
.static <T extends ImageInterleaved<T>>
ImageBorder<T>interleavedValue
(double value, Class<T> imageType) Creates anImageBorder
that returns the specified value always.static <T extends ImageInterleaved<T>>
ImageBorder<T>interleavedValue
(double value, T image) Creates anImageBorder
that returns the specified value always.static Class<ImageBorder>
lookupBorderClassType
(Class<ImageGray> imageType) Given an image type return the appropriateImageBorder
class type.static <T extends ImageGray<T>,
Border extends ImageBorder<T>>
Bordersingle
(BorderType borderType, Class<T> imageType) Creates an instance of the requested algorithms for handling borders pixels onImageGray
.static <T extends ImageGray<T>>
ImageBorder<T>singleValue
(double value, Class<T> imageType) Creates anImageBorder
that returns the specified value always.static <T extends ImageGray<T>>
ImageBorder<T>singleValue
(double value, T image) Creates anImageBorder
that returns the specified value always.static <T extends ImageBase<T>>
ImageBorder<T>wrap
(BorderType borderType, T image)
-
Constructor Details
-
FactoryImageBorder
public FactoryImageBorder()
-
-
Method Details
-
createGrowBorder
Creates aGrowBorder
class. -
lookupBorderClassType
Given an image type return the appropriateImageBorder
class type.- Parameters:
imageType
- Type of image which is being processed.- Returns:
- The ImageBorder for processing the image type.
-
wrap
-
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 onImageGray
. If typeBorderType.ZERO
is 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 ImageInterleaved<T>> ImageBorder<T> interleaved(BorderType borderType, Class<T> imageType) Creates an instance of the requested algorithms for handling borders pixels onImageInterleaved
. If typeBorderType.ZERO
is 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
Creates anImageBorder
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:
-
singleValue
Creates anImageBorder
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:
-
interleavedValue
public static <T extends ImageInterleaved<T>> ImageBorder<T> interleavedValue(double value, T image) Creates anImageBorder
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:
-
interleavedValue
public static <T extends ImageInterleaved<T>> ImageBorder<T> interleavedValue(double value, Class<T> imageType) Creates anImageBorder
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:
-