結構相似性
結構相似性指標[1](英文:structural similarity index,SSIM index)是一種用以衡量兩張數位影像相似程度的指標。當兩張影像其中一張為無失真影像,另一張為失真後的影像,二者的結構相似性可以看成是失真影像的影像品質衡量指標。相較於傳統所使用的影像品質衡量指標,像是峰值信噪比(英語:),結構相似性在影像品質的衡量上更能符合人眼對影像品質的判斷[2][3]。
基本觀念
結構相似性的基本觀念為自然影像是高度結構化的[1],亦即在自然影像中相鄰像素之間有很強的關聯性,而這樣的關聯性承載了場景中物體的結構資訊。人類視覺系統在觀看影像時已經很習慣抽取這樣的結構性資訊。因此,在設計影像品質衡量指標用以衡量影像失真程度時,結構性失真的衡量是很重要的一環。
定義
給定兩個信號和,兩者的結構相似性定義為:
,
,,。
其中,比較和的亮度,比較和的對比度,比較和的結構(structure),,,,為調整、、相對重要性的參數,及、及分別為和的平均值和標準差,為和的协方差,、、皆為常數,用以維持、、的穩定。
結構相似性指標的值越大,代表兩個信號的相似性越高。
試想,若使用全等的兩張圖片去做SSIM運算,也就是說且,如此一來
使用
實際使用時,簡化起見,一般會將參數設為及,得到:
。
在計算兩張影像的結構相似性指標時,會開一個局部性的視窗,一般為×的小區塊,計算出視窗內信號的結構相似性指標,每次以像素為單位移動視窗,直到整張影像每個位置的局部結構相似性指標都計算完畢。將全部的局部結構相似性指標平均起來即為兩張影像的結構相似性指標。
限制
結構相似性指標有其限制,對於影像出現位移、縮放、旋轉(皆屬於非結構性的失真)的情況無法有效的運作。為解決此問題,另已發展出在小波域進行運算的結構相似性指標,稱作複小波結構相似性指標[8](英文:complex wavelet SSIM,CW-SSIM)。
參考資料
- Zhou Wang, Alan C. Bovik, Hamid R. Sheikh, and Eero P. Simoncelli, "Image quality assessment: from error visibility to structural similairty," IEEE Transactions on Image Processing, vol. 13, no. 4, pp. 600−612, Apr. 2004.
- Zhou Wang and Alan C. Bovik, "Mean squared error: Love it or leave it? - A new look at signal fidelity measures," IEEE Signal Processing Magazine, vol. 26, no. 1, pp 98−117, Jan. 2009.
- H.R. Sheikh, M.F. Sabir, and A.C. Bovik, "A statistical evaluation of recent full reference image quality assessment algorithms," IEEE Transactions on Image Processing, vol.15, no.11, pp.3440−3451, Nov. 2006.
- T. Richter, K. J. Kim, "A MS-SSIM optimal JPEG 2000 encoder," in Proc. Data Compression Conf., pp.401−410, Mar. 2009.
- A. M. Alattar, E. T. Lin, and M. U. Celik, "Digital watermarking of low bit-rate advanced simple profile MPEG-4 compressed video," IEEE Trans. Circuits Syst. Video Technol., vol. 13, no. 8, pp. 787−800, Aug. 2003.
- V. Vukadinovi and G. Karlsson, "Trade-offs in bit-rate allocation for wireless video streaming," in Proc. ACM Int. Symp. Modeling, Analysis, and Simulation of Wireless and Mobile Systems, Quebec, Canada, 2005, pp. 349−353
- S. A. Reinsberg, S. J. Doran, E. M. Charles-Edwards, and M. O. Leach, "A complete distortion correction for MR images: II. Rectification of static-field inhomogeneities by similarity-based profile mapping," Phys. Med. Biol., vol. 50, no. 11, pp. 2651−2661, June 2005.
- Z. Wang and E. P. Simoncelli, "Translation insensitive image similarity in complex wavelet domain," in Proc. IEEE Int. Conf. Acoustics, Speech, Signal Processing, pp. 573−576, Mar. 2005.