All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cohy.gradient.PartDiff2d

java.lang.Object
   |
   +----cohy.gradient.PartDiff2d

public class PartDiff2d
extends Object
Implements a simple 4-point difference star with adjustable coefficients.
output = (dx Dx + dt Dt) input (Dx and Dt are partial differential ops).


Constructor Index

 o PartDiff2d()

Method Index

 o getDerivative(float, float)
 o getDerivativeDt()
 o getDerivativeDx()
 o main(String[])
PartDiff dx=1.f dt=1.f > rsf.H

Constructors

 o PartDiff2d
 public PartDiff2d()

Methods

 o getDerivative
 public static Rsf getDerivative(float dx,
                                 float dt)
Parameters:
dx=1 - dt=0 yields (Dx input)
dx=0 - dt=1 yields (Dt input)
dx=1 - dt=1 yields (Dx + Dt) input (default)
 o getDerivativeDx
 public static Rsf getDerivativeDx()
 o getDerivativeDt
 public static Rsf getDerivativeDt()
 o main
 public static void main(String args[])
PartDiff dx=1.f dt=1.f > rsf.H

Parameters:
dx=1 - dt=0 yields Dx = ((-1,-1),( 1,1))
dx=0 - dt=1 yields Dt = ((-1, 1),(-1,1))
dx=1 - dt=1 yileds (Dx + Dt) = ((-2, 0),( 0, 2))

All Packages  Class Hierarchy  This Package  Previous  Next  Index