medir_calidad
Measure how far a processed image deviates from its original using SSIMULACRA 2, PSNR, and SSIM metrics to quantify compression or format-conversion loss.
Instructions
How far an image is from its original: SSIMULACRA 2 (90 or more indistinguishable, 80 very high, 70 high, 50 noticeable), PSNR and SSIM. They have to be the same size (if the result is auto-rotated, the original is auto-rotated too). To see where the loss is, ver_imagen with diferencias_con. Example: {"original": "/a.jpg", "resultado": "/a.webp"}
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": {
"original": "<original>",
"resultado": "<resultado>"
},
"name": "medir_calidad"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| original | Yes | The original image, absolute path. | |
| resultado | Yes | The image to measure, of the same size. |