All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class nstat.patch.Patcher

java.lang.Object
   |
   +----nstat.patch.Patcher

public class Patcher
extends Object
implements Enumeration
The Patcher enumerates all patches given a quilt vector, the patch size, and the desired overlap. The Patcher object is best created with the PatcherFactory that computes the precise overlap values and number of patches to fit the patches into the quilt space. The Patcher encapsulates a Window operator.

See Also:
PatcherFactory, PatcherTest, Window, PatchPushOp

Variable Index

 o nPatches
 o overlap
The actual overlap which is distinct from the desired overlap
 o patchSize
 o quiltSpace

Method Index

 o getNPatches()
 o getNPatches(int)
 o getWindow(int[])
Better name might be getWindowOp().
 o hasMoreElements()
 o hasMorePatches()
 o nextElement()
convenient when the non-stationary operation has identical domain and range.
 o nextPatch(Rsf)
Assumes that quilt is in quiltSpace.
 o toString()
Returns a string representation of the object.

Variables

 o quiltSpace
 protected RsfSpace quiltSpace
 o patchSize
 protected int patchSize[]
 o nPatches
 protected int nPatches[]
 o overlap
 protected float overlap[]
The actual overlap which is distinct from the desired overlap

Methods

 o getNPatches
 public int getNPatches()
Returns:
the total number of patches in the quilt
 o getNPatches
 public int getNPatches(int dim)
Returns:
the number of patches in a particular dimension
 o getWindow
 public hasAdjoint getWindow(int patchIndex[])
Better name might be getWindowOp().

 o hasMoreElements
 public boolean hasMoreElements()
 o hasMorePatches
 public boolean hasMorePatches()
 o nextElement
 public Object nextElement()
convenient when the non-stationary operation has identical domain and range.

Returns:
cohy.window.Window operator
 o nextPatch
 public Rsf nextPatch(Rsf quilt)
Assumes that quilt is in quiltSpace.

Returns:
The current patch extracted from the quilt.
 o toString
 public String toString()
Returns a string representation of the object.

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index