

PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 
java.lang.Object util.wavelet.Structure
public class Structure
Set of contiguous wavelet coefficients which exceed a noise threshold. A structure is defined in a scale with a noise threshold. A structure optionally contains a reference to its parent structure and a list children structures via interscale relationships. A Structure may be a part of a WObject. A Structure may be due noise if it posseses one of the following properties :
Constructor Summary  

Structure(Scale scale,
int start,
int end)
Construct the Structure. 
Method Summary  

void 
addChild(Structure child)
Add a child structure. 
int 
compareTo(Object structure)
Implemation of the Comparable interface to ease sorting in WOBject. 
boolean 
contains(int position)
Is the given position contained in this structure. 
List<Structure> 
getChildren()
Get a list of children. 
SimpleSignal 
getCoefficients()
Get the wavelet coefficients for this structure (zero everywhere else). 
SimpleSignal 
getCoefficientsMask()
Get the wavelet coefficients mask for this structure as ones with zeros everywhere else. 
int 
getEnd()
Get the end position of this structure. 
float 
getMaximumValue()
Get the maximum wavelet coefficient. 
float 
getMaximumValue(int startLocal,
int endLocal)
Get the maximum wavelet coefficient within the given range. 
Structure 
getOverlap(Structure structure)
Get the overlap structure between this structure and given structure. 
Structure 
getParent()
Get the parent structure or null if unparented. 
int 
getPositionOfMaximum()
Get the position of the maximum within this structure. 
int 
getPositionOfMaximum(int startLocal,
int endLocal)
Get the position at which the maximum wavelet coefficient occurs within the given bounds. 
Scale 
getScale()
Get the scale which contains this structure. 
int 
getScaleNumber()
Get the scale number which contains this structure. 
int 
getSize()
Get the size of the structure as the number of coefficients. 
int 
getStart()
Get the start position of this structure. 
boolean 
overlaps(Structure structure)
Does the given structure overlap this structure 
void 
setParent(Structure parent)
Set the parent structure. 
Methods inherited from class java.lang.Object 

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
Constructor Detail 

public Structure(Scale scale, int start, int end)
scale
 wavelet scale of the wavelet coefficientsstart
 starting position where the multiresolution support switches from 0 to 1end
 ending position plus 1, like Strings etc...)Method Detail 

public int getSize()
public boolean overlaps(Structure structure)
structure
 a structure which we are checking for overlap
public Structure getOverlap(Structure structure)
structure
 the structure in which overlap is sought
public boolean contains(int position)
position
 the position
public int getPositionOfMaximum()
public int getPositionOfMaximum(int startLocal, int endLocal)
startLocal
 the lower boundary defining the range to searchendLocal
 the upper boundary defining the range to search
public float getMaximumValue()
public float getMaximumValue(int startLocal, int endLocal)
startLocal
 the lower boundary defining the range to searchendLocal
 the upper boundary defining the range to search
public SimpleSignal getCoefficients()
public SimpleSignal getCoefficientsMask()
public int getStart()
public int getEnd()
public Structure getParent()
public void setParent(Structure parent)
parent
 a structure representing a parentpublic List<Structure> getChildren()
public void addChild(Structure child)
child
 the child structurepublic Scale getScale()
public int getScaleNumber()
public int compareTo(Object structure)
compareTo
in interface Comparable
structure
 the structure to compare to


PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 