Skip to main content

Historical Image Pre-Processing

Project description

hipp

PyPI - Version PyPI - Python Version Hatch project

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


Features

Preprocessing of Aerial Images

  • Fiducial Marker Detection

    • 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
  • Fiducial Marker Proxy Detection (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)

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

  • Image Joining (feature in development)

    • 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 (feature in development)

    • 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

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


Installation

pip install git+https://github.com/shippp/hipp.git

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.0.2.tar.gz (972.1 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.0.2-py3-none-any.whl (37.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hipp-0.0.2.tar.gz
Algorithm Hash digest
SHA256 59383a4be5f253c663479f2c45c14f3b857ab915832c78098a814b13a38eeceb
MD5 4fd72af9c3f3f3489bdaa47e99a55fdc
BLAKE2b-256 8c3a4e37557e769f607a600e3c409a5da3c0de8413d64ceabf72b6ea14956154

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for hipp-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b255a00c88757732a33dfb6b30df28ba01e77e0a8a3a1af514e9f14fa254f77b
MD5 4c3af1fd27851bfb16eaf314f09ad6de
BLAKE2b-256 b9232e09229f24ab5bd9d76cea213b01331d3d1785936f0d70f40ece16c76579

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