|
JIGL v1.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--jigl.image.ColorImage
|
+--jigl.image.InterpolatedColorImage
InterpolatedColorImage is a ColorImage 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.ColorImage |
CMY, colorModel, HLS, HSV, planes, RGB, X, Y, YIQ |
| Constructor Summary | |
InterpolatedColorImage()
Creates an empty color image. |
|
InterpolatedColorImage(ColorImage img)
Creates a color image that is a shallow copy of img. |
|
InterpolatedColorImage(InterpolatedColorImage img)
Creates a color image that is a shallow copy of img. |
|
InterpolatedColorImage(int x,
int y)
Creates a color image of dimension x,y. |
|
| Method Summary | |
void |
accum(double x,
double y,
int[] value)
Adds the triplet to the surrounding area. |
void |
accum(double x,
int[] value)
Adds the triplet to the surrounding area. |
Image |
copy()
deep copy |
int |
getInterpolationMethod()
the current interpolation method |
int[] |
interp(double x)
Returns the interpolated triplet at (x,0). |
int[] |
interp(double x,
double y)
Returns the interpolated triplet at (x,y) |
void |
setInterpolationMethod(int m)
Set the interpolation method |
void |
setPlane(int p,
GrayImage pl)
Sets the p plane to image pl: a shallow copy |
void |
splat(double x,
double y,
int[] value)
Spread the triplet in the surrounding area. |
void |
splat(double x,
int[] value)
Spread the triplet in the surrounding area. |
| Methods inherited from class jigl.image.ColorImage |
absSum, add, add, add, add, add, add, add, add, add, add, add, add, addbuffer, addbuffer, addSum, byteSize, byteSize, clear, clear, clip, clip, copy, diff, divide, divide, divide, divide, divide, divide, divide, divide, divide, divide, divide, divide, get, get, getColorModel, getJavaImage, InitFromImage, max, max, max, max, min, min, min, min, multiply, multiply, multiply, multiply, multiply, multiply, multiply, multiply, multiply, multiply, multiply, multiply, plane, set, set, setColorModel, sqrSum, subtract, subtract, subtract, subtract, subtract, subtract, 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 InterpolatedColorImage()
public InterpolatedColorImage(int x,
int y)
public InterpolatedColorImage(ColorImage img)
public InterpolatedColorImage(InterpolatedColorImage img)
| Method Detail |
public Image copy()
copy in interface Imagecopy in class ColorImage
public void setPlane(int p,
GrayImage pl)
setPlane in class ColorImagep - the plane of this imagepl - GrayImage to set the plane topublic int getInterpolationMethod()
getInterpolationMethod in interface InterpolatedImagepublic void setInterpolationMethod(int m)
There are three possibilities: Nearest Neighbor, Linear or Cubic.
setInterpolationMethod in interface InterpolatedImagepublic int[] interp(double x)
public int[] interp(double x,
double y)
public void accum(double x,
int[] value)
public void accum(double x,
double y,
int[] value)
public void splat(double x,
int[] value)
public void splat(double x,
double y,
int[] value)
|
JIGL v1.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||