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.1.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.1-py3-none-any.whl (42.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hipp-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 4445fb799817a08bbd2064d5aedfea29702f81ec9af03f0722cb668cc52ff998
MD5 34021a1a3de30bf5b6f177ca24a06331
BLAKE2b-256 b73ead60aedf006bfbe9ff40ea50bcb67ea26cd2bc43396dcd2b8dd65de3ad80

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hipp-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 20d442bb6a55dea2d9ea703e72bebc0829c7fa8141a9413101827743cd634477
MD5 2cfe161fcfdeac8ac583db6f3b527ea9
BLAKE2b-256 92413f0e038db73d6d0be634676ee31f359edf4662adbb7c87bed6ddc9148f7b

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