hhreco.recognition
Class ZernikeMoments.Complex

java.lang.Object
  extended byhhreco.recognition.ZernikeMoments.Complex
Enclosing class:
ZernikeMoments

public static class ZernikeMoments.Complex
extends java.lang.Object

Data structure for a complex number with real and imaginary parts.


Constructor Summary
ZernikeMoments.Complex()
          Create a complex number with real and imaginary parts set to 0.
ZernikeMoments.Complex(double re, double im)
          Create a complex number with the specified real and imaginary values.
 
Method Summary
 double getIM()
          Return the imaginary part.
 double getMagnitude()
          Return the magnitude of this complex number.
 double getRE()
          Return the real part.
 void setIM(double im)
          Set the imaginary part.
 void setRE(double re)
          Set the real part.
 java.lang.String toString()
          Text representation of this complex number.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ZernikeMoments.Complex

public ZernikeMoments.Complex()
Create a complex number with real and imaginary parts set to 0.


ZernikeMoments.Complex

public ZernikeMoments.Complex(double re,
                              double im)
Create a complex number with the specified real and imaginary values.

Method Detail

setRE

public void setRE(double re)
Set the real part.


setIM

public void setIM(double im)
Set the imaginary part.


getRE

public double getRE()
Return the real part.


getIM

public double getIM()
Return the imaginary part.


getMagnitude

public double getMagnitude()
Return the magnitude of this complex number.


toString

public java.lang.String toString()
Text representation of this complex number.