Optical Image Classification: A Ground-Truth Design Framework