DCT簡單圖像壓縮的OpenCV實現

利用DCT變換實現簡單圖像壓縮:ios 1)對圖像進行DCT變換vim 2)找出小於閾值T的DCT係數,並將其設置爲0spa 3)進行DCT逆變換恢復圖像code #include <opencv2/opencv.hpp> #include <math.h> #include <cv.h> #include <iostream> using namespace cv;
相關文章
相關標籤/搜索