org.jscience.media.pictures.filters.math
Class SCNoise

java.lang.Object
  extended by org.jscience.media.pictures.filters.math.SCNoise
All Implemented Interfaces:
Function1D, Function2D, Function3D

public class SCNoise
extends java.lang.Object
implements Function1D, Function2D, Function3D

Sparse Convolution Noise. This is computationally very expensive, but worth it.


Field Summary
 short[] perm
          DOCUMENT ME!
 
Constructor Summary
SCNoise()
           
 
Method Summary
 float catrom2(float d)
          DOCUMENT ME!
 float evaluate(float x)
          DOCUMENT ME!
 float evaluate(float x, float y)
          DOCUMENT ME!
 float evaluate(float x, float y, float z)
          DOCUMENT ME!
static int floor(float x)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

perm

public short[] perm
DOCUMENT ME!

Constructor Detail

SCNoise

public SCNoise()
Method Detail

evaluate

public float evaluate(float x)
DOCUMENT ME!

Specified by:
evaluate in interface Function1D
Parameters:
x - DOCUMENT ME!
Returns:
DOCUMENT ME!

evaluate

public float evaluate(float x,
                      float y)
DOCUMENT ME!

Specified by:
evaluate in interface Function2D
Parameters:
x - DOCUMENT ME!
y - DOCUMENT ME!
Returns:
DOCUMENT ME!

evaluate

public float evaluate(float x,
                      float y,
                      float z)
DOCUMENT ME!

Specified by:
evaluate in interface Function3D
Parameters:
x - DOCUMENT ME!
y - DOCUMENT ME!
z - DOCUMENT ME!
Returns:
DOCUMENT ME!

floor

public static int floor(float x)
DOCUMENT ME!

Parameters:
x - DOCUMENT ME!
Returns:
DOCUMENT ME!

catrom2

public float catrom2(float d)
DOCUMENT ME!

Parameters:
d - DOCUMENT ME!
Returns:
DOCUMENT ME!