A method and apparatus for processing defects in a digital image include
defining a defect map, having defect and non-defect entries, as a defect
bounded by an expanded defect region and an outer analysis region of a
different defect map values. By choosing suitable values and performing a
bitwise logical OR operation on the entries the processing of the defect
map is made more efficient.