摘要 |
A method of detecting staining on a media item is described. An example method includes receiving an image of the media item, including a plurality of pixels having different intensity values within a range of intensity values, applying central weighting to the received image, applying a threshold to each pixel in the centrally-weighted image to transform each pixel to a binary value, comparing a pixel in the evaluation image with a pixel in a binary reference image to create a difference image including (i) a stain pixel at each spatial location in which a pixel in the evaluation image has a low intensity pixel and the corresponding pixel in the binary reference image has a high intensity pixel, and (ii) a non-stain pixel at all other spatial locations. The media item is identified as stained in the event that the difference image meets a staining criterion.
|