Skip to main content

Historical Image Pre-Processing

Project description

hipp

PyPI - Version PyPI - Python Version Hatch project Static Badge Ruff

HIPP (Historical Image Pre-Processing) is a python library to pre-process scanned historical (film based) aerial and satellite images in preparation for Structure from Motion surface reconstruction and photogrammetric analysis.


Features

Preprocessing of Aerial Images

  • Detection of fiducial markers

    • Built-in application to generate fiducial marker templates
    • Detection of fiducial marker coordinates using OpenCV template matching
    • Sub-pixel accuracy for fiducial detection
    • Supports detection of 4 midside and/or 4 corner fiducials
    • Replaces low-confidence matches with None, based on a matching score threshold
    • Estimates the principal point based on valid fiducials
    • Quality Control Outputs:
      • Cropped windows around detected fiducials for visual inspection
      • Distribution plots of principal point deviations and individual fiducial coordinates
      • Matching score distributions
      • RMSE of fiducial coordinates before and after affine transformation
  • Detection of fiducial marker proxies (pseudo-fiducial) (feature in development)

  • Image Restitution

    • Computes the appropriate geometric transformation between detected and calibrated fiducial positions:
      • 1 point → Translation
      • 2 points → Similarity transformation
      • 3+ points → Affine transformation
    • Crops the image around the estimated principal point to a standard size
    • Applies CLAHE (Contrast Limited Adaptive Histogram Equalization) to enhance features for SfM (Structure from Motion)
    • Computes the full affine transformation matrix (including crop transformation)

See this notebook for example.

Preprocessing of KH-9 Panoramic Camera Satellite Images

  • Image Joining

    • Joins split images into a single composite image
    • Requires input images named sequentially (e.g. ImageId_a, ImageId_b, ImageId_c, …)
    • A small overlap between image parts is required for proper stitching
    • Uses image_mosaic from the ASP toolkit
  • Image Cropping

    • Built-in interactive tool to manually select corners of the region of interest
    • Rotates and crops the image to align the selected top edge horizontally

See this notebook for example.

Preprocessing of KH-9 Mapping Camera Satellite Images (feature in development)


Installation

pip install hipp

License

hipp is distributed under the terms of the Apache-2.0 license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hipp-0.1.2.tar.gz (558.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hipp-0.1.2-py3-none-any.whl (42.3 kB view details)

Uploaded Python 3

File details

Details for the file hipp-0.1.2.tar.gz.

File metadata

  • Download URL: hipp-0.1.2.tar.gz
  • Upload date:
  • Size: 558.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for hipp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8cf2ed2d84fe4e7fad3f0c635f42c7e0c709bb4665d94fb2649f118dfdb65707
MD5 9431940fedfd5061b8792e8c2730edc7
BLAKE2b-256 51c9485675726582a48e2c2db1acbc028b6df24e7923afee0d5e8fff056acecd

See more details on using hashes here.

File details

Details for the file hipp-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: hipp-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 42.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for hipp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fb627a7ab6a9147e0c4dab9eda54fd9c87f081df34031c5bcd40cb3c213ff755
MD5 9bbc263ea027b069e5657b7f3f57151f
BLAKE2b-256 b1a3ff4b9274ae596f5faedce707c44fa68ae872922b1d3a4bc2326aecf8e26c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page