public class InterpolatePixel_PL_using_SB<T extends boofcv.struct.image.ImageGray<T>> extends java.lang.Object implements InterpolatePixelMB<boofcv.struct.image.Planar<T>>
InterpolatePixelS which allows it to interpolate Planar inside
a InterpolatePixelMB. Performs the same calculations multiple times compared to a custom solution.| Constructor and Description |
|---|
InterpolatePixel_PL_using_SB(InterpolatePixelS<T> alg) |
| Modifier and Type | Method and Description |
|---|---|
InterpolatePixelMB<boofcv.struct.image.Planar<T>> |
copy()
Creates a new instance of this interpolation method
|
void |
get_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.
|
void |
get(float x,
float y,
float[] values)
Returns the interpolated pixel values at the specified location while taking in account
the image border.
|
boofcv.struct.border.ImageBorder<boofcv.struct.image.Planar<T>> |
getBorder()
Returns the class which handles the image border
|
int |
getFastBorderX()
Border around the image that fast interpolation cannot be called.
|
int |
getFastBorderY()
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 process
|
boolean |
isInFastBounds(float x,
float y)
Is the requested pixel inside the image boundary for which fast unsafe interpolation can be performed.
|
void |
setBorder(boofcv.struct.border.ImageBorder<boofcv.struct.image.Planar<T>> border)
Set's the class used to "read" pixels outside the image border.
|
void |
setImage(boofcv.struct.image.Planar<T> image)
Change the image that is being interpolated.
|
public InterpolatePixel_PL_using_SB(InterpolatePixelS<T> alg)
public void get(float x,
float y,
float[] values)
InterpolatePixelMBget in interface InterpolatePixelMB<boofcv.struct.image.Planar<T extends boofcv.struct.image.ImageGray<T>>>x - Point's x-coordinate. x ≥ 0 && x < image.widthy - Point's y-coordinate. y ≥ 0 && y < image.heightvalues - Interpolated value across all bands.public void get_fast(float x,
float y,
float[] values)
InterpolatePixelMBInterpolatePixel.isInFastBounds(float, float) should return true.get_fast in interface InterpolatePixelMB<boofcv.struct.image.Planar<T extends boofcv.struct.image.ImageGray<T>>>x - Point's x-coordinate.y - Point's y-coordinate.values - Interpolated value across all bands.public InterpolatePixelMB<boofcv.struct.image.Planar<T>> copy()
InterpolatePixelMBcopy in interface InterpolatePixel<boofcv.struct.image.Planar<T extends boofcv.struct.image.ImageGray<T>>>copy in interface InterpolatePixelMB<boofcv.struct.image.Planar<T extends boofcv.struct.image.ImageGray<T>>>public void setBorder(boofcv.struct.border.ImageBorder<boofcv.struct.image.Planar<T>> border)
InterpolatePixelsetBorder in interface InterpolatePixel<boofcv.struct.image.Planar<T extends boofcv.struct.image.ImageGray<T>>>border - Class for reading outside the image borderpublic boofcv.struct.border.ImageBorder<boofcv.struct.image.Planar<T>> getBorder()
InterpolatePixelgetBorder in interface InterpolatePixel<boofcv.struct.image.Planar<T extends boofcv.struct.image.ImageGray<T>>>public void setImage(boofcv.struct.image.Planar<T> image)
InterpolatePixelsetImage in interface InterpolatePixel<boofcv.struct.image.Planar<T extends boofcv.struct.image.ImageGray<T>>>image - An image.public boofcv.struct.image.Planar<T> getImage()
InterpolatePixelgetImage in interface InterpolatePixel<boofcv.struct.image.Planar<T extends boofcv.struct.image.ImageGray<T>>>public boolean isInFastBounds(float x,
float y)
InterpolatePixelisInFastBounds in interface InterpolatePixel<boofcv.struct.image.Planar<T extends boofcv.struct.image.ImageGray<T>>>x - Point's x-coordinate.y - Point's y-coordinate.public int getFastBorderX()
InterpolatePixelgetFastBorderX in interface InterpolatePixel<boofcv.struct.image.Planar<T extends boofcv.struct.image.ImageGray<T>>>public int getFastBorderY()
InterpolatePixelgetFastBorderY in interface InterpolatePixel<boofcv.struct.image.Planar<T extends boofcv.struct.image.ImageGray<T>>>public boofcv.struct.image.ImageType<boofcv.struct.image.Planar<T>> getImageType()
InterpolatePixelgetImageType in interface InterpolatePixel<boofcv.struct.image.Planar<T extends boofcv.struct.image.ImageGray<T>>>