Retina and nonretina detection