|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.TransformFilter
com.jhlabs.image.PolarFilter
public class PolarFilter
A filter which distorts and image by performing coordinate conversions between rectangular and polar coordinates.
| Field Summary | |
|---|---|
static int |
INVERT_IN_CIRCLE
Invert the image in a circle. |
static int |
POLAR_TO_RECT
Convert from polar to rectangular coordinates. |
static int |
RECT_TO_POLAR
Convert from rectangular to polar coordinates. |
| Fields inherited from class com.jhlabs.image.TransformFilter |
|---|
BILINEAR, CLAMP, edgeAction, interpolation, NEAREST_NEIGHBOUR, originalSpace, RGB_CLAMP, transformedSpace, WRAP, ZERO |
| Constructor Summary | |
|---|---|
PolarFilter()
Construct a PolarFilter. |
|
PolarFilter(int type)
Construct a PolarFilter. |
|
| Method Summary | |
|---|---|
BufferedImage |
filter(BufferedImage src,
BufferedImage dst)
|
int |
getType()
Get the distortion type. |
void |
setType(int type)
Set the distortion type. |
String |
toString()
|
protected void |
transformInverse(int x,
int y,
float[] out)
Inverse transform a point. |
| Methods inherited from class com.jhlabs.image.TransformFilter |
|---|
filterPixelsNN, getEdgeAction, getInterpolation, setEdgeAction, setInterpolation, transformSpace |
| Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp |
|---|
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int RECT_TO_POLAR
public static final int POLAR_TO_RECT
public static final int INVERT_IN_CIRCLE
| Constructor Detail |
|---|
public PolarFilter()
public PolarFilter(int type)
type - the distortion type| Method Detail |
|---|
public BufferedImage filter(BufferedImage src,
BufferedImage dst)
filter in interface BufferedImageOpfilter in class TransformFilterpublic void setType(int type)
type - the distortion typegetType()public int getType()
setType(int)
protected void transformInverse(int x,
int y,
float[] out)
TransformFilter
transformInverse in class TransformFilterx - the X position of the pixel in the output imagey - the Y position of the pixel in the output imageout - the position of the pixel in the input imagepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||