Infrared cleaning


Infrared cleaning is a technique used by some film scanners and flatbed scanners to reduce or remove the effect of dust and scratches upon the finished scan. It works by collecting an additional infrared channel from the scan at the same position and resolution as the three visible color channels. The infrared channel, in combination with the other channels, is used to detect the location of scratches and dust. Once located, those defects can be corrected by scaling or replaced by inpainting.

Method

The three color dyes in typical color film emulsions are largely transparent to infrared light, so the infrared image is almost uniformly clear, unlike the RGB images. On the other hand, dust absorbs and scratches scatter the infrared. Any dust spots or scratches appear as dark marks in the infrared, making them easy to find and compensate for.
Pixels that are partially occluded may be corrected by scaling. The infrared pixel value indicates the fractional amount of the occlusion, and RGB values can be scaled appropriately.
If most or all of a pixel is occluded, scaling is not feasible. Instead, the pixel value may be interpolated from nearby good pixels.
Infrared cleaning is not possible with media which are not transparent to infrared. In particular the silver particles in silver halide black-and-white film respond equally to visible and infrared light, with no difference between dark pixels and dust, and infrared cleaning is not possible. Infrared cleaning does work with chromogenic black-and-white films, which do not contain silver particles.
Some film dyes also block infrared to a considerable extent; infrared cleaning works with Ektachrome slide film, but it is more difficult to find dust spots with the infrared-blocking dyes used in Kodachrome. Some software algorithms, such as the latest ICE implementation, VueScan's and SilverFast's, claim to use infrared cleaning to find dust spots even when scanning Kodachrome.

Infrared scanning

Scanners use three different techniques for doing this:
originally developed and patented infrared cleaning, and subsequently licensed this patent to Applied Science Fiction. Canon had a patent cross-licensing agreement with IBM, and thus was able to use IBM's infrared cleaning patent. Canon could not use the trademarked Digital ICE name, so instead called it Film Automatic Retouching and Enhancement. Other companies, including Hamrick Software and LaserSoft Imaging, independently developed infrared cleaning algorithms which are completely different from IBM's patented algorithm.
ASF subsequently went out of business, having spent all their money trying to develop dry film development in a kiosk at a time when digital photography was replacing film. Kodak purchased the assets of ASF, but did not use any of its technologies.