Package boofcv.abst.filter.interpolate
Class InterpolatePixel_PL_using_SB<T extends boofcv.struct.image.ImageGray<T>>
- java.lang.Object
-
- boofcv.abst.filter.interpolate.InterpolatePixel_PL_using_SB<T>
-
- All Implemented Interfaces:
InterpolatePixel<boofcv.struct.image.Planar<T>>,InterpolatePixelMB<boofcv.struct.image.Planar<T>>
public class InterpolatePixel_PL_using_SB<T extends boofcv.struct.image.ImageGray<T>> extends java.lang.Object implements InterpolatePixelMB<boofcv.struct.image.Planar<T>>
Wrapper aroundInterpolatePixelSwhich allows it to interpolatePlanarinside aInterpolatePixelMB. Performs the same calculations multiple times compared to a custom solution.
-
-
Constructor Summary
Constructors Constructor Description InterpolatePixel_PL_using_SB(InterpolatePixelS<T> alg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InterpolatePixelMB<boofcv.struct.image.Planar<T>>copy()Creates a new instance of this interpolation methodvoidget(float x, float y, float[] values)Returns the interpolated pixel values at the specified location while taking in account the image border.voidget_fast(float x, float y, float[] values)Returns the interpolated pixel values at the specified location while assuming it is inside the image far away from the border.boofcv.struct.border.ImageBorder<boofcv.struct.image.Planar<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.boofcv.struct.image.Planar<T>getImage()Returns the image which is being interpolated.boofcv.struct.image.ImageType<boofcv.struct.image.Planar<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(boofcv.struct.border.ImageBorder<boofcv.struct.image.Planar<T>> border)Set's the class used to "read" pixels outside the image border.voidsetImage(boofcv.struct.image.Planar<T> image)Change the image that is being interpolated.
-
-
-
Constructor Detail
-
InterpolatePixel_PL_using_SB
public InterpolatePixel_PL_using_SB(InterpolatePixelS<T> alg)
-
-
Method Detail
-
get
public void get(float x, float y, float[] values)Description copied from interface:InterpolatePixelMBReturns the interpolated pixel values at the specified location while taking in account the image border. Bounds checking is done to ensure that the coordinate is inside the image and to see if the interpolation technique needs to be adjusted for the image border.- Specified by:
getin interfaceInterpolatePixelMB<T extends boofcv.struct.image.ImageGray<T>>- Parameters:
x- Point's x-coordinate. x ≥ 0 && x < image.widthy- Point's y-coordinate. y ≥ 0 && y < image.heightvalues- Interpolated value across all bands.
-
get_fast
public void get_fast(float x, float y, float[] values)Description copied from interface:InterpolatePixelMBReturns the interpolated pixel values 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 interfaceInterpolatePixelMB<T extends boofcv.struct.image.ImageGray<T>>- Parameters:
x- Point's x-coordinate.y- Point's y-coordinate.values- Interpolated value across all bands.
-
copy
public InterpolatePixelMB<boofcv.struct.image.Planar<T>> copy()
Description copied from interface:InterpolatePixelMBCreates a new instance of this interpolation method- Specified by:
copyin interfaceInterpolatePixel<T extends boofcv.struct.image.ImageGray<T>>- Specified by:
copyin interfaceInterpolatePixelMB<T extends boofcv.struct.image.ImageGray<T>>
-
setBorder
public void setBorder(boofcv.struct.border.ImageBorder<boofcv.struct.image.Planar<T>> border)
Description copied from interface:InterpolatePixelSet's the class used to "read" pixels outside the image border.- Specified by:
setBorderin interfaceInterpolatePixel<T extends boofcv.struct.image.ImageGray<T>>- Parameters:
border- Class for reading outside the image border
-
getBorder
public boofcv.struct.border.ImageBorder<boofcv.struct.image.Planar<T>> getBorder()
Description copied from interface:InterpolatePixelReturns the class which handles the image border- Specified by:
getBorderin interfaceInterpolatePixel<T extends boofcv.struct.image.ImageGray<T>>
-
setImage
public void setImage(boofcv.struct.image.Planar<T> image)
Description copied from interface:InterpolatePixelChange the image that is being interpolated.- Specified by:
setImagein interfaceInterpolatePixel<T extends boofcv.struct.image.ImageGray<T>>- Parameters:
image- An image.
-
getImage
public boofcv.struct.image.Planar<T> getImage()
Description copied from interface:InterpolatePixelReturns the image which is being interpolated.- Specified by:
getImagein interfaceInterpolatePixel<T extends boofcv.struct.image.ImageGray<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 boofcv.struct.image.ImageGray<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 boofcv.struct.image.ImageGray<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 boofcv.struct.image.ImageGray<T>>- Returns:
- Border size in pixels
-
getImageType
public boofcv.struct.image.ImageType<boofcv.struct.image.Planar<T>> getImageType()
Description copied from interface:InterpolatePixelType of image it can process- Specified by:
getImageTypein interfaceInterpolatePixel<T extends boofcv.struct.image.ImageGray<T>>
-
-