Commit 7e16db0
ssim: add scale parameter to control decimation factor
The SSIM feature extractor internally downscales input images to a
resolution in the 256-384 pixel range before computing the SSIM score.
For high-resolution content this discards fine spatial detail, causing
SSIM to underestimate quality differences between codecs.
Add a user-controllable "scale" integer parameter (0-10) to the
float_ssim feature extractor:
- scale=0 (default): auto-compute from resolution (existing behavior)
- scale=1: no downscaling, compute SSIM at original resolution
- scale=2..10: explicit integer decimation factor
Usage: --feature float_ssim=scale=1
This change is backward-compatible: the default value of 0 preserves
the existing auto-scaling behavior. No CLI parsing changes are needed
since the feature option infrastructure already supports key=value
pairs.
See CWG-G053i for detailed analysis of the issue and BD-rate results
demonstrating the impact of downscaling on SSIM accuracy at high
resolutions.1 parent 332dde6 commit 7e16db0
3 files changed
+20
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
62 | 72 | | |
63 | 73 | | |
64 | 74 | | |
| |||
115 | 125 | | |
116 | 126 | | |
117 | 127 | | |
118 | | - | |
| 128 | + | |
119 | 129 | | |
120 | 130 | | |
121 | 131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
80 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
81 | 86 | | |
82 | 87 | | |
83 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
0 commit comments