looking at mag and ori images from piotr's matlab code
wrote writing grad and ori images to disk