public class InterpolatePixel_S_to_MB_MultiSpectral<T extends ImageSingleBand> extends Object implements InterpolatePixelMB<MultiSpectral<T>>
InterpolatePixelS which allows it to interpolate MultiSpectral inside
a InterpolatePixelMB. Performs the same calculations multiple times compared to a custom solution.| Constructor and Description |
|---|
InterpolatePixel_S_to_MB_MultiSpectral(InterpolatePixelS<T> alg) |
| 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.
|
int |
getFastBorderX()
Border around the image that fast interpolation cannot be called.
|
int |
getFastBorderY()
Border around the image that fast interpolation cannot be called.
|
MultiSpectral<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(MultiSpectral<T> image)
Change the image that is being interpolated.
|
public InterpolatePixel_S_to_MB_MultiSpectral(InterpolatePixelS<T> alg)
public void get(float x,
float y,
float[] values)
InterpolatePixelMBget in interface InterpolatePixelMB<MultiSpectral<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<MultiSpectral<T extends ImageSingleBand>>x - Point's x-coordinate.y - Point's y-coordinate.values - Interpolated value across all bands.public void setImage(MultiSpectral<T> image)
InterpolatePixelsetImage in interface InterpolatePixel<MultiSpectral<T extends ImageSingleBand>>image - An image.public MultiSpectral<T> getImage()
InterpolatePixelgetImage in interface InterpolatePixel<MultiSpectral<T extends ImageSingleBand>>public boolean isInFastBounds(float x,
float y)
InterpolatePixelisInFastBounds in interface InterpolatePixel<MultiSpectral<T extends ImageSingleBand>>x - Point's x-coordinate.y - Point's y-coordinate.public int getFastBorderX()
InterpolatePixelgetFastBorderX in interface InterpolatePixel<MultiSpectral<T extends ImageSingleBand>>public int getFastBorderY()
InterpolatePixelgetFastBorderY in interface InterpolatePixel<MultiSpectral<T extends ImageSingleBand>>Copyright © 2013. All Rights Reserved.