Download Two-Dimensional Fourier Processing of
Transcript
∗ Copyright :
C o p y r i g h t ( c ) 2001
∗ Company :
BrainFlux
∗ @author Jason G a l l i c c h i o
∗ @version 1.0
∗/
public c l a s s ComplexColor {
private f l o a t R=1.0 f , bmin =0.0 f , bmax=1.0 f , lmin =0.0 f , lmax =1.0 f ;
// Drawing o p t i o n s .
These a r e t h e same c o n s t a n t s d e f i n e d i n b r a i n f l u x .
math . Complex .
public s t a t i c f i n a l int MAG PHASE
= 0;
public s t a t i c f i n a l int MAG
= 1;
public s t a t i c f i n a l int PHASE
= 2;
public s t a t i c f i n a l int REAL
= 3;
public s t a t i c f i n a l int IMAG
= 4;
public s t a t i c f i n a l int MAG2
= 5;
public s t a t i c f i n a l int MAG2 PHASE = 6 ;
private int type = MAG PHASE;
// One o f t h e a b ov e c o n s t a n t s .
public ComplexColor ( ) {
}
public ComplexColor ( f l o a t R) {
t h i s .R = R;
}
public ComplexColor ( f l o a t R, f l o a t bmin , f l o a t bmax ,
f l o a t lmin , f l o a t lmax , int type ) {
s e t c o n s t a n t s (R, bmin , bmax , lmin , lmax , type ) ;
}
public void s e t c o n s t a n t s ( f l o a t R, f l o a t bmin , f l o a t bmax ,
f l o a t lmin , f l o a t lmax , int type )
{
t h i s .R=R;
t h i s . bmin=bmin ;
t h i s . bmax=bmax ;
t h i s . lmin=lmin ;
209