1. A method of detecting a defect on an object, the method comprising: obtaining a preliminary reference image from a plurality of comparison regions that are defined on the object; dividing the preliminary reference image into reference zones by similar brightnesses; providing each of the reference zones with substantially same gray levels, respectively, to obtain a reference image; and determining whether a defect exists in an inspection region among the comparison regions using the reference image.