Port dft.py sample from cv to cv2
Merge pull request #723 from virtuald:2.4