boofcv.alg.interpolate.impl
Class ImplInterpolatePixelConvolution_U8
- java.lang.Object
-
- boofcv.alg.interpolate.impl.ImplInterpolatePixelConvolution_U8
-
- All Implemented Interfaces:
- InterpolatePixel<GrayU8>, InterpolatePixelS<GrayU8>
public class ImplInterpolatePixelConvolution_U8 extends java.lang.Object implements InterpolatePixelS<GrayU8>
Performs interpolation by convolving a continuous-discrete function across the image. Borders are handled by re-normalizing. It is assumed that the kernel will sum up to one. This is particularly important for the unsafe_get() function which does not re-normalize.
DO NOT MODIFY: Generated by
GenerateImplInterpolatePixelConvolution.
-
-
Constructor Summary
Constructors Constructor and Description ImplInterpolatePixelConvolution_U8(KernelContinuous1D_F32 kernel, float min, float max)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description floatget_border(float x, float y)floatget_fast(float x, float y)Returns the interpolated pixel value at the specified location while assuming it is inside the image far away from the border.floatget(float x, float y)Returns the interpolated pixel value at the specified location while checking to see if border conditions apply.ImageBorder<GrayU8>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.GrayU8getImage()Returns the image which is being interpolated.ImageType<GrayU8>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<GrayU8> border)Set's the class used to "read" pixels outside the image border.voidsetImage(GrayU8 image)Change the image that is being interpolated.
-
-
-
Constructor Detail
-
ImplInterpolatePixelConvolution_U8
public ImplInterpolatePixelConvolution_U8(KernelContinuous1D_F32 kernel, float min, float max)
-
-
Method Detail
-
setBorder
public void setBorder(ImageBorder<GrayU8> border)
Description copied from interface:InterpolatePixelSet's the class used to "read" pixels outside the image border.- Specified by:
setBorderin interfaceInterpolatePixel<GrayU8>- Parameters:
border- Class for reading outside the image border
-
setImage
public void setImage(GrayU8 image)
Description copied from interface:InterpolatePixelChange the image that is being interpolated.- Specified by:
setImagein interfaceInterpolatePixel<GrayU8>- Parameters:
image- An image.
-
getImage
public GrayU8 getImage()
Description copied from interface:InterpolatePixelReturns the image which is being interpolated.- Specified by:
getImagein interfaceInterpolatePixel<GrayU8>- Returns:
- A reference to the image being interpolated.
-
get
public float get(float x, float y)Description copied from interface:InterpolatePixelSReturns the interpolated pixel value at the specified location while checking to see if border conditions apply. If the requested pixel is outside the image border it will attempt to process it using or throw a null pointer exception of a border handler has not been specified.- Specified by:
getin interfaceInterpolatePixelS<GrayU8>- Parameters:
x- Point's x-coordinate. x ≥ 0 && x < image.width or all values if border specifiedy- Point's y-coordinate. y ≥ 0 && y < image.height or all values if border specified- Returns:
- Interpolated intensity value or NaN if it can't be interpolated.
-
get_border
public float get_border(float x, float y)
-
get_fast
public float get_fast(float x, float y)Description copied from interface:InterpolatePixelSReturns the interpolated pixel value at the specified location while assuming it is inside the image far away from the border. For any input pointInterpolatePixel.isInFastBounds(float, float)should return true.- Specified by:
get_fastin interfaceInterpolatePixelS<GrayU8>- Parameters:
x- Point's x-coordinate.y- Point's y-coordinate.- Returns:
- Interpolated intensity value.
-
isInFastBounds
public boolean isInFastBounds(float x, float y)Description copied from interface:InterpolatePixelIs the requested pixel inside the image boundary for which fast unsafe interpolation can be performed.- Specified by:
isInFastBoundsin interfaceInterpolatePixel<GrayU8>- Parameters:
x- Point's x-coordinate.y- Point's y-coordinate.- Returns:
- true if get_unsafe() can be called.
-
getFastBorderX
public int getFastBorderX()
Description copied from interface:InterpolatePixelBorder around the image that fast interpolation cannot be called.- Specified by:
getFastBorderXin interfaceInterpolatePixel<GrayU8>- Returns:
- Border size in pixels
-
getFastBorderY
public int getFastBorderY()
Description copied from interface:InterpolatePixelBorder around the image that fast interpolation cannot be called.- Specified by:
getFastBorderYin interfaceInterpolatePixel<GrayU8>- Returns:
- Border size in pixels
-
getBorder
public ImageBorder<GrayU8> getBorder()
Description copied from interface:InterpolatePixelReturns the class which handles the image border- Specified by:
getBorderin interfaceInterpolatePixel<GrayU8>
-
getImageType
public ImageType<GrayU8> getImageType()
Description copied from interface:InterpolatePixelType of image it can process- Specified by:
getImageTypein interfaceInterpolatePixel<GrayU8>
-
-
DataMelt 3.0 © DataMelt by jWork.ORG