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
-
nPatches
-
-
overlap
-
-
patchSize
-
-
quiltSpace
-
-
PatcherFactory(RsfSpace, int[])
- Defaults to identical 0.5 overlap value for all dimensions.
-
PatcherFactory(RsfSpace, int[], float)
- Identical overlap value for all dimensions
-
PatcherFactory(RsfSpace, int[], float[])
-
-
getOverlap(int)
-
-
getPatcher()
-
-
setOverlap(int, float)
- setOverlap sets the overlap for a particular dimension.
quiltSpace
protected RsfSpace quiltSpace
patchSize
protected int patchSize[]
nPatches
protected int nPatches[]
overlap
protected float overlap[]
PatcherFactory
public PatcherFactory(RsfSpace quiltSpace,
int patchSize[])
- Defaults to identical 0.5 overlap value for all dimensions.
PatcherFactory
public PatcherFactory(RsfSpace quiltSpace,
int patchSize[],
float overlap)
- Identical overlap value for all dimensions
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.
getPatcher
public Patcher getPatcher()
- Returns:
- Patcher object that enumerates the defined patches.
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.
getOverlap
public float getOverlap(int dim)
- Returns:
- the approximated overlap for the given dimension
All Packages Class Hierarchy This Package Previous Next Index