我正在通过离散余弦变换对图像压缩进行一些研究,我想改变到量化表的大小,以便我可以研究当我改变我将图片分成的矩阵大小时会发生什么。标准子矩阵大小为8X8,这些维度有很多表。例如,标准的JPEG量化表(我使用的)是:
Failed to get remote view controller with error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.uikit.viewservice.com.apple.SafariViewService was interrupted, but the message was sent over an additional proxy and therefore this proxy has become invalid." UserInfo={NSDebugDescription=The connection to service named com.apple.uikit.viewservice.com.apple.SafariViewService was interrupted, but the message was sent over an additional proxy and therefore this proxy has become invalid.}
我假设2X2和4X4的量化表将是:
standardmatrix8 = np.matrix('16 11 10 16 24 40 51 61;\
12 12 14 19 26 58 60 55;\
14 13 16 24 40 57 69 56;\
14 17 22 29 51 87 80 62;\
18 22 37 56 68 109 103 77;\
24 35 55 64 81 104 103 92;\
49 64 78 77 103 121 120 101;\
72 92 95 98 112 100 103 99').astype('float')
由于标准表中的条目对应于较小矩阵中的相同频率。
但是对于尺寸为16X16,24X24等的量化呢?我知道标准的量化表是通过实验计算出来的,不能用某些公式来计算,但我假设有人试图在我之前改变矩阵大小!我在哪里可以找到这些表格?或者我可以做些什么并将最后的条目扩展到更高的频率?