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

Projection Profile

IP Command Grooper.IP

Computes projection profiles to analyze the distribution of pixel intensities along the X and Y axes of an image.

Remarks

The Projection Profile command generates horizontal and vertical projection profiles, which are histograms showing the sum of pixel intensities along each row and column of an image. Projection profiles are a fundamental tool for layout analysis, margin detection, and diagnosing structural characteristics of scanned pages.

Projection profiles are commonly used to:

  • Detect the presence and position of text lines, graphics, or other features.
  • Support layout analysis, such as finding document margins or segmenting regions.
  • Diagnose skew, alignment, or other structural characteristics of scanned pages.

How It Works

  1. The input image is converted to grayscale if necessary.
  2. The command computes the sum of pixel intensities for each row (horizontal profile) and each column (vertical profile).
  3. Optional post-processing can be applied, including inversion, scaling, and running average smoothing.
  4. The resulting profiles can be visualized in diagnostic mode or used by downstream processes for further analysis.

Supported Pixel Formats

  • All basic pixel formats are supported, including 8-bit and 16-bit grayscale, and 24-bit color. Images are automatically converted to grayscale as needed.

Diagnostics

When diagnostic mode is enabled, Projection Profile generates a diagnostic image visualizing the projection profiles alongside the original image. This helps users understand the distribution of content and tune configuration parameters for margin detection, segmentation, or skew correction.

Classification Features

This command does not directly produce classification features, but the computed projection data can be used by downstream processes for feature extraction, layout analysis, or document classification.

Configuration Guidance

  • Use the 'Preview Size (inches)' property to control the size of the diagnostic preview region.
  • Use the 'Running Average (inches)' property to smooth the projection profile and reduce noise.
  • For most users, direct use of this command is not necessary; instead, rely on higher-level commands that leverage projection profiles automatically.

Properties

NameTypeDescription
General
Command Info

Used By

Notification