Gabor2D method written by matlab