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

Defect Generator

Grooper Object Grooper.IP

Base class for all defect generators used by the Randomize Defects command.

Remarks

The DefectGenerator class provides a common interface and shared logic for all types of artificial defect generators used in the Randomize Defects command. Each subclass implements a specific type of image artifact, such as noise, skew, border, scaling, or alignment shift.

  • Each generator can be enabled or disabled independently.
  • The 'Defect Probability' property controls the likelihood that the defect will be applied to a given image.
  • Subclasses define additional properties to configure the severity and characteristics of the defect.

Defect generators are applied in a fixed order (alignment, border, noise, scale, skew) if enabled. This allows you to simulate a wide range of real-world scanning artifacts for robust testing of image cleanup workflows.

Properties

NameTypeDescription

Derived Types

There are 5 implementations of Defect Generator.

Border Generator Adds random black borders to an image to simulate edge artifacts.
Image Scaler Randomizes small variances in image scaling to simulate photocopying or faxing artifacts.
Image Skewer Applies a random skew (rotation) to the image to simulate misaligned scanning.
Image Translator Randomizes small variances in image alignment to simulate misfeeds or misalignment.
Noise Generator Adds random black specks to an image to simulate noise.
Notification