boofcv.alg.interpolate
Interface InterpolatePixel<T extends ImageBase>
-
- All Known Subinterfaces:
- InterpolatePixelMB<T>, InterpolatePixelS<T>
- All Known Implementing Classes:
- BilinearPixelMB, BilinearPixelS, ImplBilinearPixel_F32, ImplBilinearPixel_F64, ImplBilinearPixel_IL_F32, ImplBilinearPixel_IL_F64, ImplBilinearPixel_IL_S16, ImplBilinearPixel_IL_S32, ImplBilinearPixel_IL_U8, ImplBilinearPixel_S16, ImplBilinearPixel_S32, ImplBilinearPixel_U8, ImplInterpolatePixelConvolution_F32, ImplInterpolatePixelConvolution_S16, ImplInterpolatePixelConvolution_U8, ImplPolynomialPixel_F32, ImplPolynomialPixel_I, InterpolatePixel_PL_using_SB, InterpolatePixel_S_to_MB, NearestNeighborPixel_F32, NearestNeighborPixel_IL_F32, NearestNeighborPixel_IL_S16, NearestNeighborPixel_IL_S32, NearestNeighborPixel_IL_U16, NearestNeighborPixel_IL_U8, NearestNeighborPixel_S16, NearestNeighborPixel_S32, NearestNeighborPixel_U16, NearestNeighborPixel_U8, NearestNeighborPixelMB, NearestNeighborPixelS, PolynomialPixel
public interface InterpolatePixel<T extends ImageBase>Interface for interpolation between pixels on a per-pixel basis. If a whole rectangular region needs to be interpolated thenInterpolateRectangleshould be considered for performance reasons.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description ImageBorder<T>getBorder()Returns the class which handles the image borderintgetFastBorderX()Border around the image that fast interpolation cannot be called.intgetFastBorderY()Border around the image that fast interpolation cannot be called.TgetImage()Returns the image which is being interpolated.ImageType<T>getImageType()Type of image it can processbooleanisInFastBounds(float x, float y)Is the requested pixel inside the image boundary for which fast unsafe interpolation can be performed.voidsetBorder(ImageBorder<T> border)Set's the class used to "read" pixels outside the image border.voidsetImage(T image)Change the image that is being interpolated.
-
-
-
Method Detail
-
setBorder
void setBorder(ImageBorder<T> border)
Set's the class used to "read" pixels outside the image border.- Parameters:
border- Class for reading outside the image border
-
getBorder
ImageBorder<T> getBorder()
Returns the class which handles the image border
-
setImage
void setImage(T image)
Change the image that is being interpolated.- Parameters:
image- An image.
-
getImage
T getImage()
Returns the image which is being interpolated.- Returns:
- A reference to the image being interpolated.
-
isInFastBounds
boolean isInFastBounds(float x, float y)Is the requested pixel inside the image boundary for which fast unsafe interpolation can be performed.- Parameters:
x- Point's x-coordinate.y- Point's y-coordinate.- Returns:
- true if get_unsafe() can be called.
-
getFastBorderX
int getFastBorderX()
Border around the image that fast interpolation cannot be called.- Returns:
- Border size in pixels
-
getFastBorderY
int getFastBorderY()
Border around the image that fast interpolation cannot be called.- Returns:
- Border size in pixels
-
-
DataMelt 3.0 © DataMelt by jWork.ORG