@blazediff/cli 4.0.4 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -105,6 +105,36 @@ Integral image-based SSIM implementation for faster computation.
105
105
  blazediff-cli hitchhikers-ssim image1.png image2.png [options]
106
106
  ```
107
107
 
108
+ ### `interpret` - What changed, not just where
109
+ Structured region analysis: each change gets a type, a shape, a position and the
110
+ statistics behind them. Every other command answers *where* pixels differ or
111
+ *how alike* two images are; this one describes the change.
112
+
113
+ ```bash
114
+ blazediff-cli interpret image1.png image2.png [output] [options]
115
+ ```
116
+
117
+ `output` is written by the `pixel` source only — the metric sources and
118
+ `--regions` have no diff visualization to write, and passing one is an error
119
+ rather than a silently ignored path.
120
+
121
+ **Options:**
122
+ - `--source <name>` - How to locate regions: `pixel` (default), `ssim`, `ms-ssim`, `hitchhikers-ssim`
123
+ - `-t, --threshold <num>` - Color difference threshold (0 to 1, default: 0.1). `pixel` only
124
+ - `-a, --antialiasing` - Exclude anti-aliased pixels. `pixel` only
125
+ - `-c, --compression <num>` - PNG compression level (0-9, default: 0)
126
+ - `--window-size <num>` - Local window size for the metric sources (default: 11)
127
+ - `--region-floor <num>` - Window score at or below which it counts as changed (default: 0.99)
128
+ - `--regions <json>` - Skip the search and classify these boxes instead
129
+ - `--json` - Print the full result as JSON
130
+ - `-h, --help` - Show help message
131
+
132
+ The metric sources locate regions by thresholding a similarity map, so their boxes
133
+ are as coarse as that map's grid. The numbers are not: every box is refined against
134
+ the source pixels first, so pixel counts stay per-pixel.
135
+
136
+ Exits 0 when nothing actionable changed, 1 when it did, 2 on error.
137
+
108
138
  ## Examples
109
139
 
110
140
  ```bash
@@ -119,6 +149,11 @@ blazediff-cli core image1.png image2.png -o diff.png -t 0.05
119
149
  blazediff-cli gmsd image1.png image2.png
120
150
  blazediff-cli gmsd image1.png image2.png -o gms-map.png
121
151
 
152
+ # Describe what changed
153
+ blazediff-cli interpret image1.png image2.png
154
+ blazediff-cli interpret image1.png image2.png --source ms-ssim
155
+ blazediff-cli interpret image1.png image2.png --json
156
+
122
157
  # SSIM structural similarity
123
158
  blazediff-cli ssim image1.png image2.png
124
159
  blazediff-cli ssim image1.png image2.png -o ssim-map.png