public class ImplInterpolatePixelConvolution_S16 extends Object implements InterpolatePixelS<ImageSInt16>
Performs interpolation by convolving a continuous-discrete function across the image. Borders are handled by re-normalizing. It is assumed that the kernel will sum up to one. This is particularly important for the unsafe_get() function which does not re-normalize.
DO NOT MODIFY: Generated by GenerateImplInterpolatePixelConvolution.
| Constructor and Description |
|---|
ImplInterpolatePixelConvolution_S16(KernelContinuous1D_F32 kernel,
float min,
float max) |
| Modifier and Type | Method and Description |
|---|---|
float |
get_fast(float x,
float y)
Returns the interpolated pixel value at the specified location while assuming it is inside
the image far away from the border.
|
float |
get(float x,
float y)
Returns the interpolated pixel value 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.
|
ImageSInt16 |
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(ImageSInt16 image)
Change the image that is being interpolated.
|
public ImplInterpolatePixelConvolution_S16(KernelContinuous1D_F32 kernel, float min, float max)
public void setImage(ImageSInt16 image)
InterpolatePixelsetImage in interface InterpolatePixel<ImageSInt16>image - An image.public ImageSInt16 getImage()
InterpolatePixelgetImage in interface InterpolatePixel<ImageSInt16>public float get(float x,
float y)
InterpolatePixelSget in interface InterpolatePixelS<ImageSInt16>x - Point's x-coordinate. x >= 0 && x < image.widthy - Point's y-coordinate. y >= 0 && y < image.heightpublic float get_fast(float x,
float y)
InterpolatePixelSInterpolatePixel.isInFastBounds(float, float) should return true.get_fast in interface InterpolatePixelS<ImageSInt16>x - Point's x-coordinate.y - Point's y-coordinate.public boolean isInFastBounds(float x,
float y)
InterpolatePixelisInFastBounds in interface InterpolatePixel<ImageSInt16>x - Point's x-coordinate.y - Point's y-coordinate.public int getFastBorderX()
InterpolatePixelgetFastBorderX in interface InterpolatePixel<ImageSInt16>public int getFastBorderY()
InterpolatePixelgetFastBorderY in interface InterpolatePixel<ImageSInt16>Copyright © 2013. All Rights Reserved.