added more helper functions and main functions for FFT and orientation processing