Research notes研究筆記 Note 02
How to measure contrast response
如何量測對比響應
Two contrast controls with the same label can produce different tonal behavior. Measuring their responses is more informative than comparing the slider numbers.
即使兩個對比控制項名稱相同,也可能有完全不同的階調行為。量測輸入與輸出的響應,比比較滑桿數字更有意義。
Image evaluation影像評估
Start with a neutral ramp.
先從灰階開始。
Use an input with known encoded values, record its color space and transfer function, and hold other controls constant. Compare outputs at multiple settings. An identity setting should be checked separately. Interpret the result in the chosen signal domain; encoded values are not scene luminance.
使用已知編碼數值的輸入,記錄色彩空間及轉移函數,固定其他控制項,再比較不同設定的輸出。零設定的恆等行為需獨立檢查。編碼訊號並不等同場景亮度,應在指定訊號域解讀。
Reference run · Contrast v1.0
Contrast v1.0 參考實作結果
We ran 65 neutral sRGB patches through the KOKEI Contrast v1.0 reference implementation at −100, 0 and +100. At +100, an encoded input of 0.204 falls to 0.116, while an input of 0.502 rises to 0.674. The endpoints stay fixed in this run.
我們將 65 個 sRGB 灰階色塊送入 KOKEI Contrast v1.0 參考實作,分別採用 −100、0、+100 三個設定。+100 時,編碼輸入 0.204 降至 0.116,0.502 則升至 0.674。本次測試的黑白端點維持固定。
Horizontal axis: sRGB-encoded input. Vertical axis: output luma re-encoded as sRGB.
橫軸為 sRGB 編碼輸入。縱軸為加權亮度轉回 sRGB 後的編碼訊號。
Repeat the test
重做這個測試
- Open the tagged sRGB ramp. Hold other controls and automatic processing constant, and export in sRGB at the original size.
- Run the neutral setting and one setting on each side. Record the app version, the exact settings, and the output bit depth. The CSV records encoded signals from 0 to 1. The KOKEI reference computes linear sRGB luma before encoding it back to sRGB.
- Sample the center of each 16-pixel patch and plot output against input. The result describes the tonal response on this ramp. Color appearance, local contrast and preference need separate tests.
- 開啟內嵌 sRGB 描述檔的灰階圖,固定其他控制與自動處理設定,以原尺寸匯出 sRGB。
- 測一次零設定,再各取一個正值和負值。記下軟體版本、設定值、輸出位元深度。CSV 使用 0 到 1 的編碼訊號。KOKEI 參考值先取線性 sRGB 加權亮度,再轉回 sRGB 編碼。
- 在每個 16 像素寬色塊的中心取樣,畫出輸入與輸出的關係。這個測試描述灰階階調響應。色彩外觀、局部對比與觀看偏好各有其他測法。
Reference implementation: KOKEI Contrast v1.0, Python, Git 037fc6d. Samples are synthetic. 實作來源為 KOKEI Contrast v1.0、Python、Git 037fc6d。測試色塊為合成輸入。
Interactive gray ramp
互動灰階示範
Illustration: y = clamp(0.5 + k(x − 0.5), 0, 1). Values are normalized signal levels, not measured luminance. This is not the KOKEI Contrast implementation.
示範公式:y = clamp(0.5 + k(x − 0.5), 0, 1)。數值為正規化訊號,非實測亮度;此非 KOKEI Contrast 實作。
INPUT / NORMALIZED輸入/正規化
OUTPUT / NORMALIZED輸出/正規化
What to look for.
應觀察什麼?
The curve reveals a pivot, changes in slope, clipping and endpoint behavior. A neutral ramp does not reveal all color or spatial effects. Add chromatic patches, edge targets and photographs under controlled conditions. Compare multiple scenes without retuning the same setting.
曲線呈現支點、斜率變化、裁切與端點行為。但灰階無法呈現所有色彩與空間效應,因此應加入彩色測試區、邊緣測試與受控實拍照片,以同一設定跨場景比較。
Repeatability before ranking.
先驗證重複性,再談排名。
Record software versions, inputs, settings, output encoding and any automatic processing. Run the same tests on later versions to identify regressions. Separate measured differences from expert preference: a higher contrast slope is not inherently better.
記錄軟體版本、輸入、設定、輸出編碼及自動處理。日後以相同測試辨識回歸問題。量測差異與專業偏好須分開判讀;對比斜率較高不代表一定比較好。
Where KOKEI stands.
KOKEI 的研究現況。
KOKEI has developed contrast reference implementations and test vectors as engineering research assets. They are distinct from the simple mathematical illustration above. Product integration and broader perceptual validation are separate steps; no finished external evaluation service is claimed.
KOKEI 已建立對比參考實作及測試向量,作為工程研究資產,與上方簡化數學示範不同。產品整合與更廣泛的感知驗證須分別完成,目前不宣稱已有對外評估服務。
KOKEI Research · Technical note / exploratory methodology, not a validated benchmark.KOKEI Research・技術筆記/探索方法,非已驗證基準。
Back to research notes ↗返回研究筆記 ↗