|
JIGL v1.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--jigl.image.RealGrayImage
|
+--jigl.image.InterpolatedRealGrayImage
An InterpolatedRealGrayImage is a RealGrayImage that can be accessed at other than integral locations. Supports nearest neighbor, bilinear, and bicubic interpolation.
| Field Summary | |
static int |
CUBIC
|
protected int |
interpolationMethod
|
static int |
LINEAR
|
static int |
NEIGHBOR
|
| Fields inherited from class jigl.image.RealGrayImage |
data, X, Y |
| Constructor Summary | |
InterpolatedRealGrayImage()
Creates an empty InterpolatedRealGrayImage. |
|
InterpolatedRealGrayImage(Image img)
Create an InterpolatedGrayImage from a Java image. |
|
InterpolatedRealGrayImage(InterpolatedRealGrayImage img)
Deep copy |
|
InterpolatedRealGrayImage(int x,
int y)
Create an InterpolatedGrayImage with width x and height y. |
|
InterpolatedRealGrayImage(RealGrayImage img)
Creates an InterpolatedRealGrayImage from a RealGrayImage. |
|
| Method Summary | |
void |
accum(float x,
float y,
float value)
Add value to the surrounding area of (x,y). |
private static float |
CatMull(float t,
float y0,
float y1,
float y2,
float y3)
cubic interpolation using the CatMull-Rom method |
Image |
copy()
Deep copy |
int |
getInterpolationMethod()
Returns the interpolation method used. |
float |
interp(float x,
float y)
Returns the interpolated value at (x,y). |
void |
setInterpolationMethod(int m)
Sets the interpolation method to be used. |
void |
splat(float x,
float y,
float value)
Spread value to the surrounding area of (x,y). |
| Methods inherited from class jigl.image.RealGrayImage |
absSum, add, add, add, add, add, add, addbuffer, addbuffer, addSum, byteSize, byteSize, clear, clear, clip, clip, copy, diff, divide, divide, divide, divide, divide, divide, get, getData, getJavaImage, max, max, median, median, min, min, multiply, multiply, multiply, multiply, multiply, multiply, set, set, sqrSum, subtract, subtract, subtract, subtract, subtract, subtract, toString, toString, X, Y |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jigl.image.Image |
copy, getJavaImage, toString, X, Y |
| Field Detail |
public static final int NEIGHBOR
public static final int LINEAR
public static final int CUBIC
protected int interpolationMethod
| Constructor Detail |
public InterpolatedRealGrayImage()
public InterpolatedRealGrayImage(RealGrayImage img)
public InterpolatedRealGrayImage(int x,
int y)
public InterpolatedRealGrayImage(InterpolatedRealGrayImage img)
public InterpolatedRealGrayImage(Image img)
| Method Detail |
public Image copy()
copy in interface Imagecopy in class RealGrayImagepublic int getInterpolationMethod()
getInterpolationMethod in interface InterpolatedImagepublic void setInterpolationMethod(int m)
setInterpolationMethod in interface InterpolatedImage
public float interp(float x,
float y)
public void accum(float x,
float y,
float value)
public void splat(float x,
float y,
float value)
private static float CatMull(float t,
float y0,
float y1,
float y2,
float y3)
|
JIGL v1.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||