A method is provided for detecting spot defects on an object when an
allowable variation (called the "background") in the appearance of the
object can be modeled. Methods are also provided for measuring and
classifying detected spot defects. An alignment model is used to align
the image of the object, a background model is then used to estimate the
(possibly different) background in each region, and each background is
substantially removed from the image so as to form a foreground image on
which blob analysis can be applied to detect spot defects, the blob
analysis using a threshold image that accommodates different noise
statistics for each region. The method facilitates robust spot defect
inspection of fiber optic end faces, or of any object with different
object regions. The method also allows use of blob analysis over a larger
range of conditions, including conditions that make simple blob analysis
infeasible.