The macular pigment optical density was measured using customized heterochromatic flicker photometry , and visual function was assessed using corrected distance visual acuity and by letter contrast sensitivity .