Image quality assessment based on local orientation distributions