public class InterpolatePixelDistortS<T extends boofcv.struct.image.ImageGray<T>> extends java.lang.Object implements InterpolatePixelS<T>
| Modifier and Type | Field and Description |
|---|---|
protected boofcv.struct.distort.Point2Transform2_F32 |
distorter |
protected InterpolatePixelS<T> |
interpolate |
| Constructor and Description |
|---|
InterpolatePixelDistortS(InterpolatePixelS<T> interpolate,
boofcv.struct.distort.Point2Transform2_F32 distorter) |
| Modifier and Type | Method and Description |
|---|---|
InterpolatePixelS<T> |
copy()
Creates a new instance of this interpolation method
|
float |
get_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.
|
float |
get(float x,
float y)
Returns the interpolated pixel value at the specified location while checking to see if
border conditions apply.
|
boofcv.struct.border.ImageBorder<T> |
getBorder()
Returns the class which handles the image border
|
boofcv.struct.distort.Point2Transform2_F32 |
getDistorter() |
int |
getFastBorderX()
Border around the image that fast interpolation cannot be called.
|
int |
getFastBorderY()
Border around the image that fast interpolation cannot be called.
|
T |
getImage()
Returns the image which is being interpolated.
|
boofcv.struct.image.ImageType<T> |
getImageType()
Type of image it can process
|
InterpolatePixelS<T> |
getInterpolate() |
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<T> border)
Set's the class used to "read" pixels outside the image border.
|
void |
setImage(T image)
Change the image that is being interpolated.
|
protected InterpolatePixelS<T extends boofcv.struct.image.ImageGray<T>> interpolate
protected boofcv.struct.distort.Point2Transform2_F32 distorter
public InterpolatePixelDistortS(InterpolatePixelS<T> interpolate, boofcv.struct.distort.Point2Transform2_F32 distorter)
public float get(float x,
float y)
InterpolatePixelSget in interface InterpolatePixelS<T extends boofcv.struct.image.ImageGray<T>>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 specifiedpublic float get_fast(float x,
float y)
InterpolatePixelSInterpolatePixel.isInFastBounds(float, float) should return true.get_fast in interface InterpolatePixelS<T extends boofcv.struct.image.ImageGray<T>>x - Point's x-coordinate.y - Point's y-coordinate.public InterpolatePixelS<T> copy()
InterpolatePixelScopy in interface InterpolatePixel<T extends boofcv.struct.image.ImageGray<T>>copy in interface InterpolatePixelS<T extends boofcv.struct.image.ImageGray<T>>public void setBorder(boofcv.struct.border.ImageBorder<T> border)
InterpolatePixelsetBorder in interface InterpolatePixel<T extends boofcv.struct.image.ImageGray<T>>border - Class for reading outside the image borderpublic boofcv.struct.border.ImageBorder<T> getBorder()
InterpolatePixelgetBorder in interface InterpolatePixel<T extends boofcv.struct.image.ImageGray<T>>public void setImage(T image)
InterpolatePixelsetImage in interface InterpolatePixel<T extends boofcv.struct.image.ImageGray<T>>image - An image.public T getImage()
InterpolatePixelgetImage in interface InterpolatePixel<T extends boofcv.struct.image.ImageGray<T>>public boolean isInFastBounds(float x,
float y)
InterpolatePixelisInFastBounds in interface InterpolatePixel<T extends boofcv.struct.image.ImageGray<T>>x - Point's x-coordinate.y - Point's y-coordinate.public int getFastBorderX()
InterpolatePixelgetFastBorderX in interface InterpolatePixel<T extends boofcv.struct.image.ImageGray<T>>public int getFastBorderY()
InterpolatePixelgetFastBorderY in interface InterpolatePixel<T extends boofcv.struct.image.ImageGray<T>>public boofcv.struct.image.ImageType<T> getImageType()
InterpolatePixelgetImageType in interface InterpolatePixel<T extends boofcv.struct.image.ImageGray<T>>public InterpolatePixelS<T> getInterpolate()
public boofcv.struct.distort.Point2Transform2_F32 getDistorter()