Classification of astronomical objects using photometry