public class ImageInterpolation extends Object implements ImageAnalyser<FImage>
ImageAnalyser
that can provide interpolate pixel values using a
variety of interpolation approaches.Modifier and Type | Class and Description |
---|---|
static class |
ImageInterpolation.InterpolationType
Standard interpolation types.
|
static interface |
ImageInterpolation.Interpolator
Interface defining an object capable of performing pixel interpolation
|
Modifier and Type | Field and Description |
---|---|
protected FImage |
image |
protected ImageInterpolation.Interpolator |
interpolator |
protected Object |
workingSpace |
Constructor and Description |
---|
ImageInterpolation(ImageInterpolation.Interpolator interpolator)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
analyseImage(FImage image)
Analyse an image.
|
float |
getPixelInterpolated(float x,
float y)
Get the interpolated pixel value of the previously analysed image
|
protected ImageInterpolation.Interpolator interpolator
protected Object workingSpace
public ImageInterpolation(ImageInterpolation.Interpolator interpolator)
interpolator
- the interpolator to usepublic void analyseImage(FImage image)
ImageAnalyser
analyseImage
in interface ImageAnalyser<FImage>
image
- The image to process in place.public float getPixelInterpolated(float x, float y)
x
- the x-ordinatey
- the y-ordinate