问题描述
我对如何计算在Android 8 * 8博克图像的DCT一个问题。我用我的Android项目OpenCV的,无法找到获取DCT适当的方法。
I have a problem on how to compute the DCT of 8*8 bock of image on android. I'm using opencv on my android project and can't find proper method for getting dct.
谁能知道如何计算呢?
有没有这样做在Android或者我应该用我自己的计算公式DCT任何方法?
can anyone know how to compute this ?is there any method for doing this on android or I should compute dct formula by my own?
请注意,我知道如何在原有的OpenCV获得图像的DCT(带cv2.dct()),但我对Android的麻烦...
note that I know how to get DCT of image on original opencv (with cv2.dct()) but I have trouble on android ...
推荐答案
有一个在此链接:
Convert OpenCV的DFT例如,从C ++到Android
您可以到Core.dct调用替换DFT呼叫
you can replace the dft call with a call to Core.dct
这篇关于获得DCT在Android(离散余弦变换)图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!