Structural and Photometric Classification of Galaxies. I. Calibration Based on a Nearby Galaxy Sample