compare_images
Measure visual similarity between two images using mathematical feature extraction. Supports color, texture, and shape features like CEDD and JCD.
Instructions
Compare two images mathematically to get a similarity score.
This measures visual similarity based on mathematical features, NOT semantic content. Different subjects can be "similar" if they share color palettes, textures, or compositions.
Args: image_a: Path to first image image_b: Path to second image feature: Feature for comparison. Recommended: - "CEDD": Color + edge (144 dims, good general purpose) - "JCD": Joint CEDD+FCTH (168 dims, best for similarity) - "ColorHistogram": Color only (64 dims) - "LocalBinaryPatterns": Texture only (256 dims) - "PHOG": Shape only (630 dims) metric: Distance metric - "cosine", "euclidean", "l1"
Returns: Similarity score (0-100%) and interpretation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_a | Yes | ||
| image_b | Yes | ||
| feature | No | CEDD | |
| metric | No | cosine |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |