public double computePhase ( int idx ) { double r = real [ idx ] ; double i = imag [ idx ] ; return atan2 ( r , i ) ; }
Calculates the phase of the pixel at the specified index . The phase is the argument of the complex number i . e . the angle of the complex vector in the complex plane .