public class QuiltFilter extends WholeImageFilter
Modifier and Type | Field and Description |
---|---|
private float |
a |
private float |
b |
private float |
c |
private Colormap |
colormap |
private float |
d |
private int |
iterations |
private int |
k |
private Random |
randomGenerator |
private long |
seed |
originalSpace, transformedSpace
Constructor and Description |
---|
QuiltFilter() |
Modifier and Type | Method and Description |
---|---|
protected int[] |
filterPixels(int width,
int height,
int[] inPixels,
Rectangle transformedSpace)
Actually filter the pixels.
|
float |
getA() |
float |
getB() |
float |
getC() |
Colormap |
getColormap()
Get the colormap to be used for the filter.
|
float |
getD() |
int |
getIterations()
Get the number of iterations the effect is performed.
|
int |
getK() |
void |
randomize() |
void |
setA(float a) |
void |
setB(float b) |
void |
setC(float c) |
void |
setColormap(Colormap colormap)
Set the colormap to be used for the filter.
|
void |
setD(float d) |
void |
setIterations(int iterations)
Set the number of iterations the effect is performed.
|
void |
setK(int k) |
String |
toString() |
filter, transformSpace
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
private Random randomGenerator
private long seed
private int iterations
private float a
private float b
private float c
private float d
private int k
public QuiltFilter()
public void randomize()
public void setIterations(int iterations)
iterations
- the number of iterationsgetIterations()
public int getIterations()
setIterations(int)
public void setA(float a)
public float getA()
public void setB(float b)
public float getB()
public void setC(float c)
public float getC()
public void setD(float d)
public float getD()
public void setK(int k)
public int getK()
public void setColormap(Colormap colormap)
colormap
- the colormapgetColormap()
public Colormap getColormap()
setColormap(com.jhlabs.image.Colormap)
protected int[] filterPixels(int width, int height, int[] inPixels, Rectangle transformedSpace)
WholeImageFilter
filterPixels
in class WholeImageFilter
width
- the image widthheight
- the image heightinPixels
- the image pixelstransformedSpace
- the output boundsWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses