public abstract class BilinearPixel<T extends ImageSingleBand> extends 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 int |
height |
protected T |
orig |
protected int |
stride |
protected int |
width |
| Constructor and Description |
|---|
BilinearPixel() |
| Modifier and Type | Method and Description |
|---|---|
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 |
setImage(T image)
Change the image that is being interpolated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget_fast, getprotected T extends ImageSingleBand orig
protected int stride
protected int width
protected int height
public void setImage(T image)
InterpolatePixelsetImage in interface InterpolatePixel<T extends ImageSingleBand>image - An image.public T getImage()
InterpolatePixelgetImage in interface InterpolatePixel<T extends ImageSingleBand>public boolean isInFastBounds(float x,
float y)
InterpolatePixelisInFastBounds in interface InterpolatePixel<T extends ImageSingleBand>x - Point's x-coordinate.y - Point's y-coordinate.public int getFastBorderX()
InterpolatePixelgetFastBorderX in interface InterpolatePixel<T extends ImageSingleBand>public int getFastBorderY()
InterpolatePixelgetFastBorderY in interface InterpolatePixel<T extends ImageSingleBand>Copyright © 2013. All Rights Reserved.