1. A computer-readable storage medium comprising computer program code configured to enable a computer system to measure visibility, the computer-readable storage medium comprising computer program code for performing a method comprising: calculating a visibility based on an image and a lighting condition for the image, wherein the calculating includes: selecting any one of: a set of visibility calculations for a daytime lighting condition, a set of visibility calculations for a nighttime lighting condition, or a set of visibility calculations comprising at least one calculation for a daytime lighting condition and at least one calculation for a nighttime lighting condition according to the lighting condition; and calculating the visibility using the selected set of visibility calculations.