anisoDir function

Calculate the direction of maximum continuity considering 4 directions