public abstract class BilinearPixelS<T extends ImageGray> extends java.lang.Object implements InterpolatePixelS<T>
Performs bilinear interpolation to extract values between pixels in an image. When a boundary is encountered the number of pixels used to interpolate is automatically reduced.
| Modifier and Type | Field and Description |
|---|---|
protected ImageBorder<T> |
border |
protected int |
height |
protected T |
orig |
protected int |
stride |
protected int |
width |
| Constructor and Description |
|---|
BilinearPixelS() |
| Modifier and Type | Method and Description |
|---|---|
ImageBorder<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.
|
T |
getImage()
Returns the image which is being interpolated.
|
boolean |
isInFastBounds(float x,
float y)
Is the requested pixel inside the image boundary for which fast unsafe interpolation can be performed.
|
void |
setBorder(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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget_fast, getgetImageTypeprotected ImageBorder<T extends ImageGray> border
protected int stride
protected int width
protected int height
public void setBorder(ImageBorder<T> border)
InterpolatePixelsetBorder in interface InterpolatePixel<T extends ImageGray>border - Class for reading outside the image borderpublic void setImage(T image)
InterpolatePixelsetImage in interface InterpolatePixel<T extends ImageGray>image - An image.public T getImage()
InterpolatePixelgetImage in interface InterpolatePixel<T extends ImageGray>public boolean isInFastBounds(float x,
float y)
InterpolatePixelisInFastBounds in interface InterpolatePixel<T extends ImageGray>x - Point's x-coordinate.y - Point's y-coordinate.public int getFastBorderX()
InterpolatePixelgetFastBorderX in interface InterpolatePixel<T extends ImageGray>public int getFastBorderY()
InterpolatePixelgetFastBorderY in interface InterpolatePixel<T extends ImageGray>public ImageBorder<T> getBorder()
InterpolatePixelgetBorder in interface InterpolatePixel<T extends ImageGray>