Viewing Direction Classification: Application to View Planning