util.wavelet
Class InterscaleRelationship

java.lang.Object
  extended by util.wavelet.InterscaleRelationship

public class InterscaleRelationship
extends Object

A relationship between two Structure instances in adjacent scales. It is a specific procedure and condition which defines a one-way relationship between a child Structure at wavelet scale j and an adjacent parent Structure at the next higher wavelet scale j+1. The default relationship is to consider the child to be connected to the parent if the maximum wavelet coefficient of the child intersects the parent.

Author:
John Talbot

Field Summary
 boolean childLocalMaximum
          True if child structure is local maximum.
 
Constructor Summary
InterscaleRelationship(Structure child, Structure parent)
          Construct the relationship between a parent structure and a child structure.
 
Method Summary
 Structure getChild()
          Get child structure at scale j which satisfies the interscale relationship with parent structure at scale j+1.
 Structure getParent()
          Get parent structure at scale j+1 which satisfies the interscale relationship with child structure at scale j.
 boolean isChildLocalMaximum()
          Is maximum wavelet coefficient in child structure greater than the maximum wavelet coefficient in the overlap with parent structure.
static boolean isRelated(Structure child, Structure parent)
          Is child structure at scale number j related to the parent structure in scale number j+1.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

childLocalMaximum

public boolean childLocalMaximum
True if child structure is local maximum.

Constructor Detail

InterscaleRelationship

public InterscaleRelationship(Structure child,
                              Structure parent)
Construct the relationship between a parent structure and a child structure. Pre-condition: isRelated(child, parent) must be true.

Parameters:
child - structure at scale j
parent - structure at scale j+1
Method Detail

isRelated

public static boolean isRelated(Structure child,
                                Structure parent)
Is child structure at scale number j related to the parent structure in scale number j+1. False if parent scale number isn't j+1.

Parameters:
child - structure at scale j
parent - structure at scale j+1
Returns:
true if child structure is related to parent structure

isChildLocalMaximum

public boolean isChildLocalMaximum()
Is maximum wavelet coefficient in child structure greater than the maximum wavelet coefficient in the overlap with parent structure.

Returns:
true if child structure at scale j is the local maximum relative to the parent structure at scale j+1.

getChild

public Structure getChild()
Get child structure at scale j which satisfies the interscale relationship with parent structure at scale j+1.

Returns:
the child structure

getParent

public Structure getParent()
Get parent structure at scale j+1 which satisfies the interscale relationship with child structure at scale j.

Returns:
the parent structure