From 940f378e0f4aa48597dcdb900c7f636d03002377 Mon Sep 17 00:00:00 2001 From: Robert Date: Sun, 27 Apr 2025 15:23:01 -0400 Subject: [PATCH] Lic --- dedup.py | 22 ++++++++++++++++++++++ delibs.py | 18 ------------------ 2 files changed, 22 insertions(+), 18 deletions(-) diff --git a/dedup.py b/dedup.py index 5041cb1..2d25e26 100644 --- a/dedup.py +++ b/dedup.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") diff --git a/delibs.py b/delibs.py index 0bf5e04..4457391 100644 --- a/delibs.py +++ b/delibs.py @@ -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()