类 PolarFilter
- java.lang.Object
-
- org.meteoinfo.image.filter.AbstractBufferedImageOp
-
- org.meteoinfo.image.filter.TransformFilter
-
- org.meteoinfo.image.filter.PolarFilter
-
- 所有已实现的接口:
BufferedImageOp,Cloneable
public class PolarFilter extends TransformFilter
A filter which distorts and image by performing coordinate conversions between rectangular and polar coordinates.
-
-
字段概要
字段 修饰符和类型 字段 说明 static intINVERT_IN_CIRCLEInvert the image in a circle.static intPOLAR_TO_RECTConvert from polar to rectangular coordinates.static intRECT_TO_POLARConvert from rectangular to polar coordinates.-
从类继承的字段 org.meteoinfo.image.filter.TransformFilter
BILINEAR, CLAMP, edgeAction, interpolation, NEAREST_NEIGHBOUR, originalSpace, RGB_CLAMP, transformedSpace, WRAP, ZERO
-
-
构造器概要
构造器 构造器 说明 PolarFilter()Construct a PolarFilter.PolarFilter(int type)Construct a PolarFilter.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 BufferedImagefilter(BufferedImage src, BufferedImage dst)intgetType()Get the distortion type.voidsetType(int type)Set the distortion type.StringtoString()protected voidtransformInverse(int x, int y, float[] out)Inverse transform a point.-
从类继承的方法 org.meteoinfo.image.filter.TransformFilter
filterPixelsNN, getEdgeAction, getInterpolation, setEdgeAction, setInterpolation, transformSpace
-
从类继承的方法 org.meteoinfo.image.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
-
-
-
字段详细资料
-
RECT_TO_POLAR
public static final int RECT_TO_POLAR
Convert from rectangular to polar coordinates.- 另请参阅:
- 常量字段值
-
POLAR_TO_RECT
public static final int POLAR_TO_RECT
Convert from polar to rectangular coordinates.- 另请参阅:
- 常量字段值
-
INVERT_IN_CIRCLE
public static final int INVERT_IN_CIRCLE
Invert the image in a circle.- 另请参阅:
- 常量字段值
-
-
方法详细资料
-
filter
public BufferedImage filter(BufferedImage src, BufferedImage dst)
- 指定者:
filter在接口中BufferedImageOp- 覆盖:
filter在类中TransformFilter
-
setType
public void setType(int type)
Set the distortion type.- 参数:
type- the distortion type- 另请参阅:
getType()
-
getType
public int getType()
Get the distortion type.- 返回:
- the distortion type
- 另请参阅:
setType(int)
-
transformInverse
protected void transformInverse(int x, int y, float[] out)从类复制的说明:TransformFilterInverse transform a point. This method needs to be overriden by all subclasses.- 指定者:
transformInverse在类中TransformFilter- 参数:
x- 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 image
-
-