dkyazzentwatwa

image-comparison-tool

Compare images with SSIM similarity scoring, pixel difference highlighting, and side-by-side visualization.

dkyazzentwatwa 95 19 Updated 8mo ago

Resources

1
GitHub

Install

npx skillscat add dkyazzentwatwa/chatgpt-skills/image-comparison-tool

Install via the SkillsCat registry.

About this skill

This skill compares two images using structural similarity indexing, highlights pixel-level differences with color-coded heatmaps, and generates side-by-side visualizations. It addresses the need to detect and quantify changes between image pairs, useful for quality control, before/after analysis, or automated testing workflows. Developers should use it when programmatic image comparison with visual output is required.

SKILL.md

Image Comparison Tool

Compare images with similarity scoring and difference visualization.

Features

  • SSIM Similarity: Structural similarity index
  • Pixel Differences: Highlight changed areas
  • Side-by-Side: Visual comparison layout
  • Diff Heatmap: Color-coded differences
  • Batch Comparison: Compare multiple image pairs
  • Threshold Detection: Find significant changes

CLI Usage

python image_comparison.py --image1 before.jpg --image2 after.jpg --output diff.png

Dependencies

  • opencv-python>=4.8.0
  • scikit-image>=0.21.0
  • pillow>=10.0.0
  • numpy>=1.24.0
  • matplotlib>=3.7.0