All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class nstat.patch.PatcherFactory

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

public class PatcherFactory
extends Object
The factory constructs a Patcher object with optimal overlap and and number of patches. The overlap values approximate the desired values stated at construction of the factory. Can this class be static? BUG: inconsistent argument order: patchSize overlap or overlap patchSize. Search.

See Also:
Patcher, Window, PatchPushOp

Variable Index

 o nPatches
 o overlap
 o patchSize
 o quiltSpace

Constructor Index

 o PatcherFactory(RsfSpace, int[])
Defaults to identical 0.5 overlap value for all dimensions.
 o PatcherFactory(RsfSpace, int[], float)
Identical overlap value for all dimensions
 o PatcherFactory(RsfSpace, int[], float[])

Method Index

 o getOverlap(int)
 o getPatcher()
 o setOverlap(int, float)
setOverlap sets the overlap for a particular dimension.

Variables

 o quiltSpace
 protected RsfSpace quiltSpace
 o patchSize
 protected int patchSize[]
 o nPatches
 protected int nPatches[]
 o overlap
 protected float overlap[]

Constructors

 o PatcherFactory
 public PatcherFactory(RsfSpace quiltSpace,
                       int patchSize[])
Defaults to identical 0.5 overlap value for all dimensions.

 o PatcherFactory
 public PatcherFactory(RsfSpace quiltSpace,
                       int patchSize[],
                       float overlap)
Identical overlap value for all dimensions

 o PatcherFactory
 public PatcherFactory(RsfSpace quiltSpace,
                       int patchSize[],
                       float overlap[])
Parameters:
overlap - desired fraction of patch overlap [0-1]. Negative overlap causes gaps between patches.
patchSize - number of Samples for each patch axis.

Methods

 o getPatcher
 public Patcher getPatcher()
Returns:
Patcher object that enumerates the defined patches.
 o setOverlap
 public void setOverlap(int dim,
                        float desiredOverlap)
setOverlap sets the overlap for a particular dimension. The overlap is a desired overlap and will be approximated.

Parameters:
dim - the specific dimension for which to set the overlap
desiredOverlap - the fractional patch overlap desired.
 o getOverlap
 public float getOverlap(int dim)
Returns:
the approximated overlap for the given dimension

All Packages  Class Hierarchy  This Package  Previous  Next  Index