public class InterpolatePixel_S_to_MB<T extends ImageSingleBand> extends java.lang.Object implements InterpolatePixelMB<T>
InterpolatePixelS to be used as a InterpolatePixelMB,
input image has to be ImageSingleBand.| Constructor and Description |
|---|
InterpolatePixel_S_to_MB(InterpolatePixelS<T> interp) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
ImageType<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(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.
|
public InterpolatePixel_S_to_MB(InterpolatePixelS<T> interp)
public void get(float x,
float y,
float[] values)
InterpolatePixelMBget in interface InterpolatePixelMB<T extends ImageSingleBand>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<T extends ImageSingleBand>x - Point's x-coordinate.y - Point's y-coordinate.values - Interpolated value across all bands.public void setBorder(ImageBorder<T> border)
InterpolatePixelsetBorder in interface InterpolatePixel<T extends ImageSingleBand>border - Class for reading outside the image borderpublic ImageBorder<T> getBorder()
InterpolatePixelgetBorder in interface InterpolatePixel<T extends ImageSingleBand>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>public ImageType<T> getImageType()
InterpolatePixelgetImageType in interface InterpolatePixel<T extends ImageSingleBand>