|
JIGL v1.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--jigl.image.GrayImage
|
+--jigl.image.InterpolatedGrayImage
An InterpolatedGrayImage is a GrayImage that can be accessed at other than integral locations. Supports nearest neighbor, bilinear, and bicubic interpolation.
| Field Summary | |
static int |
CUBIC
Bicubic constant |
protected int |
interpolationMethod
The interpolation method that will be used. |
static int |
LINEAR
Linear Interpolation constant |
static int |
NEIGHBOR
Nearest neighbor constant |
| Fields inherited from class jigl.image.GrayImage |
data, X, Y |
| Constructor Summary | |
InterpolatedGrayImage()
Create an empty InterpolatedGrayImage. |
|
InterpolatedGrayImage(GrayImage img)
Create an InterpolatedGrayImage from a GrayImage. |
|
InterpolatedGrayImage(Image img)
Create an InterpolatedGrayImage from a Java image. |
|
InterpolatedGrayImage(InterpolatedGrayImage img)
Deep copy of an InterpolatedGrayImage. |
|
InterpolatedGrayImage(int x,
int y)
Create an InterpolatedGrayImage with width x and height y. |
|
| Method Summary | |
void |
accum(double x,
double y,
int value)
Add value to the surrounding area of (x,y). |
void |
accum(double x,
int value)
Add value to the surrounding area of (x,0). |
private static double |
CatMull(double t,
double y0,
double y1,
double y2,
double y3)
cubic interpolation using the CatMull-Rom method |
Image |
copy()
deep copy |
int |
getInterpolationMethod()
Returns the interpolation method used. |
int |
interp(double x)
Returns the interpolated value at (x,0). |
int |
interp(double x,
double y)
Returns the interpolated value at (x,y). |
void |
setInterpolationMethod(int m)
Sets the interpolation method to be used. |
void |
splat(double x,
double y,
int value)
Spread value to the surrounding area of (x,y). |
void |
splat(double x,
int value)
Spread value in the surrounding area of (x,0). |
| Methods inherited from class jigl.image.GrayImage |
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, main, 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 InterpolatedGrayImage()
public InterpolatedGrayImage(int x,
int y)
public InterpolatedGrayImage(GrayImage img)
public InterpolatedGrayImage(InterpolatedGrayImage img)
public InterpolatedGrayImage(Image img)
| Method Detail |
public Image copy()
copy in interface Imagecopy in class GrayImagepublic final int getInterpolationMethod()
getInterpolationMethod in interface InterpolatedImagepublic final void setInterpolationMethod(int m)
setInterpolationMethod in interface InterpolatedImage
public final int interp(double x)
throws ArrayIndexOutOfBoundsException
ArrayIndexOutOfBoundsException
public final int interp(double x,
double y)
throws ArrayIndexOutOfBoundsException
ArrayIndexOutOfBoundsException
public final void accum(double x,
int value)
public final void accum(double x,
double y,
int value)
public final void splat(double x,
int value)
public final void splat(double x,
double y,
int value)
private static final double CatMull(double t,
double y0,
double y1,
double y2,
double y3)
|
JIGL v1.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||