Grooper Help - Version 25.0
25.0.0017 2,127
  • Overview
  • Help Status

Scratch Removal

Feature Dropout Grooper.IP

Digitally removes scratches occurring on film-based media such as microfilm, microfiche, aperture cards, or 35mm slides.

Remarks

The Scratch Removal command is designed to automatically detect and remove scratches from scanned images of film-based media, such as microfilm, microfiche, aperture cards, and 35mm slides. Scratches on the surface of film allow light to pass through unobstructed, resulting in high-intensity white lines or streaks in the scanned image. These artifacts can obscure content, reduce image quality, and interfere with downstream processing such as OCR or data extraction.

Scratch Removal works by analyzing the image for high-intensity pixels that are characteristic of scratches. It generates a dropout mask to identify these regions, then applies a configurable dropout method to remove or suppress the detected scratches while preserving the rest of the image content.

How Scratch Removal Works

  1. The input image is converted to grayscale (if necessary) for analysis.
  2. A threshold is automatically determined based on the image histogram and the 'Sensitivity' property, identifying high-intensity pixels likely to be scratches.
  3. A raw mask is generated, highlighting all pixels above the threshold.
  4. The mask is refined by filtering out regions that do not meet the 'Maximum Thickness' and 'Minimum Weight' criteria, ensuring only true scratches are targeted.
  5. The final mask is applied to the image using the selected dropout method, removing or suppressing the scratches.

Configuration and Usage

  • Use 'Sensitivity' to control how aggressively scratches are detected. Higher values detect more scratches, but may include non-scratch features; lower values are more conservative.
  • Adjust 'Maximum Thickness' to exclude wide features that are unlikely to be scratches.
  • Set 'Minimum Weight' to ignore very small regions that are not significant scratches.
  • Review the Scratch Mask diagnostic image to ensure only scratches are being targeted.

Supported Pixel Formats

  • Pixel8bppGrayscale
  • Pixel24bppBgr

Images are automatically converted to grayscale for processing if needed.

Diagnostics

When run in diagnostic mode, Scratch Removal generates the following diagnostics:

  • Scratch Mask: Shows the detected scratch regions as a mask, allowing you to verify detection accuracy.
  • Threshold Log: Reports the automatically detected threshold and histogram analysis.
  • Log Messages: Details the steps taken and parameters used during processing.

Use these diagnostics to fine-tune detection parameters and ensure that only scratches are being removed.

Notes

  • Overly aggressive settings may remove non-scratch features or content. Always review diagnostic output.
  • Scratch Removal does not generate classification features directly, but the results can improve downstream OCR and data extraction by eliminating visual noise.

Properties

NameTypeDescription
General
Command Info

See Also

Used By

Notification