|
|
|
|
@ -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") |
|
|
|
|
|