util.wavelet
Class Scale

java.lang.Object
  extended by util.wavelet.SimpleSignal
      extended by util.wavelet.Signal
          extended by util.wavelet.Scale

public class Scale
extends Signal

A wavelet scale containing wavelet coefficients.

Author:
John Talbot

Field Summary
static boolean POSITIVE
          If true only positive features are detected.
protected  int[] structureLookupTable
          A lookup table for efficiently accessing the Structure at a given index, if -1 then no structure
 List<Structure> structures
          Structures in this level.
 
Constructor Summary
Scale(SimpleSignal signal, int scaleNumber)
          Construct using an array of wavelet coefficients and an array of noise values encoded as an instance of signal.
 
Method Summary
 void add(SimpleSignal signal, int index)
          If this scale contains Structures which belong to a given WObject then add those wavelet coefficients to a given signal and return results in that signal.
 int getScaleNumber()
          Get the scale number.
 Structure getStructure(int position)
          Get the Structure at the given pixel position or null if none exists there.
 List<Structure> getStructures()
          Get the Structures.
 float getValue(int position, int wObjectIndex)
          Get the wavelet coefficient value at the given position and for the given WObject, zero otherwise.
 
Methods inherited from class util.wavelet.Signal
getNoise, getNoise, getNoiseMultiplier, isAboveNoise, isBelowNoise, setNoise, setNoise
 
Methods inherited from class util.wavelet.SimpleSignal
add, add, convolve, estimateNumberOfScales, getBoundaryCondition, getChirp, getDirac, getGaussianDeviate, getGaussianNoise, getScalingFunction, getSubset, getValue, getWavelet, multiply, multiply, multiply, multiply, setBoundaryCondition, setValue, size, square, square, subtract, subtract
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

structureLookupTable

protected int[] structureLookupTable
A lookup table for efficiently accessing the Structure at a given index, if -1 then no structure


structures

public List<Structure> structures
Structures in this level.


POSITIVE

public static final boolean POSITIVE
If true only positive features are detected.

See Also:
Constant Field Values
Constructor Detail

Scale

public Scale(SimpleSignal signal,
             int scaleNumber)
Construct using an array of wavelet coefficients and an array of noise values encoded as an instance of signal.

Parameters:
signal - a SimpleSignal
Method Detail

getStructure

public Structure getStructure(int position)
Get the Structure at the given pixel position or null if none exists there.

Parameters:
position - pixel position
Returns:
the Structure at the given position or null if none exists there

getStructures

public List<Structure> getStructures()
Get the Structures.

Returns:
a list of Structures found in this scale

getValue

public float getValue(int position,
                      int wObjectIndex)
Get the wavelet coefficient value at the given position and for the given WObject, zero otherwise. Precondition : 0 ≥ index ≤ size().

Parameters:
position - must be within the wavelet coefficients of this Scale
wObjectIndex - WObject index
Returns:
the wavelet coefficient value at the given position

add

public void add(SimpleSignal signal,
                int index)
If this scale contains Structures which belong to a given WObject then add those wavelet coefficients to a given signal and return results in that signal. Precondition: signal has the same size

Parameters:
signal - the signal to be added to this scale
index - the object index to

getScaleNumber

public int getScaleNumber()
Get the scale number. Higher numbers indicate smoother scales. Useful for checking purposes, such as verifying that a Structure is related to another structure plus or minus a scale number etc...

Returns:
the scale number (starts at 0)