【发布时间】:2019-04-22 08:26:59
【问题描述】:
dct 在 opencv 中不能正确转换。
imf = np.float32(块)
dct = cv2.dct(imf)
[[154,123,123,123,123,123,123,136],
[192,180,136,154,154,154,136,110],
[254,198,154,154,180,154,123,123],
[239,180,136,180,180,166,123,123],
[180,154,136,167,166,149,136,136],
[128,136,123,136,154,180,198,154],
[123,105,110,149,136,136,180,166],
[110,136,123,123,123,136,154,136]]
这块图像,当用上面显示的代码转换时
[162.3 ,40.6, 20.0... [30.5 ,108.4...
这应该是结果,
[1186.3, 40.6, 20.0... [30.5, 108.4 ....
但我找到了这个结果。对于示例块,https://www.math.cuhk.edu.hk/~lmlui/dct.pdf
【问题讨论】:
标签: opencv image-processing dct