Package boofcv.alg.interpolate
Class NearestNeighborPixelMB<T extends ImageMultiBand<T>>
java.lang.Object
boofcv.alg.interpolate.NearestNeighborPixelMB<T>
- All Implemented Interfaces:
InterpolatePixel<T>,InterpolatePixelMB<T>
- Direct Known Subclasses:
NearestNeighborPixel_IL_F32,NearestNeighborPixel_IL_S16,NearestNeighborPixel_IL_S32,NearestNeighborPixel_IL_U16,NearestNeighborPixel_IL_U8
public abstract class NearestNeighborPixelMB<T extends ImageMultiBand<T>>
extends Object
implements InterpolatePixelMB<T>
Performs nearest neighbor interpolation to extract values between pixels in an image.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the class which handles the image borderintBorder around the image that fast interpolation cannot be called.intBorder around the image that fast interpolation cannot be called.getImage()Returns the image which is being interpolated.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.voidChange the image that is being interpolated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface boofcv.alg.interpolate.InterpolatePixelMB
copy, get, get_fast
-
Field Details
-
border
-
orig
-
stride
protected int stride -
width
protected int width -
height
protected int height
-
-
Constructor Details
-
NearestNeighborPixelMB
public NearestNeighborPixelMB()
-
-
Method Details
-
setBorder
Description copied from interface:InterpolatePixelSet's the class used to "read" pixels outside the image border.- Specified by:
setBorderin interfaceInterpolatePixel<T extends ImageMultiBand<T>>- Parameters:
border- Class for reading outside the image border
-
setImage
Description copied from interface:InterpolatePixelChange the image that is being interpolated.- Specified by:
setImagein interfaceInterpolatePixel<T extends ImageMultiBand<T>>- Parameters:
image- An image.
-
getImage
Description copied from interface:InterpolatePixelReturns the image which is being interpolated.- Specified by:
getImagein interfaceInterpolatePixel<T extends ImageMultiBand<T>>- Returns:
- A reference to the image being interpolated.
-
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<T extends ImageMultiBand<T>>- Parameters:
x- Point's x-coordinate.y- Point's y-coordinate.- Returns:
- true if get_fast() 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<T extends ImageMultiBand<T>>- 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<T extends ImageMultiBand<T>>- Returns:
- Border size in pixels
-
getBorder
Description copied from interface:InterpolatePixelReturns the class which handles the image border- Specified by:
getBorderin interfaceInterpolatePixel<T extends ImageMultiBand<T>>
-
getImageType
Description copied from interface:InterpolatePixelType of image it can process- Specified by:
getImageTypein interfaceInterpolatePixel<T extends ImageMultiBand<T>>
-