Skip to main content

Overview

The Stitching module provides a complete pipeline for creating panoramas from multiple images. It handles:
  • Feature detection and matching
  • Camera parameter estimation
  • Image warping
  • Exposure compensation
  • Seam finding
  • Image blending

Quick Start

Simple Panorama

Stitcher Modes

PANORAMA Mode

For regular camera photos:
Features:
  • Expects perspective transformations
  • Uses homography-based estimation
  • Projects to spherical surface
  • Applies exposure compensation

SCANS Mode

For scanned images or documents:
Features:
  • Expects affine transformations
  • No exposure compensation
  • Better for flat scans

Stitching Pipeline

Step-by-Step Process

Advanced Configuration

Feature Detection

Feature Matching

Warping

Exposure Compensation

Seam Finding

Blending

Resolution Control

Error Handling

Complete Example: Custom Pipeline

Best Practices

Overlapping Images

30-50% overlap between adjacent images

Consistent Exposure

Use manual exposure or lock exposure

Fixed Focal Length

Avoid zooming between shots

Steady Camera

Use tripod for best results

Performance Optimization

Troubleshooting

Stitching Fails

  1. Check image overlap (needs 30%+)
  2. Ensure similar lighting
  3. Try different feature detectors
  4. Increase confidence threshold

Poor Quality

  1. Increase registration resolution
  2. Use graph cut seam finder
  3. Use multi-band blending
  4. Enable exposure compensation

See Also