Robert 8 months ago
parent 39ed535461
commit 940f378e0f
  1. 22
      dedup.py
  2. 18
      delibs.py

@ -6,6 +6,28 @@ import time
# My Custom Library called delibs.py
import delibs
"""
Copyright 2025 - Robert Strutts MIT License
Key Optimizations:
Multi-Scale Processing:
First alignment at low resolution (faster)
Final refinement at full resolution (accurate)
Matrix Scaling:
The translation components of the transformation matrix are scaled up
Rotation and scaling components remain the same
Smart Downscaling:
Uses INTER_AREA interpolation which is ideal for size reduction
Maintains aspect ratio
Performance Benefits:
Processing time scales with area, so 4x downscale = ~16x faster initial alignment
Memory usage significantly reduced
"""
def main():
if len(sys.argv) < 3:
print("Usage: python3 dedup.py file1.jpg file2.jpg")

@ -9,24 +9,6 @@ import time
"""
Copyright 2025 - Robert Strutts MIT License
Key Optimizations:
Multi-Scale Processing:
First alignment at low resolution (faster)
Final refinement at full resolution (accurate)
Matrix Scaling:
The translation components of the transformation matrix are scaled up
Rotation and scaling components remain the same
Smart Downscaling:
Uses INTER_AREA interpolation which is ideal for size reduction
Maintains aspect ratio
Performance Benefits:
Processing time scales with area, so 4x downscale = ~16x faster initial alignment
Memory usage significantly reduced
"""
start = time.perf_counter()

Loading…
Cancel
Save