Pattern based morphometry