public abstract class PolynomialPixel<T extends ImageSingleBand> extends java.lang.Object implements InterpolatePixelS<T>
Polynomial interpolation using Neville's algorithm.
First interpolation is performed along the horizontal axis, centered at the specified x-coordinate.
Then a second pass is done along the vertical axis using the output from the first pass.
The code is unoptimized and the algorithm is relatively expensive.
| Modifier and Type | Field and Description |
|---|---|
protected ImageBorder<T> |
border |
protected float[] |
horiz |
protected T |
image |
protected PolynomialNevilleFixed_F32 |
interp1D |
protected int |
M |
protected float |
max |
protected float |
min |
protected int |
offM |
protected float[] |
vert |
| Constructor and Description |
|---|
PolynomialPixel(int maxDegree,
float min,
float max) |
| 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 ImageSingleBand> border
protected T extends ImageSingleBand image
protected int M
protected int offM
protected float[] horiz
protected float[] vert
protected float min
protected float max
protected PolynomialNevilleFixed_F32 interp1D
public void setBorder(ImageBorder<T> border)
InterpolatePixelsetBorder in interface InterpolatePixel<T extends ImageSingleBand>border - Class for reading outside the image borderpublic 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>public ImageBorder<T> getBorder()
InterpolatePixelgetBorder in interface InterpolatePixel<T extends ImageSingleBand>