image_compare
Compare two images pixel by pixel to report percent differing, PSNR, a change bounding box, and a diff image.
Instructions
Pixel-compare two images: % differing, PSNR, change box, diff image.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"a": "<a>",
"b": "<b>"
},
"name": "image_compare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes | ||
| resize | No | ||
| out_dir | No | ||
| threshold | No | 0-255 |