public class ImplInterpolatePixelConvolution_S16 extends java.lang.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_border(float x,
float y) |
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 checking to see if
border conditions apply.
|
ImageBorder<ImageSInt16> |
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.
|
ImageSInt16 |
getImage()
Returns the image which is being interpolated.
|
ImageType<ImageSInt16> |
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<ImageSInt16> border)
Set's the class used to "read" pixels outside the image border.
|
void |
setImage(ImageSInt16 image)
Change the image that is being interpolated.
|
public ImplInterpolatePixelConvolution_S16(KernelContinuous1D_F32 kernel, float min, float max)
public void setBorder(ImageBorder<ImageSInt16> border)
InterpolatePixelsetBorder in interface InterpolatePixel<ImageSInt16>border - Class for reading outside the image borderpublic 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.width or all values if border specifiedy - Point's y-coordinate. y >= 0 && y < image.height or all values if border specifiedpublic float get_border(float x,
float y)
public 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>public ImageBorder<ImageSInt16> getBorder()
InterpolatePixelgetBorder in interface InterpolatePixel<ImageSInt16>public ImageType<ImageSInt16> getImageType()
InterpolatePixelgetImageType in interface InterpolatePixel<ImageSInt16>