Cells specialized to detect and transduce light. Rods and cones are the photoreceptors in the vertebrate retina.